Improve method names.
This commit is contained in:
parent
da1f23a6f9
commit
fc8bc0a026
@ -1057,7 +1057,7 @@ basicGroupFullInfo photo:chatPhoto description:string creator_user_id:int53 memb
|
|||||||
//@date Point in time (Unix timestamp) when the current user joined, or the point in time when the supergroup or channel was created, in case the user is not a member
|
//@date Point in time (Unix timestamp) when the current user joined, or the point in time when the supergroup or channel was created, in case the user is not a member
|
||||||
//@status Status of the current user in the supergroup or channel; custom title will always be empty
|
//@status Status of the current user in the supergroup or channel; custom title will always be empty
|
||||||
//@member_count Number of members in the supergroup or channel; 0 if unknown. Currently, it is guaranteed to be known only if the supergroup or channel was received through
|
//@member_count Number of members in the supergroup or channel; 0 if unknown. Currently, it is guaranteed to be known only if the supergroup or channel was received through
|
||||||
//-getChatsToSendStories, getCreatedPublicChats, getGroupsInCommon, getInactiveSupergroupChats, getSimilarChats, getSuitableDiscussionChats, getUserPrivacySettingRules, getVideoChatAvailableParticipants,
|
//-getChatSimilarChats, getChatsToSendStories, getCreatedPublicChats, getGroupsInCommon, getInactiveSupergroupChats, getSuitableDiscussionChats, getUserPrivacySettingRules, getVideoChatAvailableParticipants,
|
||||||
//-searchChatsNearby, searchPublicChats, or in chatFolderInviteLinkInfo.missing_chat_ids, or for public chats in which where sent messages and posted stories from storyPublicForwards,
|
//-searchChatsNearby, searchPublicChats, or in chatFolderInviteLinkInfo.missing_chat_ids, or for public chats in which where sent messages and posted stories from storyPublicForwards,
|
||||||
//-or for public chats in which where sent messages from getMessagePublicForwards response
|
//-or for public chats in which where sent messages from getMessagePublicForwards response
|
||||||
//@has_linked_chat True, if the channel has a discussion group, or the supergroup is the designated discussion group for a channel
|
//@has_linked_chat True, if the channel has a discussion group, or the supergroup is the designated discussion group for a channel
|
||||||
@ -6911,12 +6911,12 @@ searchChatsOnServer query:string limit:int32 = Chats;
|
|||||||
searchChatsNearby location:location = ChatsNearby;
|
searchChatsNearby location:location = ChatsNearby;
|
||||||
|
|
||||||
//@description Returns a list of chats similar to the given chat @chat_id Identifier of the target chat; must be an identifier of a channel chat
|
//@description Returns a list of chats similar to the given chat @chat_id Identifier of the target chat; must be an identifier of a channel chat
|
||||||
getSimilarChats chat_id:int53 = Chats;
|
getChatSimilarChats chat_id:int53 = Chats;
|
||||||
|
|
||||||
//@description Returns approximate number of chats similar to the given chat
|
//@description Returns approximate number of chats similar to the given chat
|
||||||
//@chat_id Identifier of the target chat; must be an identifier of a channel chat
|
//@chat_id Identifier of the target chat; must be an identifier of a channel chat
|
||||||
//@return_local Pass true to get the number of chats without sending network requests, or -1 if the number of chats is unknown locally
|
//@return_local Pass true to get the number of chats without sending network requests, or -1 if the number of chats is unknown locally
|
||||||
getSimilarChatCount chat_id:int53 return_local:Bool = Count;
|
getChatSimilarChatCount chat_id:int53 return_local:Bool = Count;
|
||||||
|
|
||||||
//@description Returns a list of frequently used chats @category Category of chats to be returned @limit The maximum number of chats to be returned; up to 30
|
//@description Returns a list of frequently used chats @category Category of chats to be returned @limit The maximum number of chats to be returned; up to 30
|
||||||
getTopChats category:TopChatCategory limit:int32 = Chats;
|
getTopChats category:TopChatCategory limit:int32 = Chats;
|
||||||
|
@ -5098,13 +5098,13 @@ void Td::on_request(uint64 id, const td_api::clearAutosaveSettingsExceptions &re
|
|||||||
autosave_manager_->clear_autosave_settings_exceptions(std::move(promise));
|
autosave_manager_->clear_autosave_settings_exceptions(std::move(promise));
|
||||||
}
|
}
|
||||||
|
|
||||||
void Td::on_request(uint64 id, const td_api::getSimilarChats &request) {
|
void Td::on_request(uint64 id, const td_api::getChatSimilarChats &request) {
|
||||||
CHECK_IS_USER();
|
CHECK_IS_USER();
|
||||||
CREATE_REQUEST_PROMISE();
|
CREATE_REQUEST_PROMISE();
|
||||||
contacts_manager_->get_channel_recommendations(DialogId(request.chat_id_), false, std::move(promise), Auto());
|
contacts_manager_->get_channel_recommendations(DialogId(request.chat_id_), false, std::move(promise), Auto());
|
||||||
}
|
}
|
||||||
|
|
||||||
void Td::on_request(uint64 id, const td_api::getSimilarChatCount &request) {
|
void Td::on_request(uint64 id, const td_api::getChatSimilarChatCount &request) {
|
||||||
CHECK_IS_USER();
|
CHECK_IS_USER();
|
||||||
CREATE_REQUEST_PROMISE();
|
CREATE_REQUEST_PROMISE();
|
||||||
contacts_manager_->get_channel_recommendations(DialogId(request.chat_id_), request.return_local_, Auto(),
|
contacts_manager_->get_channel_recommendations(DialogId(request.chat_id_), request.return_local_, Auto(),
|
||||||
|
@ -637,9 +637,9 @@ class Td final : public Actor {
|
|||||||
|
|
||||||
void on_request(uint64 id, const td_api::clearAutosaveSettingsExceptions &request);
|
void on_request(uint64 id, const td_api::clearAutosaveSettingsExceptions &request);
|
||||||
|
|
||||||
void on_request(uint64 id, const td_api::getSimilarChats &request);
|
void on_request(uint64 id, const td_api::getChatSimilarChats &request);
|
||||||
|
|
||||||
void on_request(uint64 id, const td_api::getSimilarChatCount &request);
|
void on_request(uint64 id, const td_api::getChatSimilarChatCount &request);
|
||||||
|
|
||||||
void on_request(uint64 id, const td_api::getTopChats &request);
|
void on_request(uint64 id, const td_api::getTopChats &request);
|
||||||
|
|
||||||
|
@ -5173,15 +5173,15 @@ class CliClient final : public Actor {
|
|||||||
ChatId chat_id;
|
ChatId chat_id;
|
||||||
get_args(args, chat_id);
|
get_args(args, chat_id);
|
||||||
send_request(td_api::make_object<td_api::deleteChat>(chat_id));
|
send_request(td_api::make_object<td_api::deleteChat>(chat_id));
|
||||||
} else if (op == "gscs") {
|
} else if (op == "gcsc") {
|
||||||
ChatId chat_id;
|
ChatId chat_id;
|
||||||
get_args(args, chat_id);
|
get_args(args, chat_id);
|
||||||
send_request(td_api::make_object<td_api::getSimilarChats>(chat_id));
|
send_request(td_api::make_object<td_api::getChatSimilarChats>(chat_id));
|
||||||
} else if (op == "gscc") {
|
} else if (op == "gcscc") {
|
||||||
ChatId chat_id;
|
ChatId chat_id;
|
||||||
bool return_local;
|
bool return_local;
|
||||||
get_args(args, chat_id, return_local);
|
get_args(args, chat_id, return_local);
|
||||||
send_request(td_api::make_object<td_api::getSimilarChatCount>(chat_id, return_local));
|
send_request(td_api::make_object<td_api::getChatSimilarChatCount>(chat_id, return_local));
|
||||||
} else if (op == "gcpc") {
|
} else if (op == "gcpc") {
|
||||||
send_request(td_api::make_object<td_api::getCreatedPublicChats>());
|
send_request(td_api::make_object<td_api::getCreatedPublicChats>());
|
||||||
} else if (op == "gcpcl") {
|
} else if (op == "gcpcl") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user