pub type Me = BotFullInfo;Expand description
Former name for the response to GetMe.
Aliased Type§
pub struct Me {Show 18 fields
pub id: UserId,
pub is_bot: True,
pub first_name: String,
pub username: Option<String>,
pub active_usernames: Option<Vec<String>>,
pub can_join_groups: bool,
pub can_read_all_group_messages: bool,
pub supports_guest_queries: bool,
pub supports_inline_queries: bool,
pub inline_query_placeholder: Option<String>,
pub needs_inline_query_location: bool,
pub can_connect_to_business: bool,
pub has_main_web_app: bool,
pub has_topics_enabled: bool,
pub allows_users_to_create_topics: bool,
pub has_topic_sidebar: bool,
pub can_manage_bots: bool,
pub supports_join_request_queries: bool,
}Fields§
§id: UserIdUnique identifier of the bot.
is_bot: TrueAlways true.
first_name: StringFirst name of the bot.
username: Option<String>Primary username of the bot, if assigned.
active_usernames: Option<Vec<String>>All active usernames of the bot, if nonempty.
can_join_groups: boolWhether the bot can be added to groups.
can_read_all_group_messages: boolWhether privacy mode is disabled for the bot.
supports_guest_queries: boolWhether the bot supports guest queries from chats it is not a member of.
supports_inline_queries: boolWhether the bot supports inline queries.
inline_query_placeholder: Option<String>Placeholder shown in the input field after the bot’s username in inline mode, if not using the default.
needs_inline_query_location: boolWhether the bot requests the user’s location with every inline query.
can_connect_to_business: boolWhether the bot can be connected to a user account to manage it.
has_main_web_app: boolWhether the bot has a main Web App.
has_topics_enabled: boolWhether forum topic mode is enabled in private chats with the bot.
allows_users_to_create_topics: boolWhether users can create and delete topics in private chats with the bot.
Whether topics are shown in a sidebar in private chats with the bot.
can_manage_bots: boolWhether the bot can create and control other bots.
supports_join_request_queries: boolWhether the bot can be assigned to process join request queries.