Skip to content

export Function

LoginUrl ​

Constructor ​

ts
 KeyboardButton.LoginUrl( text, login_url )
ParameterTypeDescription
textstringLabel text on the button.
login_urlLoginUrlHTTPS URL used to automatically authorize the user. Can be used as a replacement for the Telegram Login Widget.

Return: KeyboardButtonPayload

A modern, powerful library for building your Telegram bots, with seamless support for both JavaScript and Typescript.