#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>
|
| int53 | bot_user_id_ |
| | Identifier of the target bot.
|
| |
| string | language_code_ |
| | A two-letter ISO 639-1 language code. If empty, the name will be shown to all users for whose languages there is no dedicated name.
|
| |
| string | name_ |
| | New bot's name on the specified language; 0-64 characters; must be non-empty if language code is empty.
|
| |
|
| static const std::int32_t | ID = -761922959 |
| | Identifier uniquely determining a type of the object.
|
| |
Sets the name of a bot. Can be called only if userTypeBot.can_be_edited == true.
Returns object_ptr<Ok>.
Definition at line 127783 of file td_api.h.
◆ ReturnType
Typedef for the type returned by the function.
Definition at line 127822 of file td_api.h.
◆ setBotName() [1/2]
| td::td_api::setBotName::setBotName |
( |
| ) |
|
Default constructor for a function, which sets the name of a bot. Can be called only if userTypeBot.can_be_edited == true.
Returns object_ptr<Ok>.
◆ setBotName() [2/2]
| td::td_api::setBotName::setBotName |
( |
int53 |
bot_user_id_, |
|
|
string const & |
language_code_, |
|
|
string const & |
name_ |
|
) |
| |
Creates a function, which sets the name of a bot. Can be called only if userTypeBot.can_be_edited == true.
Returns object_ptr<Ok>.
- Parameters
-
| [in] | bot_user_id_ | Identifier of the target bot. |
| [in] | language_code_ | A two-letter ISO 639-1 language code. If empty, the name will be shown to all users for whose languages there is no dedicated name. |
| [in] | name_ | New bot's name on the specified language; 0-64 characters; must be non-empty if language code is empty. |
◆ store()
| void td::td_api::setBotName::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.
◆ bot_user_id_
| int53 td::td_api::setBotName::bot_user_id_ |
Identifier of the target bot.
Definition at line 127794 of file td_api.h.
◆ ID
| const std::int32_t td::td_api::setBotName::ID = -761922959 |
|
static |
Identifier uniquely determining a type of the object.
Definition at line 127819 of file td_api.h.
◆ language_code_
| string td::td_api::setBotName::language_code_ |
A two-letter ISO 639-1 language code. If empty, the name will be shown to all users for whose languages there is no dedicated name.
Definition at line 127796 of file td_api.h.
◆ name_
| string td::td_api::setBotName::name_ |
New bot's name on the specified language; 0-64 characters; must be non-empty if language code is empty.
Definition at line 127798 of file td_api.h.
The documentation for this class was generated from the following file:
- /home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h