Skip to content

Commit 6222585

Browse files
committed
chore(groups): temporarily disable death messages to the main group
1 parent 2e621b2 commit 6222585

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

handlers/groups.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,11 @@ async def _update_groups(context: ContextTypes.DEFAULT_TYPE):
178178
c = session.query(Listable).filter_by(id=db_id).first()
179179
if c:
180180
c.validated = False
181-
try:
182-
await context.bot.send_message(chat_id=DC_GROUP_CHATID, text=f"El grupo {primary_name} murió 💀")
183-
except Exception as e:
184-
logger.error(f"Failed to send death message for {primary_name}: {e}")
181+
# Temporarily disabled to avoid spam while debugging
182+
# try:
183+
# await context.bot.send_message(chat_id=DC_GROUP_CHATID, text=f"El grupo {primary_name} murió 💀")
184+
# except Exception as e:
185+
# logger.error(f"Failed to send death message for {primary_name}: {e}")
185186
elif validated is True:
186187
logger.info(f"Updating URL for group '{primary_name}'")
187188
with get_session() as session:

0 commit comments

Comments
 (0)