InlineQueryResultGifCachedImpl

Properties

Link copied to clipboard
Link copied to clipboard
@SerialName(value = "gif_file_id")
open override val fileId: FileId
Link copied to clipboard
@SerialName(value = "id")
open override val id: InlineQueryId
Link copied to clipboard
@SerialName(value = "input_message_content")
open override val inputMessageContent: InputMessageContent?
Link copied to clipboard
@SerialName(value = "parse_mode")
open override val parseMode: ParseMode?
Link copied to clipboard
@SerialName(value = "reply_markup")
open override val replyMarkup: InlineKeyboardMarkup?
Link copied to clipboard
@SerialName(value = "show_caption_above_media")
open override val showCaptionAboveMedia: Boolean
Link copied to clipboard
@SerialName(value = "caption")
open override val text: String?
Link copied to clipboard
open override val textSources: TextSourcesList?

Full list of TextSources

Link copied to clipboard
@SerialName(value = "title")
open override val title: String?
Link copied to clipboard
open override val type: String

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun TextedWithTextSources.parseCommandsWithArgs(argsSeparator: Regex = TelegramBotCommandsDefaults.defaultArgsSeparatorRegex): Map<String, Array<String>>

Parse commands and their args. Logic will find command, get all subsequent data as args until new command

Link copied to clipboard

Parse text sources to find commands with their arguments. This method will skip all the text sources before first command and all following text sources until the next command will be guessed as an args of last found command

Link copied to clipboard
fun TextedWithTextSources.parseCommandsWithNamedArgs(argsSeparator: String, nameArgSeparator: Regex = TelegramBotCommandsDefaults.defaultNamesArgsSeparatorRegex): Map<String, List<Pair<String, String>>>
fun TextedWithTextSources.parseCommandsWithNamedArgs(argsSeparator: Regex = TelegramBotCommandsDefaults.defaultArgsSeparatorRegex, nameArgSeparator: Regex = TelegramBotCommandsDefaults.defaultNamesArgsSeparatorRegex): Map<String, List<Pair<String, String>>>

Uses parseCommandsWithArgs to create base argsSeparator split args for commands and map their as k-v pairs. Sample:

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard