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
update_id: i64
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
message: Option<Box<Message>>
New incoming message of any kind — text, photo, sticker, etc.
edited_message: Option<Box<Message>>
New version of a message that is known to the bot and was edited
channel_post: Option<Box<Message>>
New incoming channel post of any kind — text, photo, sticker, etc.
edited_channel_post: Option<Box<Message>>
New version of a channel post that is known to the bot and was edited
inline_query: Option<Box<InlineQuery>>
New incoming inline query See https://core.telegram.org/bots/api#inline-mode
chosen_inline_result: Option<Box<ChosenInlineResult>>
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
callback_query: Option<Box<CallbackQuery>>
New incoming callback query
shipping_query: Option<Box<ShippingQuery>>
New incoming shipping query. Only for invoices with flexible price
pre_checkout_query: Option<Box<PreCheckoutQuery>>
New incoming pre-checkout query. Contains full information about checkout
Trait Implementations
impl Debug for Update
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more