Struct tg_bot_models::Update [] [src]

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

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

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.

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

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

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

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

Optional. New incoming inline query

Optional. 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.

Optional. New incoming callback query

Optional. New incoming shipping query. Only for invoices with flexible price

Optional. 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.

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

impl PartialEq for Update
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl PartialOrd for Update
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more