meteor-telegram-bot icon indicating copy to clipboard operation
meteor-telegram-bot copied to clipboard

Better inline keyboard support

Open sebastianPsm opened this issue 9 years ago • 2 comments

  • 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);

sebastianPsm avatar Jun 22 '16 17:06 sebastianPsm

Ignore the bot for now

benjick avatar Jun 22 '16 17:06 benjick

replyCallback doesn't get original! I can get the "data" but I cannot get "original".

ryanbraving avatar Apr 29 '17 21:04 ryanbraving