@ -7,7 +7,14 @@ var USER = 'USER_ID';
var bot = new TelegramBot(TOKEN, {polling: {timeout: 1, interval: 100}});
bot.sendMessage(USER, 'How old are you?')
var opts = {
reply_markup: JSON.stringify(
{
force_reply: true
}
)};
bot.sendMessage(USER, 'How old are you?', opts)
.then(function (sended) {
var chatId = sended.chat.id;
var messageId = sended.message_id;