Skip to content

Commit 2272f40

Browse files
committed
test docs
1 parent 7cb7b88 commit 2272f40

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

.github/workflows/build-docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,6 @@ jobs:
3232
github_token: ${{ secrets.GITHUB_TOKEN }}
3333
publish_dir: ./docs/build/html
3434
publish_branch: gh-pages
35+
destination_dir: teststories
3536
user_name: 'github-actions[bot]'
3637
user_email: 'github-actions[bot]@users.noreply.github.com'

docs/source/releases/changes-in-this-fork.rst

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,20 @@ Changes in this Fork
4141
| Scheme layer used: 202 |
4242
+------------------------+
4343

44+
- Added the method :meth:`~pyrogram.Client.post_story` allowing bots to post a story on behalf of a managed business account.
45+
- Added the method :meth:`~pyrogram.Client.edit_story` and :meth:`~pyrogram.Client.edit_business_story`, allowing bots to edit stories they had previously posted on behalf of a managed business account.
46+
- Added the methods :meth:`~pyrogram.Client.delete_stories` and :meth:`~pyrogram.Client.delete_business_story`, allowing bots to delete stories they had previously posted on behalf of a managed business account.
47+
- Added the classes :obj:`~pyrogram.types.InputStoryContentPhoto` and :obj:`~pyrogram.types.InputStoryContentVideo` representing the content of a story to post.
48+
- Added the classes :obj:`~pyrogram.types.StoryArea`, :obj:`~pyrogram.types.StoryAreaPosition`, :obj:`~pyrogram.types.LocationAddress`, :obj:`~pyrogram.types.StoryAreaTypeLocation`, :obj:`~pyrogram.types.StoryAreaTypeSuggestedReaction`, :obj:`~pyrogram.types.StoryAreaTypeLink`, :obj:`~pyrogram.types.StoryAreaTypeWeather`, :obj:`~pyrogram.types.StoryAreaTypeUniqueGift`, :obj:`~pyrogram.types.StoryAreaTypeFoundVenue` and :obj:`~pyrogram.types.StoryAreaTypeMessage` describing clickable active areas on stories.
49+
- Added the classes :obj:`~pyrogram.types.StoryPrivacySettings`, :obj:`~pyrogram.types.StoryPrivacySettingsEveryone`, :obj:`~pyrogram.types.StoryPrivacySettingsContacts`, :obj:`~pyrogram.types.StoryPrivacySettingsCloseFriends`, :obj:`~pyrogram.types.StoryPrivacySettingsSelectedUsers` to describe the privacy settings of a story.
50+
- Added the methods :meth:`~pyrogram.Client.can_post_story`, :meth:`~pyrogram.Client.hide_my_story_view`, :meth:`~pyrogram.Client.forward_story`, :meth:`~pyrogram.Client.toggle_story_is_posted_to_chat_page`, :meth:`~pyrogram.Client.get_chat_active_stories`, :meth:`~pyrogram.Client.get_chat_archived_stories`.
51+
- Add support for parsing story links in :meth:`~pyrogram.Client.get_messages`.
4452
- View `new and changed <https://telegramplayground.github.io/TG-APIs/TL/diff/tdlib.html?from=201&to=202>`__ `raw API methods <https://telegramplayground.github.io/TG-APIs/TL/diff/tdesktop.html?from=200&to=202>`__.
4553

4654
+------------------------+
4755
| Scheme layer used: 201 |
4856
+------------------------+
4957

50-
- Added the method :meth:`~pyrogram.Client.post_story` allowing bots to post a story on behalf of a managed business account.
51-
- Added the method :meth:`~pyrogram.Client.edit_story` and :meth:`~pyrogram.Client.edit_business_story`, allowing bots to edit stories they had previously posted on behalf of a managed business account.
52-
- Added the methods :meth:`~pyrogram.Client.delete_stories` and :meth:`~pyrogram.Client.delete_business_story`, allowing bots to delete stories they had previously posted on behalf of a managed business account.
5358
- Renamed the field ``paid_message_star_count`` to ``paid_star_count`` in the :obj:`~pyrogram.types.Message`, containing the number of Telegram Stars that were paid to send the message.
5459
- Added the classes :obj:`~pyrogram.types.PaidMessagePriceChanged` and :obj:`~pyrogram.types.PaidMessagesRefunded` and the fields ``paid_message_price_changed`` and ``paid_messages_refunded`` to the :obj:`~pyrogram.types.Message`, describing the appropriate service message.
5560
- Added the :meth:`~pyrogram.Client.get_business_account_star_balance`, allowing bots to check the current Telegram Star balance of a managed business account.

pyrogram/methods/stories/edit_story.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,7 @@ async def edit_story(
167167

168168
privacy_rules = []
169169
if privacy_settings:
170-
for privacy_rule in (privacy_settings or []):
171-
privacy_rules += (await privacy_rule.write(self))
170+
privacy_rules += (await privacy_rule.write(self))
172171
else:
173172
privacy_rules += (await (types.StoryPrivacySettingsEveryone()).write(self))
174173

0 commit comments

Comments
 (0)