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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
At InlineKeyboardButton, has field
web_app
, but here not have.The text was updated successfully, but these errors were encountered: