Skip to main content
Deno 2 is finally here 🎉️
Learn more
Very Popular
Go to Latest
method Keyboard.requestContact
import { Keyboard } from "https://deno.land/x/grammy@v1.17.1/convenience/keyboard.ts";

Creates a new contact request button. The user's phone number will be sent as a contact when the button is pressed. Available in private chats only.

Parameters

text: string

The text to display

Returns

KeyboardButton.RequestContactButton