Skip to main content
Module

x/grammy_conversations/deps.deno.ts>InlineKeyboard#login

Conversational interfaces for grammY
Go to Latest
method InlineKeyboard.prototype.login
import { InlineKeyboard } from "https://deno.land/x/grammy_conversations@v1.1.1/deps.deno.ts";

Adds 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