Package-level declarations

Types

Link copied to clipboard
abstract class SuspendableUpdateDivider<C>
Link copied to clipboard
data class Update(val updateId: Int, val message: Message? = null, val editedMessage: Message? = null, val channelPost: Message? = null, val editedChannelPost: Message? = null, val messageReaction: MessageReactionUpdated? = null, val messageReactionCount: MessageReactionCountUpdated? = null, val inlineQuery: InlineQuery? = null, val chosenInlineResult: ChosenInlineResult? = null, val callbackQuery: CallbackQuery? = null, val shippingQuery: ShippingQuery? = null, val preCheckoutQuery: PreCheckoutQuery? = null, val poll: Poll? = null, val pollAnswer: PollAnswer? = null, val myChatMember: ChatMemberUpdated? = null, val chatMember: ChatMemberUpdated? = null, val chatJoinRequest: ChatJoinRequest? = null, val chatBoost: ChatBoostUpdated? = null, val removedChatBoost: ChatBoostRemoved? = null)
Link copied to clipboard
abstract class UpdateDivider<C>
Link copied to clipboard

Some generated constants and helper methods related to Update

Functions

Link copied to clipboard
inline fun getUpdateFlow(timeout: Int? = null, firstOffset: Int? = null, eachLimit: Int? = null, allowedUpdates: Collection<String>? = null, crossinline onEachResult: (List<Update>) -> List<Update> = { it }, crossinline onError: suspend (Throwable) -> List<Update> = { if (it is HttpRequestTimeoutException) emptyList() else throw it }, crossinline requestor: suspend (GetUpdatesApi) -> List<Update>): Flow<Update>

Create a Flow based on Long Polling with GetUpdatesApi.