Skip to content

Commit

Permalink
Fix minor bugs in message parsing and send_story.
Browse files Browse the repository at this point in the history
Signed-off-by: Aliwoto <[email protected]>
  • Loading branch information
Aliwoto committed Nov 3, 2023
1 parent 84e6928 commit 44edb7f
Show file tree
Hide file tree
Showing 3 changed files with 5 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 @@ -16,7 +16,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>

__version__ = "2.0.134"
__version__ = "2.0.135"
__license__ = "GNU Lesser General Public License v3.0 (LGPL-3.0)"
__copyright__ = "Copyright (C) 2017-present Dan <https://github.com/delivrance>"

Expand Down
4 changes: 2 additions & 2 deletions pyrogram/methods/stories/send_story.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ async def send_story(
caption: str = None,
period: int = None,
duration: int = 0,
width: int = 0,
height: int = 0,
width: int = 720,
height: int = 1280,
thumb: Union[str, BinaryIO] = None,
supports_streaming: bool = True,
file_name: str = None,
Expand Down
4 changes: 2 additions & 2 deletions pyrogram/types/messages_and_media/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,7 @@ async def _parse(
hasattr(message.reply_to.reply_to_peer_id, "channel_id") and \
message.reply_to.reply_to_peer_id.channel_id
if is_cross_chat:
key = (f"-100{message.reply_to.reply_to_peer_id.channel_id}",
key = (utils.get_channel_id(message.reply_to.reply_to_peer_id.channel_id),
message.reply_to.reply_to_msg_id)
setattr(parsed_message, "is_cross_chat", True)
else:
Expand All @@ -1040,7 +1040,7 @@ async def _parse(
else:
reply_to_message = await client.get_messages(
chat_id=key[0],
reply_to_message_ids=key[1],
reply_to_message_ids=message.id,
replies=replies - 1
)
if reply_to_message and not reply_to_message.forum_topic_created:
Expand Down

0 comments on commit 44edb7f

Please sign in to comment.