Merge pull request #157 from asoul-rec/patch-1

Add missing topic assignment in Message.__init__
This commit is contained in:
2025-12-11 01:29:49 +07:00 committed by GitHub
commit 47a3b6179d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -86,7 +86,7 @@ class Message(Object, Update):
topic (:obj:`~pyrogram.types.ForumTopic`, *optional*):
Topic the message belongs to.
only returned using when client.get_messages.
only returned when using client.get_messages.
forward_origin (:obj:`~pyrogram.types.MessageOrigin`, *optional*):
Information about the original message for forwarded messages.
@ -573,6 +573,7 @@ class Message(Object, Update):
self.sender_business_bot = sender_business_bot
self.date = date
self.chat = chat
self.topic = topic
self.forward_origin = forward_origin
self.external_reply = external_reply
self.is_topic_message = is_topic_message