Skip to content

getMainWebApp

Function · TDLib 1.8.67 · d1085f9c

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

getMainWebApp(
  chat_id: int53,
  bot_user_id: int53,
  start_parameter: string,
  parameters: WebAppOpenParameters
) → MainWebApp

chat_id

int53

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

bot_user_id

int53

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

string

Start parameter from internalLinkTypeMainWebApp

parameters

WebAppOpenParameters

Parameters to use to open the Web App