Struct telegram_bot_raw_ars::requests::send_document::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) -> Selfwhere
C: ToChatRef,
V: Into<InputFile>,
pub fn thumb<V>(&mut self, thumb: V) -> &mut Selfwhere
V: Into<InputFileUpload>,
pub fn parse_mode(&mut self, parse_mode: ParseMode) -> &mut Self
pub fn reply_to<R>(&mut self, to: R) -> &mut Selfwhere
R: ToMessageId,
pub fn disable_notification(&mut self) -> &mut Self
pub fn reply_markup<R>(&mut self, reply_markup: R) -> &mut Selfwhere
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
This method tests for
self
and other
values to be equal, and is used
by ==
.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