RequestUserKeyboardButton

@Serializable
data class RequestUserKeyboardButton(val text: String, val requestUsers: KeyboardButtonRequestUsers) : 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.onUserShared 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.onUserShared it is recommended to use kotlinx.coroutines.flow.Flow with checking of incoming dev.inmo.tgbotapi.types.request.UsersShared.requestId

Constructors

Link copied to clipboard
constructor(text: String, requestUsers: KeyboardButtonRequestUsers)

Properties

Link copied to clipboard
@SerialName(value = "request_users")
val requestUsers: KeyboardButtonRequestUsers
Link copied to clipboard
open override val text: String