Skip to content

Commit

Permalink
Merge branch 'Mayuri-Chan:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
eyMarv authored Jan 16, 2024
2 parents 80f35dd + a7859ba commit a82c14a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyrogram/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# along with Pyrofork. If not, see <http://www.gnu.org/licenses/>.

__fork_name__ = "PyroFork"
__version__ = "2.3.16.post4"
__version__ = "2.3.16.post5"
__license__ = "GNU Lesser General Public License v3.0 (LGPL-3.0)"
__copyright__ = "Copyright (C) 2022-present Mayuri-Chan <https://github.com/Mayuri-Chan>"

Expand Down
2 changes: 1 addition & 1 deletion pyrogram/methods/chats/set_chat_protected_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async def set_chat_protected_content(
) -> bool:
"""Set the chat protected content setting.
.. include:: /_includes/usable-by/users-bots.rst
.. include:: /_includes/usable-by/users.rst
Parameters:
chat_id (``int`` | ``str``):
Expand Down
2 changes: 1 addition & 1 deletion pyrogram/methods/chats/set_slow_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async def set_slow_mode(
) -> bool:
"""Set the slow mode interval for a chat.
.. include:: /_includes/usable-by/users-bots.rst
.. include:: /_includes/usable-by/users.rst
Parameters:
chat_id (``int`` | ``str``):
Expand Down
4 changes: 2 additions & 2 deletions pyrogram/parser/markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ def blockquote_parser(self, text):
line = re.sub(r'^> ', OPENING_TAG.format("blockquote"), line)
line = re.sub(r'^>', OPENING_TAG.format("blockquote"), line)
in_blockquote = True
result.append(line)
result.append(line.strip())
else:
result.append(line[-1])
result.append(line[1:].strip())
else:
if in_blockquote:
line = CLOSING_TAG.format("blockquote") + line
Expand Down
6 changes: 6 additions & 0 deletions pyrogram/types/messages_and_media/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,12 @@ class Message(Object, Update):
link (``str``, *property*):
Generate a link to this message, only for groups and channels.
scheduled (``bool``, *optional*):
Message is a scheduled message and still in schedule.
from_scheduled (``bool``, *optional*):
Message is a scheduled message and has been sent.
"""

# TODO: Add game missing field. Also invoice, successful_payment, connected_website
Expand Down

0 comments on commit a82c14a

Please sign in to comment.