Update

data class Update(update_id: Long, message: Message?, edited_message: Message?, channel_post: Message?, edited_channel_post: Message?, inline_query: InlineQuery?, chosen_inline_result: ChosenInlineResult?, callback_query: CallbackQuery?, shipping_query: ShippingQuery?, pre_checkout_query: PreCheckoutQuery?, poll: Poll?, poll_answer: PollAnswer?, my_chat_member: ChatMemberUpdated?, chat_member: ChatMemberUpdated?) : TelegramModel

This object represents an incoming update.
At most one of the optional parameters can be present in any given update.

Constructors

Update
Link copied to clipboard
fun Update(update_id: Long, message: Message? = null, edited_message: Message? = null, channel_post: Message? = null, edited_channel_post: Message? = null, inline_query: InlineQuery? = null, chosen_inline_result: ChosenInlineResult? = null, callback_query: CallbackQuery? = null, shipping_query: ShippingQuery? = null, pre_checkout_query: PreCheckoutQuery? = null, poll: Poll? = null, poll_answer: PollAnswer? = null, my_chat_member: ChatMemberUpdated? = null, chat_member: ChatMemberUpdated? = null)
Creates a Update.

Properties

callback_query
Link copied to clipboard
val callback_query: CallbackQuery? = null
Optional.
channel_post
Link copied to clipboard
val channel_post: Message? = null
Optional.
chat_member
Link copied to clipboard
val chat_member: ChatMemberUpdated? = null
Optional.
chosen_inline_result
Link copied to clipboard
val chosen_inline_result: ChosenInlineResult? = null
Optional.
edited_channel_post
Link copied to clipboard
val edited_channel_post: Message? = null
Optional.
edited_message
Link copied to clipboard
val edited_message: Message? = null
Optional.
inline_query
Link copied to clipboard
val inline_query: InlineQuery? = null
Optional.
message
Link copied to clipboard
val message: Message? = null
Optional.
my_chat_member
Link copied to clipboard
val my_chat_member: ChatMemberUpdated? = null
Optional.
poll
Link copied to clipboard
val poll: Poll? = null
Optional.
poll_answer
Link copied to clipboard
val poll_answer: PollAnswer? = null
Optional.
pre_checkout_query
Link copied to clipboard
val pre_checkout_query: PreCheckoutQuery? = null
Optional.
shipping_query
Link copied to clipboard
val shipping_query: ShippingQuery? = null
Optional.
update_id
Link copied to clipboard
val update_id: Long
The update's unique identifier.