we684123 / Google-Apps-Script-Telegram-Bot-Library

一個 TGbot lib , can run on GAS and NodeJs
MIT License
22 stars 5 forks source link

CallbackQueryHandler using Google-Apps-Script #1

Closed ducky7788 closed 3 years ago

ducky7788 commented 3 years ago

Saw extensions available for python, and they are calling it CallbackQueryHandler. I couldn't find any sources for such method in Google-Apps-Script. Is it possible to update to have such method?

For example:

  1. Inline keyboard button asks for first Option1 and Option2.
  2. On callback, if Option1 chose, then editMessageReplyMarkup() with for Options 1.1, 1.2, 1.3. If Option 2 chose, then Options 2.1, 2.2, 2.3.
we684123 commented 3 years ago

hi @ducky7788 OwO// i am sorry but "Google-Apps-Script-Telegram-Bot-Library" just a "Library", it is not "Framework"

so... now i have not this plan to add "CallbackQueryHandler"


but if you want to "CallbackQueryHandler" maybe use json-hook to reach

Is there anything I can do to help you?

ducky7788 commented 3 years ago

Thanks for your reply @we684123 I will try what you have suggested, i dont have much coding experiences. Will take some time to trial and error of your json-hook library.