Skip to content

export Function

Contact ​

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

Constructor ​

ts
 ReplyButton.Contact( text )
ParameterTypeDescription
textstringLabel text on the button.

Return: ReplyButtonPayload

A modern, powerful library for building your Telegram bots, with seamless support for both JavaScript and Typescript.