pub struct BotInfo {
pub has_preview_medias: bool,
pub user_id: Option<i64>,
pub description: Option<String>,
pub description_photo: Option<Photo>,
pub description_document: Option<Document>,
pub commands: Option<Vec<BotCommand>>,
pub menu_button: Option<BotMenuButton>,
pub privacy_policy_url: Option<String>,
pub app_settings: Option<BotAppSettings>,
pub verifier_settings: Option<BotVerifierSettings>,
}Expand description
Generated from:
botInfo#4d8a0299 flags:# has_preview_medias:flags.6?true user_id:flags.0?long description:flags.1?string description_photo:flags.4?Photo description_document:flags.5?Document commands:flags.2?Vector<BotCommand> menu_button:flags.3?BotMenuButton privacy_policy_url:flags.7?string app_settings:flags.8?BotAppSettings verifier_settings:flags.9?BotVerifierSettings = BotInfoFields§
§has_preview_medias: bool§user_id: Option<i64>§description: Option<String>§description_photo: Option<Photo>§description_document: Option<Document>§commands: Option<Vec<BotCommand>>§privacy_policy_url: Option<String>§app_settings: Option<BotAppSettings>§verifier_settings: Option<BotVerifierSettings>Trait Implementations§
Source§impl Deserializable for BotInfo
impl Deserializable for BotInfo
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl Identifiable for BotInfo
impl Identifiable for BotInfo
Source§const CONSTRUCTOR_ID: u32 = 0x4d8a0299
const CONSTRUCTOR_ID: u32 = 0x4d8a0299
The constructor ID as specified in the TL schema.
Source§impl Serializable for BotInfo
impl Serializable for BotInfo
impl StructuralPartialEq for BotInfo
Auto Trait Implementations§
impl Freeze for BotInfo
impl RefUnwindSafe for BotInfo
impl Send for BotInfo
impl Sync for BotInfo
impl Unpin for BotInfo
impl UnsafeUnpin for BotInfo
impl UnwindSafe for BotInfo
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