Struct telbot_types::message::EditInlineMessageLiveLocation[][src]

pub struct EditInlineMessageLiveLocation {
    pub inline_message_id: String,
    pub latitude: f32,
    pub longitude: f32,
    pub horizontal_accuracy: Option<f32>,
    pub heading: Option<u32>,
    pub proximity_alert_radius: Option<u32>,
    pub reply_markup: Option<InlineKeyboardMarkup>,
}
Expand description

Use this method to edit live location messages. A location can be edited until its live_period expires or editing is explicitly disabled by a call to stopMessageLiveLocation. On success, True is returned.

Fields

inline_message_id: String

Identifier of the inline message

latitude: f32

Latitude of new location

longitude: f32

Longitude of new location

horizontal_accuracy: Option<f32>

The radius of uncertainty for the location, measured in meters; 0-1500

heading: Option<u32>

For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.

proximity_alert_radius: Option<u32>

For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.

reply_markup: Option<InlineKeyboardMarkup>

A JSON-serialized object for a new inline keyboard.

Implementations

Create a new editMessageLiveLocation request

Set horizontal accuracy

Set heading

Set proximity alert radius

Set reply markup

Trait Implementations

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.