Package dev.inmo.tgbotapi.requests

Types

DeleteMessage
Link copied to clipboard
data class DeleteMessage(chatId: ChatIdentifier, messageId: MessageIdentifier) : SimpleRequest<Boolean> , MessageAction
DownloadFile
Link copied to clipboard
class DownloadFile(filePath: String) : Request<ByteArray>
DownloadFileStream
Link copied to clipboard
class DownloadFileStream(filePath: String) : Request<ByteReadChannelAllocator>
ForwardMessage
Link copied to clipboard
data class ForwardMessage(fromChatId: ChatIdentifier, toChatId: ChatIdentifier, messageId: MessageIdentifier, disableNotification: Boolean, protectContent: Boolean) : SimpleRequest<PossiblyForwardedMessage> , MessageAction, ProtectContent
GetUpdates
Link copied to clipboard
data class GetUpdates(offset: UpdateIdentifier?, limit: Int, timeout: Seconds?, allowed_updates: List<String>?) : SimpleRequest<List<Update>>

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

SetPassportDataErrors
Link copied to clipboard
data class SetPassportDataErrors(user: UserId, errors: List<PassportElementError>) : SimpleRequest<Boolean>
StopPoll
Link copied to clipboard
data class StopPoll(chatId: ChatIdentifier, messageId: MessageIdentifier, replyMarkup: InlineKeyboardMarkup?) : MessageAction, SimpleRequest<Poll> , ReplyMarkup