Compare commits

...

4 commits

Author SHA1 Message Date
RS
52720d893c
Merge 9ec882ff06 into 6bbff46417 2025-12-19 04:46:14 +03:00
wulan17
6bbff46417
pyrofork: fix export_folder_link doc
Some checks failed
Pyrofork / build (macos-latest, 3.10) (push) Has been cancelled
Pyrofork / build (macos-latest, 3.11) (push) Has been cancelled
Pyrofork / build (macos-latest, 3.12) (push) Has been cancelled
Pyrofork / build (macos-latest, 3.13) (push) Has been cancelled
Pyrofork / build (macos-latest, 3.14) (push) Has been cancelled
Pyrofork / build (ubuntu-latest, 3.10) (push) Has been cancelled
Pyrofork / build (ubuntu-latest, 3.11) (push) Has been cancelled
Pyrofork / build (ubuntu-latest, 3.12) (push) Has been cancelled
Pyrofork / build (ubuntu-latest, 3.13) (push) Has been cancelled
Pyrofork / build (ubuntu-latest, 3.14) (push) Has been cancelled
Signed-off-by: wulan17 <wulan17@komodos.id>
2025-12-11 01:51:12 +07:00
wulan17
2c32c152cb
pyrofork: Bump version to 2.3.69
Signed-off-by: wulan17 <wulan17@komodos.id>
2025-12-11 01:34:40 +07:00
RS
9ec882ff06
Update utils.py
fix AttributeError for MessageReplyStoryHeader missing user_id
2025-09-14 02:11:27 +03:00
3 changed files with 7 additions and 4 deletions

View file

@ -18,7 +18,7 @@
# along with Pyrofork. If not, see <http://www.gnu.org/licenses/>. # along with Pyrofork. If not, see <http://www.gnu.org/licenses/>.
__fork_name__ = "PyroFork" __fork_name__ = "PyroFork"
__version__ = "2.3.68" __version__ = "2.3.69"
__license__ = "GNU Lesser General Public License v3.0 (LGPL-3.0)" __license__ = "GNU Lesser General Public License v3.0 (LGPL-3.0)"
__copyright__ = "Copyright (C) 2022-present Mayuri-Chan <https://github.com/Mayuri-Chan>" __copyright__ = "Copyright (C) 2022-present Mayuri-Chan <https://github.com/Mayuri-Chan>"

View file

@ -25,7 +25,7 @@ class ExportFolderLink:
async def export_folder_link( async def export_folder_link(
self: "pyrogram.Client", self: "pyrogram.Client",
folder_id: int folder_id: int
) -> str: ) -> "pyrogram.types.ExportedFolderLink":
"""Export link to a user's folder. """Export link to a user's folder.
.. include:: /_includes/usable-by/users.rst .. include:: /_includes/usable-by/users.rst
@ -35,7 +35,7 @@ class ExportFolderLink:
Unique identifier (int) of the target folder. Unique identifier (int) of the target folder.
Returns: Returns:
``str``: On success, a link to the folder as string is returned. :obj:`~pyrogram.types.ExportedFolderLink` objects.
Example: Example:
.. code-block:: python .. code-block:: python

View file

@ -134,7 +134,10 @@ async def parse_messages(
} }
message_reply_to_story = { message_reply_to_story = {
i.id: {'user_id': i.reply_to.user_id, 'story_id': i.reply_to.story_id} i.id: {
'user_id': getattr(i.reply_to, 'user_id', None),
'story_id': getattr(i.reply_to, 'story_id', None)
}
for i in messages.messages for i in messages.messages
if not isinstance(i, raw.types.MessageEmpty) and i.reply_to and isinstance(i.reply_to, raw.types.MessageReplyStoryHeader) if not isinstance(i, raw.types.MessageEmpty) and i.reply_to and isinstance(i.reply_to, raw.types.MessageReplyStoryHeader)
} }