Struct telegram_bot_fork::types::requests::GetFile
source · pub struct GetFile { /* private fields */ }
Expand description
Use this method to get basic info about a file and prepare it for downloading. For the moment, bots can download files of up to 20MB in size.
Implementations§
Trait Implementations§
source§impl PartialOrd<GetFile> for GetFile
impl PartialOrd<GetFile> for GetFile
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 moresource§impl<'s> Request for GetFile
impl<'s> Request for GetFile
type Type = JsonRequestType<GetFile>
type Response = JsonIdResponse<File>
fn serialize(&self) -> Result<HttpRequest, Error>
fn detach(&self) -> DetachedRequest<Self::Response>
source§impl Serialize for GetFile
impl Serialize for GetFile
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more