KeyboardButtons

telegramium.bots.high.keyboards.KeyboardButtons$

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def requestChat(text: String, requestChat: KeyboardButtonRequestChat): KeyboardButton

Pressing the button will open a list of suitable chats. Tapping on a chat will send its identifier to the bot in a “chat_shared” service message.

Pressing the button will open a list of suitable chats. Tapping on a chat will send its identifier to the bot in a “chat_shared” service message.

Attributes

def requestContact(text: String): KeyboardButton

The user's phone number will be sent as a contact when the button is pressed.

The user's phone number will be sent as a contact when the button is pressed.

Attributes

def requestLocation(text: String): KeyboardButton

The user's current location will be sent when the button is pressed

The user's current location will be sent when the button is pressed

Attributes

def requestPoll(text: String, `type`: KeyboardButtonPollType): KeyboardButton

The user will be asked to create a poll and send it to the bot when the button is pressed

The user will be asked to create a poll and send it to the bot when the button is pressed

Attributes

def requestUser(text: String, requestUser: KeyboardButtonRequestUser): KeyboardButton

Pressing the button will open a list of suitable users. Tapping on any user will send their identifier to the bot in a “user_shared” service message.

Pressing the button will open a list of suitable users. Tapping on any user will send their identifier to the bot in a “user_shared” service message.

Attributes

def text(text: String): KeyboardButton

Text will be sent to the bot as a message when the button is pressed.

Text will be sent to the bot as a message when the button is pressed.

Attributes