Package-level declarations

Types

Link copied to clipboard
@Serializable
data class DeleteMessage(val chatId: ChatIdentifier, val messageId: MessageId) : SimpleRequest<Boolean> , MessageAction
Link copied to clipboard
@Serializable
data class DeleteMessages(val chatId: ChatIdentifier, val messageIds: List<MessageId>) : SimpleRequest<Boolean> , MessagesAction
Link copied to clipboard
class DownloadFile(val filePath: String) : Request<ByteArray>
Link copied to clipboard
Link copied to clipboard
@Serializable
data class ForwardMessage(val fromChatId: ChatIdentifier, val toChatId: ChatIdentifier, val messageId: MessageId, val threadId: MessageThreadId? = toChatId.threadId, val disableNotification: Boolean = false, val protectContent: Boolean = false) : SimpleRequest<PossiblyForwardedMessage> , MessageAction, ProtectContent, OptionallyMessageThreadRequest
Link copied to clipboard
@Serializable
data class ForwardMessages(val toChatId: ChatIdentifier, val fromChatId: ChatIdentifier, val messageIds: List<MessageId>, val threadId: MessageThreadId? = toChatId.threadId, val disableNotification: Boolean = false, val protectContent: Boolean = false, removeCaption: Boolean = false) : SimpleRequest<List<MessageId>> , MessagesAction, ProtectContent, OptionallyMessageThreadRequest, DisableNotification
Link copied to clipboard
@Serializable
data class GetUpdates(val offset: UpdateIdentifier? = null, val limit: Int = getUpdatesLimit.last, val timeout: Seconds? = null, val allowed_updates: List<String>? = ALL_UPDATES_LIST) : GetUpdatesRequest<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.AccessibleMessage

Link copied to clipboard
@Serializable
data class GetUpdatesRaw(val offset: UpdateIdentifier? = null, val limit: Int = getUpdatesLimit.last, val timeout: Seconds? = null, val allowed_updates: List<String>? = ALL_UPDATES_LIST) : GetUpdatesRequest<JsonArray>

Raw variant of GetUpdates. This type will be useful in case you wish to get some updates and handle them by yourself or with dev.inmo.tgbotapi.utils.convertWithMediaGroupUpdates

Link copied to clipboard
Link copied to clipboard
@Serializable
data class SetPassportDataErrors(val user: UserId, val errors: List<PassportElementError>) : SimpleRequest<Boolean>
Link copied to clipboard
@Serializable
data class StopPoll(val chatId: ChatIdentifier, val messageId: MessageId, val replyMarkup: InlineKeyboardMarkup? = null) : MessageAction, SimpleRequest<Poll> , WithReplyMarkup

Functions

Link copied to clipboard
fun ForwardMessages(toChatId: ChatIdentifier, fromChatId: ChatIdentifier, messageIds: Array<MessageId>, threadId: MessageThreadId? = toChatId.threadId, disableNotification: Boolean = false, protectContent: Boolean = false, removeCaption: Boolean = false): ForwardMessages
fun ForwardMessages(toChatId: ChatIdentifier, fromChatId: ChatIdentifier, messageId: MessageId, vararg messageIds: MessageId, threadId: MessageThreadId? = toChatId.threadId, disableNotification: Boolean = false, protectContent: Boolean = false, removeCaption: Boolean = false): ForwardMessages