Struct telegram_bot_ars::types::requests::SendDocument
source · pub struct SendDocument<'c> { /* private fields */ }Expand description
Use this method to send general files. On success, the sent Message is returned. Bots can currently send files of any type of up to 50 MB in size, this limit may be changed in the future.
Implementations§
source§impl<'c> SendDocument<'c>
impl<'c> SendDocument<'c>
pub fn new<C, V>(chat: C, document: V) -> SendDocument<'c>where
C: ToChatRef,
V: Into<InputFile>,
pub fn thumb<V>(&mut self, thumb: V) -> &mut SendDocument<'c>where
V: Into<InputFileUpload>,
pub fn caption<T>(&mut self, caption: T) -> &mut SendDocument<'c>where
T: Into<Cow<'c, str>>,
pub fn parse_mode(&mut self, parse_mode: ParseMode) -> &mut SendDocument<'c>
pub fn reply_to<R>(&mut self, to: R) -> &mut SendDocument<'c>where
R: ToMessageId,
pub fn disable_notification(&mut self) -> &mut SendDocument<'c>
pub fn reply_markup<R>(&mut self, reply_markup: R) -> &mut SendDocument<'c>where
R: Into<ReplyMarkup>,
Trait Implementations§
source§impl<'c> Clone for SendDocument<'c>
impl<'c> Clone for SendDocument<'c>
source§fn clone(&self) -> SendDocument<'c>
fn clone(&self) -> SendDocument<'c>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<'c> Debug for SendDocument<'c>
impl<'c> Debug for SendDocument<'c>
source§impl<'c> PartialEq<SendDocument<'c>> for SendDocument<'c>
impl<'c> PartialEq<SendDocument<'c>> for SendDocument<'c>
source§fn eq(&self, other: &SendDocument<'c>) -> bool
fn eq(&self, other: &SendDocument<'c>) -> bool
source§impl<'c> PartialOrd<SendDocument<'c>> for SendDocument<'c>
impl<'c> PartialOrd<SendDocument<'c>> for SendDocument<'c>
source§fn partial_cmp(&self, other: &SendDocument<'c>) -> Option<Ordering>
fn partial_cmp(&self, other: &SendDocument<'c>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more