Update 2025-12-19 19:18:16

This commit is contained in:
unknown
2025-12-19 19:18:16 +09:00
parent b18412ecb2
commit b37c43ab86
19 changed files with 7629 additions and 89 deletions

View File

@@ -59,7 +59,7 @@ async def handle_approval_callback(update: Update, context: ContextTypes.DEFAULT
with flask_app.app_context():
# 토큰으로 사용자 찾기
user = User.query.filter_by(approval_token=token).first()
if not user:
await query.edit_message_text(
text="❌ 유효하지 않은 승인 요청입니다.\n(이미 처리되었거나 만료된 요청)"
@@ -168,6 +168,6 @@ def run_polling(flask_app: Flask) -> None:
try:
# v20 스타일: run_polling 은 동기 함수이고, 내부에서 이벤트 루프를 직접 관리함
application.run_polling(drop_pending_updates=True)
application.run_polling(drop_pending_updates=True, stop_signals=[])
except Exception as e:
logger.exception("Error in bot polling: %s", e)