Improve method name.

This commit is contained in:
levlam 2023-06-12 16:10:56 +03:00
parent c62c84665a
commit 3938aea03b
4 changed files with 6 additions and 6 deletions

View File

@ -7225,8 +7225,8 @@ deleteStory story_id:int32 = Ok;
//@description Toggles whether stories of the user are available on the main chat list @user_id Identifier of the user @are_archived Pass true to make the story unavailable on the main chat list; pass false to make them available //@description Toggles whether stories of the user are available on the main chat list @user_id Identifier of the user @are_archived Pass true to make the story unavailable on the main chat list; pass false to make them available
toggleUserStoriesAreArchived user_id:int53 are_archived:Bool = Ok; toggleUserStoriesAreArchived user_id:int53 are_archived:Bool = Ok;
//@description Returns the list of expiring stories of a given user. The stories are returned in a reverse chronological order (i.e., in order of decreasing story_id) @user_id User identifier //@description Returns the list of active stories of a given user. The stories are returned in a reverse chronological order (i.e., in order of decreasing story_id) @user_id User identifier
getUserExpiringStories user_id:int53 = Stories; getUserActiveStories user_id:int53 = Stories;
//@description Returns the list of pinned stories of a given user. The stories are returned in a reverse chronological order (i.e., in order of decreasing story_id). //@description Returns the list of pinned stories of a given user. The stories are returned in a reverse chronological order (i.e., in order of decreasing story_id).
//-For optimal performance, the number of returned stories is chosen by TDLib //-For optimal performance, the number of returned stories is chosen by TDLib

View File

@ -6424,7 +6424,7 @@ void Td::on_request(uint64 id, const td_api::readChatList &request) {
messages_manager_->read_all_dialogs_from_list(DialogListId(request.chat_list_), std::move(promise)); messages_manager_->read_all_dialogs_from_list(DialogListId(request.chat_list_), std::move(promise));
} }
void Td::on_request(uint64 id, const td_api::getUserExpiringStories &request) { void Td::on_request(uint64 id, const td_api::getUserActiveStories &request) {
CHECK_IS_USER(); CHECK_IS_USER();
CREATE_REQUEST_PROMISE(); CREATE_REQUEST_PROMISE();
story_manager_->get_dialog_expiring_stories(DialogId(UserId(request.user_id_)), std::move(promise)); story_manager_->get_dialog_expiring_stories(DialogId(UserId(request.user_id_)), std::move(promise));

View File

@ -1000,7 +1000,7 @@ class Td final : public Actor {
void on_request(uint64 id, const td_api::readChatList &request); void on_request(uint64 id, const td_api::readChatList &request);
void on_request(uint64 id, const td_api::getUserExpiringStories &request); void on_request(uint64 id, const td_api::getUserActiveStories &request);
void on_request(uint64 id, const td_api::getUserPinnedStories &request); void on_request(uint64 id, const td_api::getUserPinnedStories &request);

View File

@ -4054,10 +4054,10 @@ class CliClient final : public Actor {
string limit; string limit;
get_args(args, from_story_id, limit); get_args(args, from_story_id, limit);
send_request(td_api::make_object<td_api::getArchivedStories>(from_story_id, as_limit(limit))); send_request(td_api::make_object<td_api::getArchivedStories>(from_story_id, as_limit(limit)));
} else if (op == "gues") { } else if (op == "guas") {
UserId user_id; UserId user_id;
get_args(args, user_id); get_args(args, user_id);
send_request(td_api::make_object<td_api::getUserExpiringStories>(user_id)); send_request(td_api::make_object<td_api::getUserActiveStories>(user_id));
} else if (op == "gamb") { } else if (op == "gamb") {
UserId user_id; UserId user_id;
get_args(args, user_id); get_args(args, user_id);