Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/grammy_menu/mod.ts>MenuRange#login

Interactive menus for grammY.
Go to Latest
method MenuRange.prototype.login
import { MenuRange } from "https://deno.land/x/grammy_menu@v1.2.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