get_main_web_app


Description:

public async MainWebApp get_main_web_app (int64 chat_id, int64 bot_user_id, string start_parameter, WebAppOpenParameters parameters) throws TDLibError

Returns information needed to open the main Web App of a bot

Parameters:

chat_id

Identifier of the chat in which the Web App is opened; pass 0 if none

bot_user_id

Identifier of the target bot. If the bot is restricted for the current user, then show an error instead of calling the method

start_parameter

Start parameter from internalLinkTypeMainWebApp

parameters

Parameters to use to open the Web App