mirror of
https://github.com/abocn/TelegramBot.git
synced 2025-03-10 21:00:03 +00:00
Update customize
This commit is contained in:
parent
f92cbcf3ad
commit
44760b8e21
@ -1,21 +1,21 @@
|
|||||||
module.exports = function(bot, msg) {
|
module.exports = function(bot, msg) {
|
||||||
const chatId = msg.chat.id;
|
const chatId = msg.chat.id;
|
||||||
|
|
||||||
const opts = {
|
const opts = {
|
||||||
reply_to_message_id: msg.message_id,
|
reply_to_message_id: msg.message_id,
|
||||||
reply_markup: {
|
reply_markup: {
|
||||||
resize_keyboard: true,
|
resize_keyboard: true,
|
||||||
one_time_keyboard: true,
|
one_time_keyboard: true,
|
||||||
keyboard: [
|
keyboard: [
|
||||||
[{text: 'He/Him'}],
|
[{text: 'He/Him'}],
|
||||||
[{text: 'She/Her'}],
|
[{text: 'She/Her'}],
|
||||||
[{text: 'They/Them'}],
|
[{text: 'They/Them'}],
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const message = "Select your pronouns:";
|
const message = "Select your pronouns:";
|
||||||
|
|
||||||
bot.sendMessage(chatId, message, opts,{ parse_mode: 'Markdown' })
|
bot.sendMessage(chatId, message, opts,{ parse_mode: 'Markdown' })
|
||||||
.catch(error => console.error('WARN: Message cannot be sent: ', error));
|
.catch(error => console.error('WARN: Message cannot be sent: ', error));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user