pub struct UserTypeBot {
pub can_be_edited: bool,
pub can_join_groups: bool,
pub can_read_all_group_messages: bool,
pub is_inline: bool,
pub inline_query_placeholder: String,
pub need_location: bool,
pub can_connect_to_business: bool,
pub can_be_added_to_attachment_menu: bool,
}Expand description
A bot (see https:core.telegram.org/bots)
Fields§
§can_be_edited: boolTrue, if the bot is owned by the current user and can be edited using the methods toggleBotUsernameIsActive, reorderBotActiveUsernames, setBotProfilePhoto, setBotName, setBotInfoDescription, and setBotInfoShortDescription
can_join_groups: boolTrue, if the bot can be invited to basic group and supergroup chats
can_read_all_group_messages: boolTrue, if the bot can read all messages in basic group or supergroup chats and not just those addressed to the bot. In private and channel chats a bot can always read all messages
is_inline: boolTrue, if the bot supports inline queries
inline_query_placeholder: StringPlaceholder for inline queries (displayed on the application input field)
need_location: boolTrue, if the location of the user is expected to be sent with every inline query to this bot
can_connect_to_business: boolTrue, if the bot supports connection to Telegram Business accounts
True, if the bot can be added to attachment or side menu
Trait Implementations§
Source§impl Clone for UserTypeBot
impl Clone for UserTypeBot
Source§fn clone(&self) -> UserTypeBot
fn clone(&self) -> UserTypeBot
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more