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

How to trigger keyboard command internally #593

Open
suntong opened this issue Apr 21, 2023 · 2 comments
Open

How to trigger keyboard command internally #593

suntong opened this issue Apr 21, 2023 · 2 comments
Labels

Comments

@suntong
Copy link

suntong commented Apr 21, 2023

I'm using telebot to write a game that, on receiving the command /game, the bot would present three buttons for the user to click.

Once the user clicks any of the buttons, I need the bot to present three buttons with different texts in them, and wait for the user to click. IE, I need to trigger the keyboard command internally within my loop. How can I do that please?

Here are the homework that I've done:

  • I've created from readme a starting point at
    https://github.com/suntong/go_telebot_demos/blob/master/telebot/keyboard-game.go, which only covers the presenting three buttons stage. For the rest, I'm still not too sure. Moreover, there are some runtime error too.

  • I've searched and found https://github.com/handybots/azartio, which seems to be somewhat close to what I am planning to do. I don't quite understand the code so I try to compile and run it myself, to see how it works. However, I found the following packages missing for it to be compiled successfully

    • github.com/handybots/store
    • github.com/handybots/store/anypay
    • github.com/handybots/store/enotio
    • github.com/hashicorp/hcl/hcl/printer

Any help appreciated.

@demget demget closed this as completed Nov 19, 2023
@suntong
Copy link
Author

suntong commented Nov 19, 2023

Closed as completed?

Care to explain a bit please?

@demget demget reopened this Nov 20, 2023
@suntong
Copy link
Author

suntong commented Nov 20, 2023

Thanks a lot, sir.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants