Struct tbot::types::input_message_content::Venue
source · pub struct Venue { /* private fields */ }
Expand description
Represents an InputVenueMessageContent
.
Implementations§
source§impl Venue
impl Venue
sourcepub fn new(
(latitude, longitude): (f64, f64),
title: impl Into<String>,
address: impl Into<String>
) -> Self
pub fn new(
(latitude, longitude): (f64, f64),
title: impl Into<String>,
address: impl Into<String>
) -> Self
Constructs a Venue
.
sourcepub fn foursquare_id(self, id: impl Into<String>) -> Self
pub fn foursquare_id(self, id: impl Into<String>) -> Self
Configures the Foursquare ID.
sourcepub fn foursquare_type(self, foursquare_type: impl Into<String>) -> Self
pub fn foursquare_type(self, foursquare_type: impl Into<String>) -> Self
Configures the Foursquare type.
sourcepub fn google_place_id(self, id: impl Into<String>) -> Self
pub fn google_place_id(self, id: impl Into<String>) -> Self
Configures the Google Places ID.
sourcepub fn google_place_type(self, google_place_type: impl Into<String>) -> Self
pub fn google_place_type(self, google_place_type: impl Into<String>) -> Self
Configures the Google Places type.