Fix method name.
This commit is contained in:
parent
1b891ddc7b
commit
44d2b0af1e
@ -7756,7 +7756,7 @@ setBotProfilePhoto bot_user_id:int53 photo:InputChatPhoto = Ok;
|
|||||||
toggleBotUsernameIsActive bot_user_id:int53 username:string is_active:Bool = Ok;
|
toggleBotUsernameIsActive bot_user_id:int53 username:string is_active:Bool = Ok;
|
||||||
|
|
||||||
//@description Changes order of active usernames of a bot. Can be called only if userTypeBot.can_be_edited == true @bot_user_id Identifier of the target bot @usernames The new order of active usernames. All currently active usernames must be specified
|
//@description Changes order of active usernames of a bot. Can be called only if userTypeBot.can_be_edited == true @bot_user_id Identifier of the target bot @usernames The new order of active usernames. All currently active usernames must be specified
|
||||||
reorderActiveBotUsernames bot_user_id:int53 usernames:vector<string> = Ok;
|
reorderBotActiveUsernames bot_user_id:int53 usernames:vector<string> = Ok;
|
||||||
|
|
||||||
//@description Sets the text shown in the chat with a bot if the chat is empty. Can be called only if userTypeBot.can_be_edited == true
|
//@description Sets the text shown in the chat with a bot if the chat is empty. Can be called only if userTypeBot.can_be_edited == true
|
||||||
//@bot_user_id Identifier of the target bot
|
//@bot_user_id Identifier of the target bot
|
||||||
|
@ -7102,7 +7102,7 @@ void Td::on_request(uint64 id, td_api::toggleBotUsernameIsActive &request) {
|
|||||||
request.is_active_, std::move(promise));
|
request.is_active_, std::move(promise));
|
||||||
}
|
}
|
||||||
|
|
||||||
void Td::on_request(uint64 id, td_api::reorderActiveBotUsernames &request) {
|
void Td::on_request(uint64 id, td_api::reorderBotActiveUsernames &request) {
|
||||||
CHECK_IS_USER();
|
CHECK_IS_USER();
|
||||||
for (auto &username : request.usernames_) {
|
for (auto &username : request.usernames_) {
|
||||||
CLEAN_INPUT_STRING(username);
|
CLEAN_INPUT_STRING(username);
|
||||||
|
@ -1170,7 +1170,7 @@ class Td final : public Actor {
|
|||||||
|
|
||||||
void on_request(uint64 id, td_api::toggleBotUsernameIsActive &request);
|
void on_request(uint64 id, td_api::toggleBotUsernameIsActive &request);
|
||||||
|
|
||||||
void on_request(uint64 id, td_api::reorderActiveBotUsernames &request);
|
void on_request(uint64 id, td_api::reorderBotActiveUsernames &request);
|
||||||
|
|
||||||
void on_request(uint64 id, td_api::setBotInfoDescription &request);
|
void on_request(uint64 id, td_api::setBotInfoDescription &request);
|
||||||
|
|
||||||
|
@ -5187,11 +5187,11 @@ class CliClient final : public Actor {
|
|||||||
bool is_active;
|
bool is_active;
|
||||||
get_args(args, bot_user_id, username, is_active);
|
get_args(args, bot_user_id, username, is_active);
|
||||||
send_request(td_api::make_object<td_api::toggleBotUsernameIsActive>(bot_user_id, username, is_active));
|
send_request(td_api::make_object<td_api::toggleBotUsernameIsActive>(bot_user_id, username, is_active));
|
||||||
} else if (op == "rabun") {
|
} else if (op == "rbaun") {
|
||||||
UserId bot_user_id;
|
UserId bot_user_id;
|
||||||
string usernames;
|
string usernames;
|
||||||
get_args(args, bot_user_id, usernames);
|
get_args(args, bot_user_id, usernames);
|
||||||
send_request(td_api::make_object<td_api::reorderActiveBotUsernames>(bot_user_id, autosplit_str(usernames)));
|
send_request(td_api::make_object<td_api::reorderBotActiveUsernames>(bot_user_id, autosplit_str(usernames)));
|
||||||
} else if (op == "sbid") {
|
} else if (op == "sbid") {
|
||||||
UserId bot_user_id;
|
UserId bot_user_id;
|
||||||
string language_code;
|
string language_code;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user