Struct telegram_typings::Update [] [src]

pub struct Update {
    pub update_id: i64,
    pub message: Option<Box<Message>>,
    pub edited_message: Option<Box<Message>>,
    pub channel_post: Option<Box<Message>>,
    pub edited_channel_post: Option<Box<Message>>,
    pub inline_query: Option<Box<InlineQuery>>,
    pub chosen_inline_result: Option<Box<ChosenInlineResult>>,
    pub callback_query: Option<Box<CallbackQuery>>,
    pub shipping_query: Option<Box<ShippingQuery>>,
    pub pre_checkout_query: Option<Box<PreCheckoutQuery>>,
}

This object represents an incoming update.At most one of the optional parameters can be present in any given update. See https://core.telegram.org/bots/api#available-types

Fields

The update‘s unique identifier. Update identifiers start from a certain positive number and increase sequentially. This ID becomes especially handy if you’re using Webhooks, since it allows you to ignore repeated updates or to restore the correct update sequence, should they get out of order. If there are no new updates for at least a week, then identifier of the next update will be chosen randomly instead of sequentially. See https://core.telegram.org/bots/api#setwebhook

New incoming message of any kind — text, photo, sticker, etc.

New version of a message that is known to the bot and was edited

New incoming channel post of any kind — text, photo, sticker, etc.

New version of a channel post that is known to the bot and was edited

New incoming inline query See https://core.telegram.org/bots/api#inline-mode

The result of an inline query that was chosen by a user and sent to their chat partner. Please see our documentation on the feedback collecting for details on how to enable these updates for your bot. See https://core.telegram.org/bots/api#inline-mode See https://core.telegram.org/bots/api/bots/inline#collecting-feedback

New incoming callback query

New incoming shipping query. Only for invoices with flexible price

New incoming pre-checkout query. Contains full information about checkout

Trait Implementations

impl Debug for Update
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Update
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Update

impl Sync for Update