Struct tg_bot_models::EditMessageLiveLocation[][src]

pub struct EditMessageLiveLocation {
    pub chat_id: Option<PolymorphChatId>,
    pub message_id: Option<i64>,
    pub inline_message_id: Option<String>,
    pub latitude: f64,
    pub longitude: f64,
    pub reply_markup: Option<InlineKeyboardMarkup>,
}

Use this method to edit live location messages sent by the bot or via the bot (for inline bots). A location can be edited until its live_period expires or editing is explicitly disabled by a call to stopMessageLiveLocation. On success, if the edited message was sent by the bot, the edited Message is returned, otherwise True is returned.

Fields

Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)

Required if inline_message_id is not specified. Identifier of the sent message

Required if chat_id and message_id are not specified. Identifier of the inline message

Latitude of new location

Longitude of new location

A JSON-serialized object for a new inline keyboard.

Trait Implementations

impl Debug for EditMessageLiveLocation
[src]

Formats the value using the given formatter. Read more

impl Clone for EditMessageLiveLocation
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for EditMessageLiveLocation
[src]

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

This method tests for !=.

impl PartialOrd for EditMessageLiveLocation
[src]

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

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

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

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

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

Auto Trait Implementations