-
Notifications
You must be signed in to change notification settings - Fork 896
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 web_app #698
Comments
You can make a web app button this way: msg := tgbotapi.NewMessage(update.Message.Chat.ID, "Hi")
msg.ReplyMarkup = tgbotapi.NewInlineKeyboardMarkup(
tgbotapi.NewInlineKeyboardRow(
tgbotapi.NewInlineKeyboardButtonWebApp("My WebApp", tgbotapi.WebAppInfo{URL: WEBAPP_URL}),
),
) You can also add a web app button to the chat menu: mb = &tgbotapi.MenuButton{
Type: "web_app",
Text: "My WebApp",
WebApp: &tgbotapi.WebAppInfo{URL: WEBAPP_URL},
}
_, err := ba.Request(tgbotapi.SetChatMenuButtonConfig{MenuButton: mb}) |
If you wondering why you do not have WebApp related stuff in your version of library, you should try to install the master's version, not the latest tag. |
When is the WebApp planned to be released? |
@rays1410 y ist that so tho..? 😞 Took me a while to come up with that |
Sorry, I can't find the MenuButton |
Use master branch #698 (comment) |
At InlineKeyboardButton, has field
web_app
, but here not have.The text was updated successfully, but these errors were encountered: