Skip to content

Commit cf16c70

Browse files
committed
fix: exclude system chats from topic group processing
Prevents the channel from attempting to process topic groups for system chats, which could lead to unexpected behavior since system chats are not meant to be linked to topics.
1 parent beb0939 commit cf16c70

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

efb_telegram_master/slave_message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def get_slave_msg_dest(self, msg: Message) -> Tuple[str, Tuple[Optional[Telegram
265265

266266
if tg_chat: # if this chat is linked
267267
tg_dest = TelegramChatID(int(utils.chat_id_str_to_id(tg_chat)[1]))
268-
elif self.channel.topic_group:
268+
elif not isinstance(chat, SystemChat) and self.channel.topic_group:
269269
thread_id = self.db.get_topic_thread_id(slave_uid=chat_uid, topic_chat_id=self.channel.topic_group)
270270
if thread_id:
271271
try:

0 commit comments

Comments
 (0)