Skip to content

Commit 5c50fef

Browse files
authored
Fix parse direct messages for bots (#213)
1 parent 279d6c7 commit 5c50fef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pyrogram/types/messages_and_media/message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1664,7 +1664,7 @@ async def _parse_message(
16641664

16651665
if parsed_topic:
16661666
parsed_message.topic = parsed_topic
1667-
elif client.fetch_topics:
1667+
elif client.fetch_topics and client.me and not client.me.is_bot:
16681668
try:
16691669
parsed_message.topic = await client.get_direct_messages_topics_by_id(
16701670
chat_id=parsed_message.chat.id,

0 commit comments

Comments
 (0)