meteor-telegram-bot
meteor-telegram-bot copied to clipboard
Better inline keyboard support
- TelegramBot.send() replyCallback-argument now gets the original message
- If replyCallback returns true, then the callback can be reused
replyCallback = function(data, original) {
const chat_id = original.message.chat.id;
const message_id = original.message.message_id;
return true; // this callback will remain in TelegramBot-callbacks-object
};
TelegramBot.send(message, chatId, markdown, reply_markup, replyCallback);
Ignore the bot for now
replyCallback doesn't get original! I can get the "data" but I cannot get "original".