pub struct AttachmentMenuBot {Show 23 fields
pub bot_user_id: i64,
pub supports_self_chat: bool,
pub supports_user_chats: bool,
pub supports_bot_chats: bool,
pub supports_group_chats: bool,
pub supports_channel_chats: bool,
pub request_write_access: bool,
pub is_added: bool,
pub show_in_attachment_menu: bool,
pub show_in_side_menu: bool,
pub show_disclaimer_in_side_menu: bool,
pub name: String,
pub name_color: Option<AttachmentMenuBotColor>,
pub default_icon: Option<File>,
pub ios_static_icon: Option<File>,
pub ios_animated_icon: Option<File>,
pub ios_side_menu_icon: Option<File>,
pub android_icon: Option<File>,
pub android_side_menu_icon: Option<File>,
pub macos_icon: Option<File>,
pub macos_side_menu_icon: Option<File>,
pub icon_color: Option<AttachmentMenuBotColor>,
pub web_app_placeholder: Option<File>,
}
Expand description
Represents a bot, which can be added to attachment or side menu
Fields§
§bot_user_id: i64
User identifier of the bot
supports_self_chat: bool
True, if the bot supports opening from attachment menu in the chat with the bot
supports_user_chats: bool
True, if the bot supports opening from attachment menu in private chats with ordinary users
supports_bot_chats: bool
True, if the bot supports opening from attachment menu in private chats with other bots
supports_group_chats: bool
True, if the bot supports opening from attachment menu in basic group and supergroup chats
supports_channel_chats: bool
True, if the bot supports opening from attachment menu in channel chats
request_write_access: bool
True, if the user must be asked for the permission to send messages to the bot
is_added: bool
True, if the bot was explicitly added by the user. If the bot isn’t added, then on the first bot launch toggleBotIsAddedToAttachmentMenu must be called and the bot must be added or removed
True, if the bot must be shown in the attachment menu
True, if the bot must be shown in the side menu
True, if a disclaimer, why the bot is shown in the side menu, is needed
name: String
Name for the bot in attachment menu
name_color: Option<AttachmentMenuBotColor>
Color to highlight selected name of the bot if appropriate; may be null
default_icon: Option<File>
Default icon for the bot in SVG format; may be null
ios_static_icon: Option<File>
Icon for the bot in SVG format for the official iOS app; may be null
ios_animated_icon: Option<File>
Icon for the bot in TGS format for the official iOS app; may be null
Icon for the bot in PNG format for the official iOS app side menu; may be null
android_icon: Option<File>
Icon for the bot in TGS format for the official Android app; may be null
Icon for the bot in SVG format for the official Android app side menu; may be null
macos_icon: Option<File>
Icon for the bot in TGS format for the official native macOS app; may be null
Icon for the bot in PNG format for the official macOS app side menu; may be null
icon_color: Option<AttachmentMenuBotColor>
Color to highlight selected icon of the bot if appropriate; may be null
web_app_placeholder: Option<File>
Default placeholder for opened Web Apps in SVG format; may be null
Trait Implementations§
Source§impl Clone for AttachmentMenuBot
impl Clone for AttachmentMenuBot
Source§fn clone(&self) -> AttachmentMenuBot
fn clone(&self) -> AttachmentMenuBot
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more