Skip to content

getWebAppUrl

Function · TDLib 1.8.67 · d1085f9c

Returns an HTTPS URL of a Web App to open from the side menu, a keyboardButtonTypeWebApp button, or an inlineQueryResultsButtonTypeWebApp button

getWebAppUrl(
  bot_user_id: int53,
  url: string,
  parameters: WebAppOpenParameters
) → WebAppUrl

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

url

string

The URL from a keyboardButtonTypeWebApp button, inlineQueryResultsButtonTypeWebApp button, or an empty string when the bot is opened from the side menu

parameters

WebAppOpenParameters

Parameters to use to open the Web App