Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Telegram buttons #50

Closed
Denire opened this issue Sep 21, 2020 · 1 comment
Closed

Telegram buttons #50

Denire opened this issue Sep 21, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@Denire
Copy link
Contributor

Denire commented Sep 21, 2020

Problem:
In Reaction.kt we have method:

open fun buttons(vararg buttons: String) {}

This method adds buttons to response, but telegram does not support adding buttons by separate reaction, so when user reacts with buttons in telegram channel, nothing happens.

Solution:
We can modify buttons in TelegramReaction to edit last response and add buttons to last response. Thus allowing using following code in TelegramChannel like in synchronous channels:

action {
  reactions.say("What number do you pick?")
  reactions.buttons("1", "2", "3")
}
@Denire Denire added the enhancement New feature or request label Sep 21, 2020
@nikvoloshin
Copy link
Contributor

@Denire isn't it one more argument for extracting buttons, image, audio, and other "might not be supported" reactions from base Reactions.kt?

@nikvoloshin nikvoloshin linked a pull request Nov 12, 2020 that will close this issue
@morfeusys morfeusys removed a link to a pull request Nov 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants