Add td_api::getSuitablePersonalChats.
This commit is contained in:
parent
93663c2542
commit
66522165ca
@ -7522,6 +7522,9 @@ getSuitableDiscussionChats = Chats;
|
|||||||
//@description Returns a list of recently inactive supergroups and channels. Can be used when user reaches limit on the number of joined supergroups and channels and receives CHANNELS_TOO_MUCH error. Also, the limit can be increased with Telegram Premium
|
//@description Returns a list of recently inactive supergroups and channels. Can be used when user reaches limit on the number of joined supergroups and channels and receives CHANNELS_TOO_MUCH error. Also, the limit can be increased with Telegram Premium
|
||||||
getInactiveSupergroupChats = Chats;
|
getInactiveSupergroupChats = Chats;
|
||||||
|
|
||||||
|
//@description Returns a list of channel chats, which can be used as a personal chat
|
||||||
|
getSuitablePersonalChats = Chats;
|
||||||
|
|
||||||
|
|
||||||
//@description Loads more Saved Messages topics. The loaded topics will be sent through updateSavedMessagesTopic. Topics are sorted by their topic.order in descending order. Returns a 404 error if all topics have been loaded
|
//@description Loads more Saved Messages topics. The loaded topics will be sent through updateSavedMessagesTopic. Topics are sorted by their topic.order in descending order. Returns a 404 error if all topics have been loaded
|
||||||
//@limit The maximum number of topics to be loaded. For optimal performance, the number of loaded topics is chosen by TDLib and can be smaller than the specified limit, even if the end of the list is not reached
|
//@limit The maximum number of topics to be loaded. For optimal performance, the number of loaded topics is chosen by TDLib and can be smaller than the specified limit, even if the end of the list is not reached
|
||||||
|
@ -5234,6 +5234,12 @@ void Td::on_request(uint64 id, const td_api::getInactiveSupergroupChats &request
|
|||||||
CREATE_NO_ARGS_REQUEST(GetInactiveSupergroupChatsRequest);
|
CREATE_NO_ARGS_REQUEST(GetInactiveSupergroupChatsRequest);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Td::on_request(uint64 id, const td_api::getSuitablePersonalChats &request) {
|
||||||
|
CHECK_IS_USER();
|
||||||
|
CREATE_REQUEST_PROMISE();
|
||||||
|
contacts_manager_->get_created_public_dialogs(PublicDialogType::ForPersonalDialog, std::move(promise), false);
|
||||||
|
}
|
||||||
|
|
||||||
void Td::on_request(uint64 id, td_api::searchRecentlyFoundChats &request) {
|
void Td::on_request(uint64 id, td_api::searchRecentlyFoundChats &request) {
|
||||||
CHECK_IS_USER();
|
CHECK_IS_USER();
|
||||||
CLEAN_INPUT_STRING(request.query_);
|
CLEAN_INPUT_STRING(request.query_);
|
||||||
|
@ -742,6 +742,8 @@ class Td final : public Actor {
|
|||||||
|
|
||||||
void on_request(uint64 id, const td_api::getInactiveSupergroupChats &request);
|
void on_request(uint64 id, const td_api::getInactiveSupergroupChats &request);
|
||||||
|
|
||||||
|
void on_request(uint64 id, const td_api::getSuitablePersonalChats &request);
|
||||||
|
|
||||||
void on_request(uint64 id, const td_api::openChat &request);
|
void on_request(uint64 id, const td_api::openChat &request);
|
||||||
|
|
||||||
void on_request(uint64 id, const td_api::closeChat &request);
|
void on_request(uint64 id, const td_api::closeChat &request);
|
||||||
|
@ -5446,6 +5446,8 @@ class CliClient final : public Actor {
|
|||||||
send_request(td_api::make_object<td_api::getSuitableDiscussionChats>());
|
send_request(td_api::make_object<td_api::getSuitableDiscussionChats>());
|
||||||
} else if (op == "gisc") {
|
} else if (op == "gisc") {
|
||||||
send_request(td_api::make_object<td_api::getInactiveSupergroupChats>());
|
send_request(td_api::make_object<td_api::getInactiveSupergroupChats>());
|
||||||
|
} else if (op == "gspc") {
|
||||||
|
send_request(td_api::make_object<td_api::getSuitablePersonalChats>());
|
||||||
} else if (op == "cpc") {
|
} else if (op == "cpc") {
|
||||||
UserId user_id;
|
UserId user_id;
|
||||||
bool force;
|
bool force;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user