randydev commited on
Commit
12a37e9
·
1 Parent(s): 8afb532

fix maintance

Browse files
Files changed (1) hide show
  1. akn/manage/callback.py +20 -10
akn/manage/callback.py CHANGED
@@ -644,6 +644,7 @@ async def cb_new_meta(client, query):
644
  user_id = query.from_user.id
645
  if not await db_client.get_privacy_policy(user_id):
646
  return await query.answer("You must agree to the privacy policy first.", True)
 
647
  exp = await db_client.get_env("EXPIRED_USER") or {}
648
  exp_set = exp if exp else {}
649
  user_id_str = str(user_id)
@@ -857,7 +858,8 @@ async def _confirm_aiusers(_, cb: CallbackQuery):
857
  async def confirm_userbot_str(_, cb: CallbackQuery):
858
  user_id = cb.from_user.id
859
  if not await db_client.get_privacy_policy(user_id):
860
- return await query.answer("You must agree to the privacy policy first.", True)
 
861
  bot = "https://t.me/randydev_bot"
862
  death = "https://t.me/RendyProjects/1371"
863
  keyboard_confirm = InlineKeyboardMarkup(
@@ -895,7 +897,8 @@ async def callback_close(client, cb: CallbackQuery):
895
  @ren.on_callback_query(filters.regex("contet"))
896
  async def callback_next(client, cb: CallbackQuery):
897
  if not await db_client.get_privacy_policy(cb.from_user.id):
898
- return await query.answer("You must agree to the privacy policy first.", True)
 
899
  keyboard = InlineKeyboardMarkup(
900
  [
901
  [
@@ -986,7 +989,8 @@ Welcome to Akn-userbot
986
  async def tutor_gemini_clone(_, cb: CallbackQuery):
987
  user_id = cb.from_user.id
988
  if not await db_client.get_privacy_policy(user_id):
989
- return await query.answer("You must agree to the privacy policy first.", True)
 
990
  users_bot = len(gemini_bot_id)
991
  check_tutorial = f"""
992
  <b> Tutorial bot token clone</b>
@@ -1031,7 +1035,8 @@ It only takes a few minutes to activate your own unique bot with 0 coding:
1031
  async def tutor_magicfs(_, cb: CallbackQuery):
1032
  user_id = cb.from_user.id
1033
  if not await db_client.get_privacy_policy(user_id):
1034
- return await query.answer("You must agree to the privacy policy first.", True)
 
1035
  check_tutorial = """
1036
  <b> Tutorial bot token clone</b>
1037
 
@@ -1116,7 +1121,8 @@ It only takes a few minutes to activate your own unique bot with 0 coding:
1116
  async def tutor_meta(_, cb: CallbackQuery):
1117
  user_id = cb.from_user.id
1118
  if not await db_client.get_privacy_policy(user_id):
1119
- return await query.answer("You must agree to the privacy policy first.", True)
 
1120
  check_tutorial = """
1121
  <b> Tutorial bot token clone</b>
1122
 
@@ -1166,7 +1172,8 @@ It only takes a few minutes to activate your own unique bot with 0 coding:
1166
  async def tutor_sesikntl(_, cb: CallbackQuery):
1167
  user_id = cb.from_user.id
1168
  if not await db_client.get_privacy_policy(user_id):
1169
- return await query.answer("You must agree to the privacy policy first.", True)
 
1170
  check_tutorial = """
1171
  <b> Tutorial bot token clone</b>
1172
 
@@ -1208,7 +1215,8 @@ It only takes a few minutes to activate your own unique bot with 0 coding:
1208
  async def tutor_yt(_, cb: CallbackQuery):
1209
  user_id = cb.from_user.id
1210
  if not await db_client.get_privacy_policy(user_id):
1211
- return await query.answer("You must agree to the privacy policy first.", True)
 
1212
  check_tutorial = """
1213
  <b> Tutorial bot token clone</b>
1214
 
@@ -1250,7 +1258,8 @@ It only takes a few minutes to activate your own unique bot with 0 coding:
1250
  async def tutor_captcha(_, cb: CallbackQuery):
1251
  user_id = cb.from_user.id
1252
  if not await db_client.get_privacy_policy(user_id):
1253
- return await query.answer("You must agree to the privacy policy first.", True)
 
1254
  check_tutorial = """
1255
  <b> Tutorial bot token clone</b>
1256
 
@@ -1293,10 +1302,11 @@ It only takes a few minutes to activate your own unique bot with 0 coding:
1293
  async def tutor_alldlbot(client, cb: CallbackQuery):
1294
  user_id = cb.from_user.id
1295
  if await db_client.get_maintance(client.me.id):
1296
- return await query.answer("Bot is under maintenance, please try again later.", True)
1297
 
1298
  if not await db_client.get_privacy_policy(user_id):
1299
- return await query.answer("You must agree to the privacy policy first.", True)
 
1300
  check_tutorial = """
1301
  <b> Tutorial bot token clone</b>
1302
 
 
644
  user_id = query.from_user.id
645
  if not await db_client.get_privacy_policy(user_id):
646
  return await query.answer("You must agree to the privacy policy first.", True)
647
+
648
  exp = await db_client.get_env("EXPIRED_USER") or {}
649
  exp_set = exp if exp else {}
650
  user_id_str = str(user_id)
 
858
  async def confirm_userbot_str(_, cb: CallbackQuery):
859
  user_id = cb.from_user.id
860
  if not await db_client.get_privacy_policy(user_id):
861
+ return await cb.answer("You must agree to the privacy policy first.", True)
862
+
863
  bot = "https://t.me/randydev_bot"
864
  death = "https://t.me/RendyProjects/1371"
865
  keyboard_confirm = InlineKeyboardMarkup(
 
897
  @ren.on_callback_query(filters.regex("contet"))
898
  async def callback_next(client, cb: CallbackQuery):
899
  if not await db_client.get_privacy_policy(cb.from_user.id):
900
+ return await cb.answer("You must agree to the privacy policy first.", True)
901
+
902
  keyboard = InlineKeyboardMarkup(
903
  [
904
  [
 
989
  async def tutor_gemini_clone(_, cb: CallbackQuery):
990
  user_id = cb.from_user.id
991
  if not await db_client.get_privacy_policy(user_id):
992
+ return await cb.answer("You must agree to the privacy policy first.", True)
993
+
994
  users_bot = len(gemini_bot_id)
995
  check_tutorial = f"""
996
  <b> Tutorial bot token clone</b>
 
1035
  async def tutor_magicfs(_, cb: CallbackQuery):
1036
  user_id = cb.from_user.id
1037
  if not await db_client.get_privacy_policy(user_id):
1038
+ return await cb.answer("You must agree to the privacy policy first.", True)
1039
+
1040
  check_tutorial = """
1041
  <b> Tutorial bot token clone</b>
1042
 
 
1121
  async def tutor_meta(_, cb: CallbackQuery):
1122
  user_id = cb.from_user.id
1123
  if not await db_client.get_privacy_policy(user_id):
1124
+ return await cb.answer("You must agree to the privacy policy first.", True)
1125
+
1126
  check_tutorial = """
1127
  <b> Tutorial bot token clone</b>
1128
 
 
1172
  async def tutor_sesikntl(_, cb: CallbackQuery):
1173
  user_id = cb.from_user.id
1174
  if not await db_client.get_privacy_policy(user_id):
1175
+ return await cb.answer("You must agree to the privacy policy first.", True)
1176
+
1177
  check_tutorial = """
1178
  <b> Tutorial bot token clone</b>
1179
 
 
1215
  async def tutor_yt(_, cb: CallbackQuery):
1216
  user_id = cb.from_user.id
1217
  if not await db_client.get_privacy_policy(user_id):
1218
+ return await cb.answer("You must agree to the privacy policy first.", True)
1219
+
1220
  check_tutorial = """
1221
  <b> Tutorial bot token clone</b>
1222
 
 
1258
  async def tutor_captcha(_, cb: CallbackQuery):
1259
  user_id = cb.from_user.id
1260
  if not await db_client.get_privacy_policy(user_id):
1261
+ return await cb.answer("You must agree to the privacy policy first.", True)
1262
+
1263
  check_tutorial = """
1264
  <b> Tutorial bot token clone</b>
1265
 
 
1302
  async def tutor_alldlbot(client, cb: CallbackQuery):
1303
  user_id = cb.from_user.id
1304
  if await db_client.get_maintance(client.me.id):
1305
+ return await cb.answer("Bot is under maintenance, please try again later.", True)
1306
 
1307
  if not await db_client.get_privacy_policy(user_id):
1308
+ return await cb.answer("You must agree to the privacy policy first.", True)
1309
+
1310
  check_tutorial = """
1311
  <b> Tutorial bot token clone</b>
1312