diff --git a/pyrogram/__init__.py b/pyrogram/__init__.py index 4afa523a6..26fbfb431 100644 --- a/pyrogram/__init__.py +++ b/pyrogram/__init__.py @@ -16,7 +16,7 @@ # You should have received a copy of the GNU Lesser General Public License # along with Pyrogram. If not, see -__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 " diff --git a/pyrogram/methods/stories/send_story.py b/pyrogram/methods/stories/send_story.py index e5b9b4c59..28df3728b 100644 --- a/pyrogram/methods/stories/send_story.py +++ b/pyrogram/methods/stories/send_story.py @@ -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, diff --git a/pyrogram/types/messages_and_media/message.py b/pyrogram/types/messages_and_media/message.py index d887fe570..8392585e8 100644 --- a/pyrogram/types/messages_and_media/message.py +++ b/pyrogram/types/messages_and_media/message.py @@ -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: @@ -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: