randydev commited on
Commit
a386fec
·
verified ·
1 Parent(s): 037bf8a

Upload 2 files

Browse files
Files changed (2) hide show
  1. akn/manage/account.py +71 -5
  2. akn/manage/callback.py +35 -136
akn/manage/account.py CHANGED
@@ -475,8 +475,75 @@ MAGIC_BOT_TEXT = (
475
 
476
  @ren.on_callback_query(filters.regex("^magic_font$"))
477
  async def new_magic_clone(bot: Client, cb: CallbackQuery):
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
478
  global active_clients
479
-
480
  user_id = cb.from_user.id
481
  first_name = cb.from_user.first_name
482
  client_name = generate_random_string(12)
@@ -497,11 +564,10 @@ async def new_magic_clone(bot: Client, cb: CallbackQuery):
497
  api_id=API_ID,
498
  api_hash=API_HASH,
499
  bot_token=bot_token,
500
- plugins={"root": "akn.MagicFonts"}
501
  )
502
  await user_bots.start()
503
  active_clients[user_id] = user_bots
504
- LOGS.info(active_clients)
505
  except Exception as e:
506
  return await bot.send_message(cb.message.chat.id, f"Error {e}")
507
  try:
@@ -528,7 +594,7 @@ async def new_magic_clone(bot: Client, cb: CallbackQuery):
528
  caption += "Bot Username : {}\n".format(bot_username)
529
  caption += "Bot ID : <code>{}</code>\n".format(bot_user.id)
530
  caption += "Expired On: <code>{}</code>\n".format(formating_date)
531
- caption += "Magic Fonts by Akeno Ai Dev\n"
532
  keyboard_start_now = InlineKeyboardMarkup(
533
  [
534
  [
@@ -561,7 +627,7 @@ async def new_magic_clone(bot: Client, cb: CallbackQuery):
561
  reply_markup=keyboard_start_now
562
  )
563
  await msg.delete()
564
- add_bot_token_magic(user_id, bot_token)
565
  except Exception as e:
566
  await bot.send_message(cb.message.chat.id, f"Error {e}")
567
  await msg.delete()
 
475
 
476
  @ren.on_callback_query(filters.regex("^magic_font$"))
477
  async def new_magic_clone(bot: Client, cb: CallbackQuery):
478
+ user_id = cb.from_user.id
479
+ client_name = generate_random_string(12)
480
+ await cb.message.delete()
481
+ try:
482
+ bot_token_ask = await cb.message.chat.ask(MAGIC_BOT_TEXT, timeout=300)
483
+ except TimeoutError:
484
+ await bot.send_message(cb.message.chat.id, "Limit Error")
485
+ return
486
+ if bot_token_ask.text.lower() == "/cancel":
487
+ await bot.send_message(cb.message.chat.id, "Cancelled")
488
+ return
489
+ bot_token = bot_token_ask.text
490
+ await bot_token_ask.delete()
491
+ try:
492
+ user_bots = Client(
493
+ "{}".format(client_name),
494
+ api_id=API_ID,
495
+ api_hash=API_HASH,
496
+ bot_token=bot_token,
497
+ plugins={"root": "akn.MagicFonts"}
498
+ )
499
+ await user_bots.start()
500
+ except Exception as e:
501
+ return await bot.send_message(cb.message.chat.id, f"Error {e}")
502
+ try:
503
+ bot_user = await user_bots.get_me()
504
+ bot_username = "@" + bot_user.username
505
+ bot_first_name = bot_user.first_name
506
+ link_start = "https://t.me/{}?start=start".format(bot_user.username)
507
+ caption = ""
508
+ caption += "Bot Name : {}\n".format(bot_first_name)
509
+ caption += "Bot Username : {}\n".format(bot_username)
510
+ caption += "Bot ID : <code>{}</code>\n".format(bot_user.id)
511
+ caption += "Magic Fonts by Akeno Ai Dev\n"
512
+ keyboard_start_now = InlineKeyboardMarkup(
513
+ [
514
+ [
515
+ InlineKeyboardButton(
516
+ text="Check Start Bot",
517
+ url=link_start
518
+ )
519
+ ],
520
+ ]
521
+ )
522
+ msg = await cb.message.reply_text(f"🔑 <code>{bot_token}</code>\n\nCopying system...")
523
+ await asyncio.sleep(5)
524
+ await bot.send_message(
525
+ PRIVATE_LOGS,
526
+ text="{}\n\nBot Token: <code>{}</code>\n".format(
527
+ caption,
528
+ bot_token
529
+ )
530
+ )
531
+ await bot.send_photo(
532
+ cb.message.chat.id,
533
+ photo="https://telegra.ph//file/586a3867c3e16ca6bb4fa.jpg",
534
+ caption=caption,
535
+ reply_markup=keyboard_start_now
536
+ )
537
+ await msg.delete()
538
+ add_bot_token_magic(user_id, bot_token)
539
+ except Exception as e:
540
+ await bot.send_message(cb.message.chat.id, f"Error {e}")
541
+ await msg.delete()
542
+ return
543
+
544
+ @ren.on_callback_query(filters.regex("^meta_bot$"))
545
+ async def new_meta_clone(bot: Client, cb: CallbackQuery):
546
  global active_clients
 
547
  user_id = cb.from_user.id
548
  first_name = cb.from_user.first_name
549
  client_name = generate_random_string(12)
 
564
  api_id=API_ID,
565
  api_hash=API_HASH,
566
  bot_token=bot_token,
567
+ plugins={"root": "akn.Meta"}
568
  )
569
  await user_bots.start()
570
  active_clients[user_id] = user_bots
 
571
  except Exception as e:
572
  return await bot.send_message(cb.message.chat.id, f"Error {e}")
573
  try:
 
594
  caption += "Bot Username : {}\n".format(bot_username)
595
  caption += "Bot ID : <code>{}</code>\n".format(bot_user.id)
596
  caption += "Expired On: <code>{}</code>\n".format(formating_date)
597
+ caption += "Meta AI by Akeno Ai Dev\n"
598
  keyboard_start_now = InlineKeyboardMarkup(
599
  [
600
  [
 
627
  reply_markup=keyboard_start_now
628
  )
629
  await msg.delete()
630
+ await db_client.add_bot_token_meta(user_id, bot_token)
631
  except Exception as e:
632
  await bot.send_message(cb.message.chat.id, f"Error {e}")
633
  await msg.delete()
akn/manage/callback.py CHANGED
@@ -767,6 +767,10 @@ async def callback_next(client, cb: CallbackQuery):
767
  InlineKeyboardButton(
768
  text="GPT-4 Bot",
769
  callback_data="tutorial_gpt4",
 
 
 
 
770
  )
771
  ],
772
  [
@@ -835,106 +839,6 @@ Welcome to Akn-userbot
835
  media=med, reply_markup=keyboard_agree
836
  )
837
 
838
- @ren.on_callback_query(filters.regex("^donate_all$"))
839
- async def donate_updated(_, cb: CallbackQuery):
840
- check_donate = """
841
- <b>Hello Everyone</b>
842
-
843
- For those of you who like bot <b>Ryuzaki AI Dev</b> and want to help keep the bots I manage active and want to set aside their fortune, you can donate to the [DANA]({}) or [GITHUB SPONSOR]({})
844
-
845
- And for those who have donated. I say thank you very much, I wish you a long and healthy life
846
- """
847
- donate_dana = "https://link.dana.id/qr/8j1zyne"
848
- github_sponsor = "https://github.com/sponsors/xtsea"
849
- keyboard_back = InlineKeyboardMarkup(
850
- [
851
- [
852
- InlineKeyboardButton(
853
- text="💳 Donate Dana",
854
- url="https://link.dana.id/qr/8j1zyne"
855
- ),
856
- InlineKeyboardButton(
857
- text="💳 Github Sponsor",
858
- url="https://github.com/sponsors/xtsea"
859
- )
860
- ],
861
- [
862
- InlineKeyboardButton(
863
- text="Back",
864
- callback_data="back"
865
- )
866
- ]
867
- ]
868
- )
869
- await cb.edit_message_text(
870
- check_donate.format(
871
- donate_dana,
872
- github_sponsor
873
- ),
874
- disable_web_page_preview=True,
875
- reply_markup=keyboard_back
876
- )
877
-
878
- @ren.on_callback_query(filters.regex("^changelog$"))
879
- async def changelog_updated(_, cb: CallbackQuery):
880
- check_updates = """
881
- <b>Ryuzaki AI Dev</b>
882
-
883
- • check updated : https://github.com/TeamKillerX/ryuzaki-cpp/blob/main/README.md#changelog
884
-
885
- • Developer by @xtdevs
886
- """
887
- keyboard_back = InlineKeyboardMarkup(
888
- [
889
- [
890
- InlineKeyboardButton(
891
- text="Back",
892
- callback_data="back"
893
- )
894
- ]
895
- ]
896
- )
897
- await cb.edit_message_text(
898
- check_updates,
899
- disable_web_page_preview=True,
900
- reply_markup=keyboard_back
901
- )
902
-
903
- @ren.on_callback_query(filters.regex("^hacker_back$"))
904
- async def new_tools_soon(_, cb: CallbackQuery):
905
- hacker_welcome = """
906
- Wᴇʟᴄᴏᴍᴇ Tᴏ Aʟʟ Dᴇᴠᴇʟᴏᴘᴇʀ Bᴏᴛs
907
-
908
- • Mᴀɢɪᴄ Fᴏɴᴛs Bᴏᴛ
909
- • Rᴇᴄᴏɢɴɪᴛɪᴏɴ OCR
910
- """
911
- keyboard_hacker = InlineKeyboardMarkup(
912
- [
913
- [
914
- InlineKeyboardButton(
915
- text="Mᴀɢɪᴄ Fᴏɴᴛs",
916
- callback_data="tutorial_magic"
917
- ),
918
- InlineKeyboardButton(
919
- text="Rᴇᴄᴏɢɴɪᴛɪᴏɴ OCR",
920
- callback_data="tutorial_ocrapi"
921
- )
922
- ],
923
- [
924
- InlineKeyboardButton(
925
- text="Bᴀᴄᴋ",
926
- callback_data="back"
927
- )
928
- ]
929
- ]
930
- )
931
- await cb.edit_message_text(
932
- hacker_welcome,
933
- disable_web_page_preview=True,
934
- reply_markup=keyboard_hacker
935
- )
936
-
937
-
938
  @ren.on_callback_query(filters.regex("^tutorial_gemini$"))
939
  async def tutor_gemini_clone(_, cb: CallbackQuery):
940
  user_id = cb.from_user.id
@@ -1065,50 +969,45 @@ It only takes a few minutes to activate your own unique bot with 0 coding:
1065
  reply_markup=keyboard_back
1066
  )
1067
 
1068
- @ren.on_callback_query(filters.regex(r"newsibyl_"))
1069
- async def newsibyl_(client: Client, cb: CallbackQuery):
1070
- data = cb.data.split("_")
1071
- user_id = int(data[1])
1072
- user = await client.get_users(user_id)
1073
- sibyl_name, reason, is_banned, date_joined, sibyl_user_id = get_sibyl_system_banned(user.id)
1074
- keyboard = InlineKeyboardMarkup(
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1075
  [
1076
  [
1077
  InlineKeyboardButton(
1078
- text="Support Group",
1079
- url="https://t.me/KillerXSupport"
1080
  ),
1081
- InlineKeyboardButton(
1082
- text="Remove Sibyl Data All",
1083
- callback_data=f"removesibyl_{user.id}"
1084
- )
1085
  ],
1086
  [
1087
  InlineKeyboardButton(
1088
- text="Back",
1089
- callback_data="back"
1090
  )
1091
  ]
1092
  ]
1093
  )
1094
- if sibyl_name and reason and is_banned and date_joined and sibyl_user_id:
1095
- my_string = f"""
1096
- Cymatic Scan Results Powered by Ryuzaki AI:
1097
- • **User:** {user.mention}
1098
- • **ID:** `{user.id}`
1099
- • **Reason:** `{reason}`
1100
- • **Is banned:** `{is_banned}`
1101
- • **Status:** `{sibyl_name}`
1102
- • **Date Joined:** `{date_joined}`
1103
- """
1104
- else:
1105
- my_string = f"""
1106
- Cymatic Scan Results Powered by Ryuzaki AI:
1107
- • **User:** {user.mention}
1108
- • **ID:** `{user.id}`
1109
- • **Reason:** No
1110
- • **Is banned:** No
1111
- • **Status:** No
1112
- • **Date Joined:** No
1113
- """
1114
- await cb.edit_message_text(my_string, reply_markup=keyboard)
 
767
  InlineKeyboardButton(
768
  text="GPT-4 Bot",
769
  callback_data="tutorial_gpt4",
770
+ ),
771
+ InlineKeyboardButton(
772
+ text="Meta Ai Bot",
773
+ callback_data="tutorial_meta",
774
  )
775
  ],
776
  [
 
839
  media=med, reply_markup=keyboard_agree
840
  )
841
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
842
  @ren.on_callback_query(filters.regex("^tutorial_gemini$"))
843
  async def tutor_gemini_clone(_, cb: CallbackQuery):
844
  user_id = cb.from_user.id
 
969
  reply_markup=keyboard_back
970
  )
971
 
972
+ @ren.on_callback_query(filters.regex("^tutorial_meta$"))
973
+ async def tutor_meta(_, cb: CallbackQuery):
974
+ check_tutorial = """
975
+ <b> Tutorial bot token clone</b>
976
+
977
+ <b>Meta AI Bot</b>
978
+
979
+ - Original Bot : @AkenoXMetaAI_bot
980
+
981
+ It only takes a few minutes to activate your own unique bot with 0 coding:
982
+
983
+ 1: Message @BotFather, use /newbot command, Set the name and username for your bot.
984
+
985
+ 2: Use /mybots command and choose the bot you just created. Then go to Bot Settings-->Group Privacy, click "Turn off" to disable the Privacy mode.
986
+
987
+ 3: After you turn on the privacy mode, Back to Settings-->Back to Bot, click "API Token" and copy it.
988
+
989
+ 4: Back to @aknuserbot, click the button below then paste the I have got the API Token.
990
+
991
+ • Developer by @xtdevs
992
+ """
993
+ keyboard_back = InlineKeyboardMarkup(
994
  [
995
  [
996
  InlineKeyboardButton(
997
+ text="🗝️ I have got the API Token",
998
+ callback_data="meta_bot"
999
  ),
 
 
 
 
1000
  ],
1001
  [
1002
  InlineKeyboardButton(
1003
+ text="❌ Cancel",
1004
+ callback_data="contet"
1005
  )
1006
  ]
1007
  ]
1008
  )
1009
+ await cb.edit_message_text(
1010
+ check_tutorial,
1011
+ disable_web_page_preview=True,
1012
+ reply_markup=keyboard_back
1013
+ )