Skip to main content

Me

Type Alias Me 

Source
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: UserId

Unique identifier of the bot.

§is_bot: True

Always true.

§first_name: String

First 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: bool

Whether the bot can be added to groups.

§can_read_all_group_messages: bool

Whether privacy mode is disabled for the bot.

§supports_guest_queries: bool

Whether the bot supports guest queries from chats it is not a member of.

§supports_inline_queries: bool

Whether 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: bool

Whether the bot requests the user’s location with every inline query.

§can_connect_to_business: bool

Whether the bot can be connected to a user account to manage it.

§has_main_web_app: bool

Whether the bot has a main Web App.

§has_topics_enabled: bool

Whether forum topic mode is enabled in private chats with the bot.

§allows_users_to_create_topics: bool

Whether users can create and delete topics in private chats with the bot.

§has_topic_sidebar: bool

Whether topics are shown in a sidebar in private chats with the bot.

§can_manage_bots: bool

Whether the bot can create and control other bots.

§supports_join_request_queries: bool

Whether the bot can be assigned to process join request queries.