fix(fuenfvoracht): NoneType-Crash in handle_message beheben

Bot crashte mit AttributeError wenn effective_user None war
(z.B. bei automatischen Kanal-Nachrichten ohne Absender).
This commit is contained in:
root 2026-03-11 19:05:56 +07:00
parent 0b39825f19
commit eb6ca9e3d2

View file

@ -185,6 +185,8 @@ async def handle_callback(update: Update, ctx: ContextTypes.DEFAULT_TYPE):
# ── Textnachrichten ─────────────────────────────────────────────────────────── # ── Textnachrichten ───────────────────────────────────────────────────────────
async def handle_message(update: Update, ctx: ContextTypes.DEFAULT_TYPE): async def handle_message(update: Update, ctx: ContextTypes.DEFAULT_TYPE):
if update.effective_user is None:
return
if not is_reviewer(update.effective_user.id): if not is_reviewer(update.effective_user.id):
return return
# Suche ob ein Edit-Pending-Slot aktiv ist # Suche ob ein Edit-Pending-Slot aktiv ist