windkh / node-red-contrib-telegrambot

Telegram bot nodes for node-red.
Other
256 stars 117 forks source link

Iphone, inline menu working just one time. #383

Open TagorePde opened 1 week ago

TagorePde commented 1 week ago

Hi, thanks for this module for node red, is great.

I'm having the issue on Iphones, using the bot under a channel group, the menu jst work one time, i have to recreate the inline keyboard using a /command to fire the menu again, so i can use again.

var opts = {
  reply_markup: JSON.stringify({
    keyboard: [
      ['EDFA PDE ESTADO'],
      ['APAGAR PDE','PRENDER PDE'],
      ['EDFA Maldonado ESTADO'],
      ['APAGAR MLD', 'PRENDER MLD'],
      ['PING - El robot esta vivo?']],
      'resize_keyboard' : false,
      'one_time_keyboard' : false,
      'is_persistent' : true,
      'remove_keyboard' : false,     
  })
};

msg.error = false;
msg.payload.content = 'Selection?';
msg.payload.options = opts;

msg.payload.chatId = -1234567890;
msg.payload.messageId = 99;
msg.payload.sentMessageId = 99;
msg.payload.type = "message";

return [ msg ];

just happen only in iphone, under android is working as intended. i m doing something worng? or is working as expected? Regards.

windkh commented 1 week ago

@TagorePde Hm never tried that, just one short question: msg.payload.chatId = -1234567890; msg.payload.messageId = 99; msg.payload.sentMessageId = 99;

Do you update these IDs or do you always send 99?

TagorePde commented 1 week ago

No, i dont update, i need to update? Regards.

windkh commented 9 hours ago

@TagorePde can you send me a complete flow so that I can reproduce it?