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

x/grammy/mod.ts>Keyboard.requestLocation

The Telegram Bot Framework.
Very Popular
Latest
method Keyboard.requestLocation
import { Keyboard } from "https://deno.land/x/grammy@v1.30.1/mod.ts";

Creates a new location request button. The user's current location will be sent when the button is pressed. Available in private chats only.

Parameters

text: string

The text to display

Returns

KeyboardButton.RequestLocationButton