RequestContactKeyboardButton

@Serializable
data class RequestContactKeyboardButton(val text: String, val iconCustomEmojiId: CustomEmojiId? = null, val style: KeyboardButtonStyle? = null) : KeyboardButton(source)

Private chats only. When user will tap on this button, his contact (with his number and name) will be sent to the bot. You will be able to catch this contact in updates and data using dev.inmo.tgbotapi.extensions.behaviour_builder.triggers_handling.onContact in case you are using Behaviour Builder OR with dev.inmo.tgbotapi.updateshandlers.FlowsUpdatesFilter.messagesFlow and kotlinx.coroutines.flow.filterIsInstance and filtering by type dev.inmo.tgbotapi.types.message.abstracts.ChatContentMessage and dev.inmo.tgbotapi.extensions.utils.onlyContactContentMessages

Constructors

Link copied to clipboard
constructor(text: String, iconCustomEmojiId: CustomEmojiId? = null, style: KeyboardButtonStyle? = null)

Properties

Link copied to clipboard
@SerialName(value = "icon_custom_emoji_id")
open override val iconCustomEmojiId: CustomEmojiId?
Link copied to clipboard
@SerialName(value = "request_contact")
@EncodeDefault
val requestContact: Boolean = true
Link copied to clipboard
@SerialName(value = "style")
open override val style: KeyboardButtonStyle?
Link copied to clipboard
open override val text: String