Skip to main content
Module

x/grammy_menu/mod.ts>MenuRange#login

Easily create interactive menus with grammY.
Go to Latest
method MenuRange.prototype.login
import { MenuRange } from "https://deno.land/x/grammy_menu@v1.1.2/mod.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: MaybeDynamicString<C>

The text to display

loginUrl: string | LoginUrl

The login URL as string or LoginUrl object