Reformulation of bot structure
This commit is contained in:
parent
4b9ed6d2c0
commit
2f65126319
15 changed files with 2 additions and 2 deletions
21
commands/customize.js
Normal file
21
commands/customize.js
Normal file
|
@ -0,0 +1,21 @@
|
|||
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));
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue