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

InlineKeyboardButton hit with tdlib AP issue #2877

Closed
JrAnTran opened this issue May 10, 2024 · 6 comments
Closed

InlineKeyboardButton hit with tdlib AP issue #2877

JrAnTran opened this issue May 10, 2024 · 6 comments

Comments

@JrAnTran
Copy link

@aurimasniekis @kossnocorp
I need to simulate InlineKeyboardButton hit from my app. Digging around the internet, there is a few of things related such as GetBotCallbackAnswerRequest...

Could you please help clarify this. Many thanks.

@JrAnTran
Copy link
Author

JrAnTran commented May 10, 2024

in an attempt to openWebApp via hit inlinekeyboadbutton simualtion, I call openWebApp, but its returns "Bot not found". While in the Telegram app, opening the web app is okay with hitting inline button
Screenshot from 2024-05-10 18-55-05

While in the Telegram app, opening the web app is okay with hitting inline button

@levlam
Copy link
Contributor

levlam commented May 10, 2024

You can't pass hardcoded identifiers to TDLib. You can only pass identifiers received from TDLib as function parameters.

@JrAnTran
Copy link
Author

JrAnTran commented May 10, 2024

You can't pass hardcoded identifiers to TDLib. You can only pass identifiers received from TDLib as function parameters.

@levlam

chatId, botUserid...received from a message containing replyMarkup of the bot

Tell me is there another way to call OpenWebApp?

@JrAnTran
Copy link
Author

JrAnTran commented May 10, 2024

@levlam all in all, could you please tell me how to simulate an InlineKeyboardButton hit from a Telegram client app using tdlib..

Many thanks.

@levlam
Copy link
Contributor

levlam commented May 10, 2024

It depends on the type of the keyboard button and is described in the description of the corresponding class.

@JrAnTran
Copy link
Author

It depends on the type of the keyboard button and is described in the description of the corresponding class.

I have done it already. Thanks

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

No branches or pull requests

2 participants