GetUpdates

@Serializable
data class GetUpdates(val offset: UpdateId? = 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

See also

dev.inmo.tgbotapi.extensions.utils.updates.retrieving.updateHandlerWithMediaGroupsAdaptation
dev.inmo.tgbotapi.utils.convertWithMediaGroupUpdates

Constructors

Link copied to clipboard
constructor(offset: UpdateId? = null, limit: Int = getUpdatesLimit.last, timeout: Seconds? = null, allowed_updates: List<String>? = ALL_UPDATES_LIST)

Properties

Link copied to clipboard
open override val allowed_updates: List<String>?
Link copied to clipboard
open override val limit: Int
Link copied to clipboard
open override val offset: UpdateId? = null
Link copied to clipboard
open override val requestSerializer: SerializationStrategy<*>
Link copied to clipboard
open override val resultDeserializer: DeserializationStrategy<List<Update>>
Link copied to clipboard
open override val timeout: Seconds? = null

Functions

Link copied to clipboard
open override fun method(): String