RequestChatKeyboardButton

@Serializable
data class RequestChatKeyboardButton(val text: String, val requestChat: KeyboardButtonRequestChat) : KeyboardButton

Private chats only. When user will tap on this button, he will be asked for the chat with requestChat options. You will be able to catch this ChatId in updates and data using dev.inmo.tgbotapi.extensions.behaviour_builder.triggers_handling.onChatShared in case you are using Behaviour Builder OR with dev.inmo.tgbotapi.updateshandlers.FlowsUpdatesFilter.messagesFlow and kotlinx.coroutines.flow.filterIsInstance.

In case you will use dev.inmo.tgbotapi.extensions.behaviour_builder.triggers_handling.onChatShared it is recommended to use kotlinx.coroutines.flow.Flow with checking of incoming dev.inmo.tgbotapi.types.request.ChatShared.requestId

Constructors

Link copied to clipboard
constructor(text: String, requestChat: KeyboardButtonRequestChat)

Properties

Link copied to clipboard
@SerialName(value = "request_chat")
val requestChat: KeyboardButtonRequestChat
Link copied to clipboard
open override val text: String