Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
method Keyboard.requestLocation
import { Keyboard } from "https://deno.land/x/grammy@v1.18.2/convenience/keyboard.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