openWebApp¶
Informs TDLib that a Web App is being opened from the attachment menu, a botMenuButton button, an internalLinkTypeAttachmentMenuBot link, or an inlineKeyboardButtonTypeWebApp button. For each bot, a confirmation alert about data sent to the bot must be shown once
openWebApp(
chat_id: int53,
bot_user_id: int53,
url: string,
topic_id: MessageTopic,
reply_to: InputMessageReplyTo,
parameters: WebAppOpenParameters
) → WebAppInfo
chat_id¶
int53
Identifier of the chat in which the Web App is opened. The Web App can't be opened in secret chats
bot_user_id¶
int53
Identifier of the bot, providing the Web App. If the bot is restricted for the current user, then show an error instead of calling the method
url¶
string
The URL from an inlineKeyboardButtonTypeWebApp button, a botMenuButton button, an internalLinkTypeAttachmentMenuBot link, or an empty string otherwise
topic_id¶
Topic in which the message will be sent; pass null if none
reply_to¶
Information about the message or story to be replied in the message sent by the Web App; pass null if none
parameters¶
Parameters to use to open the Web App