Hfzune commited on
Commit
5bfe23c
·
verified ·
1 Parent(s): b826a23

Update bot/webhook.py

Browse files
Files changed (1) hide show
  1. bot/webhook.py +5 -5
bot/webhook.py CHANGED
@@ -69,11 +69,11 @@ async def handle_update(update: dict):
69
 
70
  # Auth check
71
  if not dbm.user_has_valid_token(user_id):
72
- await send_message(
73
- chat_id,
74
- "🔒 You need a valid access token.\nSend <code>/token &lt;your-token&gt;</code> to activate.",
75
- )
76
- return
77
 
78
  # Daily limit check
79
  try:
 
69
 
70
  # Auth check
71
  if not dbm.user_has_valid_token(user_id):
72
+ await send_message(
73
+ chat_id,
74
+ "🔒 You need a valid access token.\nSend <code>/token &lt;your-token&gt;</code> to activate.",
75
+ )
76
+ return
77
 
78
  # Daily limit check
79
  try: