From dd8b1169b12044c0dca1a91b60dceabe1b53ec9b Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 23 Dec 2021 13:00:05 +0300 Subject: [PATCH] Rename the method to endGroupCall. --- td/generate/scheme/td_api.tl | 4 ++-- td/telegram/Td.cpp | 2 +- td/telegram/Td.h | 2 +- td/telegram/cli.cpp | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index 1de3b972e..30cf6cbc2 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -5161,8 +5161,8 @@ loadGroupCallParticipants group_call_id:int32 limit:int32 = Ok; //@description Leaves a group call @group_call_id Group call identifier leaveGroupCall group_call_id:int32 = Ok; -//@description Discards a group call. Requires groupCall.can_be_managed @group_call_id Group call identifier -discardGroupCall group_call_id:int32 = Ok; +//@description Ends a group call. Requires groupCall.can_be_managed @group_call_id Group call identifier +endGroupCall group_call_id:int32 = Ok; //@description Returns a file with a segment of a group call stream in a modified OGG format for audio or MPEG-4 format for video //@group_call_id Group call identifier diff --git a/td/telegram/Td.cpp b/td/telegram/Td.cpp index 96a552656..745bf5e7c 100644 --- a/td/telegram/Td.cpp +++ b/td/telegram/Td.cpp @@ -5856,7 +5856,7 @@ void Td::on_request(uint64 id, const td_api::leaveGroupCall &request) { group_call_manager_->leave_group_call(GroupCallId(request.group_call_id_), std::move(promise)); } -void Td::on_request(uint64 id, const td_api::discardGroupCall &request) { +void Td::on_request(uint64 id, const td_api::endGroupCall &request) { CHECK_IS_USER(); CREATE_OK_REQUEST_PROMISE(); group_call_manager_->discard_group_call(GroupCallId(request.group_call_id_), std::move(promise)); diff --git a/td/telegram/Td.h b/td/telegram/Td.h index 95b2a19f0..a7d87cfb2 100644 --- a/td/telegram/Td.h +++ b/td/telegram/Td.h @@ -793,7 +793,7 @@ class Td final : public Actor { void on_request(uint64 id, const td_api::leaveGroupCall &request); - void on_request(uint64 id, const td_api::discardGroupCall &request); + void on_request(uint64 id, const td_api::endGroupCall &request); void on_request(uint64 id, td_api::getGroupCallStreamSegment &request); diff --git a/td/telegram/cli.cpp b/td/telegram/cli.cpp index d15aa0b08..350654a8a 100644 --- a/td/telegram/cli.cpp +++ b/td/telegram/cli.cpp @@ -2985,8 +2985,8 @@ class CliClient final : public Actor { td_api::make_object(as_group_call_id(group_call_id), as_limit(limit))); } else if (op == "lgc") { send_request(td_api::make_object(as_group_call_id(args))); - } else if (op == "dgc") { - send_request(td_api::make_object(as_group_call_id(args))); + } else if (op == "egc") { + send_request(td_api::make_object(as_group_call_id(args))); } else if (op == "rpcil") { const string &chat_id = args; send_request(td_api::make_object(as_chat_id(chat_id)));