TDLib
Loading...
Searching...
No Matches
userTypeBot Class Referencefinal

Inherits UserType.

Description

Public Member Functions

void store (TlStorerToString &s, const char *field_name) const final
 userTypeBot ()
 userTypeBot (bool can_be_edited_, bool can_join_groups_, bool can_read_all_group_messages_, bool has_main_web_app_, bool has_topics_, bool allows_users_to_create_topics_, bool can_manage_bots_, bool is_inline_, string const &inline_query_placeholder_, bool supports_guest_queries_, bool is_guard_, bool need_location_, bool can_connect_to_business_, bool can_be_added_to_attachment_menu_, int32 active_user_count_)
Public Member Functions inherited from TlObject
TlObject & operator= (const TlObject &)=delete
TlObject & operator= (TlObject &&)=default
virtual void store (TlStorerCalcLength &s) const
virtual void store (TlStorerUnsafe &s) const
 TlObject ()=default
 TlObject (const TlObject &)=delete
 TlObject (TlObject &&)=default
virtual ~TlObject ()=default

Public Attributes

int32 active_user_count_
 The number of recently active users of the bot.
bool allows_users_to_create_topics_
 True, if users can create and delete topics in the chat with the bot.
bool can_be_added_to_attachment_menu_
 True, if the bot can be added to attachment or side menu.
bool can_be_edited_
 True, if the bot is owned by the current user and can be edited using the methods toggleBotUsernameIsActive, reorderBotActiveUsernames, setBotProfilePhoto, setBotName, setBotInfoDescription, and setBotInfoShortDescription.
bool can_connect_to_business_
 True, if the bot supports connection to user accounts for chat automation.
bool can_join_groups_
 True, if the bot can be invited to basic group and supergroup chats.
bool can_manage_bots_
 True, if the bot can manage other bots.
bool can_read_all_group_messages_
 True, 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.
bool has_main_web_app_
 True, if the bot has the main Web App.
bool has_topics_
 True, if the bot has topics.
string inline_query_placeholder_
 Placeholder for inline queries (displayed on the application input field).
bool is_guard_
 True, if the bot can be set as a guard bot in supergroup chats.
bool is_inline_
 True, if the bot supports inline queries.
bool need_location_
 True, if the location of the user is expected to be sent with every inline query to this bot.
bool supports_guest_queries_
 True, if the bot can be queried by username from any non-secret chat.

Static Public Attributes

static const std::int32_t ID = 565626918
 Identifier uniquely determining a type of the object.

Constructor & Destructor Documentation

◆ userTypeBot() [1/2]

userTypeBot ( )

◆ userTypeBot() [2/2]

userTypeBot ( bool can_be_edited_,
bool can_join_groups_,
bool can_read_all_group_messages_,
bool has_main_web_app_,
bool has_topics_,
bool allows_users_to_create_topics_,
bool can_manage_bots_,
bool is_inline_,
string const & inline_query_placeholder_,
bool supports_guest_queries_,
bool is_guard_,
bool need_location_,
bool can_connect_to_business_,
bool can_be_added_to_attachment_menu_,
int32 active_user_count_ )

A bot (see https://core.telegram.org/bots).

Parameters
[in]can_be_edited_True, if the bot is owned by the current user and can be edited using the methods toggleBotUsernameIsActive, reorderBotActiveUsernames, setBotProfilePhoto, setBotName, setBotInfoDescription, and setBotInfoShortDescription.
[in]can_join_groups_True, if the bot can be invited to basic group and supergroup chats.
[in]can_read_all_group_messages_True, 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.
[in]has_main_web_app_True, if the bot has the main Web App.
[in]has_topics_True, if the bot has topics.
[in]allows_users_to_create_topics_True, if users can create and delete topics in the chat with the bot.
[in]can_manage_bots_True, if the bot can manage other bots.
[in]is_inline_True, if the bot supports inline queries.
[in]inline_query_placeholder_Placeholder for inline queries (displayed on the application input field).
[in]supports_guest_queries_True, if the bot can be queried by username from any non-secret chat.
[in]is_guard_True, if the bot can be set as a guard bot in supergroup chats.
[in]need_location_True, if the location of the user is expected to be sent with every inline query to this bot.
[in]can_connect_to_business_True, if the bot supports connection to user accounts for chat automation.
[in]can_be_added_to_attachment_menu_True, if the bot can be added to attachment or side menu.
[in]active_user_count_The number of recently active users of the bot.

Member Function Documentation

◆ store()

void store ( TlStorerToString & s,
const char * field_name ) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements TlObject.


The documentation for this class was generated from the following file: