mirror of
https://github.com/abocn/TelegramBot.git
synced 2025-03-11 13:19:57 +00:00
22 lines
523 B
JavaScript
22 lines
523 B
JavaScript
module.exports = function(bot, msg) {
|
|
const chatId = msg.chat.id;
|
|
|
|
const opts = {
|
|
reply_to_message_id: msg.message_id,
|
|
reply_markup: {
|
|
resize_keyboard: true,
|
|
one_time_keyboard: true,
|
|
keyboard: [
|
|
[{text: 'He/Him'}],
|
|
[{text: 'She/Her'}],
|
|
[{text: 'They/Them'}],
|
|
],
|
|
}
|
|
};
|
|
|
|
const message = "Select your pronouns:";
|
|
|
|
bot.sendMessage(chatId, message, opts,{ parse_mode: 'Markdown' })
|
|
.catch(error => console.error('WARN: Message cannot be sent: ', error));
|
|
}
|