mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
Compare commits
4 commits
8422ca878d
...
52720d893c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
52720d893c | ||
|
|
6bbff46417 | ||
|
|
2c32c152cb | ||
|
|
9ec882ff06 |
3 changed files with 7 additions and 4 deletions
|
|
@ -18,7 +18,7 @@
|
|||
# along with Pyrofork. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
__fork_name__ = "PyroFork"
|
||||
__version__ = "2.3.68"
|
||||
__version__ = "2.3.69"
|
||||
__license__ = "GNU Lesser General Public License v3.0 (LGPL-3.0)"
|
||||
__copyright__ = "Copyright (C) 2022-present Mayuri-Chan <https://github.com/Mayuri-Chan>"
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ class ExportFolderLink:
|
|||
async def export_folder_link(
|
||||
self: "pyrogram.Client",
|
||||
folder_id: int
|
||||
) -> str:
|
||||
) -> "pyrogram.types.ExportedFolderLink":
|
||||
"""Export link to a user's folder.
|
||||
|
||||
.. include:: /_includes/usable-by/users.rst
|
||||
|
|
@ -35,7 +35,7 @@ class ExportFolderLink:
|
|||
Unique identifier (int) of the target folder.
|
||||
|
||||
Returns:
|
||||
``str``: On success, a link to the folder as string is returned.
|
||||
:obj:`~pyrogram.types.ExportedFolderLink` objects.
|
||||
|
||||
Example:
|
||||
.. code-block:: python
|
||||
|
|
|
|||
|
|
@ -134,7 +134,10 @@ async def parse_messages(
|
|||
}
|
||||
|
||||
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
|
||||
if not isinstance(i, raw.types.MessageEmpty) and i.reply_to and isinstance(i.reply_to, raw.types.MessageReplyStoryHeader)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue