RequestLocationKeyboardButton

data class RequestLocationKeyboardButton(text: String) : KeyboardButton

Private chats only. When user will tap on this button, his location will be sent to the bot. You will be able to catch this location in updates and data using dev.inmo.tgbotapi.extensions.behaviour_builder.triggers_handling.onLocation 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.CommonMessage and dev.inmo.tgbotapi.extensions.utils.onlyLocationContentMessages

Constructors

RequestLocationKeyboardButton
Link copied to clipboard
common
fun RequestLocationKeyboardButton(text: String)

Properties

requestLocation
Link copied to clipboard
common
val requestLocation: Boolean = true
text
Link copied to clipboard
common
open override val text: String