From 44d2b0af1e468433a6c9a10006b665c93979a6d4 Mon Sep 17 00:00:00 2001 From: levlam Date: Sat, 29 Apr 2023 22:27:31 +0300 Subject: [PATCH] Fix method name. --- td/generate/scheme/td_api.tl | 2 +- td/telegram/Td.cpp | 2 +- td/telegram/Td.h | 2 +- td/telegram/cli.cpp | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index ea3f5dadd..44838e136 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -7756,7 +7756,7 @@ setBotProfilePhoto bot_user_id:int53 photo:InputChatPhoto = 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 -reorderActiveBotUsernames bot_user_id:int53 usernames:vector = Ok; +reorderBotActiveUsernames bot_user_id:int53 usernames:vector = 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 //@bot_user_id Identifier of the target bot diff --git a/td/telegram/Td.cpp b/td/telegram/Td.cpp index aab1b9023..624ef01f5 100644 --- a/td/telegram/Td.cpp +++ b/td/telegram/Td.cpp @@ -7102,7 +7102,7 @@ void Td::on_request(uint64 id, td_api::toggleBotUsernameIsActive &request) { 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(); for (auto &username : request.usernames_) { CLEAN_INPUT_STRING(username); diff --git a/td/telegram/Td.h b/td/telegram/Td.h index e6ac45bd7..e830d9499 100644 --- a/td/telegram/Td.h +++ b/td/telegram/Td.h @@ -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::reorderActiveBotUsernames &request); + void on_request(uint64 id, td_api::reorderBotActiveUsernames &request); void on_request(uint64 id, td_api::setBotInfoDescription &request); diff --git a/td/telegram/cli.cpp b/td/telegram/cli.cpp index 90a34a8b3..5cbea4e8f 100644 --- a/td/telegram/cli.cpp +++ b/td/telegram/cli.cpp @@ -5187,11 +5187,11 @@ class CliClient final : public Actor { bool is_active; get_args(args, bot_user_id, username, is_active); send_request(td_api::make_object(bot_user_id, username, is_active)); - } else if (op == "rabun") { + } else if (op == "rbaun") { UserId bot_user_id; string usernames; get_args(args, bot_user_id, usernames); - send_request(td_api::make_object(bot_user_id, autosplit_str(usernames))); + send_request(td_api::make_object(bot_user_id, autosplit_str(usernames))); } else if (op == "sbid") { UserId bot_user_id; string language_code;