GetUpdates

@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) : 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

See also

dev.inmo.tgbotapi.utils.convertWithMediaGroupUpdates

Constructors

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

Functions

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

Properties

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