pub struct SendVenue { /* private fields */ }Expand description
Builder for the sendVenue method.
Implementations§
Source§impl SendVenue
impl SendVenue
Sourcepub fn message_thread_id(self, id: i64) -> Self
pub fn message_thread_id(self, id: i64) -> Self
Forum topic thread ID.
Sourcepub fn direct_messages_topic_id(self, id: i64) -> Self
pub fn direct_messages_topic_id(self, id: i64) -> Self
Identifier of a direct messages chat topic.
Sourcepub fn foursquare_id(self, id: impl Into<String>) -> Self
pub fn foursquare_id(self, id: impl Into<String>) -> Self
Sets the Foursquare identifier of the venue.
Sourcepub fn foursquare_type(self, t: impl Into<String>) -> Self
pub fn foursquare_type(self, t: impl Into<String>) -> Self
Sets the Foursquare type of the venue (e.g. "arts_entertainment/aquarium").
Sourcepub fn google_place_id(self, id: impl Into<String>) -> Self
pub fn google_place_id(self, id: impl Into<String>) -> Self
Sets the Google Places identifier of the venue.
Sourcepub fn google_place_type(self, t: impl Into<String>) -> Self
pub fn google_place_type(self, t: impl Into<String>) -> Self
Sets the Google Places type of the venue.
Sourcepub fn disable_notification(self, v: bool) -> Self
pub fn disable_notification(self, v: bool) -> Self
Sends the message silently — the recipient receives no notification sound.
Sourcepub fn protect_content(self, v: bool) -> Self
pub fn protect_content(self, v: bool) -> Self
Protects the message from being forwarded or saved.
Sourcepub fn reply_parameters(self, rp: ReplyParameters) -> Self
pub fn reply_parameters(self, rp: ReplyParameters) -> Self
Reply parameters for this message.
Sourcepub fn reply_markup(self, m: impl Into<ReplyMarkup>) -> Self
pub fn reply_markup(self, m: impl Into<ReplyMarkup>) -> Self
Attaches a reply markup (inline keyboard, reply keyboard, etc.).
Trait Implementations§
Source§impl IntoFuture for SendVenue
impl IntoFuture for SendVenue
Source§type IntoFuture = Pin<Box<dyn Future<Output = <SendVenue as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <SendVenue as IntoFuture>::Output> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl Freeze for SendVenue
impl !RefUnwindSafe for SendVenue
impl Send for SendVenue
impl Sync for SendVenue
impl Unpin for SendVenue
impl UnsafeUnpin for SendVenue
impl !UnwindSafe for SendVenue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more