pub struct CallSendPhoto<'a, V> { /* private fields */ }Implementations§
Source§impl<'a, V: Into<ChatHandle> + Serialize> CallSendPhoto<'a, V>
impl<'a, V: Into<ChatHandle> + Serialize> CallSendPhoto<'a, V>
Sourcepub fn business_connection_id(self, business_connection_id: &'a str) -> Self
pub fn business_connection_id(self, business_connection_id: &'a str) -> Self
Unique identifier of the business connection on behalf of which the message will be sent
pub fn get_business_connection_id(&'a self) -> &'a Option<&'a str>
Sourcepub fn chat_id(self, chat_id: V) -> Self
pub fn chat_id(self, chat_id: V) -> Self
Unique identifier for the target chat or username of the target channel (in the format @channelusername)
pub fn get_chat_id(&'a self) -> &'a V
Sourcepub fn message_thread_id(self, message_thread_id: i64) -> Self
pub fn message_thread_id(self, message_thread_id: i64) -> Self
Unique identifier for the target message thread (topic) of the forum; for forum supergroups only
pub fn get_message_thread_id(&'a self) -> &'a Option<i64>
Sourcepub fn direct_messages_topic_id(self, direct_messages_topic_id: i64) -> Self
pub fn direct_messages_topic_id(self, direct_messages_topic_id: i64) -> Self
Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat
pub fn get_direct_messages_topic_id(&'a self) -> &'a Option<i64>
Sourcepub fn photo(self, photo: FileData) -> Self
pub fn photo(self, photo: FileData) -> Self
Photo to send. Pass a file_id as String to send a photo that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a photo from the Internet, or upload a new photo using multipart/form-data. The photo must be at most 10 MB in size. The photo’s width and height must not exceed 10000 in total. Width and height ratio must be at most 20. More information on Sending Files: https://core.telegram.org/bots/api#sending-files
pub fn get_photo(&'a self) -> &'a FileData
Sourcepub fn caption(self, caption: &'a str) -> Self
pub fn caption(self, caption: &'a str) -> Self
Photo caption (may also be used when resending photos by file_id), 0-1024 characters after entities parsing
pub fn get_caption(&'a self) -> &'a Option<&'a str>
Sourcepub fn parse_mode(self, parse_mode: &'a str) -> Self
pub fn parse_mode(self, parse_mode: &'a str) -> Self
Mode for parsing entities in the photo caption. See formatting options for more details.
pub fn get_parse_mode(&'a self) -> &'a Option<&'a str>
Sourcepub fn caption_entities(self, caption_entities: &'a Vec<MessageEntity>) -> Self
pub fn caption_entities(self, caption_entities: &'a Vec<MessageEntity>) -> Self
A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode
pub fn get_caption_entities(&'a self) -> &'a Option<&'a Vec<MessageEntity>>
Sourcepub fn show_caption_above_media(self, show_caption_above_media: bool) -> Self
pub fn show_caption_above_media(self, show_caption_above_media: bool) -> Self
Pass True, if the caption must be shown above the message media
pub fn get_show_caption_above_media(&'a self) -> &'a Option<bool>
Sourcepub fn has_spoiler(self, has_spoiler: bool) -> Self
pub fn has_spoiler(self, has_spoiler: bool) -> Self
Pass True if the photo needs to be covered with a spoiler animation
pub fn get_has_spoiler(&'a self) -> &'a Option<bool>
Sourcepub fn disable_notification(self, disable_notification: bool) -> Self
pub fn disable_notification(self, disable_notification: bool) -> Self
Sends the message silently. Users will receive a notification with no sound.
pub fn get_disable_notification(&'a self) -> &'a Option<bool>
Sourcepub fn protect_content(self, protect_content: bool) -> Self
pub fn protect_content(self, protect_content: bool) -> Self
Protects the contents of the sent message from forwarding and saving
pub fn get_protect_content(&'a self) -> &'a Option<bool>
Sourcepub fn allow_paid_broadcast(self, allow_paid_broadcast: bool) -> Self
pub fn allow_paid_broadcast(self, allow_paid_broadcast: bool) -> Self
Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot’s balance
pub fn get_allow_paid_broadcast(&'a self) -> &'a Option<bool>
Sourcepub fn message_effect_id(self, message_effect_id: &'a str) -> Self
pub fn message_effect_id(self, message_effect_id: &'a str) -> Self
Unique identifier of the message effect to be added to the message; for private chats only
pub fn get_message_effect_id(&'a self) -> &'a Option<&'a str>
Sourcepub fn suggested_post_parameters<T>(self, suggested_post_parameters: T) -> Selfwhere
T: Into<&'a SuggestedPostParameters>,
pub fn suggested_post_parameters<T>(self, suggested_post_parameters: T) -> Selfwhere
T: Into<&'a SuggestedPostParameters>,
A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined.
pub fn get_suggested_post_parameters( &'a self, ) -> &'a Option<&'a SuggestedPostParameters>
Sourcepub fn reply_parameters<T>(self, reply_parameters: T) -> Selfwhere
T: Into<&'a ReplyParameters>,
pub fn reply_parameters<T>(self, reply_parameters: T) -> Selfwhere
T: Into<&'a ReplyParameters>,
Description of the message to reply to
pub fn get_reply_parameters(&'a self) -> &'a Option<&'a ReplyParameters>
Sourcepub fn reply_markup<T>(self, reply_markup: T) -> Selfwhere
T: Into<&'a EReplyMarkup>,
pub fn reply_markup<T>(self, reply_markup: T) -> Selfwhere
T: Into<&'a EReplyMarkup>,
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user