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>
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>
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 duplicate 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 for SendDocument<'c>
impl<'c> PartialEq for SendDocument<'c>
Source§impl<'c> PartialOrd for SendDocument<'c>
impl<'c> PartialOrd for SendDocument<'c>
Source§impl<'c> Request for SendDocument<'c>
impl<'c> Request for SendDocument<'c>
type Type = MultipartRequestType<SendDocument<'c>>
type Response = JsonIdResponse<Message>
fn serialize(&self) -> Result<HttpRequest, Error>
fn detach(&self) -> DetachedRequest<Self::Response>
Source§impl<'c> ToMultipart for SendDocument<'c>
impl<'c> ToMultipart for SendDocument<'c>
fn to_multipart(&self) -> Result<Vec<(&'static str, MultipartValue)>, Error>
impl<'c> StructuralPartialEq for SendDocument<'c>
Auto Trait Implementations§
impl<'c> !Freeze for SendDocument<'c>
impl<'c> RefUnwindSafe for SendDocument<'c>
impl<'c> Send for SendDocument<'c>
impl<'c> Sync for SendDocument<'c>
impl<'c> Unpin for SendDocument<'c>
impl<'c> UnwindSafe for SendDocument<'c>
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