open_web_app


Description:

public async WebAppInfo open_web_app (int64 chat_id, int64 bot_user_id, string url, int64 message_thread_id, InputMessageReplyTo reply_to, WebAppOpenParameters parameters) throws TDLibError

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

Parameters:

chat_id

Identifier of the chat in which the Web App is opened. The Web App can't be opened in secret chats

bot_user_id

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

The URL from an inlineKeyboardButtonTypeWebApp button, a botMenuButton button, an internalLinkTypeAttachmentMenuBot link, or an empty string otherwise

message_thread_id

If not 0, the message thread identifier in which the message will be sent

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