We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 279d6c7 commit 5c50fefCopy full SHA for 5c50fef
1 file changed
pyrogram/types/messages_and_media/message.py
@@ -1664,7 +1664,7 @@ async def _parse_message(
1664
1665
if parsed_topic:
1666
parsed_message.topic = parsed_topic
1667
- elif client.fetch_topics:
+ elif client.fetch_topics and client.me and not client.me.is_bot:
1668
try:
1669
parsed_message.topic = await client.get_direct_messages_topics_by_id(
1670
chat_id=parsed_message.chat.id,
0 commit comments