Module

x/grammy/mod.ts>InlineKeyboard.login

The Telegram Bot Framework.
Very Popular
Latest
method InlineKeyboard.login
import { InlineKeyboard } from "https://dotland.deno.dev/x/grammy@v1.31.0/mod.ts";

Creates a new login button. This can be used as a replacement for the Telegram Login Widget. You must specify an HTTPS URL used to automatically authorize the user.

Parameters

text: string

The text to display

loginUrl: string | LoginUrl

The login URL as string or LoginUrl object

Returns

InlineKeyboardButton.LoginButton