Module

x/grammy/mod.ts>Keyboard.requestContact

The Telegram Bot Framework.
Very Popular
Go to Latest
method Keyboard.requestContact
import { Keyboard } from "https://dotland.deno.dev/x/grammy@v1.22.4/mod.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