Inherits td::td_api::UserType.
|
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_join_groups_ |
| True, if the bot can be invited to basic group and supergroup chats.
|
|
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 | is_inline_ |
| True, if the bot supports inline queries.
|
|
string | inline_query_placeholder_ |
| Placeholder for inline queries (displayed on the application input field).
|
|
bool | need_location_ |
| True, if the location of the user is expected to be sent with every inline query to this bot.
|
|
bool | can_be_added_to_attachment_menu_ |
| True, if the bot can be added to attachment or side menu.
|
|
|
static const std::int32_t | ID = -109451376 |
| Identifier uniquely determining a type of the object.
|
|
◆ userTypeBot() [1/2]
td::td_api::userTypeBot::userTypeBot |
( |
| ) |
|
◆ userTypeBot() [2/2]
td::td_api::userTypeBot::userTypeBot |
( |
bool |
can_be_edited_, |
|
|
bool |
can_join_groups_, |
|
|
bool |
can_read_all_group_messages_, |
|
|
bool |
is_inline_, |
|
|
string const & |
inline_query_placeholder_, |
|
|
bool |
need_location_, |
|
|
bool |
can_be_added_to_attachment_menu_ |
|
) |
| |
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] | is_inline_ | True, if the bot supports inline queries. |
[in] | inline_query_placeholder_ | Placeholder for inline queries (displayed on the application input field). |
[in] | need_location_ | True, if the location of the user is expected to be sent with every inline query to this bot. |
[in] | can_be_added_to_attachment_menu_ | True, if the bot can be added to attachment or side menu. |
◆ get_id()
std::int32_t td::td_api::userTypeBot::get_id |
( |
| ) |
const |
|
inlinefinalvirtual |
Returns identifier uniquely determining a type of the object.
- Returns
- this->ID.
Implements td::TlObject.
◆ store()
void td::td_api::userTypeBot::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] | s | Storer to which object string representation will be appended. |
[in] | field_name | Object field_name if applicable. |
Implements td::TlObject.
The documentation for this class was generated from the following file: