stateless-question
stateless-question copied to clipboard
Inline-menu with question
Hi. Any chance to add telegraf-inline-keyboard button to the message of the question?
For example button 'back', if someone misclick and don't want to enter the answer. I think it would be useful.
It would be useful indeed but sadly thats not possible with the current state of the API currently. I would really like to use something like that.
Thanks for bringing that topic up in this repo so others can find the relevant issues and more in depth explanations of that over at my other repo where this repo kind of started: https://github.com/EdJoPaTo/telegraf-inline-menu/issues/43, https://github.com/EdJoPaTo/telegraf-inline-menu/issues/67 and https://github.com/EdJoPaTo/telegraf-inline-menu/issues/12
Not sure if there is a good way to suggest something like that to the Telegram Devs which created the Bot API. It would be nice to have something like that for sure.
I think this issue can be closed as it is not possible due to the Telegram API itself (not Telegraf) prohibiting more than one "keyboard" reply in the reply markup, as described here.
Consequently something like ctx.reply('Provide phone number', Markup.keyboard(['1', '2']).oneTime().resize().forceReply().extra())
does not work.
I'll leave it open so people are finding it more easily. Its often something people would like but sadly we cant achieve that with the current Telegram API.