Skip to content

getWebAppLinkUrl

Function · TDLib 1.8.67 · d1085f9c

Returns an HTTPS URL of a Web App to open after a link of the type internalLinkTypeWebApp is clicked

getWebAppLinkUrl(
  chat_id: int53,
  bot_user_id: int53,
  web_app_short_name: string,
  start_parameter: string,
  allow_write_access: Bool,
  parameters: WebAppOpenParameters
) → WebAppUrl

chat_id

int53

Identifier of the chat in which the link was clicked; pass 0 if none

bot_user_id

int53

Identifier of the target bot

web_app_short_name

string

Short name of the Web App

start_parameter

string

Start parameter from internalLinkTypeWebApp

allow_write_access

Bool

Pass true if the current user allowed the bot to send them messages

parameters

WebAppOpenParameters

Parameters to use to open the Web App