Struct teloxide_core::payloads::SendVenue [−][src]
Use this method to send information about a venue. On success, the sent Message
is returned.
Fields
chat_id: ChatId
Unique identifier for the target chat or username of the target channel (in the format @channelusername
)
latitude: f64
Latitude of new location
longitude: f64
Longitude of new location
title: String
Name of the venue
address: String
Address of the venue
foursquare_id: Option<String>
Foursquare identifier of the venue
foursquare_type: Option<String>
Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)
google_place_id: Option<String>
Google Places identifier of the venue
google_place_type: Option<String>
Google Places type of the venue. (See supported types.)
disable_notification: Option<bool>
Sends the message silently. Users will receive a notification with no sound.
reply_to_message_id: Option<i32>
If the message is a reply, ID of the original message
allow_sending_without_reply: Option<bool>
Pass True, if the message should be sent even if the specified replied-to message is not found
reply_markup: Option<ReplyMarkup>
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.
Implementations
impl SendVenue
[src]
pub fn new(
chat_id: impl Into<ChatId>,
latitude: f64,
longitude: f64,
title: impl Into<String>,
address: impl Into<String>
) -> Self
[src]
chat_id: impl Into<ChatId>,
latitude: f64,
longitude: f64,
title: impl Into<String>,
address: impl Into<String>
) -> Self
Trait Implementations
impl Clone for SendVenue
[src]
impl Debug for SendVenue
[src]
impl PartialEq<SendVenue> for SendVenue
[src]
impl Payload for SendVenue
[src]
impl Serialize for SendVenue
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for SendVenue
[src]
Auto Trait Implementations
impl RefUnwindSafe for SendVenue
impl Send for SendVenue
impl Sync for SendVenue
impl Unpin for SendVenue
impl UnwindSafe for SendVenue
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,