Skip to content

Commit

Permalink
Require less rights for channel story statistics.
Browse files Browse the repository at this point in the history
  • Loading branch information
levlam committed Dec 1, 2023
1 parent 8ab0a15 commit d1ce646
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion td/telegram/StatisticsManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ class GetStoryPublicForwardsQuery final : public Td::ResultHandler {
void send(DcId dc_id, StoryFullId story_full_id, const string &offset, int32 limit) {
dialog_id_ = story_full_id.get_dialog_id();

auto input_peer = td_->messages_manager_->get_input_peer(dialog_id_, AccessRights::Write);
auto input_peer = td_->messages_manager_->get_input_peer(dialog_id_, AccessRights::Read);
if (input_peer == nullptr) {
return on_error(Status::Error(400, "Can't get story statistics"));
}
Expand Down

0 comments on commit d1ce646

Please sign in to comment.