kowalski/commands/customize.js

22 lines
523 B
JavaScript
Raw Normal View History

module.exports = function(bot, msg) {
2024-06-02 15:32:36 +00:00
const chatId = msg.chat.id;
2024-06-02 15:32:36 +00:00
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'}],
],
}
};
2024-06-02 15:32:36 +00:00
const message = "Select your pronouns:";
2024-06-02 15:32:36 +00:00
bot.sendMessage(chatId, message, opts,{ parse_mode: 'Markdown' })
.catch(error => console.error('WARN: Message cannot be sent: ', error));
}