Struct tbot::types::input_file::Document   
source · pub struct Document { /* private fields */ }Expand description
Represents a document to be sent.
Implementations§
source§impl Document
 
impl Document
sourcepub fn with_bytes(filename: impl Into<String>, bytes: impl Into<Vec<u8>>) -> Self
 
pub fn with_bytes(filename: impl Into<String>, bytes: impl Into<Vec<u8>>) -> Self
Constructs a Document from bytes.
sourcepub const fn should_disable_content_type_detection(
    self,
    should_disable: bool
) -> Self
 
pub const fn should_disable_content_type_detection(
    self,
    should_disable: bool
) -> Self
Configures disable_content_type_detection.