Package dev. inmo. tgbotapi. requests
Types
Link copied to clipboard
data class DeleteMessage(val chatId: ChatIdentifier, val messageId: MessageIdentifier) : SimpleRequest<Boolean> , MessageAction
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
class DownloadFileStream(val filePath: String) : Request<ByteReadChannelAllocator>
Content copied to clipboard
Link copied to clipboard
data class ForwardMessage( val fromChatId: ChatIdentifier, val toChatId: ChatIdentifier, val messageId: MessageIdentifier, val disableNotification: Boolean = false, val protectContent: Boolean = false) : SimpleRequest<PossiblyForwardedMessage> , MessageAction, ProtectContent
Content copied to clipboard
Link copied to clipboard
data class GetUpdates( val offset: UpdateIdentifier? = null, val limit: Int = getUpdatesLimit.last, val timeout: Seconds? = null, val allowed_updates: List<String>? = ALL_UPDATES_LIST) : SimpleRequest<List<Update>>
Content copied to clipboard
Request updates from Telegram Bot API system. It is important, that the result updates WILL NOT include dev.inmo.tgbotapi.types.update.MediaGroupUpdates.MediaGroupUpdate objects due to the fact, that it is internal abstraction and in fact any dev.inmo.tgbotapi.types.message.abstracts.MediaGroupMessage is just a common dev.inmo.tgbotapi.types.message.abstracts.Message
Link copied to clipboard
data class SetPassportDataErrors(val user: UserId, val errors: List<PassportElementError>) : SimpleRequest<Boolean>
Content copied to clipboard
Link copied to clipboard
data class StopPoll( val chatId: ChatIdentifier, val messageId: MessageIdentifier, val replyMarkup: InlineKeyboardMarkup? = null) : MessageAction, SimpleRequest<Poll> , ReplyMarkup
Content copied to clipboard