0% found this document useful (0 votes)
2 views354 pages

Bot Commands Task Earning Bot

The document outlines a bot's command structure and functionality, including user management, task handling, and admin controls. It includes methods for saving and retrieving user data, managing tasks, and formatting outputs for user interaction. The bot is designed to facilitate task creation, user referrals, and reward distribution within a structured interface.

Uploaded by

princesingh91960
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views354 pages

Bot Commands Task Earning Bot

The document outlines a bot's command structure and functionality, including user management, task handling, and admin controls. It includes methods for saving and retrieving user data, managing tasks, and formatting outputs for user interaction. The bot is designed to facilitate task creation, user referrals, and reward distribution within a structured interface.

Uploaded by

princesingh91960
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

{

"commands": [
{
"bot": "94886904",
"command": "/start",
"admin_only": false,
"code": "try:\n def
_sc(t):\n m =
{'a':'ᴀ','b':'ʙ','c':'ᴄ','d':'ᴅ','e':'ᴇ','f
':'ꜰ','g':'ɢ','h':'ʜ','i':'ɪ','j':'ᴊ','k':'ᴋ
','l':'ʟ','m':'ᴍ','n':'ɴ','o':'ᴏ','p':'ᴘ','
q':'ǫ','r':'ʀ','s':'ꜱ','t':'ᴛ','u':'ᴜ','v':
'ᴠ','w':'ᴡ','x':'x','y':'ʏ','z':'ᴢ'}\n
out = \"\"\n for ch in
str(t):\n low =
[Link]()\n out += m[low] if
low in m else ch\n return out\n\n
LN = \"─\" * 20\n BUL = \"•\"\n ARR =
\"→\"\n\n def _users():\n d =
[Link](\"users\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_users(d):\n
[Link](\"users\", d)\n\n def
_urec(d, uid):\n if uid not in
d:\n d[uid] = {\n
\"balance\": 0.0,\n
\"total_refs\": 0,\n
\"banned\": False,\n
\"wallet\": \"\",\n
\"last_bonus\": 0,\n
\"referred_by\": None,\n
\"joined\": False,\n
\"joined_at\":
int([Link]()),\n
\"completed\": []\n }\n
if \"completed\" not in
d[uid]:\n d[uid][\"completed\"]
= []\n return d[uid]\n\n def
_settings():\n s =
[Link](\"settings\")\n if not
isinstance(s, dict):\n s =
{}\n [Link](\"ref_amount\",
1.0)\n [Link](\"daily_bonus\",
1.0)\n
[Link](\"min_task_reward\",
1.0)\n
[Link](\"min_withdraw\",
10.0)\n
[Link](\"bonus_hours\", 24)\n
return s\n\n def
_save_settings(s):\n
[Link](\"settings\", s)\n\n def
_is_admin(uid):\n admins =
[Link](\"admins\")\n if not
admins:\n admins = []\n
return str(uid) in admins\n\n def
_tasks():\n d =
[Link](\"tasks\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_tasks(d):\n
[Link](\"tasks\", d)\n\n def
_new_task_id():\n n =
[Link](\"task_counter\")\n n =
int(n) + 1 if n else 1\n
[Link](\"task_counter\", n)\n
return str(n)\n\n def
_norm_channel(raw):\n t =
str(raw).strip()\n t =
[Link](\"[Link]
\"\").replace(\"[Link] \"\")\n
if [Link](\"[Link]/\"):\n t
= t[5:]\n if
[Link](\"@\"):\n t =
t[1:]\n t = [Link](\"?\")
[0].split(\"/\")[0].strip()\n return
t\n\n def
_check_bot_admin(username):\n
try:\n admins =
[Link](chat_id=\"@\" +
username)\n except Exception as
e:\n return False,
str(e)\n for a in
admins:\n try:\n
member = [Link] if hasattr(a, \"user\")
else [Link](\"user\", {})\n
mid = [Link] if hasattr(member, \"id\")
else [Link](\"id\")\n except
Exception:\n mid =
None\n if mid is not None and
str(mid) == str(bot_id):\n
return True, \"\"\n return False,
\"not_admin\"\n\n def _fmt(n):\n
try:\n f = float(n)\n
if f == int(f):\n return
str(int(f))\n return
str(round(f, 2))\n except
Exception:\n return
str(n)\n\n def _wreqs():\n d =
[Link](\"withdrawals\")\n
return d if isinstance(d, dict) else
{}\n\n def _save_wreqs(d):\n
[Link](\"withdrawals\", d)\n\n def
_main_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"START
EARNING\"}],\n [{\"text\":
\"CREATE TASK\"}, {\"text\": \"MY
TASK\"}],\n [{\"text\":
\"INVITE FRIENDS\"}, {\"text\": \"MY
BALANCE\"}],\n [{\"text\":
\"DAILY BONUS\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def
_admin_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"Manage
Tasks\"}],\n [{\"text\":
\"Set Refer Reward\"}, {\"text\": \"Set
Daily Bonus\"}],\n
[{\"text\": \"Min Task Reward\"},
{\"text\": \"Withdraw
Requests\"}],\n [{\"text\":
\"Add Balance\"}, {\"text\": \"Remove
Balance\"}],\n [{\"text\":
\"Ban User\"}, {\"text\": \"User
Details\"}],\n [{\"text\":
\"Stats\"}, {\"text\":
\"Broadcast\"}],\n
[{\"text\": \"/start\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def _earn_rows(page,
uid, users_d):\n tasks =
_tasks()\n rec2 = _urec(users_d,
uid)\n active = []\n for tid,
t in [Link]():\n if not
[Link](\"active\"):\n
continue\n if
str([Link](\"owner\")) ==
str(uid):\n
continue\n if tid in
[Link](\"completed\",
[]):\n continue\n
if int([Link](\"completed\", 0)) >=
int([Link](\"slots\", 0)):\n
continue\n [Link]((tid,
t))\n [Link](key=lambda x: -
float(x[1].get(\"reward\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(active) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
active[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"available tasks\") + \" \" + BUL,
LN, \"\"]\n rows = []\n if
not chunk:\n
[Link](_sc(\"no tasks available right
now. check back later.\"))\n
else:\n for tid, t in
chunk:\n remaining =
int([Link](\"slots\", 0)) -
int([Link](\"completed\",
0))\n [Link](BUL + \"
<b>\" + [Link](\"link\", \"\") + \"</b>\\n
\" + _sc(\"reward\") + \": <b>\" +
_fmt([Link](\"reward\")) + \"</b> \" +
_sc(\"coin\") + \" \" + ARR + \" \" +
_sc(\"left\") + \": \" +
str(remaining))\n
[Link]([{\"text\": _sc(\"join &
verify\") + \" - \" + [Link](\"link\",
\"\").replace(\"[Link] \"@\"),
\"callback_data\": \"earn_join_\" +
tid}])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"earn_page_\" + str(page - 1)})\n
if page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"earn_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def _mytask_rows(page,
uid):\n tasks = _tasks()\n
mine = [(tid, t) for tid, t in
[Link]() if str([Link](\"owner\")) ==
str(uid)]\n [Link](key=lambda x:
-int(x[1].get(\"created_at\", 0)))\n
per_page = 4\n total_pages = max(1,
(len(mine) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
mine[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"my tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"you
have not created any task yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"status\") + \": \" + status_txt + \"
\" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \"\\n \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
toggle_txt = _sc(\"pause\") if
[Link](\"active\") else
_sc(\"resume\")\n
[Link]([\n
{\"text\": toggle_txt, \"callback_data\":
\"myt_toggle_\" +
tid},\n {\"text\":
_sc(\"delete\"), \"callback_data\":
\"myt_del_\" + tid}\n
])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"myt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"myt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def
_admin_tasks_rows(page):\n tasks =
_tasks()\n items =
list([Link]())\n
[Link](key=lambda x: -
int(x[1].get(\"created_at\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(items) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
items[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"manage tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"no
tasks created yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"owner\") + \": <code>\" +
str([Link](\"owner\")) + \"</code> \" +
_sc(\"status\") + \": \" + status_txt +
\"\\n \" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \" \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
[Link]([{\"text\": _sc(\"remove
task\") + \" #\" + tid, \"callback_data\":
\"adt_del_\" + tid}])\n nav =
[]\n if page > 0:\n
[Link]({\"text\": \"< \" +
_sc(\"prev\"), \"callback_data\":
\"adt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"adt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n u =
str(message.from_user.id)\n first_name =
message.from_user.first_name or
\"friend\"\n text = [Link] if
[Link] else \"\"\n args =
[Link](\" \")\n\n users =
_users()\n\n admins =
[Link](\"admins\")\n
just_became_admin = False\n if not
admins:\n admins = [u]\n
[Link](\"admins\", admins)\n
just_became_admin = True\n\n rec =
_urec(users, u)\n\n if
[Link](\"banned\"):\n
[Link](_sc(\"you are banned from
using this bot.\"),
parse_mode=\"html\")\n else:\n
is_new = not [Link](\"joined\",
False)\n if is_new:\n
rec[\"joined\"] = True\n if
len(args) > 1:\n referrer =
str(args[1]).strip()\n if
referrer != u and referrer != \"\" and
referrer in users:\n
settings = _settings()\n
reward = float([Link](\"ref_amount\",
1.0))\n
rec[\"referred_by\"] =
referrer\n ref_rec =
_urec(users, referrer)\n
ref_rec[\"balance\"] =
float(ref_rec.get(\"balance\", 0.0)) +
reward\n
ref_rec[\"total_refs\"] =
int(ref_rec.get(\"total_refs\", 0)) +
1\n
try:\n
[Link](\n

chat_id=int(referrer),\n
text=LN + \"\\n\" + _sc(\"new
referral\") + \"\\n\" + LN + \"\\n\\n\" +
first_name + \" \" + _sc(\"joined using
your link. you earned\") + \" \" +
_fmt(reward) + \" \" + _sc(\"coin\") +
\"\\n\\n\" +
LN,\n
parse_mode=\"html\"\n
)\n except
Exception:\n
pass\n
_save_users(users)\n\n if
just_became_admin:\n
[Link](\n LN +
\"\\n\" + _sc(\"congratulations, you are
admin now\") + \"\\n\" + LN + \"\\n\\n\" +
_sc(\"send\") + \" /admin \" + _sc(\"to
open the admin panel.\") + \"\\n\" +
LN,\n
parse_mode=\"html\"\n
)\n\n [Link](\n
LN + \"\\n\" + BUL + \" \" +
_sc(\"welcome\") + \", \" + first_name + \"
\" + BUL + \"\\n\" + LN +
\"\\n\\n\"\n + _sc(\"complete
simple tasks and earn coin.\") +
\"\\n\"\n + _sc(\"tap start
earning to see tasks, or create your own
task to promote your channel.\") +
\"\\n\\n\" + LN,\n
parse_mode=\"html\",\n
reply_markup=_main_kb()\n
)\n\nexcept Exception as e:\n
[Link](chat_id=int(u),
text=\"Error: \" + str(e))\n",
"created_at": "2026-07-28 09:20:40",
"folder": "",
"last_updated": "2026-07-28
09:20:40",
"pinned": false
},
{
"bot": "94886904",
"command": "/admin",
"admin_only": false,
"code": "try:\n def
_sc(t):\n m =
{'a':'ᴀ','b':'ʙ','c':'ᴄ','d':'ᴅ','e':'ᴇ','f
':'ꜰ','g':'ɢ','h':'ʜ','i':'ɪ','j':'ᴊ','k':'ᴋ
','l':'ʟ','m':'ᴍ','n':'ɴ','o':'ᴏ','p':'ᴘ','
q':'ǫ','r':'ʀ','s':'ꜱ','t':'ᴛ','u':'ᴜ','v':
'ᴠ','w':'ᴡ','x':'x','y':'ʏ','z':'ᴢ'}\n
out = \"\"\n for ch in
str(t):\n low =
[Link]()\n out += m[low] if
low in m else ch\n return out\n\n
LN = \"─\" * 20\n BUL = \"•\"\n ARR =
\"→\"\n\n def _users():\n d =
[Link](\"users\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_users(d):\n
[Link](\"users\", d)\n\n def
_urec(d, uid):\n if uid not in
d:\n d[uid] = {\n
\"balance\": 0.0,\n
\"total_refs\": 0,\n
\"banned\": False,\n
\"wallet\": \"\",\n
\"last_bonus\": 0,\n
\"referred_by\": None,\n
\"joined\": False,\n
\"joined_at\":
int([Link]()),\n
\"completed\": []\n }\n
if \"completed\" not in
d[uid]:\n d[uid][\"completed\"]
= []\n return d[uid]\n\n def
_settings():\n s =
[Link](\"settings\")\n if not
isinstance(s, dict):\n s =
{}\n [Link](\"ref_amount\",
1.0)\n [Link](\"daily_bonus\",
1.0)\n
[Link](\"min_task_reward\",
1.0)\n
[Link](\"min_withdraw\",
10.0)\n
[Link](\"bonus_hours\", 24)\n
return s\n\n def
_save_settings(s):\n
[Link](\"settings\", s)\n\n def
_is_admin(uid):\n admins =
[Link](\"admins\")\n if not
admins:\n admins = []\n
return str(uid) in admins\n\n def
_tasks():\n d =
[Link](\"tasks\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_tasks(d):\n
[Link](\"tasks\", d)\n\n def
_new_task_id():\n n =
[Link](\"task_counter\")\n n =
int(n) + 1 if n else 1\n
[Link](\"task_counter\", n)\n
return str(n)\n\n def
_norm_channel(raw):\n t =
str(raw).strip()\n t =
[Link](\"[Link]
\"\").replace(\"[Link] \"\")\n
if [Link](\"[Link]/\"):\n t
= t[5:]\n if
[Link](\"@\"):\n t =
t[1:]\n t = [Link](\"?\")
[0].split(\"/\")[0].strip()\n return
t\n\n def
_check_bot_admin(username):\n
try:\n admins =
[Link](chat_id=\"@\" +
username)\n except Exception as
e:\n return False,
str(e)\n for a in
admins:\n try:\n
member = [Link] if hasattr(a, \"user\")
else [Link](\"user\", {})\n
mid = [Link] if hasattr(member, \"id\")
else [Link](\"id\")\n except
Exception:\n mid =
None\n if mid is not None and
str(mid) == str(bot_id):\n
return True, \"\"\n return False,
\"not_admin\"\n\n def _fmt(n):\n
try:\n f = float(n)\n
if f == int(f):\n return
str(int(f))\n return
str(round(f, 2))\n except
Exception:\n return
str(n)\n\n def _wreqs():\n d =
[Link](\"withdrawals\")\n
return d if isinstance(d, dict) else
{}\n\n def _save_wreqs(d):\n
[Link](\"withdrawals\", d)\n\n def
_main_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"START
EARNING\"}],\n [{\"text\":
\"CREATE TASK\"}, {\"text\": \"MY
TASK\"}],\n [{\"text\":
\"INVITE FRIENDS\"}, {\"text\": \"MY
BALANCE\"}],\n [{\"text\":
\"DAILY BONUS\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def
_admin_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"Manage
Tasks\"}],\n [{\"text\":
\"Set Refer Reward\"}, {\"text\": \"Set
Daily Bonus\"}],\n
[{\"text\": \"Min Task Reward\"},
{\"text\": \"Withdraw
Requests\"}],\n [{\"text\":
\"Add Balance\"}, {\"text\": \"Remove
Balance\"}],\n [{\"text\":
\"Ban User\"}, {\"text\": \"User
Details\"}],\n [{\"text\":
\"Stats\"}, {\"text\":
\"Broadcast\"}],\n
[{\"text\": \"/start\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def _earn_rows(page,
uid, users_d):\n tasks =
_tasks()\n rec2 = _urec(users_d,
uid)\n active = []\n for tid,
t in [Link]():\n if not
[Link](\"active\"):\n
continue\n if
str([Link](\"owner\")) ==
str(uid):\n
continue\n if tid in
[Link](\"completed\",
[]):\n continue\n
if int([Link](\"completed\", 0)) >=
int([Link](\"slots\", 0)):\n
continue\n [Link]((tid,
t))\n [Link](key=lambda x: -
float(x[1].get(\"reward\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(active) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
active[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"available tasks\") + \" \" + BUL,
LN, \"\"]\n rows = []\n if
not chunk:\n
[Link](_sc(\"no tasks available right
now. check back later.\"))\n
else:\n for tid, t in
chunk:\n remaining =
int([Link](\"slots\", 0)) -
int([Link](\"completed\",
0))\n [Link](BUL + \"
<b>\" + [Link](\"link\", \"\") + \"</b>\\n
\" + _sc(\"reward\") + \": <b>\" +
_fmt([Link](\"reward\")) + \"</b> \" +
_sc(\"coin\") + \" \" + ARR + \" \" +
_sc(\"left\") + \": \" +
str(remaining))\n
[Link]([{\"text\": _sc(\"join &
verify\") + \" - \" + [Link](\"link\",
\"\").replace(\"[Link] \"@\"),
\"callback_data\": \"earn_join_\" +
tid}])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"earn_page_\" + str(page - 1)})\n
if page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"earn_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def _mytask_rows(page,
uid):\n tasks = _tasks()\n
mine = [(tid, t) for tid, t in
[Link]() if str([Link](\"owner\")) ==
str(uid)]\n [Link](key=lambda x:
-int(x[1].get(\"created_at\", 0)))\n
per_page = 4\n total_pages = max(1,
(len(mine) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
mine[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"my tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"you
have not created any task yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"status\") + \": \" + status_txt + \"
\" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \"\\n \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
toggle_txt = _sc(\"pause\") if
[Link](\"active\") else
_sc(\"resume\")\n
[Link]([\n
{\"text\": toggle_txt, \"callback_data\":
\"myt_toggle_\" +
tid},\n {\"text\":
_sc(\"delete\"), \"callback_data\":
\"myt_del_\" + tid}\n
])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"myt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"myt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def
_admin_tasks_rows(page):\n tasks =
_tasks()\n items =
list([Link]())\n
[Link](key=lambda x: -
int(x[1].get(\"created_at\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(items) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
items[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"manage tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"no
tasks created yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"owner\") + \": <code>\" +
str([Link](\"owner\")) + \"</code> \" +
_sc(\"status\") + \": \" + status_txt +
\"\\n \" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \" \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
[Link]([{\"text\": _sc(\"remove
task\") + \" #\" + tid, \"callback_data\":
\"adt_del_\" + tid}])\n nav =
[]\n if page > 0:\n
[Link]({\"text\": \"< \" +
_sc(\"prev\"), \"callback_data\":
\"adt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"adt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n u =
str(message.from_user.id)\n if not
_is_admin(u):\n
[Link](_sc(\"access denied.\"),
parse_mode=\"html\")\n else:\n
[Link](\n LN + \"\\n\"
+ BUL + \" \" + _sc(\"admin panel\") + \"
\" + BUL + \"\\n\" + LN + \"\\n\\n\" +
_sc(\"choose an option below\") +
\"\\n\\n\" + LN,\n
parse_mode=\"html\",\n
reply_markup=_admin_kb()\n
)\n\nexcept Exception as e:\n
[Link](chat_id=int(u),
text=\"Error: \" + str(e))\n",
"created_at": "2026-07-28 09:20:40",
"folder": "",
"last_updated": "2026-07-28
09:20:40",
"pinned": false
},
{
"bot": "94886904",
"command": "/setadmin",
"admin_only": false,
"code": "try:\n def
_sc(t):\n m =
{'a':'ᴀ','b':'ʙ','c':'ᴄ','d':'ᴅ','e':'ᴇ','f
':'ꜰ','g':'ɢ','h':'ʜ','i':'ɪ','j':'ᴊ','k':'ᴋ
','l':'ʟ','m':'ᴍ','n':'ɴ','o':'ᴏ','p':'ᴘ','
q':'ǫ','r':'ʀ','s':'ꜱ','t':'ᴛ','u':'ᴜ','v':
'ᴠ','w':'ᴡ','x':'x','y':'ʏ','z':'ᴢ'}\n
out = \"\"\n for ch in
str(t):\n low =
[Link]()\n out += m[low] if
low in m else ch\n return out\n\n
LN = \"─\" * 20\n BUL = \"•\"\n ARR =
\"→\"\n\n def _users():\n d =
[Link](\"users\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_users(d):\n
[Link](\"users\", d)\n\n def
_urec(d, uid):\n if uid not in
d:\n d[uid] = {\n
\"balance\": 0.0,\n
\"total_refs\": 0,\n
\"banned\": False,\n
\"wallet\": \"\",\n
\"last_bonus\": 0,\n
\"referred_by\": None,\n
\"joined\": False,\n
\"joined_at\":
int([Link]()),\n
\"completed\": []\n }\n
if \"completed\" not in
d[uid]:\n d[uid][\"completed\"]
= []\n return d[uid]\n\n def
_settings():\n s =
[Link](\"settings\")\n if not
isinstance(s, dict):\n s =
{}\n [Link](\"ref_amount\",
1.0)\n [Link](\"daily_bonus\",
1.0)\n
[Link](\"min_task_reward\",
1.0)\n
[Link](\"min_withdraw\",
10.0)\n
[Link](\"bonus_hours\", 24)\n
return s\n\n def
_save_settings(s):\n
[Link](\"settings\", s)\n\n def
_is_admin(uid):\n admins =
[Link](\"admins\")\n if not
admins:\n admins = []\n
return str(uid) in admins\n\n def
_tasks():\n d =
[Link](\"tasks\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_tasks(d):\n
[Link](\"tasks\", d)\n\n def
_new_task_id():\n n =
[Link](\"task_counter\")\n n =
int(n) + 1 if n else 1\n
[Link](\"task_counter\", n)\n
return str(n)\n\n def
_norm_channel(raw):\n t =
str(raw).strip()\n t =
[Link](\"[Link]
\"\").replace(\"[Link] \"\")\n
if [Link](\"[Link]/\"):\n t
= t[5:]\n if
[Link](\"@\"):\n t =
t[1:]\n t = [Link](\"?\")
[0].split(\"/\")[0].strip()\n return
t\n\n def
_check_bot_admin(username):\n
try:\n admins =
[Link](chat_id=\"@\" +
username)\n except Exception as
e:\n return False,
str(e)\n for a in
admins:\n try:\n
member = [Link] if hasattr(a, \"user\")
else [Link](\"user\", {})\n
mid = [Link] if hasattr(member, \"id\")
else [Link](\"id\")\n except
Exception:\n mid =
None\n if mid is not None and
str(mid) == str(bot_id):\n
return True, \"\"\n return False,
\"not_admin\"\n\n def _fmt(n):\n
try:\n f = float(n)\n
if f == int(f):\n return
str(int(f))\n return
str(round(f, 2))\n except
Exception:\n return
str(n)\n\n def _wreqs():\n d =
[Link](\"withdrawals\")\n
return d if isinstance(d, dict) else
{}\n\n def _save_wreqs(d):\n
[Link](\"withdrawals\", d)\n\n def
_main_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"START
EARNING\"}],\n [{\"text\":
\"CREATE TASK\"}, {\"text\": \"MY
TASK\"}],\n [{\"text\":
\"INVITE FRIENDS\"}, {\"text\": \"MY
BALANCE\"}],\n [{\"text\":
\"DAILY BONUS\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def
_admin_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"Manage
Tasks\"}],\n [{\"text\":
\"Set Refer Reward\"}, {\"text\": \"Set
Daily Bonus\"}],\n
[{\"text\": \"Min Task Reward\"},
{\"text\": \"Withdraw
Requests\"}],\n [{\"text\":
\"Add Balance\"}, {\"text\": \"Remove
Balance\"}],\n [{\"text\":
\"Ban User\"}, {\"text\": \"User
Details\"}],\n [{\"text\":
\"Stats\"}, {\"text\":
\"Broadcast\"}],\n
[{\"text\": \"/start\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def _earn_rows(page,
uid, users_d):\n tasks =
_tasks()\n rec2 = _urec(users_d,
uid)\n active = []\n for tid,
t in [Link]():\n if not
[Link](\"active\"):\n
continue\n if
str([Link](\"owner\")) ==
str(uid):\n
continue\n if tid in
[Link](\"completed\",
[]):\n continue\n
if int([Link](\"completed\", 0)) >=
int([Link](\"slots\", 0)):\n
continue\n [Link]((tid,
t))\n [Link](key=lambda x: -
float(x[1].get(\"reward\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(active) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
active[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"available tasks\") + \" \" + BUL,
LN, \"\"]\n rows = []\n if
not chunk:\n
[Link](_sc(\"no tasks available right
now. check back later.\"))\n
else:\n for tid, t in
chunk:\n remaining =
int([Link](\"slots\", 0)) -
int([Link](\"completed\",
0))\n [Link](BUL + \"
<b>\" + [Link](\"link\", \"\") + \"</b>\\n
\" + _sc(\"reward\") + \": <b>\" +
_fmt([Link](\"reward\")) + \"</b> \" +
_sc(\"coin\") + \" \" + ARR + \" \" +
_sc(\"left\") + \": \" +
str(remaining))\n
[Link]([{\"text\": _sc(\"join &
verify\") + \" - \" + [Link](\"link\",
\"\").replace(\"[Link] \"@\"),
\"callback_data\": \"earn_join_\" +
tid}])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"earn_page_\" + str(page - 1)})\n
if page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"earn_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def _mytask_rows(page,
uid):\n tasks = _tasks()\n
mine = [(tid, t) for tid, t in
[Link]() if str([Link](\"owner\")) ==
str(uid)]\n [Link](key=lambda x:
-int(x[1].get(\"created_at\", 0)))\n
per_page = 4\n total_pages = max(1,
(len(mine) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
mine[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"my tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"you
have not created any task yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"status\") + \": \" + status_txt + \"
\" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \"\\n \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
toggle_txt = _sc(\"pause\") if
[Link](\"active\") else
_sc(\"resume\")\n
[Link]([\n
{\"text\": toggle_txt, \"callback_data\":
\"myt_toggle_\" +
tid},\n {\"text\":
_sc(\"delete\"), \"callback_data\":
\"myt_del_\" + tid}\n
])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"myt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"myt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def
_admin_tasks_rows(page):\n tasks =
_tasks()\n items =
list([Link]())\n
[Link](key=lambda x: -
int(x[1].get(\"created_at\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(items) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
items[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"manage tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"no
tasks created yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"owner\") + \": <code>\" +
str([Link](\"owner\")) + \"</code> \" +
_sc(\"status\") + \": \" + status_txt +
\"\\n \" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \" \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
[Link]([{\"text\": _sc(\"remove
task\") + \" #\" + tid, \"callback_data\":
\"adt_del_\" + tid}])\n nav =
[]\n if page > 0:\n
[Link]({\"text\": \"< \" +
_sc(\"prev\"), \"callback_data\":
\"adt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"adt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n u =
str(message.from_user.id)\n if not
_is_admin(u):\n
[Link](_sc(\"you are not an
admin.\"), parse_mode=\"html\")\n
else:\n
[Link](\n LN + \"\\n\"
+ _sc(\"add admin\") + \"\\n\" + LN +
\"\\n\\n\" + _sc(\"send the telegram user
id of the person you want to make an
admin\") + \":\\n\\n\" + LN,\n
parse_mode=\"html\"\n )\n
[Link](\"save_new_admin\")\n
\nexcept Exception as e:\n
[Link](chat_id=int(u),
text=\"Error: \" + str(e))\n",
"created_at": "2026-07-28 09:20:40",
"folder": "",
"last_updated": "2026-07-28
09:20:40",
"pinned": false
},
{
"bot": "94886904",
"command": "save_new_admin",
"admin_only": false,
"code": "try:\n def
_sc(t):\n m =
{'a':'ᴀ','b':'ʙ','c':'ᴄ','d':'ᴅ','e':'ᴇ','f
':'ꜰ','g':'ɢ','h':'ʜ','i':'ɪ','j':'ᴊ','k':'ᴋ
','l':'ʟ','m':'ᴍ','n':'ɴ','o':'ᴏ','p':'ᴘ','
q':'ǫ','r':'ʀ','s':'ꜱ','t':'ᴛ','u':'ᴜ','v':
'ᴠ','w':'ᴡ','x':'x','y':'ʏ','z':'ᴢ'}\n
out = \"\"\n for ch in
str(t):\n low =
[Link]()\n out += m[low] if
low in m else ch\n return out\n\n
LN = \"─\" * 20\n BUL = \"•\"\n ARR =
\"→\"\n\n def _users():\n d =
[Link](\"users\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_users(d):\n
[Link](\"users\", d)\n\n def
_urec(d, uid):\n if uid not in
d:\n d[uid] = {\n
\"balance\": 0.0,\n
\"total_refs\": 0,\n
\"banned\": False,\n
\"wallet\": \"\",\n
\"last_bonus\": 0,\n
\"referred_by\": None,\n
\"joined\": False,\n
\"joined_at\":
int([Link]()),\n
\"completed\": []\n }\n
if \"completed\" not in
d[uid]:\n d[uid][\"completed\"]
= []\n return d[uid]\n\n def
_settings():\n s =
[Link](\"settings\")\n if not
isinstance(s, dict):\n s =
{}\n [Link](\"ref_amount\",
1.0)\n [Link](\"daily_bonus\",
1.0)\n
[Link](\"min_task_reward\",
1.0)\n
[Link](\"min_withdraw\",
10.0)\n
[Link](\"bonus_hours\", 24)\n
return s\n\n def
_save_settings(s):\n
[Link](\"settings\", s)\n\n def
_is_admin(uid):\n admins =
[Link](\"admins\")\n if not
admins:\n admins = []\n
return str(uid) in admins\n\n def
_tasks():\n d =
[Link](\"tasks\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_tasks(d):\n
[Link](\"tasks\", d)\n\n def
_new_task_id():\n n =
[Link](\"task_counter\")\n n =
int(n) + 1 if n else 1\n
[Link](\"task_counter\", n)\n
return str(n)\n\n def
_norm_channel(raw):\n t =
str(raw).strip()\n t =
[Link](\"[Link]
\"\").replace(\"[Link] \"\")\n
if [Link](\"[Link]/\"):\n t
= t[5:]\n if
[Link](\"@\"):\n t =
t[1:]\n t = [Link](\"?\")
[0].split(\"/\")[0].strip()\n return
t\n\n def
_check_bot_admin(username):\n
try:\n admins =
[Link](chat_id=\"@\" +
username)\n except Exception as
e:\n return False,
str(e)\n for a in
admins:\n try:\n
member = [Link] if hasattr(a, \"user\")
else [Link](\"user\", {})\n
mid = [Link] if hasattr(member, \"id\")
else [Link](\"id\")\n except
Exception:\n mid =
None\n if mid is not None and
str(mid) == str(bot_id):\n
return True, \"\"\n return False,
\"not_admin\"\n\n def _fmt(n):\n
try:\n f = float(n)\n
if f == int(f):\n return
str(int(f))\n return
str(round(f, 2))\n except
Exception:\n return
str(n)\n\n def _wreqs():\n d =
[Link](\"withdrawals\")\n
return d if isinstance(d, dict) else
{}\n\n def _save_wreqs(d):\n
[Link](\"withdrawals\", d)\n\n def
_main_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"START
EARNING\"}],\n [{\"text\":
\"CREATE TASK\"}, {\"text\": \"MY
TASK\"}],\n [{\"text\":
\"INVITE FRIENDS\"}, {\"text\": \"MY
BALANCE\"}],\n [{\"text\":
\"DAILY BONUS\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def
_admin_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"Manage
Tasks\"}],\n [{\"text\":
\"Set Refer Reward\"}, {\"text\": \"Set
Daily Bonus\"}],\n
[{\"text\": \"Min Task Reward\"},
{\"text\": \"Withdraw
Requests\"}],\n [{\"text\":
\"Add Balance\"}, {\"text\": \"Remove
Balance\"}],\n [{\"text\":
\"Ban User\"}, {\"text\": \"User
Details\"}],\n [{\"text\":
\"Stats\"}, {\"text\":
\"Broadcast\"}],\n
[{\"text\": \"/start\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def _earn_rows(page,
uid, users_d):\n tasks =
_tasks()\n rec2 = _urec(users_d,
uid)\n active = []\n for tid,
t in [Link]():\n if not
[Link](\"active\"):\n
continue\n if
str([Link](\"owner\")) ==
str(uid):\n
continue\n if tid in
[Link](\"completed\",
[]):\n continue\n
if int([Link](\"completed\", 0)) >=
int([Link](\"slots\", 0)):\n
continue\n [Link]((tid,
t))\n [Link](key=lambda x: -
float(x[1].get(\"reward\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(active) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
active[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"available tasks\") + \" \" + BUL,
LN, \"\"]\n rows = []\n if
not chunk:\n
[Link](_sc(\"no tasks available right
now. check back later.\"))\n
else:\n for tid, t in
chunk:\n remaining =
int([Link](\"slots\", 0)) -
int([Link](\"completed\",
0))\n [Link](BUL + \"
<b>\" + [Link](\"link\", \"\") + \"</b>\\n
\" + _sc(\"reward\") + \": <b>\" +
_fmt([Link](\"reward\")) + \"</b> \" +
_sc(\"coin\") + \" \" + ARR + \" \" +
_sc(\"left\") + \": \" +
str(remaining))\n
[Link]([{\"text\": _sc(\"join &
verify\") + \" - \" + [Link](\"link\",
\"\").replace(\"[Link] \"@\"),
\"callback_data\": \"earn_join_\" +
tid}])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"earn_page_\" + str(page - 1)})\n
if page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"earn_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def _mytask_rows(page,
uid):\n tasks = _tasks()\n
mine = [(tid, t) for tid, t in
[Link]() if str([Link](\"owner\")) ==
str(uid)]\n [Link](key=lambda x:
-int(x[1].get(\"created_at\", 0)))\n
per_page = 4\n total_pages = max(1,
(len(mine) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
mine[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"my tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"you
have not created any task yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"status\") + \": \" + status_txt + \"
\" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \"\\n \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
toggle_txt = _sc(\"pause\") if
[Link](\"active\") else
_sc(\"resume\")\n
[Link]([\n
{\"text\": toggle_txt, \"callback_data\":
\"myt_toggle_\" +
tid},\n {\"text\":
_sc(\"delete\"), \"callback_data\":
\"myt_del_\" + tid}\n
])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"myt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"myt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def
_admin_tasks_rows(page):\n tasks =
_tasks()\n items =
list([Link]())\n
[Link](key=lambda x: -
int(x[1].get(\"created_at\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(items) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
items[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"manage tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"no
tasks created yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"owner\") + \": <code>\" +
str([Link](\"owner\")) + \"</code> \" +
_sc(\"status\") + \": \" + status_txt +
\"\\n \" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \" \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
[Link]([{\"text\": _sc(\"remove
task\") + \" #\" + tid, \"callback_data\":
\"adt_del_\" + tid}])\n nav =
[]\n if page > 0:\n
[Link]({\"text\": \"< \" +
_sc(\"prev\"), \"callback_data\":
\"adt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"adt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n u =
str(message.from_user.id)\n if not
_is_admin(u):\n
[Link](_sc(\"access denied.\"),
parse_mode=\"html\")\n else:\n
new_id = str(msg).strip()\n admins =
[Link](\"admins\")\n if not
admins:\n admins = []\n
if new_id in admins:\n
[Link](_sc(\"that user is already
an admin.\"), parse_mode=\"html\")\n
else:\n
[Link](new_id)\n
[Link](\"admins\",
admins)\n
[Link](_sc(\"user\") + \" <code>\"
+ new_id + \"</code> \" + _sc(\"is now an
admin.\"),
parse_mode=\"html\")\n
try:\n
[Link](chat_id=int(new_id),
text=_sc(\"you have been made an admin of
this bot.\"),
parse_mode=\"html\")\n except
Exception:\n pass\n\nexcept
Exception as e:\n
[Link](chat_id=int(u),
text=\"Error: \" + str(e))\n",
"created_at": "2026-07-28 09:20:40",
"folder": "",
"last_updated": "2026-07-28
09:20:40",
"pinned": false
},
{
"bot": "94886904",
"command": "START EARNING",
"admin_only": false,
"code": "try:\n def
_sc(t):\n m =
{'a':'ᴀ','b':'ʙ','c':'ᴄ','d':'ᴅ','e':'ᴇ','f
':'ꜰ','g':'ɢ','h':'ʜ','i':'ɪ','j':'ᴊ','k':'ᴋ
','l':'ʟ','m':'ᴍ','n':'ɴ','o':'ᴏ','p':'ᴘ','
q':'ǫ','r':'ʀ','s':'ꜱ','t':'ᴛ','u':'ᴜ','v':
'ᴠ','w':'ᴡ','x':'x','y':'ʏ','z':'ᴢ'}\n
out = \"\"\n for ch in
str(t):\n low =
[Link]()\n out += m[low] if
low in m else ch\n return out\n\n
LN = \"─\" * 20\n BUL = \"•\"\n ARR =
\"→\"\n\n def _users():\n d =
[Link](\"users\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_users(d):\n
[Link](\"users\", d)\n\n def
_urec(d, uid):\n if uid not in
d:\n d[uid] = {\n
\"balance\": 0.0,\n
\"total_refs\": 0,\n
\"banned\": False,\n
\"wallet\": \"\",\n
\"last_bonus\": 0,\n
\"referred_by\": None,\n
\"joined\": False,\n
\"joined_at\":
int([Link]()),\n
\"completed\": []\n }\n
if \"completed\" not in
d[uid]:\n d[uid][\"completed\"]
= []\n return d[uid]\n\n def
_settings():\n s =
[Link](\"settings\")\n if not
isinstance(s, dict):\n s =
{}\n [Link](\"ref_amount\",
1.0)\n [Link](\"daily_bonus\",
1.0)\n
[Link](\"min_task_reward\",
1.0)\n
[Link](\"min_withdraw\",
10.0)\n
[Link](\"bonus_hours\", 24)\n
return s\n\n def
_save_settings(s):\n
[Link](\"settings\", s)\n\n def
_is_admin(uid):\n admins =
[Link](\"admins\")\n if not
admins:\n admins = []\n
return str(uid) in admins\n\n def
_tasks():\n d =
[Link](\"tasks\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_tasks(d):\n
[Link](\"tasks\", d)\n\n def
_new_task_id():\n n =
[Link](\"task_counter\")\n n =
int(n) + 1 if n else 1\n
[Link](\"task_counter\", n)\n
return str(n)\n\n def
_norm_channel(raw):\n t =
str(raw).strip()\n t =
[Link](\"[Link]
\"\").replace(\"[Link] \"\")\n
if [Link](\"[Link]/\"):\n t
= t[5:]\n if
[Link](\"@\"):\n t =
t[1:]\n t = [Link](\"?\")
[0].split(\"/\")[0].strip()\n return
t\n\n def
_check_bot_admin(username):\n
try:\n admins =
[Link](chat_id=\"@\" +
username)\n except Exception as
e:\n return False,
str(e)\n for a in
admins:\n try:\n
member = [Link] if hasattr(a, \"user\")
else [Link](\"user\", {})\n
mid = [Link] if hasattr(member, \"id\")
else [Link](\"id\")\n except
Exception:\n mid =
None\n if mid is not None and
str(mid) == str(bot_id):\n
return True, \"\"\n return False,
\"not_admin\"\n\n def _fmt(n):\n
try:\n f = float(n)\n
if f == int(f):\n return
str(int(f))\n return
str(round(f, 2))\n except
Exception:\n return
str(n)\n\n def _wreqs():\n d =
[Link](\"withdrawals\")\n
return d if isinstance(d, dict) else
{}\n\n def _save_wreqs(d):\n
[Link](\"withdrawals\", d)\n\n def
_main_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"START
EARNING\"}],\n [{\"text\":
\"CREATE TASK\"}, {\"text\": \"MY
TASK\"}],\n [{\"text\":
\"INVITE FRIENDS\"}, {\"text\": \"MY
BALANCE\"}],\n [{\"text\":
\"DAILY BONUS\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def
_admin_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"Manage
Tasks\"}],\n [{\"text\":
\"Set Refer Reward\"}, {\"text\": \"Set
Daily Bonus\"}],\n
[{\"text\": \"Min Task Reward\"},
{\"text\": \"Withdraw
Requests\"}],\n [{\"text\":
\"Add Balance\"}, {\"text\": \"Remove
Balance\"}],\n [{\"text\":
\"Ban User\"}, {\"text\": \"User
Details\"}],\n [{\"text\":
\"Stats\"}, {\"text\":
\"Broadcast\"}],\n
[{\"text\": \"/start\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def _earn_rows(page,
uid, users_d):\n tasks =
_tasks()\n rec2 = _urec(users_d,
uid)\n active = []\n for tid,
t in [Link]():\n if not
[Link](\"active\"):\n
continue\n if
str([Link](\"owner\")) ==
str(uid):\n
continue\n if tid in
[Link](\"completed\",
[]):\n continue\n
if int([Link](\"completed\", 0)) >=
int([Link](\"slots\", 0)):\n
continue\n [Link]((tid,
t))\n [Link](key=lambda x: -
float(x[1].get(\"reward\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(active) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
active[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"available tasks\") + \" \" + BUL,
LN, \"\"]\n rows = []\n if
not chunk:\n
[Link](_sc(\"no tasks available right
now. check back later.\"))\n
else:\n for tid, t in
chunk:\n remaining =
int([Link](\"slots\", 0)) -
int([Link](\"completed\",
0))\n [Link](BUL + \"
<b>\" + [Link](\"link\", \"\") + \"</b>\\n
\" + _sc(\"reward\") + \": <b>\" +
_fmt([Link](\"reward\")) + \"</b> \" +
_sc(\"coin\") + \" \" + ARR + \" \" +
_sc(\"left\") + \": \" +
str(remaining))\n
[Link]([{\"text\": _sc(\"join &
verify\") + \" - \" + [Link](\"link\",
\"\").replace(\"[Link] \"@\"),
\"callback_data\": \"earn_join_\" +
tid}])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"earn_page_\" + str(page - 1)})\n
if page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"earn_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def _mytask_rows(page,
uid):\n tasks = _tasks()\n
mine = [(tid, t) for tid, t in
[Link]() if str([Link](\"owner\")) ==
str(uid)]\n [Link](key=lambda x:
-int(x[1].get(\"created_at\", 0)))\n
per_page = 4\n total_pages = max(1,
(len(mine) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
mine[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"my tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"you
have not created any task yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"status\") + \": \" + status_txt + \"
\" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \"\\n \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
toggle_txt = _sc(\"pause\") if
[Link](\"active\") else
_sc(\"resume\")\n
[Link]([\n
{\"text\": toggle_txt, \"callback_data\":
\"myt_toggle_\" +
tid},\n {\"text\":
_sc(\"delete\"), \"callback_data\":
\"myt_del_\" + tid}\n
])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"myt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"myt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def
_admin_tasks_rows(page):\n tasks =
_tasks()\n items =
list([Link]())\n
[Link](key=lambda x: -
int(x[1].get(\"created_at\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(items) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
items[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"manage tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"no
tasks created yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"owner\") + \": <code>\" +
str([Link](\"owner\")) + \"</code> \" +
_sc(\"status\") + \": \" + status_txt +
\"\\n \" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \" \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
[Link]([{\"text\": _sc(\"remove
task\") + \" #\" + tid, \"callback_data\":
\"adt_del_\" + tid}])\n nav =
[]\n if page > 0:\n
[Link]({\"text\": \"< \" +
_sc(\"prev\"), \"callback_data\":
\"adt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"adt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n u =
str(message.from_user.id)\n users =
_users()\n rec = _urec(users, u)\n if
[Link](\"banned\"):\n
[Link](_sc(\"you are banned from
using this bot.\"),
parse_mode=\"html\")\n else:\n
text, kb = _earn_rows(0, u, users)\n
[Link](text, parse_mode=\"html\",
reply_markup=kb)\n\nexcept Exception as
e:\n [Link](chat_id=int(u),
text=\"Error: \" + str(e))\n",
"created_at": "2026-07-28 09:20:40",
"folder": "",
"last_updated": "2026-07-28
09:20:40",
"pinned": false
},
{
"bot": "94886904",
"command": "CREATE TASK",
"admin_only": false,
"code": "try:\n def
_sc(t):\n m =
{'a':'ᴀ','b':'ʙ','c':'ᴄ','d':'ᴅ','e':'ᴇ','f
':'ꜰ','g':'ɢ','h':'ʜ','i':'ɪ','j':'ᴊ','k':'ᴋ
','l':'ʟ','m':'ᴍ','n':'ɴ','o':'ᴏ','p':'ᴘ','
q':'ǫ','r':'ʀ','s':'ꜱ','t':'ᴛ','u':'ᴜ','v':
'ᴠ','w':'ᴡ','x':'x','y':'ʏ','z':'ᴢ'}\n
out = \"\"\n for ch in
str(t):\n low =
[Link]()\n out += m[low] if
low in m else ch\n return out\n\n
LN = \"─\" * 20\n BUL = \"•\"\n ARR =
\"→\"\n\n def _users():\n d =
[Link](\"users\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_users(d):\n
[Link](\"users\", d)\n\n def
_urec(d, uid):\n if uid not in
d:\n d[uid] = {\n
\"balance\": 0.0,\n
\"total_refs\": 0,\n
\"banned\": False,\n
\"wallet\": \"\",\n
\"last_bonus\": 0,\n
\"referred_by\": None,\n
\"joined\": False,\n
\"joined_at\":
int([Link]()),\n
\"completed\": []\n }\n
if \"completed\" not in
d[uid]:\n d[uid][\"completed\"]
= []\n return d[uid]\n\n def
_settings():\n s =
[Link](\"settings\")\n if not
isinstance(s, dict):\n s =
{}\n [Link](\"ref_amount\",
1.0)\n [Link](\"daily_bonus\",
1.0)\n
[Link](\"min_task_reward\",
1.0)\n
[Link](\"min_withdraw\",
10.0)\n
[Link](\"bonus_hours\", 24)\n
return s\n\n def
_save_settings(s):\n
[Link](\"settings\", s)\n\n def
_is_admin(uid):\n admins =
[Link](\"admins\")\n if not
admins:\n admins = []\n
return str(uid) in admins\n\n def
_tasks():\n d =
[Link](\"tasks\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_tasks(d):\n
[Link](\"tasks\", d)\n\n def
_new_task_id():\n n =
[Link](\"task_counter\")\n n =
int(n) + 1 if n else 1\n
[Link](\"task_counter\", n)\n
return str(n)\n\n def
_norm_channel(raw):\n t =
str(raw).strip()\n t =
[Link](\"[Link]
\"\").replace(\"[Link] \"\")\n
if [Link](\"[Link]/\"):\n t
= t[5:]\n if
[Link](\"@\"):\n t =
t[1:]\n t = [Link](\"?\")
[0].split(\"/\")[0].strip()\n return
t\n\n def
_check_bot_admin(username):\n
try:\n admins =
[Link](chat_id=\"@\" +
username)\n except Exception as
e:\n return False,
str(e)\n for a in
admins:\n try:\n
member = [Link] if hasattr(a, \"user\")
else [Link](\"user\", {})\n
mid = [Link] if hasattr(member, \"id\")
else [Link](\"id\")\n except
Exception:\n mid =
None\n if mid is not None and
str(mid) == str(bot_id):\n
return True, \"\"\n return False,
\"not_admin\"\n\n def _fmt(n):\n
try:\n f = float(n)\n
if f == int(f):\n return
str(int(f))\n return
str(round(f, 2))\n except
Exception:\n return
str(n)\n\n def _wreqs():\n d =
[Link](\"withdrawals\")\n
return d if isinstance(d, dict) else
{}\n\n def _save_wreqs(d):\n
[Link](\"withdrawals\", d)\n\n def
_main_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"START
EARNING\"}],\n [{\"text\":
\"CREATE TASK\"}, {\"text\": \"MY
TASK\"}],\n [{\"text\":
\"INVITE FRIENDS\"}, {\"text\": \"MY
BALANCE\"}],\n [{\"text\":
\"DAILY BONUS\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def
_admin_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"Manage
Tasks\"}],\n [{\"text\":
\"Set Refer Reward\"}, {\"text\": \"Set
Daily Bonus\"}],\n
[{\"text\": \"Min Task Reward\"},
{\"text\": \"Withdraw
Requests\"}],\n [{\"text\":
\"Add Balance\"}, {\"text\": \"Remove
Balance\"}],\n [{\"text\":
\"Ban User\"}, {\"text\": \"User
Details\"}],\n [{\"text\":
\"Stats\"}, {\"text\":
\"Broadcast\"}],\n
[{\"text\": \"/start\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def _earn_rows(page,
uid, users_d):\n tasks =
_tasks()\n rec2 = _urec(users_d,
uid)\n active = []\n for tid,
t in [Link]():\n if not
[Link](\"active\"):\n
continue\n if
str([Link](\"owner\")) ==
str(uid):\n
continue\n if tid in
[Link](\"completed\",
[]):\n continue\n
if int([Link](\"completed\", 0)) >=
int([Link](\"slots\", 0)):\n
continue\n [Link]((tid,
t))\n [Link](key=lambda x: -
float(x[1].get(\"reward\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(active) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
active[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"available tasks\") + \" \" + BUL,
LN, \"\"]\n rows = []\n if
not chunk:\n
[Link](_sc(\"no tasks available right
now. check back later.\"))\n
else:\n for tid, t in
chunk:\n remaining =
int([Link](\"slots\", 0)) -
int([Link](\"completed\",
0))\n [Link](BUL + \"
<b>\" + [Link](\"link\", \"\") + \"</b>\\n
\" + _sc(\"reward\") + \": <b>\" +
_fmt([Link](\"reward\")) + \"</b> \" +
_sc(\"coin\") + \" \" + ARR + \" \" +
_sc(\"left\") + \": \" +
str(remaining))\n
[Link]([{\"text\": _sc(\"join &
verify\") + \" - \" + [Link](\"link\",
\"\").replace(\"[Link] \"@\"),
\"callback_data\": \"earn_join_\" +
tid}])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"earn_page_\" + str(page - 1)})\n
if page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"earn_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def _mytask_rows(page,
uid):\n tasks = _tasks()\n
mine = [(tid, t) for tid, t in
[Link]() if str([Link](\"owner\")) ==
str(uid)]\n [Link](key=lambda x:
-int(x[1].get(\"created_at\", 0)))\n
per_page = 4\n total_pages = max(1,
(len(mine) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
mine[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"my tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"you
have not created any task yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"status\") + \": \" + status_txt + \"
\" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \"\\n \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
toggle_txt = _sc(\"pause\") if
[Link](\"active\") else
_sc(\"resume\")\n
[Link]([\n
{\"text\": toggle_txt, \"callback_data\":
\"myt_toggle_\" +
tid},\n {\"text\":
_sc(\"delete\"), \"callback_data\":
\"myt_del_\" + tid}\n
])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"myt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"myt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def
_admin_tasks_rows(page):\n tasks =
_tasks()\n items =
list([Link]())\n
[Link](key=lambda x: -
int(x[1].get(\"created_at\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(items) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
items[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"manage tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"no
tasks created yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"owner\") + \": <code>\" +
str([Link](\"owner\")) + \"</code> \" +
_sc(\"status\") + \": \" + status_txt +
\"\\n \" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \" \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
[Link]([{\"text\": _sc(\"remove
task\") + \" #\" + tid, \"callback_data\":
\"adt_del_\" + tid}])\n nav =
[]\n if page > 0:\n
[Link]({\"text\": \"< \" +
_sc(\"prev\"), \"callback_data\":
\"adt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"adt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n u =
str(message.from_user.id)\n users =
_users()\n rec = _urec(users, u)\n if
[Link](\"banned\"):\n
[Link](_sc(\"you are banned from
using this bot.\"),
parse_mode=\"html\")\n else:\n
[Link](\n LN + \"\\n\"
+ BUL + \" \" + _sc(\"create task\") + \"
\" + BUL + \"\\n\" + LN +
\"\\n\\n\"\n + _sc(\"send your
public channel or group link, or
username.\") + \"\\n\"\n +
_sc(\"example\") + \":
@mychannel\\n\\n\"\n + _sc(\"the
bot must be admin in that channel or group
before you continue.\") + \"\\n\\n\" +
LN,\n
parse_mode=\"html\"\n )\n
[Link](\"task_channel_input\
")\n\nexcept Exception as e:\n
[Link](chat_id=int(u),
text=\"Error: \" + str(e))\n",
"created_at": "2026-07-28 09:20:40",
"folder": "",
"last_updated": "2026-07-28
09:20:40",
"pinned": false
},
{
"bot": "94886904",
"command": "task_channel_input",
"admin_only": false,
"code": "try:\n def
_sc(t):\n m =
{'a':'ᴀ','b':'ʙ','c':'ᴄ','d':'ᴅ','e':'ᴇ','f
':'ꜰ','g':'ɢ','h':'ʜ','i':'ɪ','j':'ᴊ','k':'ᴋ
','l':'ʟ','m':'ᴍ','n':'ɴ','o':'ᴏ','p':'ᴘ','
q':'ǫ','r':'ʀ','s':'ꜱ','t':'ᴛ','u':'ᴜ','v':
'ᴠ','w':'ᴡ','x':'x','y':'ʏ','z':'ᴢ'}\n
out = \"\"\n for ch in
str(t):\n low =
[Link]()\n out += m[low] if
low in m else ch\n return out\n\n
LN = \"─\" * 20\n BUL = \"•\"\n ARR =
\"→\"\n\n def _users():\n d =
[Link](\"users\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_users(d):\n
[Link](\"users\", d)\n\n def
_urec(d, uid):\n if uid not in
d:\n d[uid] = {\n
\"balance\": 0.0,\n
\"total_refs\": 0,\n
\"banned\": False,\n
\"wallet\": \"\",\n
\"last_bonus\": 0,\n
\"referred_by\": None,\n
\"joined\": False,\n
\"joined_at\":
int([Link]()),\n
\"completed\": []\n }\n
if \"completed\" not in
d[uid]:\n d[uid][\"completed\"]
= []\n return d[uid]\n\n def
_settings():\n s =
[Link](\"settings\")\n if not
isinstance(s, dict):\n s =
{}\n [Link](\"ref_amount\",
1.0)\n [Link](\"daily_bonus\",
1.0)\n
[Link](\"min_task_reward\",
1.0)\n
[Link](\"min_withdraw\",
10.0)\n
[Link](\"bonus_hours\", 24)\n
return s\n\n def
_save_settings(s):\n
[Link](\"settings\", s)\n\n def
_is_admin(uid):\n admins =
[Link](\"admins\")\n if not
admins:\n admins = []\n
return str(uid) in admins\n\n def
_tasks():\n d =
[Link](\"tasks\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_tasks(d):\n
[Link](\"tasks\", d)\n\n def
_new_task_id():\n n =
[Link](\"task_counter\")\n n =
int(n) + 1 if n else 1\n
[Link](\"task_counter\", n)\n
return str(n)\n\n def
_norm_channel(raw):\n t =
str(raw).strip()\n t =
[Link](\"[Link]
\"\").replace(\"[Link] \"\")\n
if [Link](\"[Link]/\"):\n t
= t[5:]\n if
[Link](\"@\"):\n t =
t[1:]\n t = [Link](\"?\")
[0].split(\"/\")[0].strip()\n return
t\n\n def
_check_bot_admin(username):\n
try:\n admins =
[Link](chat_id=\"@\" +
username)\n except Exception as
e:\n return False,
str(e)\n for a in
admins:\n try:\n
member = [Link] if hasattr(a, \"user\")
else [Link](\"user\", {})\n
mid = [Link] if hasattr(member, \"id\")
else [Link](\"id\")\n except
Exception:\n mid =
None\n if mid is not None and
str(mid) == str(bot_id):\n
return True, \"\"\n return False,
\"not_admin\"\n\n def _fmt(n):\n
try:\n f = float(n)\n
if f == int(f):\n return
str(int(f))\n return
str(round(f, 2))\n except
Exception:\n return
str(n)\n\n def _wreqs():\n d =
[Link](\"withdrawals\")\n
return d if isinstance(d, dict) else
{}\n\n def _save_wreqs(d):\n
[Link](\"withdrawals\", d)\n\n def
_main_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"START
EARNING\"}],\n [{\"text\":
\"CREATE TASK\"}, {\"text\": \"MY
TASK\"}],\n [{\"text\":
\"INVITE FRIENDS\"}, {\"text\": \"MY
BALANCE\"}],\n [{\"text\":
\"DAILY BONUS\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def
_admin_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"Manage
Tasks\"}],\n [{\"text\":
\"Set Refer Reward\"}, {\"text\": \"Set
Daily Bonus\"}],\n
[{\"text\": \"Min Task Reward\"},
{\"text\": \"Withdraw
Requests\"}],\n [{\"text\":
\"Add Balance\"}, {\"text\": \"Remove
Balance\"}],\n [{\"text\":
\"Ban User\"}, {\"text\": \"User
Details\"}],\n [{\"text\":
\"Stats\"}, {\"text\":
\"Broadcast\"}],\n
[{\"text\": \"/start\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def _earn_rows(page,
uid, users_d):\n tasks =
_tasks()\n rec2 = _urec(users_d,
uid)\n active = []\n for tid,
t in [Link]():\n if not
[Link](\"active\"):\n
continue\n if
str([Link](\"owner\")) ==
str(uid):\n
continue\n if tid in
[Link](\"completed\",
[]):\n continue\n
if int([Link](\"completed\", 0)) >=
int([Link](\"slots\", 0)):\n
continue\n [Link]((tid,
t))\n [Link](key=lambda x: -
float(x[1].get(\"reward\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(active) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
active[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"available tasks\") + \" \" + BUL,
LN, \"\"]\n rows = []\n if
not chunk:\n
[Link](_sc(\"no tasks available right
now. check back later.\"))\n
else:\n for tid, t in
chunk:\n remaining =
int([Link](\"slots\", 0)) -
int([Link](\"completed\",
0))\n [Link](BUL + \"
<b>\" + [Link](\"link\", \"\") + \"</b>\\n
\" + _sc(\"reward\") + \": <b>\" +
_fmt([Link](\"reward\")) + \"</b> \" +
_sc(\"coin\") + \" \" + ARR + \" \" +
_sc(\"left\") + \": \" +
str(remaining))\n
[Link]([{\"text\": _sc(\"join &
verify\") + \" - \" + [Link](\"link\",
\"\").replace(\"[Link] \"@\"),
\"callback_data\": \"earn_join_\" +
tid}])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"earn_page_\" + str(page - 1)})\n
if page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"earn_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def _mytask_rows(page,
uid):\n tasks = _tasks()\n
mine = [(tid, t) for tid, t in
[Link]() if str([Link](\"owner\")) ==
str(uid)]\n [Link](key=lambda x:
-int(x[1].get(\"created_at\", 0)))\n
per_page = 4\n total_pages = max(1,
(len(mine) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
mine[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"my tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"you
have not created any task yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"status\") + \": \" + status_txt + \"
\" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \"\\n \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
toggle_txt = _sc(\"pause\") if
[Link](\"active\") else
_sc(\"resume\")\n
[Link]([\n
{\"text\": toggle_txt, \"callback_data\":
\"myt_toggle_\" +
tid},\n {\"text\":
_sc(\"delete\"), \"callback_data\":
\"myt_del_\" + tid}\n
])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"myt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"myt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def
_admin_tasks_rows(page):\n tasks =
_tasks()\n items =
list([Link]())\n
[Link](key=lambda x: -
int(x[1].get(\"created_at\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(items) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
items[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"manage tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"no
tasks created yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"owner\") + \": <code>\" +
str([Link](\"owner\")) + \"</code> \" +
_sc(\"status\") + \": \" + status_txt +
\"\\n \" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \" \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
[Link]([{\"text\": _sc(\"remove
task\") + \" #\" + tid, \"callback_data\":
\"adt_del_\" + tid}])\n nav =
[]\n if page > 0:\n
[Link]({\"text\": \"< \" +
_sc(\"prev\"), \"callback_data\":
\"adt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"adt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n u =
str(message.from_user.id)\n username =
_norm_channel(msg)\n if not username or
[Link](\"+\") or \"joinchat\"
in [Link]():\n
[Link](_sc(\"invalid link. send a
public channel or group username, for
example @mychannel\"),
parse_mode=\"html\")\n
[Link](\"task_channel_input\
")\n else:\n ok, err =
_check_bot_admin(username)\n if not
ok:\n
[Link](\n LN +
\"\\n\" + _sc(\"bot is not admin there\") +
\"\\n\" + LN + \"\\n\\n\"\n
+ _sc(\"please make this bot an admin in
@\") + username + \" \" + _sc(\"first, then
send the link again.\") + \"\\n\\n\" +
LN,\n
parse_mode=\"html\"\n
)\n
[Link](\"task_channel_input\
")\n else:\n
[Link](\"tmp_task_\" + u,
{\"username\": username, \"link\":
\"[Link] + username})\n
[Link](\n LN +
\"\\n\" + _sc(\"bot verified as admin\") +
\"\\n\" + LN + \"\\n\\n\"\n
+ _sc(\"now send the reward per member in
coin. minimum 1 coin.\") +
\"\\n\"\n + _sc(\"higher
reward makes your task appear higher in the
task list.\") + \"\\n\\n\" +
LN,\n
parse_mode=\"html\"\n
)\n
[Link](\"task_reward_input\"
)\n\nexcept Exception as e:\n
[Link](chat_id=int(u),
text=\"Error: \" + str(e))\n",
"created_at": "2026-07-28 09:20:40",
"folder": "",
"last_updated": "2026-07-28
09:20:40",
"pinned": false
},
{
"bot": "94886904",
"command": "task_reward_input",
"admin_only": false,
"code": "try:\n def
_sc(t):\n m =
{'a':'ᴀ','b':'ʙ','c':'ᴄ','d':'ᴅ','e':'ᴇ','f
':'ꜰ','g':'ɢ','h':'ʜ','i':'ɪ','j':'ᴊ','k':'ᴋ
','l':'ʟ','m':'ᴍ','n':'ɴ','o':'ᴏ','p':'ᴘ','
q':'ǫ','r':'ʀ','s':'ꜱ','t':'ᴛ','u':'ᴜ','v':
'ᴠ','w':'ᴡ','x':'x','y':'ʏ','z':'ᴢ'}\n
out = \"\"\n for ch in
str(t):\n low =
[Link]()\n out += m[low] if
low in m else ch\n return out\n\n
LN = \"─\" * 20\n BUL = \"•\"\n ARR =
\"→\"\n\n def _users():\n d =
[Link](\"users\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_users(d):\n
[Link](\"users\", d)\n\n def
_urec(d, uid):\n if uid not in
d:\n d[uid] = {\n
\"balance\": 0.0,\n
\"total_refs\": 0,\n
\"banned\": False,\n
\"wallet\": \"\",\n
\"last_bonus\": 0,\n
\"referred_by\": None,\n
\"joined\": False,\n
\"joined_at\":
int([Link]()),\n
\"completed\": []\n }\n
if \"completed\" not in
d[uid]:\n d[uid][\"completed\"]
= []\n return d[uid]\n\n def
_settings():\n s =
[Link](\"settings\")\n if not
isinstance(s, dict):\n s =
{}\n [Link](\"ref_amount\",
1.0)\n [Link](\"daily_bonus\",
1.0)\n
[Link](\"min_task_reward\",
1.0)\n
[Link](\"min_withdraw\",
10.0)\n
[Link](\"bonus_hours\", 24)\n
return s\n\n def
_save_settings(s):\n
[Link](\"settings\", s)\n\n def
_is_admin(uid):\n admins =
[Link](\"admins\")\n if not
admins:\n admins = []\n
return str(uid) in admins\n\n def
_tasks():\n d =
[Link](\"tasks\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_tasks(d):\n
[Link](\"tasks\", d)\n\n def
_new_task_id():\n n =
[Link](\"task_counter\")\n n =
int(n) + 1 if n else 1\n
[Link](\"task_counter\", n)\n
return str(n)\n\n def
_norm_channel(raw):\n t =
str(raw).strip()\n t =
[Link](\"[Link]
\"\").replace(\"[Link] \"\")\n
if [Link](\"[Link]/\"):\n t
= t[5:]\n if
[Link](\"@\"):\n t =
t[1:]\n t = [Link](\"?\")
[0].split(\"/\")[0].strip()\n return
t\n\n def
_check_bot_admin(username):\n
try:\n admins =
[Link](chat_id=\"@\" +
username)\n except Exception as
e:\n return False,
str(e)\n for a in
admins:\n try:\n
member = [Link] if hasattr(a, \"user\")
else [Link](\"user\", {})\n
mid = [Link] if hasattr(member, \"id\")
else [Link](\"id\")\n except
Exception:\n mid =
None\n if mid is not None and
str(mid) == str(bot_id):\n
return True, \"\"\n return False,
\"not_admin\"\n\n def _fmt(n):\n
try:\n f = float(n)\n
if f == int(f):\n return
str(int(f))\n return
str(round(f, 2))\n except
Exception:\n return
str(n)\n\n def _wreqs():\n d =
[Link](\"withdrawals\")\n
return d if isinstance(d, dict) else
{}\n\n def _save_wreqs(d):\n
[Link](\"withdrawals\", d)\n\n def
_main_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"START
EARNING\"}],\n [{\"text\":
\"CREATE TASK\"}, {\"text\": \"MY
TASK\"}],\n [{\"text\":
\"INVITE FRIENDS\"}, {\"text\": \"MY
BALANCE\"}],\n [{\"text\":
\"DAILY BONUS\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def
_admin_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"Manage
Tasks\"}],\n [{\"text\":
\"Set Refer Reward\"}, {\"text\": \"Set
Daily Bonus\"}],\n
[{\"text\": \"Min Task Reward\"},
{\"text\": \"Withdraw
Requests\"}],\n [{\"text\":
\"Add Balance\"}, {\"text\": \"Remove
Balance\"}],\n [{\"text\":
\"Ban User\"}, {\"text\": \"User
Details\"}],\n [{\"text\":
\"Stats\"}, {\"text\":
\"Broadcast\"}],\n
[{\"text\": \"/start\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def _earn_rows(page,
uid, users_d):\n tasks =
_tasks()\n rec2 = _urec(users_d,
uid)\n active = []\n for tid,
t in [Link]():\n if not
[Link](\"active\"):\n
continue\n if
str([Link](\"owner\")) ==
str(uid):\n
continue\n if tid in
[Link](\"completed\",
[]):\n continue\n
if int([Link](\"completed\", 0)) >=
int([Link](\"slots\", 0)):\n
continue\n [Link]((tid,
t))\n [Link](key=lambda x: -
float(x[1].get(\"reward\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(active) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
active[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"available tasks\") + \" \" + BUL,
LN, \"\"]\n rows = []\n if
not chunk:\n
[Link](_sc(\"no tasks available right
now. check back later.\"))\n
else:\n for tid, t in
chunk:\n remaining =
int([Link](\"slots\", 0)) -
int([Link](\"completed\",
0))\n [Link](BUL + \"
<b>\" + [Link](\"link\", \"\") + \"</b>\\n
\" + _sc(\"reward\") + \": <b>\" +
_fmt([Link](\"reward\")) + \"</b> \" +
_sc(\"coin\") + \" \" + ARR + \" \" +
_sc(\"left\") + \": \" +
str(remaining))\n
[Link]([{\"text\": _sc(\"join &
verify\") + \" - \" + [Link](\"link\",
\"\").replace(\"[Link] \"@\"),
\"callback_data\": \"earn_join_\" +
tid}])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"earn_page_\" + str(page - 1)})\n
if page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"earn_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def _mytask_rows(page,
uid):\n tasks = _tasks()\n
mine = [(tid, t) for tid, t in
[Link]() if str([Link](\"owner\")) ==
str(uid)]\n [Link](key=lambda x:
-int(x[1].get(\"created_at\", 0)))\n
per_page = 4\n total_pages = max(1,
(len(mine) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
mine[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"my tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"you
have not created any task yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"status\") + \": \" + status_txt + \"
\" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \"\\n \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
toggle_txt = _sc(\"pause\") if
[Link](\"active\") else
_sc(\"resume\")\n
[Link]([\n
{\"text\": toggle_txt, \"callback_data\":
\"myt_toggle_\" +
tid},\n {\"text\":
_sc(\"delete\"), \"callback_data\":
\"myt_del_\" + tid}\n
])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"myt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"myt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def
_admin_tasks_rows(page):\n tasks =
_tasks()\n items =
list([Link]())\n
[Link](key=lambda x: -
int(x[1].get(\"created_at\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(items) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
items[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"manage tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"no
tasks created yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"owner\") + \": <code>\" +
str([Link](\"owner\")) + \"</code> \" +
_sc(\"status\") + \": \" + status_txt +
\"\\n \" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \" \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
[Link]([{\"text\": _sc(\"remove
task\") + \" #\" + tid, \"callback_data\":
\"adt_del_\" + tid}])\n nav =
[]\n if page > 0:\n
[Link]({\"text\": \"< \" +
_sc(\"prev\"), \"callback_data\":
\"adt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"adt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n u =
str(message.from_user.id)\n settings =
_settings()\n min_reward =
float([Link](\"min_task_reward\",
1.0))\n try:\n reward =
float(msg)\n except ValueError:\n
reward = -1\n if reward <
min_reward:\n
[Link](_sc(\"please send a valid
number, minimum\") + \" \" +
_fmt(min_reward) + \" \" + _sc(\"coin.\"),
parse_mode=\"html\")\n
[Link](\"task_reward_input\"
)\n else:\n tmp =
[Link](\"tmp_task_\" + u) or
{}\n tmp[\"reward\"] =
reward\n [Link](\"tmp_task_\"
+ u, tmp)\n
[Link](\n LN + \"\\n\"
+ _sc(\"set task slots\") + \"\\n\" + LN +
\"\\n\\n\"\n + _sc(\"how many
members should complete this task? send a
number.\") + \"\\n\"\n +
_sc(\"total cost\") + \" = \" +
_sc(\"slots\") + \" x \" + _sc(\"reward\")
+ \"\\n\\n\" + LN,\n
parse_mode=\"html\"\n )\n
[Link](\"task_limit_input\")
\n\nexcept Exception as e:\n
[Link](chat_id=int(u),
text=\"Error: \" + str(e))\n",
"created_at": "2026-07-28 09:20:40",
"folder": "",
"last_updated": "2026-07-28
09:20:40",
"pinned": false
},
{
"bot": "94886904",
"command": "task_limit_input",
"admin_only": false,
"code": "try:\n def
_sc(t):\n m =
{'a':'ᴀ','b':'ʙ','c':'ᴄ','d':'ᴅ','e':'ᴇ','f
':'ꜰ','g':'ɢ','h':'ʜ','i':'ɪ','j':'ᴊ','k':'ᴋ
','l':'ʟ','m':'ᴍ','n':'ɴ','o':'ᴏ','p':'ᴘ','
q':'ǫ','r':'ʀ','s':'ꜱ','t':'ᴛ','u':'ᴜ','v':
'ᴠ','w':'ᴡ','x':'x','y':'ʏ','z':'ᴢ'}\n
out = \"\"\n for ch in
str(t):\n low =
[Link]()\n out += m[low] if
low in m else ch\n return out\n\n
LN = \"─\" * 20\n BUL = \"•\"\n ARR =
\"→\"\n\n def _users():\n d =
[Link](\"users\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_users(d):\n
[Link](\"users\", d)\n\n def
_urec(d, uid):\n if uid not in
d:\n d[uid] = {\n
\"balance\": 0.0,\n
\"total_refs\": 0,\n
\"banned\": False,\n
\"wallet\": \"\",\n
\"last_bonus\": 0,\n
\"referred_by\": None,\n
\"joined\": False,\n
\"joined_at\":
int([Link]()),\n
\"completed\": []\n }\n
if \"completed\" not in
d[uid]:\n d[uid][\"completed\"]
= []\n return d[uid]\n\n def
_settings():\n s =
[Link](\"settings\")\n if not
isinstance(s, dict):\n s =
{}\n [Link](\"ref_amount\",
1.0)\n [Link](\"daily_bonus\",
1.0)\n
[Link](\"min_task_reward\",
1.0)\n
[Link](\"min_withdraw\",
10.0)\n
[Link](\"bonus_hours\", 24)\n
return s\n\n def
_save_settings(s):\n
[Link](\"settings\", s)\n\n def
_is_admin(uid):\n admins =
[Link](\"admins\")\n if not
admins:\n admins = []\n
return str(uid) in admins\n\n def
_tasks():\n d =
[Link](\"tasks\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_tasks(d):\n
[Link](\"tasks\", d)\n\n def
_new_task_id():\n n =
[Link](\"task_counter\")\n n =
int(n) + 1 if n else 1\n
[Link](\"task_counter\", n)\n
return str(n)\n\n def
_norm_channel(raw):\n t =
str(raw).strip()\n t =
[Link](\"[Link]
\"\").replace(\"[Link] \"\")\n
if [Link](\"[Link]/\"):\n t
= t[5:]\n if
[Link](\"@\"):\n t =
t[1:]\n t = [Link](\"?\")
[0].split(\"/\")[0].strip()\n return
t\n\n def
_check_bot_admin(username):\n
try:\n admins =
[Link](chat_id=\"@\" +
username)\n except Exception as
e:\n return False,
str(e)\n for a in
admins:\n try:\n
member = [Link] if hasattr(a, \"user\")
else [Link](\"user\", {})\n
mid = [Link] if hasattr(member, \"id\")
else [Link](\"id\")\n except
Exception:\n mid =
None\n if mid is not None and
str(mid) == str(bot_id):\n
return True, \"\"\n return False,
\"not_admin\"\n\n def _fmt(n):\n
try:\n f = float(n)\n
if f == int(f):\n return
str(int(f))\n return
str(round(f, 2))\n except
Exception:\n return
str(n)\n\n def _wreqs():\n d =
[Link](\"withdrawals\")\n
return d if isinstance(d, dict) else
{}\n\n def _save_wreqs(d):\n
[Link](\"withdrawals\", d)\n\n def
_main_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"START
EARNING\"}],\n [{\"text\":
\"CREATE TASK\"}, {\"text\": \"MY
TASK\"}],\n [{\"text\":
\"INVITE FRIENDS\"}, {\"text\": \"MY
BALANCE\"}],\n [{\"text\":
\"DAILY BONUS\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def
_admin_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"Manage
Tasks\"}],\n [{\"text\":
\"Set Refer Reward\"}, {\"text\": \"Set
Daily Bonus\"}],\n
[{\"text\": \"Min Task Reward\"},
{\"text\": \"Withdraw
Requests\"}],\n [{\"text\":
\"Add Balance\"}, {\"text\": \"Remove
Balance\"}],\n [{\"text\":
\"Ban User\"}, {\"text\": \"User
Details\"}],\n [{\"text\":
\"Stats\"}, {\"text\":
\"Broadcast\"}],\n
[{\"text\": \"/start\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def _earn_rows(page,
uid, users_d):\n tasks =
_tasks()\n rec2 = _urec(users_d,
uid)\n active = []\n for tid,
t in [Link]():\n if not
[Link](\"active\"):\n
continue\n if
str([Link](\"owner\")) ==
str(uid):\n
continue\n if tid in
[Link](\"completed\",
[]):\n continue\n
if int([Link](\"completed\", 0)) >=
int([Link](\"slots\", 0)):\n
continue\n [Link]((tid,
t))\n [Link](key=lambda x: -
float(x[1].get(\"reward\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(active) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
active[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"available tasks\") + \" \" + BUL,
LN, \"\"]\n rows = []\n if
not chunk:\n
[Link](_sc(\"no tasks available right
now. check back later.\"))\n
else:\n for tid, t in
chunk:\n remaining =
int([Link](\"slots\", 0)) -
int([Link](\"completed\",
0))\n [Link](BUL + \"
<b>\" + [Link](\"link\", \"\") + \"</b>\\n
\" + _sc(\"reward\") + \": <b>\" +
_fmt([Link](\"reward\")) + \"</b> \" +
_sc(\"coin\") + \" \" + ARR + \" \" +
_sc(\"left\") + \": \" +
str(remaining))\n
[Link]([{\"text\": _sc(\"join &
verify\") + \" - \" + [Link](\"link\",
\"\").replace(\"[Link] \"@\"),
\"callback_data\": \"earn_join_\" +
tid}])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"earn_page_\" + str(page - 1)})\n
if page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"earn_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def _mytask_rows(page,
uid):\n tasks = _tasks()\n
mine = [(tid, t) for tid, t in
[Link]() if str([Link](\"owner\")) ==
str(uid)]\n [Link](key=lambda x:
-int(x[1].get(\"created_at\", 0)))\n
per_page = 4\n total_pages = max(1,
(len(mine) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
mine[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"my tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"you
have not created any task yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"status\") + \": \" + status_txt + \"
\" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \"\\n \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
toggle_txt = _sc(\"pause\") if
[Link](\"active\") else
_sc(\"resume\")\n
[Link]([\n
{\"text\": toggle_txt, \"callback_data\":
\"myt_toggle_\" +
tid},\n {\"text\":
_sc(\"delete\"), \"callback_data\":
\"myt_del_\" + tid}\n
])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"myt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"myt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def
_admin_tasks_rows(page):\n tasks =
_tasks()\n items =
list([Link]())\n
[Link](key=lambda x: -
int(x[1].get(\"created_at\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(items) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
items[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"manage tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"no
tasks created yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"owner\") + \": <code>\" +
str([Link](\"owner\")) + \"</code> \" +
_sc(\"status\") + \": \" + status_txt +
\"\\n \" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \" \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
[Link]([{\"text\": _sc(\"remove
task\") + \" #\" + tid, \"callback_data\":
\"adt_del_\" + tid}])\n nav =
[]\n if page > 0:\n
[Link]({\"text\": \"< \" +
_sc(\"prev\"), \"callback_data\":
\"adt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"adt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n u =
str(message.from_user.id)\n users =
_users()\n rec = _urec(users, u)\n
try:\n slots = int(float(msg))\n
except ValueError:\n slots = -1\n
if slots < 1:\n
[Link](_sc(\"please send a valid
whole number of slots, minimum 1.\"),
parse_mode=\"html\")\n
[Link](\"task_limit_input\")
\n else:\n tmp =
[Link](\"tmp_task_\" + u) or
{}\n reward =
float([Link](\"reward\", 0))\n cost
= round(reward * slots, 2)\n balance
= float([Link](\"balance\", 0.0))\n
if balance < cost:\n
[Link](\n
_sc(\"insufficient balance.\") + \"\\n\" +
_sc(\"required\") + \": \" + _fmt(cost) +
\" \" + _sc(\"coin\") + \"\\n\" +
_sc(\"your balance\") + \": \" +
_fmt(balance) + \" \" +
_sc(\"coin\"),\n
parse_mode=\"html\"\n )\n
else:\n rec[\"balance\"] =
balance - cost\n users[u] =
rec\n
_save_users(users)\n\n tasks =
_tasks()\n tid =
_new_task_id()\n tasks[tid] =
{\n \"id\":
tid,\n \"owner\":
u,\n \"username\":
[Link](\"username\"),\n
\"link\":
[Link](\"link\"),\n
\"reward\": reward,\n
\"slots\": slots,\n
\"completed\": 0,\n
\"active\": True,\n
\"created_at\":
int([Link]())\n
}\n
_save_tasks(tasks)\n
[Link](\"tmp_task_\" +
u)\n\n
[Link](\n LN +
\"\\n\" + _sc(\"task created\") + \"\\n\" +
LN + \"\\n\\n\"\n +
_sc(\"channel\") + \": \" +
[Link](\"link\", \"\") +
\"\\n\"\n + _sc(\"reward\")
+ \": \" + _fmt(reward) + \" \" +
_sc(\"coin\") + \"\\n\"\n +
_sc(\"slots\") + \": \" + str(slots) +
\"\\n\"\n + _sc(\"total
cost\") + \": \" + _fmt(cost) + \" \" +
_sc(\"coin\") + \"\\n\\n\"\n
+ _sc(\"your task is now live. check my
task to manage it.\") + \"\\n\\n\" +
LN,\n
parse_mode=\"html\",\n
reply_markup=_main_kb()\n
)\n\nexcept Exception as e:\n
[Link](chat_id=int(u),
text=\"Error: \" + str(e))\n",
"created_at": "2026-07-28 09:20:40",
"folder": "",
"last_updated": "2026-07-28
09:20:40",
"pinned": false
},
{
"bot": "94886904",
"command": "MY TASK",
"admin_only": false,
"code": "try:\n def
_sc(t):\n m =
{'a':'ᴀ','b':'ʙ','c':'ᴄ','d':'ᴅ','e':'ᴇ','f
':'ꜰ','g':'ɢ','h':'ʜ','i':'ɪ','j':'ᴊ','k':'ᴋ
','l':'ʟ','m':'ᴍ','n':'ɴ','o':'ᴏ','p':'ᴘ','
q':'ǫ','r':'ʀ','s':'ꜱ','t':'ᴛ','u':'ᴜ','v':
'ᴠ','w':'ᴡ','x':'x','y':'ʏ','z':'ᴢ'}\n
out = \"\"\n for ch in
str(t):\n low =
[Link]()\n out += m[low] if
low in m else ch\n return out\n\n
LN = \"─\" * 20\n BUL = \"•\"\n ARR =
\"→\"\n\n def _users():\n d =
[Link](\"users\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_users(d):\n
[Link](\"users\", d)\n\n def
_urec(d, uid):\n if uid not in
d:\n d[uid] = {\n
\"balance\": 0.0,\n
\"total_refs\": 0,\n
\"banned\": False,\n
\"wallet\": \"\",\n
\"last_bonus\": 0,\n
\"referred_by\": None,\n
\"joined\": False,\n
\"joined_at\":
int([Link]()),\n
\"completed\": []\n }\n
if \"completed\" not in
d[uid]:\n d[uid][\"completed\"]
= []\n return d[uid]\n\n def
_settings():\n s =
[Link](\"settings\")\n if not
isinstance(s, dict):\n s =
{}\n [Link](\"ref_amount\",
1.0)\n [Link](\"daily_bonus\",
1.0)\n
[Link](\"min_task_reward\",
1.0)\n
[Link](\"min_withdraw\",
10.0)\n
[Link](\"bonus_hours\", 24)\n
return s\n\n def
_save_settings(s):\n
[Link](\"settings\", s)\n\n def
_is_admin(uid):\n admins =
[Link](\"admins\")\n if not
admins:\n admins = []\n
return str(uid) in admins\n\n def
_tasks():\n d =
[Link](\"tasks\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_tasks(d):\n
[Link](\"tasks\", d)\n\n def
_new_task_id():\n n =
[Link](\"task_counter\")\n n =
int(n) + 1 if n else 1\n
[Link](\"task_counter\", n)\n
return str(n)\n\n def
_norm_channel(raw):\n t =
str(raw).strip()\n t =
[Link](\"[Link]
\"\").replace(\"[Link] \"\")\n
if [Link](\"[Link]/\"):\n t
= t[5:]\n if
[Link](\"@\"):\n t =
t[1:]\n t = [Link](\"?\")
[0].split(\"/\")[0].strip()\n return
t\n\n def
_check_bot_admin(username):\n
try:\n admins =
[Link](chat_id=\"@\" +
username)\n except Exception as
e:\n return False,
str(e)\n for a in
admins:\n try:\n
member = [Link] if hasattr(a, \"user\")
else [Link](\"user\", {})\n
mid = [Link] if hasattr(member, \"id\")
else [Link](\"id\")\n except
Exception:\n mid =
None\n if mid is not None and
str(mid) == str(bot_id):\n
return True, \"\"\n return False,
\"not_admin\"\n\n def _fmt(n):\n
try:\n f = float(n)\n
if f == int(f):\n return
str(int(f))\n return
str(round(f, 2))\n except
Exception:\n return
str(n)\n\n def _wreqs():\n d =
[Link](\"withdrawals\")\n
return d if isinstance(d, dict) else
{}\n\n def _save_wreqs(d):\n
[Link](\"withdrawals\", d)\n\n def
_main_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"START
EARNING\"}],\n [{\"text\":
\"CREATE TASK\"}, {\"text\": \"MY
TASK\"}],\n [{\"text\":
\"INVITE FRIENDS\"}, {\"text\": \"MY
BALANCE\"}],\n [{\"text\":
\"DAILY BONUS\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def
_admin_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"Manage
Tasks\"}],\n [{\"text\":
\"Set Refer Reward\"}, {\"text\": \"Set
Daily Bonus\"}],\n
[{\"text\": \"Min Task Reward\"},
{\"text\": \"Withdraw
Requests\"}],\n [{\"text\":
\"Add Balance\"}, {\"text\": \"Remove
Balance\"}],\n [{\"text\":
\"Ban User\"}, {\"text\": \"User
Details\"}],\n [{\"text\":
\"Stats\"}, {\"text\":
\"Broadcast\"}],\n
[{\"text\": \"/start\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def _earn_rows(page,
uid, users_d):\n tasks =
_tasks()\n rec2 = _urec(users_d,
uid)\n active = []\n for tid,
t in [Link]():\n if not
[Link](\"active\"):\n
continue\n if
str([Link](\"owner\")) ==
str(uid):\n
continue\n if tid in
[Link](\"completed\",
[]):\n continue\n
if int([Link](\"completed\", 0)) >=
int([Link](\"slots\", 0)):\n
continue\n [Link]((tid,
t))\n [Link](key=lambda x: -
float(x[1].get(\"reward\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(active) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
active[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"available tasks\") + \" \" + BUL,
LN, \"\"]\n rows = []\n if
not chunk:\n
[Link](_sc(\"no tasks available right
now. check back later.\"))\n
else:\n for tid, t in
chunk:\n remaining =
int([Link](\"slots\", 0)) -
int([Link](\"completed\",
0))\n [Link](BUL + \"
<b>\" + [Link](\"link\", \"\") + \"</b>\\n
\" + _sc(\"reward\") + \": <b>\" +
_fmt([Link](\"reward\")) + \"</b> \" +
_sc(\"coin\") + \" \" + ARR + \" \" +
_sc(\"left\") + \": \" +
str(remaining))\n
[Link]([{\"text\": _sc(\"join &
verify\") + \" - \" + [Link](\"link\",
\"\").replace(\"[Link] \"@\"),
\"callback_data\": \"earn_join_\" +
tid}])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"earn_page_\" + str(page - 1)})\n
if page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"earn_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def _mytask_rows(page,
uid):\n tasks = _tasks()\n
mine = [(tid, t) for tid, t in
[Link]() if str([Link](\"owner\")) ==
str(uid)]\n [Link](key=lambda x:
-int(x[1].get(\"created_at\", 0)))\n
per_page = 4\n total_pages = max(1,
(len(mine) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
mine[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"my tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"you
have not created any task yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"status\") + \": \" + status_txt + \"
\" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \"\\n \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
toggle_txt = _sc(\"pause\") if
[Link](\"active\") else
_sc(\"resume\")\n
[Link]([\n
{\"text\": toggle_txt, \"callback_data\":
\"myt_toggle_\" +
tid},\n {\"text\":
_sc(\"delete\"), \"callback_data\":
\"myt_del_\" + tid}\n
])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"myt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"myt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def
_admin_tasks_rows(page):\n tasks =
_tasks()\n items =
list([Link]())\n
[Link](key=lambda x: -
int(x[1].get(\"created_at\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(items) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
items[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"manage tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"no
tasks created yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"owner\") + \": <code>\" +
str([Link](\"owner\")) + \"</code> \" +
_sc(\"status\") + \": \" + status_txt +
\"\\n \" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \" \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
[Link]([{\"text\": _sc(\"remove
task\") + \" #\" + tid, \"callback_data\":
\"adt_del_\" + tid}])\n nav =
[]\n if page > 0:\n
[Link]({\"text\": \"< \" +
_sc(\"prev\"), \"callback_data\":
\"adt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"adt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n u =
str(message.from_user.id)\n users =
_users()\n rec = _urec(users, u)\n if
[Link](\"banned\"):\n
[Link](_sc(\"you are banned from
using this bot.\"),
parse_mode=\"html\")\n else:\n
text, kb = _mytask_rows(0, u)\n
[Link](text, parse_mode=\"html\",
reply_markup=kb)\n\nexcept Exception as
e:\n [Link](chat_id=int(u),
text=\"Error: \" + str(e))\n",
"created_at": "2026-07-28 09:20:40",
"folder": "",
"last_updated": "2026-07-28
09:20:40",
"pinned": false
},
{
"bot": "94886904",
"command": "INVITE FRIENDS",
"admin_only": false,
"code": "try:\n def
_sc(t):\n m =
{'a':'ᴀ','b':'ʙ','c':'ᴄ','d':'ᴅ','e':'ᴇ','f
':'ꜰ','g':'ɢ','h':'ʜ','i':'ɪ','j':'ᴊ','k':'ᴋ
','l':'ʟ','m':'ᴍ','n':'ɴ','o':'ᴏ','p':'ᴘ','
q':'ǫ','r':'ʀ','s':'ꜱ','t':'ᴛ','u':'ᴜ','v':
'ᴠ','w':'ᴡ','x':'x','y':'ʏ','z':'ᴢ'}\n
out = \"\"\n for ch in
str(t):\n low =
[Link]()\n out += m[low] if
low in m else ch\n return out\n\n
LN = \"─\" * 20\n BUL = \"•\"\n ARR =
\"→\"\n\n def _users():\n d =
[Link](\"users\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_users(d):\n
[Link](\"users\", d)\n\n def
_urec(d, uid):\n if uid not in
d:\n d[uid] = {\n
\"balance\": 0.0,\n
\"total_refs\": 0,\n
\"banned\": False,\n
\"wallet\": \"\",\n
\"last_bonus\": 0,\n
\"referred_by\": None,\n
\"joined\": False,\n
\"joined_at\":
int([Link]()),\n
\"completed\": []\n }\n
if \"completed\" not in
d[uid]:\n d[uid][\"completed\"]
= []\n return d[uid]\n\n def
_settings():\n s =
[Link](\"settings\")\n if not
isinstance(s, dict):\n s =
{}\n [Link](\"ref_amount\",
1.0)\n [Link](\"daily_bonus\",
1.0)\n
[Link](\"min_task_reward\",
1.0)\n
[Link](\"min_withdraw\",
10.0)\n
[Link](\"bonus_hours\", 24)\n
return s\n\n def
_save_settings(s):\n
[Link](\"settings\", s)\n\n def
_is_admin(uid):\n admins =
[Link](\"admins\")\n if not
admins:\n admins = []\n
return str(uid) in admins\n\n def
_tasks():\n d =
[Link](\"tasks\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_tasks(d):\n
[Link](\"tasks\", d)\n\n def
_new_task_id():\n n =
[Link](\"task_counter\")\n n =
int(n) + 1 if n else 1\n
[Link](\"task_counter\", n)\n
return str(n)\n\n def
_norm_channel(raw):\n t =
str(raw).strip()\n t =
[Link](\"[Link]
\"\").replace(\"[Link] \"\")\n
if [Link](\"[Link]/\"):\n t
= t[5:]\n if
[Link](\"@\"):\n t =
t[1:]\n t = [Link](\"?\")
[0].split(\"/\")[0].strip()\n return
t\n\n def
_check_bot_admin(username):\n
try:\n admins =
[Link](chat_id=\"@\" +
username)\n except Exception as
e:\n return False,
str(e)\n for a in
admins:\n try:\n
member = [Link] if hasattr(a, \"user\")
else [Link](\"user\", {})\n
mid = [Link] if hasattr(member, \"id\")
else [Link](\"id\")\n except
Exception:\n mid =
None\n if mid is not None and
str(mid) == str(bot_id):\n
return True, \"\"\n return False,
\"not_admin\"\n\n def _fmt(n):\n
try:\n f = float(n)\n
if f == int(f):\n return
str(int(f))\n return
str(round(f, 2))\n except
Exception:\n return
str(n)\n\n def _wreqs():\n d =
[Link](\"withdrawals\")\n
return d if isinstance(d, dict) else
{}\n\n def _save_wreqs(d):\n
[Link](\"withdrawals\", d)\n\n def
_main_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"START
EARNING\"}],\n [{\"text\":
\"CREATE TASK\"}, {\"text\": \"MY
TASK\"}],\n [{\"text\":
\"INVITE FRIENDS\"}, {\"text\": \"MY
BALANCE\"}],\n [{\"text\":
\"DAILY BONUS\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def
_admin_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"Manage
Tasks\"}],\n [{\"text\":
\"Set Refer Reward\"}, {\"text\": \"Set
Daily Bonus\"}],\n
[{\"text\": \"Min Task Reward\"},
{\"text\": \"Withdraw
Requests\"}],\n [{\"text\":
\"Add Balance\"}, {\"text\": \"Remove
Balance\"}],\n [{\"text\":
\"Ban User\"}, {\"text\": \"User
Details\"}],\n [{\"text\":
\"Stats\"}, {\"text\":
\"Broadcast\"}],\n
[{\"text\": \"/start\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def _earn_rows(page,
uid, users_d):\n tasks =
_tasks()\n rec2 = _urec(users_d,
uid)\n active = []\n for tid,
t in [Link]():\n if not
[Link](\"active\"):\n
continue\n if
str([Link](\"owner\")) ==
str(uid):\n
continue\n if tid in
[Link](\"completed\",
[]):\n continue\n
if int([Link](\"completed\", 0)) >=
int([Link](\"slots\", 0)):\n
continue\n [Link]((tid,
t))\n [Link](key=lambda x: -
float(x[1].get(\"reward\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(active) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
active[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"available tasks\") + \" \" + BUL,
LN, \"\"]\n rows = []\n if
not chunk:\n
[Link](_sc(\"no tasks available right
now. check back later.\"))\n
else:\n for tid, t in
chunk:\n remaining =
int([Link](\"slots\", 0)) -
int([Link](\"completed\",
0))\n [Link](BUL + \"
<b>\" + [Link](\"link\", \"\") + \"</b>\\n
\" + _sc(\"reward\") + \": <b>\" +
_fmt([Link](\"reward\")) + \"</b> \" +
_sc(\"coin\") + \" \" + ARR + \" \" +
_sc(\"left\") + \": \" +
str(remaining))\n
[Link]([{\"text\": _sc(\"join &
verify\") + \" - \" + [Link](\"link\",
\"\").replace(\"[Link] \"@\"),
\"callback_data\": \"earn_join_\" +
tid}])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"earn_page_\" + str(page - 1)})\n
if page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"earn_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def _mytask_rows(page,
uid):\n tasks = _tasks()\n
mine = [(tid, t) for tid, t in
[Link]() if str([Link](\"owner\")) ==
str(uid)]\n [Link](key=lambda x:
-int(x[1].get(\"created_at\", 0)))\n
per_page = 4\n total_pages = max(1,
(len(mine) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
mine[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"my tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"you
have not created any task yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"status\") + \": \" + status_txt + \"
\" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \"\\n \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
toggle_txt = _sc(\"pause\") if
[Link](\"active\") else
_sc(\"resume\")\n
[Link]([\n
{\"text\": toggle_txt, \"callback_data\":
\"myt_toggle_\" +
tid},\n {\"text\":
_sc(\"delete\"), \"callback_data\":
\"myt_del_\" + tid}\n
])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"myt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"myt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def
_admin_tasks_rows(page):\n tasks =
_tasks()\n items =
list([Link]())\n
[Link](key=lambda x: -
int(x[1].get(\"created_at\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(items) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
items[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"manage tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"no
tasks created yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"owner\") + \": <code>\" +
str([Link](\"owner\")) + \"</code> \" +
_sc(\"status\") + \": \" + status_txt +
\"\\n \" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \" \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
[Link]([{\"text\": _sc(\"remove
task\") + \" #\" + tid, \"callback_data\":
\"adt_del_\" + tid}])\n nav =
[]\n if page > 0:\n
[Link]({\"text\": \"< \" +
_sc(\"prev\"), \"callback_data\":
\"adt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"adt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n u =
str(message.from_user.id)\n users =
_users()\n rec = _urec(users, u)\n
settings = _settings()\n if
[Link](\"banned\"):\n
[Link](_sc(\"you are banned from
using this bot.\"),
parse_mode=\"html\")\n else:\n
try:\n me =
[Link]()\n uname =
[Link] if hasattr(me, \"username\")
else \"\"\n except
Exception:\n uname =
\"\"\n link = \"[Link] +
str(uname) + \"?start=\" + u if uname else
_sc(\"open your bot and copy the start
link, then add\") + \" ?start=\" +
u\n [Link](\n LN
+ \"\\n\" + BUL + \" \" + _sc(\"invite
friends\") + \" \" + BUL + \"\\n\" + LN +
\"\\n\\n\"\n + _sc(\"your
referral link\") + \":\\n\" + link +
\"\\n\\n\"\n + _sc(\"reward per
referral\") + \": \" +
_fmt([Link](\"ref_amount\", 1.0)) +
\" \" + _sc(\"coin\") +
\"\\n\"\n + _sc(\"total
referrals\") + \": \" +
str([Link](\"total_refs\", 0)) +
\"\\n\\n\" + LN,\n
parse_mode=\"html\"\n )\n\nexcept
Exception as e:\n
[Link](chat_id=int(u),
text=\"Error: \" + str(e))\n",
"created_at": "2026-07-28 09:20:40",
"folder": "",
"last_updated": "2026-07-28
09:20:40",
"pinned": false
},
{
"bot": "94886904",
"command": "MY BALANCE",
"admin_only": false,
"code": "try:\n def
_sc(t):\n m =
{'a':'ᴀ','b':'ʙ','c':'ᴄ','d':'ᴅ','e':'ᴇ','f
':'ꜰ','g':'ɢ','h':'ʜ','i':'ɪ','j':'ᴊ','k':'ᴋ
','l':'ʟ','m':'ᴍ','n':'ɴ','o':'ᴏ','p':'ᴘ','
q':'ǫ','r':'ʀ','s':'ꜱ','t':'ᴛ','u':'ᴜ','v':
'ᴠ','w':'ᴡ','x':'x','y':'ʏ','z':'ᴢ'}\n
out = \"\"\n for ch in
str(t):\n low =
[Link]()\n out += m[low] if
low in m else ch\n return out\n\n
LN = \"─\" * 20\n BUL = \"•\"\n ARR =
\"→\"\n\n def _users():\n d =
[Link](\"users\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_users(d):\n
[Link](\"users\", d)\n\n def
_urec(d, uid):\n if uid not in
d:\n d[uid] = {\n
\"balance\": 0.0,\n
\"total_refs\": 0,\n
\"banned\": False,\n
\"wallet\": \"\",\n
\"last_bonus\": 0,\n
\"referred_by\": None,\n
\"joined\": False,\n
\"joined_at\":
int([Link]()),\n
\"completed\": []\n }\n
if \"completed\" not in
d[uid]:\n d[uid][\"completed\"]
= []\n return d[uid]\n\n def
_settings():\n s =
[Link](\"settings\")\n if not
isinstance(s, dict):\n s =
{}\n [Link](\"ref_amount\",
1.0)\n [Link](\"daily_bonus\",
1.0)\n
[Link](\"min_task_reward\",
1.0)\n
[Link](\"min_withdraw\",
10.0)\n
[Link](\"bonus_hours\", 24)\n
return s\n\n def
_save_settings(s):\n
[Link](\"settings\", s)\n\n def
_is_admin(uid):\n admins =
[Link](\"admins\")\n if not
admins:\n admins = []\n
return str(uid) in admins\n\n def
_tasks():\n d =
[Link](\"tasks\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_tasks(d):\n
[Link](\"tasks\", d)\n\n def
_new_task_id():\n n =
[Link](\"task_counter\")\n n =
int(n) + 1 if n else 1\n
[Link](\"task_counter\", n)\n
return str(n)\n\n def
_norm_channel(raw):\n t =
str(raw).strip()\n t =
[Link](\"[Link]
\"\").replace(\"[Link] \"\")\n
if [Link](\"[Link]/\"):\n t
= t[5:]\n if
[Link](\"@\"):\n t =
t[1:]\n t = [Link](\"?\")
[0].split(\"/\")[0].strip()\n return
t\n\n def
_check_bot_admin(username):\n
try:\n admins =
[Link](chat_id=\"@\" +
username)\n except Exception as
e:\n return False,
str(e)\n for a in
admins:\n try:\n
member = [Link] if hasattr(a, \"user\")
else [Link](\"user\", {})\n
mid = [Link] if hasattr(member, \"id\")
else [Link](\"id\")\n except
Exception:\n mid =
None\n if mid is not None and
str(mid) == str(bot_id):\n
return True, \"\"\n return False,
\"not_admin\"\n\n def _fmt(n):\n
try:\n f = float(n)\n
if f == int(f):\n return
str(int(f))\n return
str(round(f, 2))\n except
Exception:\n return
str(n)\n\n def _wreqs():\n d =
[Link](\"withdrawals\")\n
return d if isinstance(d, dict) else
{}\n\n def _save_wreqs(d):\n
[Link](\"withdrawals\", d)\n\n def
_main_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"START
EARNING\"}],\n [{\"text\":
\"CREATE TASK\"}, {\"text\": \"MY
TASK\"}],\n [{\"text\":
\"INVITE FRIENDS\"}, {\"text\": \"MY
BALANCE\"}],\n [{\"text\":
\"DAILY BONUS\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def
_admin_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"Manage
Tasks\"}],\n [{\"text\":
\"Set Refer Reward\"}, {\"text\": \"Set
Daily Bonus\"}],\n
[{\"text\": \"Min Task Reward\"},
{\"text\": \"Withdraw
Requests\"}],\n [{\"text\":
\"Add Balance\"}, {\"text\": \"Remove
Balance\"}],\n [{\"text\":
\"Ban User\"}, {\"text\": \"User
Details\"}],\n [{\"text\":
\"Stats\"}, {\"text\":
\"Broadcast\"}],\n
[{\"text\": \"/start\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def _earn_rows(page,
uid, users_d):\n tasks =
_tasks()\n rec2 = _urec(users_d,
uid)\n active = []\n for tid,
t in [Link]():\n if not
[Link](\"active\"):\n
continue\n if
str([Link](\"owner\")) ==
str(uid):\n
continue\n if tid in
[Link](\"completed\",
[]):\n continue\n
if int([Link](\"completed\", 0)) >=
int([Link](\"slots\", 0)):\n
continue\n [Link]((tid,
t))\n [Link](key=lambda x: -
float(x[1].get(\"reward\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(active) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
active[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"available tasks\") + \" \" + BUL,
LN, \"\"]\n rows = []\n if
not chunk:\n
[Link](_sc(\"no tasks available right
now. check back later.\"))\n
else:\n for tid, t in
chunk:\n remaining =
int([Link](\"slots\", 0)) -
int([Link](\"completed\",
0))\n [Link](BUL + \"
<b>\" + [Link](\"link\", \"\") + \"</b>\\n
\" + _sc(\"reward\") + \": <b>\" +
_fmt([Link](\"reward\")) + \"</b> \" +
_sc(\"coin\") + \" \" + ARR + \" \" +
_sc(\"left\") + \": \" +
str(remaining))\n
[Link]([{\"text\": _sc(\"join &
verify\") + \" - \" + [Link](\"link\",
\"\").replace(\"[Link] \"@\"),
\"callback_data\": \"earn_join_\" +
tid}])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"earn_page_\" + str(page - 1)})\n
if page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"earn_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def _mytask_rows(page,
uid):\n tasks = _tasks()\n
mine = [(tid, t) for tid, t in
[Link]() if str([Link](\"owner\")) ==
str(uid)]\n [Link](key=lambda x:
-int(x[1].get(\"created_at\", 0)))\n
per_page = 4\n total_pages = max(1,
(len(mine) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
mine[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"my tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"you
have not created any task yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"status\") + \": \" + status_txt + \"
\" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \"\\n \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
toggle_txt = _sc(\"pause\") if
[Link](\"active\") else
_sc(\"resume\")\n
[Link]([\n
{\"text\": toggle_txt, \"callback_data\":
\"myt_toggle_\" +
tid},\n {\"text\":
_sc(\"delete\"), \"callback_data\":
\"myt_del_\" + tid}\n
])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"myt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"myt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def
_admin_tasks_rows(page):\n tasks =
_tasks()\n items =
list([Link]())\n
[Link](key=lambda x: -
int(x[1].get(\"created_at\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(items) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
items[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"manage tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"no
tasks created yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"owner\") + \": <code>\" +
str([Link](\"owner\")) + \"</code> \" +
_sc(\"status\") + \": \" + status_txt +
\"\\n \" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \" \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
[Link]([{\"text\": _sc(\"remove
task\") + \" #\" + tid, \"callback_data\":
\"adt_del_\" + tid}])\n nav =
[]\n if page > 0:\n
[Link]({\"text\": \"< \" +
_sc(\"prev\"), \"callback_data\":
\"adt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"adt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n u =
str(message.from_user.id)\n users =
_users()\n rec = _urec(users, u)\n
settings = _settings()\n if
[Link](\"banned\"):\n
[Link](_sc(\"you are banned from
using this bot.\"),
parse_mode=\"html\")\n else:\n
[Link](\n LN + \"\\n\"
+ BUL + \" \" + _sc(\"my balance\") + \" \"
+ BUL + \"\\n\" + LN +
\"\\n\\n\"\n + _sc(\"balance\")
+ \": <b>\" + _fmt([Link](\"balance\",
0.0)) + \"</b> \" + _sc(\"coin\") +
\"\\n\"\n + _sc(\"wallet\") +
\": \" + ([Link](\"wallet\") or _sc(\"not
set\")) + \"\\n\"\n +
_sc(\"minimum withdraw\") + \": \" +
_fmt([Link](\"min_withdraw\", 10.0))
+ \" \" + _sc(\"coin\") + \"\\n\\n\" +
LN,\n
parse_mode=\"html\",\n
reply_markup={\"inline_keyboard\":
[[{\"text\": _sc(\"withdraw\"),
\"callback_data\":
\"wd_start\"}]]}\n )\n\nexcept
Exception as e:\n
[Link](chat_id=int(u),
text=\"Error: \" + str(e))\n",
"created_at": "2026-07-28 09:20:40",
"folder": "",
"last_updated": "2026-07-28
09:20:40",
"pinned": false
},
{
"bot": "94886904",
"command": "set_wallet_input",
"admin_only": false,
"code": "try:\n def
_sc(t):\n m =
{'a':'ᴀ','b':'ʙ','c':'ᴄ','d':'ᴅ','e':'ᴇ','f
':'ꜰ','g':'ɢ','h':'ʜ','i':'ɪ','j':'ᴊ','k':'ᴋ
','l':'ʟ','m':'ᴍ','n':'ɴ','o':'ᴏ','p':'ᴘ','
q':'ǫ','r':'ʀ','s':'ꜱ','t':'ᴛ','u':'ᴜ','v':
'ᴠ','w':'ᴡ','x':'x','y':'ʏ','z':'ᴢ'}\n
out = \"\"\n for ch in
str(t):\n low =
[Link]()\n out += m[low] if
low in m else ch\n return out\n\n
LN = \"─\" * 20\n BUL = \"•\"\n ARR =
\"→\"\n\n def _users():\n d =
[Link](\"users\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_users(d):\n
[Link](\"users\", d)\n\n def
_urec(d, uid):\n if uid not in
d:\n d[uid] = {\n
\"balance\": 0.0,\n
\"total_refs\": 0,\n
\"banned\": False,\n
\"wallet\": \"\",\n
\"last_bonus\": 0,\n
\"referred_by\": None,\n
\"joined\": False,\n
\"joined_at\":
int([Link]()),\n
\"completed\": []\n }\n
if \"completed\" not in
d[uid]:\n d[uid][\"completed\"]
= []\n return d[uid]\n\n def
_settings():\n s =
[Link](\"settings\")\n if not
isinstance(s, dict):\n s =
{}\n [Link](\"ref_amount\",
1.0)\n [Link](\"daily_bonus\",
1.0)\n
[Link](\"min_task_reward\",
1.0)\n
[Link](\"min_withdraw\",
10.0)\n
[Link](\"bonus_hours\", 24)\n
return s\n\n def
_save_settings(s):\n
[Link](\"settings\", s)\n\n def
_is_admin(uid):\n admins =
[Link](\"admins\")\n if not
admins:\n admins = []\n
return str(uid) in admins\n\n def
_tasks():\n d =
[Link](\"tasks\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_tasks(d):\n
[Link](\"tasks\", d)\n\n def
_new_task_id():\n n =
[Link](\"task_counter\")\n n =
int(n) + 1 if n else 1\n
[Link](\"task_counter\", n)\n
return str(n)\n\n def
_norm_channel(raw):\n t =
str(raw).strip()\n t =
[Link](\"[Link]
\"\").replace(\"[Link] \"\")\n
if [Link](\"[Link]/\"):\n t
= t[5:]\n if
[Link](\"@\"):\n t =
t[1:]\n t = [Link](\"?\")
[0].split(\"/\")[0].strip()\n return
t\n\n def
_check_bot_admin(username):\n
try:\n admins =
[Link](chat_id=\"@\" +
username)\n except Exception as
e:\n return False,
str(e)\n for a in
admins:\n try:\n
member = [Link] if hasattr(a, \"user\")
else [Link](\"user\", {})\n
mid = [Link] if hasattr(member, \"id\")
else [Link](\"id\")\n except
Exception:\n mid =
None\n if mid is not None and
str(mid) == str(bot_id):\n
return True, \"\"\n return False,
\"not_admin\"\n\n def _fmt(n):\n
try:\n f = float(n)\n
if f == int(f):\n return
str(int(f))\n return
str(round(f, 2))\n except
Exception:\n return
str(n)\n\n def _wreqs():\n d =
[Link](\"withdrawals\")\n
return d if isinstance(d, dict) else
{}\n\n def _save_wreqs(d):\n
[Link](\"withdrawals\", d)\n\n def
_main_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"START
EARNING\"}],\n [{\"text\":
\"CREATE TASK\"}, {\"text\": \"MY
TASK\"}],\n [{\"text\":
\"INVITE FRIENDS\"}, {\"text\": \"MY
BALANCE\"}],\n [{\"text\":
\"DAILY BONUS\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def
_admin_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"Manage
Tasks\"}],\n [{\"text\":
\"Set Refer Reward\"}, {\"text\": \"Set
Daily Bonus\"}],\n
[{\"text\": \"Min Task Reward\"},
{\"text\": \"Withdraw
Requests\"}],\n [{\"text\":
\"Add Balance\"}, {\"text\": \"Remove
Balance\"}],\n [{\"text\":
\"Ban User\"}, {\"text\": \"User
Details\"}],\n [{\"text\":
\"Stats\"}, {\"text\":
\"Broadcast\"}],\n
[{\"text\": \"/start\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def _earn_rows(page,
uid, users_d):\n tasks =
_tasks()\n rec2 = _urec(users_d,
uid)\n active = []\n for tid,
t in [Link]():\n if not
[Link](\"active\"):\n
continue\n if
str([Link](\"owner\")) ==
str(uid):\n
continue\n if tid in
[Link](\"completed\",
[]):\n continue\n
if int([Link](\"completed\", 0)) >=
int([Link](\"slots\", 0)):\n
continue\n [Link]((tid,
t))\n [Link](key=lambda x: -
float(x[1].get(\"reward\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(active) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
active[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"available tasks\") + \" \" + BUL,
LN, \"\"]\n rows = []\n if
not chunk:\n
[Link](_sc(\"no tasks available right
now. check back later.\"))\n
else:\n for tid, t in
chunk:\n remaining =
int([Link](\"slots\", 0)) -
int([Link](\"completed\",
0))\n [Link](BUL + \"
<b>\" + [Link](\"link\", \"\") + \"</b>\\n
\" + _sc(\"reward\") + \": <b>\" +
_fmt([Link](\"reward\")) + \"</b> \" +
_sc(\"coin\") + \" \" + ARR + \" \" +
_sc(\"left\") + \": \" +
str(remaining))\n
[Link]([{\"text\": _sc(\"join &
verify\") + \" - \" + [Link](\"link\",
\"\").replace(\"[Link] \"@\"),
\"callback_data\": \"earn_join_\" +
tid}])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"earn_page_\" + str(page - 1)})\n
if page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"earn_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def _mytask_rows(page,
uid):\n tasks = _tasks()\n
mine = [(tid, t) for tid, t in
[Link]() if str([Link](\"owner\")) ==
str(uid)]\n [Link](key=lambda x:
-int(x[1].get(\"created_at\", 0)))\n
per_page = 4\n total_pages = max(1,
(len(mine) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
mine[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"my tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"you
have not created any task yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"status\") + \": \" + status_txt + \"
\" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \"\\n \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
toggle_txt = _sc(\"pause\") if
[Link](\"active\") else
_sc(\"resume\")\n
[Link]([\n
{\"text\": toggle_txt, \"callback_data\":
\"myt_toggle_\" +
tid},\n {\"text\":
_sc(\"delete\"), \"callback_data\":
\"myt_del_\" + tid}\n
])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"myt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"myt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def
_admin_tasks_rows(page):\n tasks =
_tasks()\n items =
list([Link]())\n
[Link](key=lambda x: -
int(x[1].get(\"created_at\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(items) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
items[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"manage tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"no
tasks created yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"owner\") + \": <code>\" +
str([Link](\"owner\")) + \"</code> \" +
_sc(\"status\") + \": \" + status_txt +
\"\\n \" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \" \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
[Link]([{\"text\": _sc(\"remove
task\") + \" #\" + tid, \"callback_data\":
\"adt_del_\" + tid}])\n nav =
[]\n if page > 0:\n
[Link]({\"text\": \"< \" +
_sc(\"prev\"), \"callback_data\":
\"adt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"adt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n u =
str(message.from_user.id)\n users =
_users()\n rec = _urec(users, u)\n
rec[\"wallet\"] = str(msg).strip()\n
users[u] = rec\n _save_users(users)\n
settings = _settings()\n
[Link](\n _sc(\"wallet
saved.\") + \" \" + _sc(\"now send the
amount of coin you want to withdraw,
minimum\") + \" \" +
_fmt([Link](\"min_withdraw\", 10.0))
+ \".\",\n parse_mode=\"html\"\n
)\n
[Link](\"withdraw_amount_inp
ut\")\n\nexcept Exception as e:\n
[Link](chat_id=int(u),
text=\"Error: \" + str(e))\n",
"created_at": "2026-07-28 09:20:40",
"folder": "",
"last_updated": "2026-07-28
09:20:40",
"pinned": false
},
{
"bot": "94886904",
"command": "withdraw_amount_input",
"admin_only": false,
"code": "try:\n def
_sc(t):\n m =
{'a':'ᴀ','b':'ʙ','c':'ᴄ','d':'ᴅ','e':'ᴇ','f
':'ꜰ','g':'ɢ','h':'ʜ','i':'ɪ','j':'ᴊ','k':'ᴋ
','l':'ʟ','m':'ᴍ','n':'ɴ','o':'ᴏ','p':'ᴘ','
q':'ǫ','r':'ʀ','s':'ꜱ','t':'ᴛ','u':'ᴜ','v':
'ᴠ','w':'ᴡ','x':'x','y':'ʏ','z':'ᴢ'}\n
out = \"\"\n for ch in
str(t):\n low =
[Link]()\n out += m[low] if
low in m else ch\n return out\n\n
LN = \"─\" * 20\n BUL = \"•\"\n ARR =
\"→\"\n\n def _users():\n d =
[Link](\"users\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_users(d):\n
[Link](\"users\", d)\n\n def
_urec(d, uid):\n if uid not in
d:\n d[uid] = {\n
\"balance\": 0.0,\n
\"total_refs\": 0,\n
\"banned\": False,\n
\"wallet\": \"\",\n
\"last_bonus\": 0,\n
\"referred_by\": None,\n
\"joined\": False,\n
\"joined_at\":
int([Link]()),\n
\"completed\": []\n }\n
if \"completed\" not in
d[uid]:\n d[uid][\"completed\"]
= []\n return d[uid]\n\n def
_settings():\n s =
[Link](\"settings\")\n if not
isinstance(s, dict):\n s =
{}\n [Link](\"ref_amount\",
1.0)\n [Link](\"daily_bonus\",
1.0)\n
[Link](\"min_task_reward\",
1.0)\n
[Link](\"min_withdraw\",
10.0)\n
[Link](\"bonus_hours\", 24)\n
return s\n\n def
_save_settings(s):\n
[Link](\"settings\", s)\n\n def
_is_admin(uid):\n admins =
[Link](\"admins\")\n if not
admins:\n admins = []\n
return str(uid) in admins\n\n def
_tasks():\n d =
[Link](\"tasks\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_tasks(d):\n
[Link](\"tasks\", d)\n\n def
_new_task_id():\n n =
[Link](\"task_counter\")\n n =
int(n) + 1 if n else 1\n
[Link](\"task_counter\", n)\n
return str(n)\n\n def
_norm_channel(raw):\n t =
str(raw).strip()\n t =
[Link](\"[Link]
\"\").replace(\"[Link] \"\")\n
if [Link](\"[Link]/\"):\n t
= t[5:]\n if
[Link](\"@\"):\n t =
t[1:]\n t = [Link](\"?\")
[0].split(\"/\")[0].strip()\n return
t\n\n def
_check_bot_admin(username):\n
try:\n admins =
[Link](chat_id=\"@\" +
username)\n except Exception as
e:\n return False,
str(e)\n for a in
admins:\n try:\n
member = [Link] if hasattr(a, \"user\")
else [Link](\"user\", {})\n
mid = [Link] if hasattr(member, \"id\")
else [Link](\"id\")\n except
Exception:\n mid =
None\n if mid is not None and
str(mid) == str(bot_id):\n
return True, \"\"\n return False,
\"not_admin\"\n\n def _fmt(n):\n
try:\n f = float(n)\n
if f == int(f):\n return
str(int(f))\n return
str(round(f, 2))\n except
Exception:\n return
str(n)\n\n def _wreqs():\n d =
[Link](\"withdrawals\")\n
return d if isinstance(d, dict) else
{}\n\n def _save_wreqs(d):\n
[Link](\"withdrawals\", d)\n\n def
_main_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"START
EARNING\"}],\n [{\"text\":
\"CREATE TASK\"}, {\"text\": \"MY
TASK\"}],\n [{\"text\":
\"INVITE FRIENDS\"}, {\"text\": \"MY
BALANCE\"}],\n [{\"text\":
\"DAILY BONUS\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def
_admin_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"Manage
Tasks\"}],\n [{\"text\":
\"Set Refer Reward\"}, {\"text\": \"Set
Daily Bonus\"}],\n
[{\"text\": \"Min Task Reward\"},
{\"text\": \"Withdraw
Requests\"}],\n [{\"text\":
\"Add Balance\"}, {\"text\": \"Remove
Balance\"}],\n [{\"text\":
\"Ban User\"}, {\"text\": \"User
Details\"}],\n [{\"text\":
\"Stats\"}, {\"text\":
\"Broadcast\"}],\n
[{\"text\": \"/start\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def _earn_rows(page,
uid, users_d):\n tasks =
_tasks()\n rec2 = _urec(users_d,
uid)\n active = []\n for tid,
t in [Link]():\n if not
[Link](\"active\"):\n
continue\n if
str([Link](\"owner\")) ==
str(uid):\n
continue\n if tid in
[Link](\"completed\",
[]):\n continue\n
if int([Link](\"completed\", 0)) >=
int([Link](\"slots\", 0)):\n
continue\n [Link]((tid,
t))\n [Link](key=lambda x: -
float(x[1].get(\"reward\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(active) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
active[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"available tasks\") + \" \" + BUL,
LN, \"\"]\n rows = []\n if
not chunk:\n
[Link](_sc(\"no tasks available right
now. check back later.\"))\n
else:\n for tid, t in
chunk:\n remaining =
int([Link](\"slots\", 0)) -
int([Link](\"completed\",
0))\n [Link](BUL + \"
<b>\" + [Link](\"link\", \"\") + \"</b>\\n
\" + _sc(\"reward\") + \": <b>\" +
_fmt([Link](\"reward\")) + \"</b> \" +
_sc(\"coin\") + \" \" + ARR + \" \" +
_sc(\"left\") + \": \" +
str(remaining))\n
[Link]([{\"text\": _sc(\"join &
verify\") + \" - \" + [Link](\"link\",
\"\").replace(\"[Link] \"@\"),
\"callback_data\": \"earn_join_\" +
tid}])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"earn_page_\" + str(page - 1)})\n
if page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"earn_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def _mytask_rows(page,
uid):\n tasks = _tasks()\n
mine = [(tid, t) for tid, t in
[Link]() if str([Link](\"owner\")) ==
str(uid)]\n [Link](key=lambda x:
-int(x[1].get(\"created_at\", 0)))\n
per_page = 4\n total_pages = max(1,
(len(mine) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
mine[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"my tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"you
have not created any task yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"status\") + \": \" + status_txt + \"
\" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \"\\n \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
toggle_txt = _sc(\"pause\") if
[Link](\"active\") else
_sc(\"resume\")\n
[Link]([\n
{\"text\": toggle_txt, \"callback_data\":
\"myt_toggle_\" +
tid},\n {\"text\":
_sc(\"delete\"), \"callback_data\":
\"myt_del_\" + tid}\n
])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"myt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"myt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def
_admin_tasks_rows(page):\n tasks =
_tasks()\n items =
list([Link]())\n
[Link](key=lambda x: -
int(x[1].get(\"created_at\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(items) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
items[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"manage tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"no
tasks created yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"owner\") + \": <code>\" +
str([Link](\"owner\")) + \"</code> \" +
_sc(\"status\") + \": \" + status_txt +
\"\\n \" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \" \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
[Link]([{\"text\": _sc(\"remove
task\") + \" #\" + tid, \"callback_data\":
\"adt_del_\" + tid}])\n nav =
[]\n if page > 0:\n
[Link]({\"text\": \"< \" +
_sc(\"prev\"), \"callback_data\":
\"adt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"adt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n u =
str(message.from_user.id)\n users =
_users()\n rec = _urec(users, u)\n
settings = _settings()\n min_wd =
float([Link](\"min_withdraw\",
10.0))\n try:\n amount =
float(msg)\n except ValueError:\n
amount = -1\n balance =
float([Link](\"balance\", 0.0))\n if
amount < min_wd:\n
[Link](_sc(\"minimum withdraw
is\") + \" \" + _fmt(min_wd) + \" \" +
_sc(\"coin.\"), parse_mode=\"html\")\n
elif amount > balance:\n
[Link](_sc(\"insufficient
balance.\") + \" \" + _sc(\"your balance\")
+ \": \" + _fmt(balance),
parse_mode=\"html\")\n else:\n
rec[\"balance\"] = balance -
amount\n users[u] = rec\n
_save_users(users)\n\n wreqs =
_wreqs()\n rid = str(len(wreqs) + 1)
+ \"_\" + str(int([Link]()))\n
wreqs[rid] = {\"user\": u, \"amount\":
amount, \"wallet\": [Link](\"wallet\",
\"\"), \"status\": \"pending\",
\"created_at\": int([Link]())}\n
_save_wreqs(wreqs)\n\n
[Link](\n
_sc(\"withdraw request submitted.\") +
\"\\n\" + _sc(\"amount\") + \": \" +
_fmt(amount) + \"\\n\" + _sc(\"status\") +
\": \" + _sc(\"pending
review.\"),\n
parse_mode=\"html\"\n )\n\n
admins = [Link](\"admins\") or
[]\n for aid in admins:\n
try:\n
[Link](\n
chat_id=int(aid),\n
text=LN + \"\\n\" + _sc(\"new withdraw
request\") + \"\\n\" + LN +
\"\\n\\n\"\n +
_sc(\"user\") + \": <code>\" + u + \"
</code>\\n\" + _sc(\"amount\") + \": \" +
_fmt(amount) + \"\\n\" + _sc(\"wallet\") +
\": \" + [Link](\"wallet\", \"\") +
\"\\n\\n\" + LN,\n
parse_mode=\"html\",\n
reply_markup={\"inline_keyboard\":
[[\n {\"text\":
_sc(\"approve\"), \"callback_data\":
\"wr_appr_\" +
rid},\n {\"text\":
_sc(\"reject\"), \"callback_data\":
\"wr_rej_\" + rid}\n
]]}\n )\n except
Exception:\n pass\n\nexcept
Exception as e:\n
[Link](chat_id=int(u),
text=\"Error: \" + str(e))\n",
"created_at": "2026-07-28 09:20:40",
"folder": "",
"last_updated": "2026-07-28
09:20:40",
"pinned": false
},
{
"bot": "94886904",
"command": "DAILY BONUS",
"admin_only": false,
"code": "try:\n def
_sc(t):\n m =
{'a':'ᴀ','b':'ʙ','c':'ᴄ','d':'ᴅ','e':'ᴇ','f
':'ꜰ','g':'ɢ','h':'ʜ','i':'ɪ','j':'ᴊ','k':'ᴋ
','l':'ʟ','m':'ᴍ','n':'ɴ','o':'ᴏ','p':'ᴘ','
q':'ǫ','r':'ʀ','s':'ꜱ','t':'ᴛ','u':'ᴜ','v':
'ᴠ','w':'ᴡ','x':'x','y':'ʏ','z':'ᴢ'}\n
out = \"\"\n for ch in
str(t):\n low =
[Link]()\n out += m[low] if
low in m else ch\n return out\n\n
LN = \"─\" * 20\n BUL = \"•\"\n ARR =
\"→\"\n\n def _users():\n d =
[Link](\"users\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_users(d):\n
[Link](\"users\", d)\n\n def
_urec(d, uid):\n if uid not in
d:\n d[uid] = {\n
\"balance\": 0.0,\n
\"total_refs\": 0,\n
\"banned\": False,\n
\"wallet\": \"\",\n
\"last_bonus\": 0,\n
\"referred_by\": None,\n
\"joined\": False,\n
\"joined_at\":
int([Link]()),\n
\"completed\": []\n }\n
if \"completed\" not in
d[uid]:\n d[uid][\"completed\"]
= []\n return d[uid]\n\n def
_settings():\n s =
[Link](\"settings\")\n if not
isinstance(s, dict):\n s =
{}\n [Link](\"ref_amount\",
1.0)\n [Link](\"daily_bonus\",
1.0)\n
[Link](\"min_task_reward\",
1.0)\n
[Link](\"min_withdraw\",
10.0)\n
[Link](\"bonus_hours\", 24)\n
return s\n\n def
_save_settings(s):\n
[Link](\"settings\", s)\n\n def
_is_admin(uid):\n admins =
[Link](\"admins\")\n if not
admins:\n admins = []\n
return str(uid) in admins\n\n def
_tasks():\n d =
[Link](\"tasks\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_tasks(d):\n
[Link](\"tasks\", d)\n\n def
_new_task_id():\n n =
[Link](\"task_counter\")\n n =
int(n) + 1 if n else 1\n
[Link](\"task_counter\", n)\n
return str(n)\n\n def
_norm_channel(raw):\n t =
str(raw).strip()\n t =
[Link](\"[Link]
\"\").replace(\"[Link] \"\")\n
if [Link](\"[Link]/\"):\n t
= t[5:]\n if
[Link](\"@\"):\n t =
t[1:]\n t = [Link](\"?\")
[0].split(\"/\")[0].strip()\n return
t\n\n def
_check_bot_admin(username):\n
try:\n admins =
[Link](chat_id=\"@\" +
username)\n except Exception as
e:\n return False,
str(e)\n for a in
admins:\n try:\n
member = [Link] if hasattr(a, \"user\")
else [Link](\"user\", {})\n
mid = [Link] if hasattr(member, \"id\")
else [Link](\"id\")\n except
Exception:\n mid =
None\n if mid is not None and
str(mid) == str(bot_id):\n
return True, \"\"\n return False,
\"not_admin\"\n\n def _fmt(n):\n
try:\n f = float(n)\n
if f == int(f):\n return
str(int(f))\n return
str(round(f, 2))\n except
Exception:\n return
str(n)\n\n def _wreqs():\n d =
[Link](\"withdrawals\")\n
return d if isinstance(d, dict) else
{}\n\n def _save_wreqs(d):\n
[Link](\"withdrawals\", d)\n\n def
_main_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"START
EARNING\"}],\n [{\"text\":
\"CREATE TASK\"}, {\"text\": \"MY
TASK\"}],\n [{\"text\":
\"INVITE FRIENDS\"}, {\"text\": \"MY
BALANCE\"}],\n [{\"text\":
\"DAILY BONUS\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def
_admin_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"Manage
Tasks\"}],\n [{\"text\":
\"Set Refer Reward\"}, {\"text\": \"Set
Daily Bonus\"}],\n
[{\"text\": \"Min Task Reward\"},
{\"text\": \"Withdraw
Requests\"}],\n [{\"text\":
\"Add Balance\"}, {\"text\": \"Remove
Balance\"}],\n [{\"text\":
\"Ban User\"}, {\"text\": \"User
Details\"}],\n [{\"text\":
\"Stats\"}, {\"text\":
\"Broadcast\"}],\n
[{\"text\": \"/start\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def _earn_rows(page,
uid, users_d):\n tasks =
_tasks()\n rec2 = _urec(users_d,
uid)\n active = []\n for tid,
t in [Link]():\n if not
[Link](\"active\"):\n
continue\n if
str([Link](\"owner\")) ==
str(uid):\n
continue\n if tid in
[Link](\"completed\",
[]):\n continue\n
if int([Link](\"completed\", 0)) >=
int([Link](\"slots\", 0)):\n
continue\n [Link]((tid,
t))\n [Link](key=lambda x: -
float(x[1].get(\"reward\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(active) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
active[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"available tasks\") + \" \" + BUL,
LN, \"\"]\n rows = []\n if
not chunk:\n
[Link](_sc(\"no tasks available right
now. check back later.\"))\n
else:\n for tid, t in
chunk:\n remaining =
int([Link](\"slots\", 0)) -
int([Link](\"completed\",
0))\n [Link](BUL + \"
<b>\" + [Link](\"link\", \"\") + \"</b>\\n
\" + _sc(\"reward\") + \": <b>\" +
_fmt([Link](\"reward\")) + \"</b> \" +
_sc(\"coin\") + \" \" + ARR + \" \" +
_sc(\"left\") + \": \" +
str(remaining))\n
[Link]([{\"text\": _sc(\"join &
verify\") + \" - \" + [Link](\"link\",
\"\").replace(\"[Link] \"@\"),
\"callback_data\": \"earn_join_\" +
tid}])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"earn_page_\" + str(page - 1)})\n
if page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"earn_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def _mytask_rows(page,
uid):\n tasks = _tasks()\n
mine = [(tid, t) for tid, t in
[Link]() if str([Link](\"owner\")) ==
str(uid)]\n [Link](key=lambda x:
-int(x[1].get(\"created_at\", 0)))\n
per_page = 4\n total_pages = max(1,
(len(mine) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
mine[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"my tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"you
have not created any task yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"status\") + \": \" + status_txt + \"
\" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \"\\n \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
toggle_txt = _sc(\"pause\") if
[Link](\"active\") else
_sc(\"resume\")\n
[Link]([\n
{\"text\": toggle_txt, \"callback_data\":
\"myt_toggle_\" +
tid},\n {\"text\":
_sc(\"delete\"), \"callback_data\":
\"myt_del_\" + tid}\n
])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"myt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"myt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def
_admin_tasks_rows(page):\n tasks =
_tasks()\n items =
list([Link]())\n
[Link](key=lambda x: -
int(x[1].get(\"created_at\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(items) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
items[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"manage tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"no
tasks created yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"owner\") + \": <code>\" +
str([Link](\"owner\")) + \"</code> \" +
_sc(\"status\") + \": \" + status_txt +
\"\\n \" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \" \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
[Link]([{\"text\": _sc(\"remove
task\") + \" #\" + tid, \"callback_data\":
\"adt_del_\" + tid}])\n nav =
[]\n if page > 0:\n
[Link]({\"text\": \"< \" +
_sc(\"prev\"), \"callback_data\":
\"adt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"adt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n u =
str(message.from_user.id)\n users =
_users()\n rec = _urec(users, u)\n
settings = _settings()\n if
[Link](\"banned\"):\n
[Link](_sc(\"you are banned from
using this bot.\"),
parse_mode=\"html\")\n else:\n
cooldown =
int([Link](\"bonus_hours\", 24)) *
3600\n now =
int([Link]())\n last =
int([Link](\"last_bonus\", 0))\n
remaining = cooldown - (now -
last)\n if remaining >
0:\n hrs = remaining //
3600\n mins = (remaining % 3600)
// 60\n
[Link](_sc(\"you already claimed
your bonus.\") + \" \" + _sc(\"try again
in\") + \" \" + str(hrs) + \"h \" +
str(mins) + \"m.\",
parse_mode=\"html\")\n
else:\n bonus =
float([Link](\"daily_bonus\",
1.0))\n rec[\"balance\"] =
float([Link](\"balance\", 0.0)) +
bonus\n rec[\"last_bonus\"] =
now\n users[u] =
rec\n
_save_users(users)\n
[Link](\n LN +
\"\\n\" + BUL + \" \" + _sc(\"daily
bonus\") + \" \" + BUL + \"\\n\" + LN +
\"\\n\\n\"\n + _sc(\"you
received\") + \" <b>\" + _fmt(bonus) + \"
</b> \" + _sc(\"coin\") +
\"\\n\"\n + _sc(\"come back
tomorrow for more.\") + \"\\n\\n\" +
LN,\n
parse_mode=\"html\"\n
)\n\nexcept Exception as e:\n
[Link](chat_id=int(u),
text=\"Error: \" + str(e))\n",
"created_at": "2026-07-28 09:20:40",
"folder": "",
"last_updated": "2026-07-28
09:20:40",
"pinned": false
},
{
"bot": "94886904",
"command": "Manage Tasks",
"admin_only": false,
"code": "try:\n def
_sc(t):\n m =
{'a':'ᴀ','b':'ʙ','c':'ᴄ','d':'ᴅ','e':'ᴇ','f
':'ꜰ','g':'ɢ','h':'ʜ','i':'ɪ','j':'ᴊ','k':'ᴋ
','l':'ʟ','m':'ᴍ','n':'ɴ','o':'ᴏ','p':'ᴘ','
q':'ǫ','r':'ʀ','s':'ꜱ','t':'ᴛ','u':'ᴜ','v':
'ᴠ','w':'ᴡ','x':'x','y':'ʏ','z':'ᴢ'}\n
out = \"\"\n for ch in
str(t):\n low =
[Link]()\n out += m[low] if
low in m else ch\n return out\n\n
LN = \"─\" * 20\n BUL = \"•\"\n ARR =
\"→\"\n\n def _users():\n d =
[Link](\"users\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_users(d):\n
[Link](\"users\", d)\n\n def
_urec(d, uid):\n if uid not in
d:\n d[uid] = {\n
\"balance\": 0.0,\n
\"total_refs\": 0,\n
\"banned\": False,\n
\"wallet\": \"\",\n
\"last_bonus\": 0,\n
\"referred_by\": None,\n
\"joined\": False,\n
\"joined_at\":
int([Link]()),\n
\"completed\": []\n }\n
if \"completed\" not in
d[uid]:\n d[uid][\"completed\"]
= []\n return d[uid]\n\n def
_settings():\n s =
[Link](\"settings\")\n if not
isinstance(s, dict):\n s =
{}\n [Link](\"ref_amount\",
1.0)\n [Link](\"daily_bonus\",
1.0)\n
[Link](\"min_task_reward\",
1.0)\n
[Link](\"min_withdraw\",
10.0)\n
[Link](\"bonus_hours\", 24)\n
return s\n\n def
_save_settings(s):\n
[Link](\"settings\", s)\n\n def
_is_admin(uid):\n admins =
[Link](\"admins\")\n if not
admins:\n admins = []\n
return str(uid) in admins\n\n def
_tasks():\n d =
[Link](\"tasks\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_tasks(d):\n
[Link](\"tasks\", d)\n\n def
_new_task_id():\n n =
[Link](\"task_counter\")\n n =
int(n) + 1 if n else 1\n
[Link](\"task_counter\", n)\n
return str(n)\n\n def
_norm_channel(raw):\n t =
str(raw).strip()\n t =
[Link](\"[Link]
\"\").replace(\"[Link] \"\")\n
if [Link](\"[Link]/\"):\n t
= t[5:]\n if
[Link](\"@\"):\n t =
t[1:]\n t = [Link](\"?\")
[0].split(\"/\")[0].strip()\n return
t\n\n def
_check_bot_admin(username):\n
try:\n admins =
[Link](chat_id=\"@\" +
username)\n except Exception as
e:\n return False,
str(e)\n for a in
admins:\n try:\n
member = [Link] if hasattr(a, \"user\")
else [Link](\"user\", {})\n
mid = [Link] if hasattr(member, \"id\")
else [Link](\"id\")\n except
Exception:\n mid =
None\n if mid is not None and
str(mid) == str(bot_id):\n
return True, \"\"\n return False,
\"not_admin\"\n\n def _fmt(n):\n
try:\n f = float(n)\n
if f == int(f):\n return
str(int(f))\n return
str(round(f, 2))\n except
Exception:\n return
str(n)\n\n def _wreqs():\n d =
[Link](\"withdrawals\")\n
return d if isinstance(d, dict) else
{}\n\n def _save_wreqs(d):\n
[Link](\"withdrawals\", d)\n\n def
_main_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"START
EARNING\"}],\n [{\"text\":
\"CREATE TASK\"}, {\"text\": \"MY
TASK\"}],\n [{\"text\":
\"INVITE FRIENDS\"}, {\"text\": \"MY
BALANCE\"}],\n [{\"text\":
\"DAILY BONUS\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def
_admin_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"Manage
Tasks\"}],\n [{\"text\":
\"Set Refer Reward\"}, {\"text\": \"Set
Daily Bonus\"}],\n
[{\"text\": \"Min Task Reward\"},
{\"text\": \"Withdraw
Requests\"}],\n [{\"text\":
\"Add Balance\"}, {\"text\": \"Remove
Balance\"}],\n [{\"text\":
\"Ban User\"}, {\"text\": \"User
Details\"}],\n [{\"text\":
\"Stats\"}, {\"text\":
\"Broadcast\"}],\n
[{\"text\": \"/start\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def _earn_rows(page,
uid, users_d):\n tasks =
_tasks()\n rec2 = _urec(users_d,
uid)\n active = []\n for tid,
t in [Link]():\n if not
[Link](\"active\"):\n
continue\n if
str([Link](\"owner\")) ==
str(uid):\n
continue\n if tid in
[Link](\"completed\",
[]):\n continue\n
if int([Link](\"completed\", 0)) >=
int([Link](\"slots\", 0)):\n
continue\n [Link]((tid,
t))\n [Link](key=lambda x: -
float(x[1].get(\"reward\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(active) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
active[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"available tasks\") + \" \" + BUL,
LN, \"\"]\n rows = []\n if
not chunk:\n
[Link](_sc(\"no tasks available right
now. check back later.\"))\n
else:\n for tid, t in
chunk:\n remaining =
int([Link](\"slots\", 0)) -
int([Link](\"completed\",
0))\n [Link](BUL + \"
<b>\" + [Link](\"link\", \"\") + \"</b>\\n
\" + _sc(\"reward\") + \": <b>\" +
_fmt([Link](\"reward\")) + \"</b> \" +
_sc(\"coin\") + \" \" + ARR + \" \" +
_sc(\"left\") + \": \" +
str(remaining))\n
[Link]([{\"text\": _sc(\"join &
verify\") + \" - \" + [Link](\"link\",
\"\").replace(\"[Link] \"@\"),
\"callback_data\": \"earn_join_\" +
tid}])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"earn_page_\" + str(page - 1)})\n
if page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"earn_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def _mytask_rows(page,
uid):\n tasks = _tasks()\n
mine = [(tid, t) for tid, t in
[Link]() if str([Link](\"owner\")) ==
str(uid)]\n [Link](key=lambda x:
-int(x[1].get(\"created_at\", 0)))\n
per_page = 4\n total_pages = max(1,
(len(mine) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
mine[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"my tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"you
have not created any task yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"status\") + \": \" + status_txt + \"
\" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \"\\n \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
toggle_txt = _sc(\"pause\") if
[Link](\"active\") else
_sc(\"resume\")\n
[Link]([\n
{\"text\": toggle_txt, \"callback_data\":
\"myt_toggle_\" +
tid},\n {\"text\":
_sc(\"delete\"), \"callback_data\":
\"myt_del_\" + tid}\n
])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"myt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"myt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def
_admin_tasks_rows(page):\n tasks =
_tasks()\n items =
list([Link]())\n
[Link](key=lambda x: -
int(x[1].get(\"created_at\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(items) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
items[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"manage tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"no
tasks created yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"owner\") + \": <code>\" +
str([Link](\"owner\")) + \"</code> \" +
_sc(\"status\") + \": \" + status_txt +
\"\\n \" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \" \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
[Link]([{\"text\": _sc(\"remove
task\") + \" #\" + tid, \"callback_data\":
\"adt_del_\" + tid}])\n nav =
[]\n if page > 0:\n
[Link]({\"text\": \"< \" +
_sc(\"prev\"), \"callback_data\":
\"adt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"adt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n u =
str(message.from_user.id)\n if not
_is_admin(u):\n
[Link](_sc(\"access denied.\"),
parse_mode=\"html\")\n else:\n
text, kb = _admin_tasks_rows(0)\n
[Link](text, parse_mode=\"html\",
reply_markup=kb)\n\nexcept Exception as
e:\n [Link](chat_id=int(u),
text=\"Error: \" + str(e))\n",
"created_at": "2026-07-28 09:20:40",
"folder": "",
"last_updated": "2026-07-28
09:20:40",
"pinned": false
},
{
"bot": "94886904",
"command": "Set Refer Reward",
"admin_only": false,
"code": "try:\n def
_sc(t):\n m =
{'a':'ᴀ','b':'ʙ','c':'ᴄ','d':'ᴅ','e':'ᴇ','f
':'ꜰ','g':'ɢ','h':'ʜ','i':'ɪ','j':'ᴊ','k':'ᴋ
','l':'ʟ','m':'ᴍ','n':'ɴ','o':'ᴏ','p':'ᴘ','
q':'ǫ','r':'ʀ','s':'ꜱ','t':'ᴛ','u':'ᴜ','v':
'ᴠ','w':'ᴡ','x':'x','y':'ʏ','z':'ᴢ'}\n
out = \"\"\n for ch in
str(t):\n low =
[Link]()\n out += m[low] if
low in m else ch\n return out\n\n
LN = \"─\" * 20\n BUL = \"•\"\n ARR =
\"→\"\n\n def _users():\n d =
[Link](\"users\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_users(d):\n
[Link](\"users\", d)\n\n def
_urec(d, uid):\n if uid not in
d:\n d[uid] = {\n
\"balance\": 0.0,\n
\"total_refs\": 0,\n
\"banned\": False,\n
\"wallet\": \"\",\n
\"last_bonus\": 0,\n
\"referred_by\": None,\n
\"joined\": False,\n
\"joined_at\":
int([Link]()),\n
\"completed\": []\n }\n
if \"completed\" not in
d[uid]:\n d[uid][\"completed\"]
= []\n return d[uid]\n\n def
_settings():\n s =
[Link](\"settings\")\n if not
isinstance(s, dict):\n s =
{}\n [Link](\"ref_amount\",
1.0)\n [Link](\"daily_bonus\",
1.0)\n
[Link](\"min_task_reward\",
1.0)\n
[Link](\"min_withdraw\",
10.0)\n
[Link](\"bonus_hours\", 24)\n
return s\n\n def
_save_settings(s):\n
[Link](\"settings\", s)\n\n def
_is_admin(uid):\n admins =
[Link](\"admins\")\n if not
admins:\n admins = []\n
return str(uid) in admins\n\n def
_tasks():\n d =
[Link](\"tasks\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_tasks(d):\n
[Link](\"tasks\", d)\n\n def
_new_task_id():\n n =
[Link](\"task_counter\")\n n =
int(n) + 1 if n else 1\n
[Link](\"task_counter\", n)\n
return str(n)\n\n def
_norm_channel(raw):\n t =
str(raw).strip()\n t =
[Link](\"[Link]
\"\").replace(\"[Link] \"\")\n
if [Link](\"[Link]/\"):\n t
= t[5:]\n if
[Link](\"@\"):\n t =
t[1:]\n t = [Link](\"?\")
[0].split(\"/\")[0].strip()\n return
t\n\n def
_check_bot_admin(username):\n
try:\n admins =
[Link](chat_id=\"@\" +
username)\n except Exception as
e:\n return False,
str(e)\n for a in
admins:\n try:\n
member = [Link] if hasattr(a, \"user\")
else [Link](\"user\", {})\n
mid = [Link] if hasattr(member, \"id\")
else [Link](\"id\")\n except
Exception:\n mid =
None\n if mid is not None and
str(mid) == str(bot_id):\n
return True, \"\"\n return False,
\"not_admin\"\n\n def _fmt(n):\n
try:\n f = float(n)\n
if f == int(f):\n return
str(int(f))\n return
str(round(f, 2))\n except
Exception:\n return
str(n)\n\n def _wreqs():\n d =
[Link](\"withdrawals\")\n
return d if isinstance(d, dict) else
{}\n\n def _save_wreqs(d):\n
[Link](\"withdrawals\", d)\n\n def
_main_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"START
EARNING\"}],\n [{\"text\":
\"CREATE TASK\"}, {\"text\": \"MY
TASK\"}],\n [{\"text\":
\"INVITE FRIENDS\"}, {\"text\": \"MY
BALANCE\"}],\n [{\"text\":
\"DAILY BONUS\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def
_admin_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"Manage
Tasks\"}],\n [{\"text\":
\"Set Refer Reward\"}, {\"text\": \"Set
Daily Bonus\"}],\n
[{\"text\": \"Min Task Reward\"},
{\"text\": \"Withdraw
Requests\"}],\n [{\"text\":
\"Add Balance\"}, {\"text\": \"Remove
Balance\"}],\n [{\"text\":
\"Ban User\"}, {\"text\": \"User
Details\"}],\n [{\"text\":
\"Stats\"}, {\"text\":
\"Broadcast\"}],\n
[{\"text\": \"/start\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def _earn_rows(page,
uid, users_d):\n tasks =
_tasks()\n rec2 = _urec(users_d,
uid)\n active = []\n for tid,
t in [Link]():\n if not
[Link](\"active\"):\n
continue\n if
str([Link](\"owner\")) ==
str(uid):\n
continue\n if tid in
[Link](\"completed\",
[]):\n continue\n
if int([Link](\"completed\", 0)) >=
int([Link](\"slots\", 0)):\n
continue\n [Link]((tid,
t))\n [Link](key=lambda x: -
float(x[1].get(\"reward\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(active) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
active[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"available tasks\") + \" \" + BUL,
LN, \"\"]\n rows = []\n if
not chunk:\n
[Link](_sc(\"no tasks available right
now. check back later.\"))\n
else:\n for tid, t in
chunk:\n remaining =
int([Link](\"slots\", 0)) -
int([Link](\"completed\",
0))\n [Link](BUL + \"
<b>\" + [Link](\"link\", \"\") + \"</b>\\n
\" + _sc(\"reward\") + \": <b>\" +
_fmt([Link](\"reward\")) + \"</b> \" +
_sc(\"coin\") + \" \" + ARR + \" \" +
_sc(\"left\") + \": \" +
str(remaining))\n
[Link]([{\"text\": _sc(\"join &
verify\") + \" - \" + [Link](\"link\",
\"\").replace(\"[Link] \"@\"),
\"callback_data\": \"earn_join_\" +
tid}])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"earn_page_\" + str(page - 1)})\n
if page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"earn_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def _mytask_rows(page,
uid):\n tasks = _tasks()\n
mine = [(tid, t) for tid, t in
[Link]() if str([Link](\"owner\")) ==
str(uid)]\n [Link](key=lambda x:
-int(x[1].get(\"created_at\", 0)))\n
per_page = 4\n total_pages = max(1,
(len(mine) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
mine[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"my tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"you
have not created any task yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"status\") + \": \" + status_txt + \"
\" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \"\\n \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
toggle_txt = _sc(\"pause\") if
[Link](\"active\") else
_sc(\"resume\")\n
[Link]([\n
{\"text\": toggle_txt, \"callback_data\":
\"myt_toggle_\" +
tid},\n {\"text\":
_sc(\"delete\"), \"callback_data\":
\"myt_del_\" + tid}\n
])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"myt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"myt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def
_admin_tasks_rows(page):\n tasks =
_tasks()\n items =
list([Link]())\n
[Link](key=lambda x: -
int(x[1].get(\"created_at\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(items) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
items[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"manage tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"no
tasks created yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"owner\") + \": <code>\" +
str([Link](\"owner\")) + \"</code> \" +
_sc(\"status\") + \": \" + status_txt +
\"\\n \" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \" \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
[Link]([{\"text\": _sc(\"remove
task\") + \" #\" + tid, \"callback_data\":
\"adt_del_\" + tid}])\n nav =
[]\n if page > 0:\n
[Link]({\"text\": \"< \" +
_sc(\"prev\"), \"callback_data\":
\"adt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"adt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n u =
str(message.from_user.id)\n if not
_is_admin(u):\n
[Link](_sc(\"access denied.\"),
parse_mode=\"html\")\n else:\n
[Link](_sc(\"send the new referral
reward amount in coin\") + \":\",
parse_mode=\"html\")\n
[Link](\"set_ref_input\")\n\
nexcept Exception as e:\n
[Link](chat_id=int(u),
text=\"Error: \" + str(e))\n",
"created_at": "2026-07-28 09:20:40",
"folder": "",
"last_updated": "2026-07-28
09:20:40",
"pinned": false
},
{
"bot": "94886904",
"command": "set_ref_input",
"admin_only": false,
"code": "try:\n def
_sc(t):\n m =
{'a':'ᴀ','b':'ʙ','c':'ᴄ','d':'ᴅ','e':'ᴇ','f
':'ꜰ','g':'ɢ','h':'ʜ','i':'ɪ','j':'ᴊ','k':'ᴋ
','l':'ʟ','m':'ᴍ','n':'ɴ','o':'ᴏ','p':'ᴘ','
q':'ǫ','r':'ʀ','s':'ꜱ','t':'ᴛ','u':'ᴜ','v':
'ᴠ','w':'ᴡ','x':'x','y':'ʏ','z':'ᴢ'}\n
out = \"\"\n for ch in
str(t):\n low =
[Link]()\n out += m[low] if
low in m else ch\n return out\n\n
LN = \"─\" * 20\n BUL = \"•\"\n ARR =
\"→\"\n\n def _users():\n d =
[Link](\"users\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_users(d):\n
[Link](\"users\", d)\n\n def
_urec(d, uid):\n if uid not in
d:\n d[uid] = {\n
\"balance\": 0.0,\n
\"total_refs\": 0,\n
\"banned\": False,\n
\"wallet\": \"\",\n
\"last_bonus\": 0,\n
\"referred_by\": None,\n
\"joined\": False,\n
\"joined_at\":
int([Link]()),\n
\"completed\": []\n }\n
if \"completed\" not in
d[uid]:\n d[uid][\"completed\"]
= []\n return d[uid]\n\n def
_settings():\n s =
[Link](\"settings\")\n if not
isinstance(s, dict):\n s =
{}\n [Link](\"ref_amount\",
1.0)\n [Link](\"daily_bonus\",
1.0)\n
[Link](\"min_task_reward\",
1.0)\n
[Link](\"min_withdraw\",
10.0)\n
[Link](\"bonus_hours\", 24)\n
return s\n\n def
_save_settings(s):\n
[Link](\"settings\", s)\n\n def
_is_admin(uid):\n admins =
[Link](\"admins\")\n if not
admins:\n admins = []\n
return str(uid) in admins\n\n def
_tasks():\n d =
[Link](\"tasks\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_tasks(d):\n
[Link](\"tasks\", d)\n\n def
_new_task_id():\n n =
[Link](\"task_counter\")\n n =
int(n) + 1 if n else 1\n
[Link](\"task_counter\", n)\n
return str(n)\n\n def
_norm_channel(raw):\n t =
str(raw).strip()\n t =
[Link](\"[Link]
\"\").replace(\"[Link] \"\")\n
if [Link](\"[Link]/\"):\n t
= t[5:]\n if
[Link](\"@\"):\n t =
t[1:]\n t = [Link](\"?\")
[0].split(\"/\")[0].strip()\n return
t\n\n def
_check_bot_admin(username):\n
try:\n admins =
[Link](chat_id=\"@\" +
username)\n except Exception as
e:\n return False,
str(e)\n for a in
admins:\n try:\n
member = [Link] if hasattr(a, \"user\")
else [Link](\"user\", {})\n
mid = [Link] if hasattr(member, \"id\")
else [Link](\"id\")\n except
Exception:\n mid =
None\n if mid is not None and
str(mid) == str(bot_id):\n
return True, \"\"\n return False,
\"not_admin\"\n\n def _fmt(n):\n
try:\n f = float(n)\n
if f == int(f):\n return
str(int(f))\n return
str(round(f, 2))\n except
Exception:\n return
str(n)\n\n def _wreqs():\n d =
[Link](\"withdrawals\")\n
return d if isinstance(d, dict) else
{}\n\n def _save_wreqs(d):\n
[Link](\"withdrawals\", d)\n\n def
_main_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"START
EARNING\"}],\n [{\"text\":
\"CREATE TASK\"}, {\"text\": \"MY
TASK\"}],\n [{\"text\":
\"INVITE FRIENDS\"}, {\"text\": \"MY
BALANCE\"}],\n [{\"text\":
\"DAILY BONUS\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def
_admin_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"Manage
Tasks\"}],\n [{\"text\":
\"Set Refer Reward\"}, {\"text\": \"Set
Daily Bonus\"}],\n
[{\"text\": \"Min Task Reward\"},
{\"text\": \"Withdraw
Requests\"}],\n [{\"text\":
\"Add Balance\"}, {\"text\": \"Remove
Balance\"}],\n [{\"text\":
\"Ban User\"}, {\"text\": \"User
Details\"}],\n [{\"text\":
\"Stats\"}, {\"text\":
\"Broadcast\"}],\n
[{\"text\": \"/start\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def _earn_rows(page,
uid, users_d):\n tasks =
_tasks()\n rec2 = _urec(users_d,
uid)\n active = []\n for tid,
t in [Link]():\n if not
[Link](\"active\"):\n
continue\n if
str([Link](\"owner\")) ==
str(uid):\n
continue\n if tid in
[Link](\"completed\",
[]):\n continue\n
if int([Link](\"completed\", 0)) >=
int([Link](\"slots\", 0)):\n
continue\n [Link]((tid,
t))\n [Link](key=lambda x: -
float(x[1].get(\"reward\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(active) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
active[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"available tasks\") + \" \" + BUL,
LN, \"\"]\n rows = []\n if
not chunk:\n
[Link](_sc(\"no tasks available right
now. check back later.\"))\n
else:\n for tid, t in
chunk:\n remaining =
int([Link](\"slots\", 0)) -
int([Link](\"completed\",
0))\n [Link](BUL + \"
<b>\" + [Link](\"link\", \"\") + \"</b>\\n
\" + _sc(\"reward\") + \": <b>\" +
_fmt([Link](\"reward\")) + \"</b> \" +
_sc(\"coin\") + \" \" + ARR + \" \" +
_sc(\"left\") + \": \" +
str(remaining))\n
[Link]([{\"text\": _sc(\"join &
verify\") + \" - \" + [Link](\"link\",
\"\").replace(\"[Link] \"@\"),
\"callback_data\": \"earn_join_\" +
tid}])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"earn_page_\" + str(page - 1)})\n
if page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"earn_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def _mytask_rows(page,
uid):\n tasks = _tasks()\n
mine = [(tid, t) for tid, t in
[Link]() if str([Link](\"owner\")) ==
str(uid)]\n [Link](key=lambda x:
-int(x[1].get(\"created_at\", 0)))\n
per_page = 4\n total_pages = max(1,
(len(mine) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
mine[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"my tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"you
have not created any task yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"status\") + \": \" + status_txt + \"
\" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \"\\n \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
toggle_txt = _sc(\"pause\") if
[Link](\"active\") else
_sc(\"resume\")\n
[Link]([\n
{\"text\": toggle_txt, \"callback_data\":
\"myt_toggle_\" +
tid},\n {\"text\":
_sc(\"delete\"), \"callback_data\":
\"myt_del_\" + tid}\n
])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"myt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"myt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def
_admin_tasks_rows(page):\n tasks =
_tasks()\n items =
list([Link]())\n
[Link](key=lambda x: -
int(x[1].get(\"created_at\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(items) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
items[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"manage tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"no
tasks created yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"owner\") + \": <code>\" +
str([Link](\"owner\")) + \"</code> \" +
_sc(\"status\") + \": \" + status_txt +
\"\\n \" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \" \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
[Link]([{\"text\": _sc(\"remove
task\") + \" #\" + tid, \"callback_data\":
\"adt_del_\" + tid}])\n nav =
[]\n if page > 0:\n
[Link]({\"text\": \"< \" +
_sc(\"prev\"), \"callback_data\":
\"adt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"adt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n u =
str(message.from_user.id)\n if not
_is_admin(u):\n
[Link](_sc(\"access denied.\"),
parse_mode=\"html\")\n else:\n
try:\n val =
float(msg)\n s =
_settings()\n s[\"ref_amount\"]
= val\n
_save_settings(s)\n
[Link](_sc(\"referral reward
updated to\") + \" \" + _fmt(val) + \" \" +
_sc(\"coin.\"),
parse_mode=\"html\")\n except
ValueError:\n
[Link](_sc(\"please send a valid
number.\"), parse_mode=\"html\")\n\nexcept
Exception as e:\n
[Link](chat_id=int(u),
text=\"Error: \" + str(e))\n",
"created_at": "2026-07-28 09:20:40",
"folder": "",
"last_updated": "2026-07-28
09:20:40",
"pinned": false
},
{
"bot": "94886904",
"command": "Set Daily Bonus",
"admin_only": false,
"code": "try:\n def
_sc(t):\n m =
{'a':'ᴀ','b':'ʙ','c':'ᴄ','d':'ᴅ','e':'ᴇ','f
':'ꜰ','g':'ɢ','h':'ʜ','i':'ɪ','j':'ᴊ','k':'ᴋ
','l':'ʟ','m':'ᴍ','n':'ɴ','o':'ᴏ','p':'ᴘ','
q':'ǫ','r':'ʀ','s':'ꜱ','t':'ᴛ','u':'ᴜ','v':
'ᴠ','w':'ᴡ','x':'x','y':'ʏ','z':'ᴢ'}\n
out = \"\"\n for ch in
str(t):\n low =
[Link]()\n out += m[low] if
low in m else ch\n return out\n\n
LN = \"─\" * 20\n BUL = \"•\"\n ARR =
\"→\"\n\n def _users():\n d =
[Link](\"users\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_users(d):\n
[Link](\"users\", d)\n\n def
_urec(d, uid):\n if uid not in
d:\n d[uid] = {\n
\"balance\": 0.0,\n
\"total_refs\": 0,\n
\"banned\": False,\n
\"wallet\": \"\",\n
\"last_bonus\": 0,\n
\"referred_by\": None,\n
\"joined\": False,\n
\"joined_at\":
int([Link]()),\n
\"completed\": []\n }\n
if \"completed\" not in
d[uid]:\n d[uid][\"completed\"]
= []\n return d[uid]\n\n def
_settings():\n s =
[Link](\"settings\")\n if not
isinstance(s, dict):\n s =
{}\n [Link](\"ref_amount\",
1.0)\n [Link](\"daily_bonus\",
1.0)\n
[Link](\"min_task_reward\",
1.0)\n
[Link](\"min_withdraw\",
10.0)\n
[Link](\"bonus_hours\", 24)\n
return s\n\n def
_save_settings(s):\n
[Link](\"settings\", s)\n\n def
_is_admin(uid):\n admins =
[Link](\"admins\")\n if not
admins:\n admins = []\n
return str(uid) in admins\n\n def
_tasks():\n d =
[Link](\"tasks\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_tasks(d):\n
[Link](\"tasks\", d)\n\n def
_new_task_id():\n n =
[Link](\"task_counter\")\n n =
int(n) + 1 if n else 1\n
[Link](\"task_counter\", n)\n
return str(n)\n\n def
_norm_channel(raw):\n t =
str(raw).strip()\n t =
[Link](\"[Link]
\"\").replace(\"[Link] \"\")\n
if [Link](\"[Link]/\"):\n t
= t[5:]\n if
[Link](\"@\"):\n t =
t[1:]\n t = [Link](\"?\")
[0].split(\"/\")[0].strip()\n return
t\n\n def
_check_bot_admin(username):\n
try:\n admins =
[Link](chat_id=\"@\" +
username)\n except Exception as
e:\n return False,
str(e)\n for a in
admins:\n try:\n
member = [Link] if hasattr(a, \"user\")
else [Link](\"user\", {})\n
mid = [Link] if hasattr(member, \"id\")
else [Link](\"id\")\n except
Exception:\n mid =
None\n if mid is not None and
str(mid) == str(bot_id):\n
return True, \"\"\n return False,
\"not_admin\"\n\n def _fmt(n):\n
try:\n f = float(n)\n
if f == int(f):\n return
str(int(f))\n return
str(round(f, 2))\n except
Exception:\n return
str(n)\n\n def _wreqs():\n d =
[Link](\"withdrawals\")\n
return d if isinstance(d, dict) else
{}\n\n def _save_wreqs(d):\n
[Link](\"withdrawals\", d)\n\n def
_main_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"START
EARNING\"}],\n [{\"text\":
\"CREATE TASK\"}, {\"text\": \"MY
TASK\"}],\n [{\"text\":
\"INVITE FRIENDS\"}, {\"text\": \"MY
BALANCE\"}],\n [{\"text\":
\"DAILY BONUS\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def
_admin_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"Manage
Tasks\"}],\n [{\"text\":
\"Set Refer Reward\"}, {\"text\": \"Set
Daily Bonus\"}],\n
[{\"text\": \"Min Task Reward\"},
{\"text\": \"Withdraw
Requests\"}],\n [{\"text\":
\"Add Balance\"}, {\"text\": \"Remove
Balance\"}],\n [{\"text\":
\"Ban User\"}, {\"text\": \"User
Details\"}],\n [{\"text\":
\"Stats\"}, {\"text\":
\"Broadcast\"}],\n
[{\"text\": \"/start\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def _earn_rows(page,
uid, users_d):\n tasks =
_tasks()\n rec2 = _urec(users_d,
uid)\n active = []\n for tid,
t in [Link]():\n if not
[Link](\"active\"):\n
continue\n if
str([Link](\"owner\")) ==
str(uid):\n
continue\n if tid in
[Link](\"completed\",
[]):\n continue\n
if int([Link](\"completed\", 0)) >=
int([Link](\"slots\", 0)):\n
continue\n [Link]((tid,
t))\n [Link](key=lambda x: -
float(x[1].get(\"reward\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(active) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
active[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"available tasks\") + \" \" + BUL,
LN, \"\"]\n rows = []\n if
not chunk:\n
[Link](_sc(\"no tasks available right
now. check back later.\"))\n
else:\n for tid, t in
chunk:\n remaining =
int([Link](\"slots\", 0)) -
int([Link](\"completed\",
0))\n [Link](BUL + \"
<b>\" + [Link](\"link\", \"\") + \"</b>\\n
\" + _sc(\"reward\") + \": <b>\" +
_fmt([Link](\"reward\")) + \"</b> \" +
_sc(\"coin\") + \" \" + ARR + \" \" +
_sc(\"left\") + \": \" +
str(remaining))\n
[Link]([{\"text\": _sc(\"join &
verify\") + \" - \" + [Link](\"link\",
\"\").replace(\"[Link] \"@\"),
\"callback_data\": \"earn_join_\" +
tid}])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"earn_page_\" + str(page - 1)})\n
if page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"earn_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def _mytask_rows(page,
uid):\n tasks = _tasks()\n
mine = [(tid, t) for tid, t in
[Link]() if str([Link](\"owner\")) ==
str(uid)]\n [Link](key=lambda x:
-int(x[1].get(\"created_at\", 0)))\n
per_page = 4\n total_pages = max(1,
(len(mine) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
mine[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"my tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"you
have not created any task yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"status\") + \": \" + status_txt + \"
\" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \"\\n \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
toggle_txt = _sc(\"pause\") if
[Link](\"active\") else
_sc(\"resume\")\n
[Link]([\n
{\"text\": toggle_txt, \"callback_data\":
\"myt_toggle_\" +
tid},\n {\"text\":
_sc(\"delete\"), \"callback_data\":
\"myt_del_\" + tid}\n
])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"myt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"myt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def
_admin_tasks_rows(page):\n tasks =
_tasks()\n items =
list([Link]())\n
[Link](key=lambda x: -
int(x[1].get(\"created_at\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(items) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
items[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"manage tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"no
tasks created yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"owner\") + \": <code>\" +
str([Link](\"owner\")) + \"</code> \" +
_sc(\"status\") + \": \" + status_txt +
\"\\n \" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \" \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
[Link]([{\"text\": _sc(\"remove
task\") + \" #\" + tid, \"callback_data\":
\"adt_del_\" + tid}])\n nav =
[]\n if page > 0:\n
[Link]({\"text\": \"< \" +
_sc(\"prev\"), \"callback_data\":
\"adt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"adt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n u =
str(message.from_user.id)\n if not
_is_admin(u):\n
[Link](_sc(\"access denied.\"),
parse_mode=\"html\")\n else:\n
[Link](_sc(\"send the new daily
bonus amount in coin\") + \":\",
parse_mode=\"html\")\n
[Link](\"save_bonus\")\n\nex
cept Exception as e:\n
[Link](chat_id=int(u),
text=\"Error: \" + str(e))\n",
"created_at": "2026-07-28 09:20:40",
"folder": "",
"last_updated": "2026-07-28
09:20:40",
"pinned": false
},
{
"bot": "94886904",
"command": "save_bonus",
"admin_only": false,
"code": "try:\n def
_sc(t):\n m =
{'a':'ᴀ','b':'ʙ','c':'ᴄ','d':'ᴅ','e':'ᴇ','f
':'ꜰ','g':'ɢ','h':'ʜ','i':'ɪ','j':'ᴊ','k':'ᴋ
','l':'ʟ','m':'ᴍ','n':'ɴ','o':'ᴏ','p':'ᴘ','
q':'ǫ','r':'ʀ','s':'ꜱ','t':'ᴛ','u':'ᴜ','v':
'ᴠ','w':'ᴡ','x':'x','y':'ʏ','z':'ᴢ'}\n
out = \"\"\n for ch in
str(t):\n low =
[Link]()\n out += m[low] if
low in m else ch\n return out\n\n
LN = \"─\" * 20\n BUL = \"•\"\n ARR =
\"→\"\n\n def _users():\n d =
[Link](\"users\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_users(d):\n
[Link](\"users\", d)\n\n def
_urec(d, uid):\n if uid not in
d:\n d[uid] = {\n
\"balance\": 0.0,\n
\"total_refs\": 0,\n
\"banned\": False,\n
\"wallet\": \"\",\n
\"last_bonus\": 0,\n
\"referred_by\": None,\n
\"joined\": False,\n
\"joined_at\":
int([Link]()),\n
\"completed\": []\n }\n
if \"completed\" not in
d[uid]:\n d[uid][\"completed\"]
= []\n return d[uid]\n\n def
_settings():\n s =
[Link](\"settings\")\n if not
isinstance(s, dict):\n s =
{}\n [Link](\"ref_amount\",
1.0)\n [Link](\"daily_bonus\",
1.0)\n
[Link](\"min_task_reward\",
1.0)\n
[Link](\"min_withdraw\",
10.0)\n
[Link](\"bonus_hours\", 24)\n
return s\n\n def
_save_settings(s):\n
[Link](\"settings\", s)\n\n def
_is_admin(uid):\n admins =
[Link](\"admins\")\n if not
admins:\n admins = []\n
return str(uid) in admins\n\n def
_tasks():\n d =
[Link](\"tasks\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_tasks(d):\n
[Link](\"tasks\", d)\n\n def
_new_task_id():\n n =
[Link](\"task_counter\")\n n =
int(n) + 1 if n else 1\n
[Link](\"task_counter\", n)\n
return str(n)\n\n def
_norm_channel(raw):\n t =
str(raw).strip()\n t =
[Link](\"[Link]
\"\").replace(\"[Link] \"\")\n
if [Link](\"[Link]/\"):\n t
= t[5:]\n if
[Link](\"@\"):\n t =
t[1:]\n t = [Link](\"?\")
[0].split(\"/\")[0].strip()\n return
t\n\n def
_check_bot_admin(username):\n
try:\n admins =
[Link](chat_id=\"@\" +
username)\n except Exception as
e:\n return False,
str(e)\n for a in
admins:\n try:\n
member = [Link] if hasattr(a, \"user\")
else [Link](\"user\", {})\n
mid = [Link] if hasattr(member, \"id\")
else [Link](\"id\")\n except
Exception:\n mid =
None\n if mid is not None and
str(mid) == str(bot_id):\n
return True, \"\"\n return False,
\"not_admin\"\n\n def _fmt(n):\n
try:\n f = float(n)\n
if f == int(f):\n return
str(int(f))\n return
str(round(f, 2))\n except
Exception:\n return
str(n)\n\n def _wreqs():\n d =
[Link](\"withdrawals\")\n
return d if isinstance(d, dict) else
{}\n\n def _save_wreqs(d):\n
[Link](\"withdrawals\", d)\n\n def
_main_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"START
EARNING\"}],\n [{\"text\":
\"CREATE TASK\"}, {\"text\": \"MY
TASK\"}],\n [{\"text\":
\"INVITE FRIENDS\"}, {\"text\": \"MY
BALANCE\"}],\n [{\"text\":
\"DAILY BONUS\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def
_admin_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"Manage
Tasks\"}],\n [{\"text\":
\"Set Refer Reward\"}, {\"text\": \"Set
Daily Bonus\"}],\n
[{\"text\": \"Min Task Reward\"},
{\"text\": \"Withdraw
Requests\"}],\n [{\"text\":
\"Add Balance\"}, {\"text\": \"Remove
Balance\"}],\n [{\"text\":
\"Ban User\"}, {\"text\": \"User
Details\"}],\n [{\"text\":
\"Stats\"}, {\"text\":
\"Broadcast\"}],\n
[{\"text\": \"/start\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def _earn_rows(page,
uid, users_d):\n tasks =
_tasks()\n rec2 = _urec(users_d,
uid)\n active = []\n for tid,
t in [Link]():\n if not
[Link](\"active\"):\n
continue\n if
str([Link](\"owner\")) ==
str(uid):\n
continue\n if tid in
[Link](\"completed\",
[]):\n continue\n
if int([Link](\"completed\", 0)) >=
int([Link](\"slots\", 0)):\n
continue\n [Link]((tid,
t))\n [Link](key=lambda x: -
float(x[1].get(\"reward\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(active) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
active[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"available tasks\") + \" \" + BUL,
LN, \"\"]\n rows = []\n if
not chunk:\n
[Link](_sc(\"no tasks available right
now. check back later.\"))\n
else:\n for tid, t in
chunk:\n remaining =
int([Link](\"slots\", 0)) -
int([Link](\"completed\",
0))\n [Link](BUL + \"
<b>\" + [Link](\"link\", \"\") + \"</b>\\n
\" + _sc(\"reward\") + \": <b>\" +
_fmt([Link](\"reward\")) + \"</b> \" +
_sc(\"coin\") + \" \" + ARR + \" \" +
_sc(\"left\") + \": \" +
str(remaining))\n
[Link]([{\"text\": _sc(\"join &
verify\") + \" - \" + [Link](\"link\",
\"\").replace(\"[Link] \"@\"),
\"callback_data\": \"earn_join_\" +
tid}])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"earn_page_\" + str(page - 1)})\n
if page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"earn_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def _mytask_rows(page,
uid):\n tasks = _tasks()\n
mine = [(tid, t) for tid, t in
[Link]() if str([Link](\"owner\")) ==
str(uid)]\n [Link](key=lambda x:
-int(x[1].get(\"created_at\", 0)))\n
per_page = 4\n total_pages = max(1,
(len(mine) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
mine[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"my tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"you
have not created any task yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"status\") + \": \" + status_txt + \"
\" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \"\\n \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
toggle_txt = _sc(\"pause\") if
[Link](\"active\") else
_sc(\"resume\")\n
[Link]([\n
{\"text\": toggle_txt, \"callback_data\":
\"myt_toggle_\" +
tid},\n {\"text\":
_sc(\"delete\"), \"callback_data\":
\"myt_del_\" + tid}\n
])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"myt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"myt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def
_admin_tasks_rows(page):\n tasks =
_tasks()\n items =
list([Link]())\n
[Link](key=lambda x: -
int(x[1].get(\"created_at\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(items) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
items[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"manage tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"no
tasks created yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"owner\") + \": <code>\" +
str([Link](\"owner\")) + \"</code> \" +
_sc(\"status\") + \": \" + status_txt +
\"\\n \" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \" \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
[Link]([{\"text\": _sc(\"remove
task\") + \" #\" + tid, \"callback_data\":
\"adt_del_\" + tid}])\n nav =
[]\n if page > 0:\n
[Link]({\"text\": \"< \" +
_sc(\"prev\"), \"callback_data\":
\"adt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"adt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n u =
str(message.from_user.id)\n if not
_is_admin(u):\n
[Link](_sc(\"access denied.\"),
parse_mode=\"html\")\n else:\n
try:\n val =
float(msg)\n s =
_settings()\n s[\"daily_bonus\"]
= val\n
_save_settings(s)\n
[Link](_sc(\"daily bonus updated
to\") + \" \" + _fmt(val) + \" \" +
_sc(\"coin.\"),
parse_mode=\"html\")\n except
ValueError:\n
[Link](_sc(\"please send a valid
number.\"), parse_mode=\"html\")\n\nexcept
Exception as e:\n
[Link](chat_id=int(u),
text=\"Error: \" + str(e))\n",
"created_at": "2026-07-28 09:20:40",
"folder": "",
"last_updated": "2026-07-28
09:20:40",
"pinned": false
},
{
"bot": "94886904",
"command": "Min Task Reward",
"admin_only": false,
"code": "try:\n def
_sc(t):\n m =
{'a':'ᴀ','b':'ʙ','c':'ᴄ','d':'ᴅ','e':'ᴇ','f
':'ꜰ','g':'ɢ','h':'ʜ','i':'ɪ','j':'ᴊ','k':'ᴋ
','l':'ʟ','m':'ᴍ','n':'ɴ','o':'ᴏ','p':'ᴘ','
q':'ǫ','r':'ʀ','s':'ꜱ','t':'ᴛ','u':'ᴜ','v':
'ᴠ','w':'ᴡ','x':'x','y':'ʏ','z':'ᴢ'}\n
out = \"\"\n for ch in
str(t):\n low =
[Link]()\n out += m[low] if
low in m else ch\n return out\n\n
LN = \"─\" * 20\n BUL = \"•\"\n ARR =
\"→\"\n\n def _users():\n d =
[Link](\"users\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_users(d):\n
[Link](\"users\", d)\n\n def
_urec(d, uid):\n if uid not in
d:\n d[uid] = {\n
\"balance\": 0.0,\n
\"total_refs\": 0,\n
\"banned\": False,\n
\"wallet\": \"\",\n
\"last_bonus\": 0,\n
\"referred_by\": None,\n
\"joined\": False,\n
\"joined_at\":
int([Link]()),\n
\"completed\": []\n }\n
if \"completed\" not in
d[uid]:\n d[uid][\"completed\"]
= []\n return d[uid]\n\n def
_settings():\n s =
[Link](\"settings\")\n if not
isinstance(s, dict):\n s =
{}\n [Link](\"ref_amount\",
1.0)\n [Link](\"daily_bonus\",
1.0)\n
[Link](\"min_task_reward\",
1.0)\n
[Link](\"min_withdraw\",
10.0)\n
[Link](\"bonus_hours\", 24)\n
return s\n\n def
_save_settings(s):\n
[Link](\"settings\", s)\n\n def
_is_admin(uid):\n admins =
[Link](\"admins\")\n if not
admins:\n admins = []\n
return str(uid) in admins\n\n def
_tasks():\n d =
[Link](\"tasks\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_tasks(d):\n
[Link](\"tasks\", d)\n\n def
_new_task_id():\n n =
[Link](\"task_counter\")\n n =
int(n) + 1 if n else 1\n
[Link](\"task_counter\", n)\n
return str(n)\n\n def
_norm_channel(raw):\n t =
str(raw).strip()\n t =
[Link](\"[Link]
\"\").replace(\"[Link] \"\")\n
if [Link](\"[Link]/\"):\n t
= t[5:]\n if
[Link](\"@\"):\n t =
t[1:]\n t = [Link](\"?\")
[0].split(\"/\")[0].strip()\n return
t\n\n def
_check_bot_admin(username):\n
try:\n admins =
[Link](chat_id=\"@\" +
username)\n except Exception as
e:\n return False,
str(e)\n for a in
admins:\n try:\n
member = [Link] if hasattr(a, \"user\")
else [Link](\"user\", {})\n
mid = [Link] if hasattr(member, \"id\")
else [Link](\"id\")\n except
Exception:\n mid =
None\n if mid is not None and
str(mid) == str(bot_id):\n
return True, \"\"\n return False,
\"not_admin\"\n\n def _fmt(n):\n
try:\n f = float(n)\n
if f == int(f):\n return
str(int(f))\n return
str(round(f, 2))\n except
Exception:\n return
str(n)\n\n def _wreqs():\n d =
[Link](\"withdrawals\")\n
return d if isinstance(d, dict) else
{}\n\n def _save_wreqs(d):\n
[Link](\"withdrawals\", d)\n\n def
_main_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"START
EARNING\"}],\n [{\"text\":
\"CREATE TASK\"}, {\"text\": \"MY
TASK\"}],\n [{\"text\":
\"INVITE FRIENDS\"}, {\"text\": \"MY
BALANCE\"}],\n [{\"text\":
\"DAILY BONUS\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def
_admin_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"Manage
Tasks\"}],\n [{\"text\":
\"Set Refer Reward\"}, {\"text\": \"Set
Daily Bonus\"}],\n
[{\"text\": \"Min Task Reward\"},
{\"text\": \"Withdraw
Requests\"}],\n [{\"text\":
\"Add Balance\"}, {\"text\": \"Remove
Balance\"}],\n [{\"text\":
\"Ban User\"}, {\"text\": \"User
Details\"}],\n [{\"text\":
\"Stats\"}, {\"text\":
\"Broadcast\"}],\n
[{\"text\": \"/start\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def _earn_rows(page,
uid, users_d):\n tasks =
_tasks()\n rec2 = _urec(users_d,
uid)\n active = []\n for tid,
t in [Link]():\n if not
[Link](\"active\"):\n
continue\n if
str([Link](\"owner\")) ==
str(uid):\n
continue\n if tid in
[Link](\"completed\",
[]):\n continue\n
if int([Link](\"completed\", 0)) >=
int([Link](\"slots\", 0)):\n
continue\n [Link]((tid,
t))\n [Link](key=lambda x: -
float(x[1].get(\"reward\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(active) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
active[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"available tasks\") + \" \" + BUL,
LN, \"\"]\n rows = []\n if
not chunk:\n
[Link](_sc(\"no tasks available right
now. check back later.\"))\n
else:\n for tid, t in
chunk:\n remaining =
int([Link](\"slots\", 0)) -
int([Link](\"completed\",
0))\n [Link](BUL + \"
<b>\" + [Link](\"link\", \"\") + \"</b>\\n
\" + _sc(\"reward\") + \": <b>\" +
_fmt([Link](\"reward\")) + \"</b> \" +
_sc(\"coin\") + \" \" + ARR + \" \" +
_sc(\"left\") + \": \" +
str(remaining))\n
[Link]([{\"text\": _sc(\"join &
verify\") + \" - \" + [Link](\"link\",
\"\").replace(\"[Link] \"@\"),
\"callback_data\": \"earn_join_\" +
tid}])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"earn_page_\" + str(page - 1)})\n
if page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"earn_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def _mytask_rows(page,
uid):\n tasks = _tasks()\n
mine = [(tid, t) for tid, t in
[Link]() if str([Link](\"owner\")) ==
str(uid)]\n [Link](key=lambda x:
-int(x[1].get(\"created_at\", 0)))\n
per_page = 4\n total_pages = max(1,
(len(mine) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
mine[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"my tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"you
have not created any task yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"status\") + \": \" + status_txt + \"
\" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \"\\n \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
toggle_txt = _sc(\"pause\") if
[Link](\"active\") else
_sc(\"resume\")\n
[Link]([\n
{\"text\": toggle_txt, \"callback_data\":
\"myt_toggle_\" +
tid},\n {\"text\":
_sc(\"delete\"), \"callback_data\":
\"myt_del_\" + tid}\n
])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"myt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"myt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def
_admin_tasks_rows(page):\n tasks =
_tasks()\n items =
list([Link]())\n
[Link](key=lambda x: -
int(x[1].get(\"created_at\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(items) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
items[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"manage tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"no
tasks created yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"owner\") + \": <code>\" +
str([Link](\"owner\")) + \"</code> \" +
_sc(\"status\") + \": \" + status_txt +
\"\\n \" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \" \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
[Link]([{\"text\": _sc(\"remove
task\") + \" #\" + tid, \"callback_data\":
\"adt_del_\" + tid}])\n nav =
[]\n if page > 0:\n
[Link]({\"text\": \"< \" +
_sc(\"prev\"), \"callback_data\":
\"adt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"adt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n u =
str(message.from_user.id)\n if not
_is_admin(u):\n
[Link](_sc(\"access denied.\"),
parse_mode=\"html\")\n else:\n
[Link](_sc(\"send the minimum
reward per member allowed when users create
a task\") + \":\",
parse_mode=\"html\")\n
[Link](\"set_minreward_input
\")\n\nexcept Exception as e:\n
[Link](chat_id=int(u),
text=\"Error: \" + str(e))\n",
"created_at": "2026-07-28 09:20:40",
"folder": "",
"last_updated": "2026-07-28
09:20:40",
"pinned": false
},
{
"bot": "94886904",
"command": "set_minreward_input",
"admin_only": false,
"code": "try:\n def
_sc(t):\n m =
{'a':'ᴀ','b':'ʙ','c':'ᴄ','d':'ᴅ','e':'ᴇ','f
':'ꜰ','g':'ɢ','h':'ʜ','i':'ɪ','j':'ᴊ','k':'ᴋ
','l':'ʟ','m':'ᴍ','n':'ɴ','o':'ᴏ','p':'ᴘ','
q':'ǫ','r':'ʀ','s':'ꜱ','t':'ᴛ','u':'ᴜ','v':
'ᴠ','w':'ᴡ','x':'x','y':'ʏ','z':'ᴢ'}\n
out = \"\"\n for ch in
str(t):\n low =
[Link]()\n out += m[low] if
low in m else ch\n return out\n\n
LN = \"─\" * 20\n BUL = \"•\"\n ARR =
\"→\"\n\n def _users():\n d =
[Link](\"users\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_users(d):\n
[Link](\"users\", d)\n\n def
_urec(d, uid):\n if uid not in
d:\n d[uid] = {\n
\"balance\": 0.0,\n
\"total_refs\": 0,\n
\"banned\": False,\n
\"wallet\": \"\",\n
\"last_bonus\": 0,\n
\"referred_by\": None,\n
\"joined\": False,\n
\"joined_at\":
int([Link]()),\n
\"completed\": []\n }\n
if \"completed\" not in
d[uid]:\n d[uid][\"completed\"]
= []\n return d[uid]\n\n def
_settings():\n s =
[Link](\"settings\")\n if not
isinstance(s, dict):\n s =
{}\n [Link](\"ref_amount\",
1.0)\n [Link](\"daily_bonus\",
1.0)\n
[Link](\"min_task_reward\",
1.0)\n
[Link](\"min_withdraw\",
10.0)\n
[Link](\"bonus_hours\", 24)\n
return s\n\n def
_save_settings(s):\n
[Link](\"settings\", s)\n\n def
_is_admin(uid):\n admins =
[Link](\"admins\")\n if not
admins:\n admins = []\n
return str(uid) in admins\n\n def
_tasks():\n d =
[Link](\"tasks\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_tasks(d):\n
[Link](\"tasks\", d)\n\n def
_new_task_id():\n n =
[Link](\"task_counter\")\n n =
int(n) + 1 if n else 1\n
[Link](\"task_counter\", n)\n
return str(n)\n\n def
_norm_channel(raw):\n t =
str(raw).strip()\n t =
[Link](\"[Link]
\"\").replace(\"[Link] \"\")\n
if [Link](\"[Link]/\"):\n t
= t[5:]\n if
[Link](\"@\"):\n t =
t[1:]\n t = [Link](\"?\")
[0].split(\"/\")[0].strip()\n return
t\n\n def
_check_bot_admin(username):\n
try:\n admins =
[Link](chat_id=\"@\" +
username)\n except Exception as
e:\n return False,
str(e)\n for a in
admins:\n try:\n
member = [Link] if hasattr(a, \"user\")
else [Link](\"user\", {})\n
mid = [Link] if hasattr(member, \"id\")
else [Link](\"id\")\n except
Exception:\n mid =
None\n if mid is not None and
str(mid) == str(bot_id):\n
return True, \"\"\n return False,
\"not_admin\"\n\n def _fmt(n):\n
try:\n f = float(n)\n
if f == int(f):\n return
str(int(f))\n return
str(round(f, 2))\n except
Exception:\n return
str(n)\n\n def _wreqs():\n d =
[Link](\"withdrawals\")\n
return d if isinstance(d, dict) else
{}\n\n def _save_wreqs(d):\n
[Link](\"withdrawals\", d)\n\n def
_main_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"START
EARNING\"}],\n [{\"text\":
\"CREATE TASK\"}, {\"text\": \"MY
TASK\"}],\n [{\"text\":
\"INVITE FRIENDS\"}, {\"text\": \"MY
BALANCE\"}],\n [{\"text\":
\"DAILY BONUS\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def
_admin_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"Manage
Tasks\"}],\n [{\"text\":
\"Set Refer Reward\"}, {\"text\": \"Set
Daily Bonus\"}],\n
[{\"text\": \"Min Task Reward\"},
{\"text\": \"Withdraw
Requests\"}],\n [{\"text\":
\"Add Balance\"}, {\"text\": \"Remove
Balance\"}],\n [{\"text\":
\"Ban User\"}, {\"text\": \"User
Details\"}],\n [{\"text\":
\"Stats\"}, {\"text\":
\"Broadcast\"}],\n
[{\"text\": \"/start\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def _earn_rows(page,
uid, users_d):\n tasks =
_tasks()\n rec2 = _urec(users_d,
uid)\n active = []\n for tid,
t in [Link]():\n if not
[Link](\"active\"):\n
continue\n if
str([Link](\"owner\")) ==
str(uid):\n
continue\n if tid in
[Link](\"completed\",
[]):\n continue\n
if int([Link](\"completed\", 0)) >=
int([Link](\"slots\", 0)):\n
continue\n [Link]((tid,
t))\n [Link](key=lambda x: -
float(x[1].get(\"reward\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(active) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
active[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"available tasks\") + \" \" + BUL,
LN, \"\"]\n rows = []\n if
not chunk:\n
[Link](_sc(\"no tasks available right
now. check back later.\"))\n
else:\n for tid, t in
chunk:\n remaining =
int([Link](\"slots\", 0)) -
int([Link](\"completed\",
0))\n [Link](BUL + \"
<b>\" + [Link](\"link\", \"\") + \"</b>\\n
\" + _sc(\"reward\") + \": <b>\" +
_fmt([Link](\"reward\")) + \"</b> \" +
_sc(\"coin\") + \" \" + ARR + \" \" +
_sc(\"left\") + \": \" +
str(remaining))\n
[Link]([{\"text\": _sc(\"join &
verify\") + \" - \" + [Link](\"link\",
\"\").replace(\"[Link] \"@\"),
\"callback_data\": \"earn_join_\" +
tid}])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"earn_page_\" + str(page - 1)})\n
if page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"earn_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def _mytask_rows(page,
uid):\n tasks = _tasks()\n
mine = [(tid, t) for tid, t in
[Link]() if str([Link](\"owner\")) ==
str(uid)]\n [Link](key=lambda x:
-int(x[1].get(\"created_at\", 0)))\n
per_page = 4\n total_pages = max(1,
(len(mine) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
mine[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"my tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"you
have not created any task yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"status\") + \": \" + status_txt + \"
\" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \"\\n \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
toggle_txt = _sc(\"pause\") if
[Link](\"active\") else
_sc(\"resume\")\n
[Link]([\n
{\"text\": toggle_txt, \"callback_data\":
\"myt_toggle_\" +
tid},\n {\"text\":
_sc(\"delete\"), \"callback_data\":
\"myt_del_\" + tid}\n
])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"myt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"myt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def
_admin_tasks_rows(page):\n tasks =
_tasks()\n items =
list([Link]())\n
[Link](key=lambda x: -
int(x[1].get(\"created_at\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(items) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
items[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"manage tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"no
tasks created yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"owner\") + \": <code>\" +
str([Link](\"owner\")) + \"</code> \" +
_sc(\"status\") + \": \" + status_txt +
\"\\n \" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \" \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
[Link]([{\"text\": _sc(\"remove
task\") + \" #\" + tid, \"callback_data\":
\"adt_del_\" + tid}])\n nav =
[]\n if page > 0:\n
[Link]({\"text\": \"< \" +
_sc(\"prev\"), \"callback_data\":
\"adt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"adt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n u =
str(message.from_user.id)\n if not
_is_admin(u):\n
[Link](_sc(\"access denied.\"),
parse_mode=\"html\")\n else:\n
try:\n val =
float(msg)\n s =
_settings()\n
s[\"min_task_reward\"] = val\n
_save_settings(s)\n
[Link](_sc(\"minimum task reward
updated to\") + \" \" + _fmt(val) + \" \" +
_sc(\"coin.\"),
parse_mode=\"html\")\n except
ValueError:\n
[Link](_sc(\"please send a valid
number.\"), parse_mode=\"html\")\n\nexcept
Exception as e:\n
[Link](chat_id=int(u),
text=\"Error: \" + str(e))\n",
"created_at": "2026-07-28 09:20:40",
"folder": "",
"last_updated": "2026-07-28
09:20:40",
"pinned": false
},
{
"bot": "94886904",
"command": "Withdraw Requests",
"admin_only": false,
"code": "try:\n def
_sc(t):\n m =
{'a':'ᴀ','b':'ʙ','c':'ᴄ','d':'ᴅ','e':'ᴇ','f
':'ꜰ','g':'ɢ','h':'ʜ','i':'ɪ','j':'ᴊ','k':'ᴋ
','l':'ʟ','m':'ᴍ','n':'ɴ','o':'ᴏ','p':'ᴘ','
q':'ǫ','r':'ʀ','s':'ꜱ','t':'ᴛ','u':'ᴜ','v':
'ᴠ','w':'ᴡ','x':'x','y':'ʏ','z':'ᴢ'}\n
out = \"\"\n for ch in
str(t):\n low =
[Link]()\n out += m[low] if
low in m else ch\n return out\n\n
LN = \"─\" * 20\n BUL = \"•\"\n ARR =
\"→\"\n\n def _users():\n d =
[Link](\"users\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_users(d):\n
[Link](\"users\", d)\n\n def
_urec(d, uid):\n if uid not in
d:\n d[uid] = {\n
\"balance\": 0.0,\n
\"total_refs\": 0,\n
\"banned\": False,\n
\"wallet\": \"\",\n
\"last_bonus\": 0,\n
\"referred_by\": None,\n
\"joined\": False,\n
\"joined_at\":
int([Link]()),\n
\"completed\": []\n }\n
if \"completed\" not in
d[uid]:\n d[uid][\"completed\"]
= []\n return d[uid]\n\n def
_settings():\n s =
[Link](\"settings\")\n if not
isinstance(s, dict):\n s =
{}\n [Link](\"ref_amount\",
1.0)\n [Link](\"daily_bonus\",
1.0)\n
[Link](\"min_task_reward\",
1.0)\n
[Link](\"min_withdraw\",
10.0)\n
[Link](\"bonus_hours\", 24)\n
return s\n\n def
_save_settings(s):\n
[Link](\"settings\", s)\n\n def
_is_admin(uid):\n admins =
[Link](\"admins\")\n if not
admins:\n admins = []\n
return str(uid) in admins\n\n def
_tasks():\n d =
[Link](\"tasks\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_tasks(d):\n
[Link](\"tasks\", d)\n\n def
_new_task_id():\n n =
[Link](\"task_counter\")\n n =
int(n) + 1 if n else 1\n
[Link](\"task_counter\", n)\n
return str(n)\n\n def
_norm_channel(raw):\n t =
str(raw).strip()\n t =
[Link](\"[Link]
\"\").replace(\"[Link] \"\")\n
if [Link](\"[Link]/\"):\n t
= t[5:]\n if
[Link](\"@\"):\n t =
t[1:]\n t = [Link](\"?\")
[0].split(\"/\")[0].strip()\n return
t\n\n def
_check_bot_admin(username):\n
try:\n admins =
[Link](chat_id=\"@\" +
username)\n except Exception as
e:\n return False,
str(e)\n for a in
admins:\n try:\n
member = [Link] if hasattr(a, \"user\")
else [Link](\"user\", {})\n
mid = [Link] if hasattr(member, \"id\")
else [Link](\"id\")\n except
Exception:\n mid =
None\n if mid is not None and
str(mid) == str(bot_id):\n
return True, \"\"\n return False,
\"not_admin\"\n\n def _fmt(n):\n
try:\n f = float(n)\n
if f == int(f):\n return
str(int(f))\n return
str(round(f, 2))\n except
Exception:\n return
str(n)\n\n def _wreqs():\n d =
[Link](\"withdrawals\")\n
return d if isinstance(d, dict) else
{}\n\n def _save_wreqs(d):\n
[Link](\"withdrawals\", d)\n\n def
_main_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"START
EARNING\"}],\n [{\"text\":
\"CREATE TASK\"}, {\"text\": \"MY
TASK\"}],\n [{\"text\":
\"INVITE FRIENDS\"}, {\"text\": \"MY
BALANCE\"}],\n [{\"text\":
\"DAILY BONUS\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def
_admin_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"Manage
Tasks\"}],\n [{\"text\":
\"Set Refer Reward\"}, {\"text\": \"Set
Daily Bonus\"}],\n
[{\"text\": \"Min Task Reward\"},
{\"text\": \"Withdraw
Requests\"}],\n [{\"text\":
\"Add Balance\"}, {\"text\": \"Remove
Balance\"}],\n [{\"text\":
\"Ban User\"}, {\"text\": \"User
Details\"}],\n [{\"text\":
\"Stats\"}, {\"text\":
\"Broadcast\"}],\n
[{\"text\": \"/start\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def _earn_rows(page,
uid, users_d):\n tasks =
_tasks()\n rec2 = _urec(users_d,
uid)\n active = []\n for tid,
t in [Link]():\n if not
[Link](\"active\"):\n
continue\n if
str([Link](\"owner\")) ==
str(uid):\n
continue\n if tid in
[Link](\"completed\",
[]):\n continue\n
if int([Link](\"completed\", 0)) >=
int([Link](\"slots\", 0)):\n
continue\n [Link]((tid,
t))\n [Link](key=lambda x: -
float(x[1].get(\"reward\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(active) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
active[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"available tasks\") + \" \" + BUL,
LN, \"\"]\n rows = []\n if
not chunk:\n
[Link](_sc(\"no tasks available right
now. check back later.\"))\n
else:\n for tid, t in
chunk:\n remaining =
int([Link](\"slots\", 0)) -
int([Link](\"completed\",
0))\n [Link](BUL + \"
<b>\" + [Link](\"link\", \"\") + \"</b>\\n
\" + _sc(\"reward\") + \": <b>\" +
_fmt([Link](\"reward\")) + \"</b> \" +
_sc(\"coin\") + \" \" + ARR + \" \" +
_sc(\"left\") + \": \" +
str(remaining))\n
[Link]([{\"text\": _sc(\"join &
verify\") + \" - \" + [Link](\"link\",
\"\").replace(\"[Link] \"@\"),
\"callback_data\": \"earn_join_\" +
tid}])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"earn_page_\" + str(page - 1)})\n
if page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"earn_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def _mytask_rows(page,
uid):\n tasks = _tasks()\n
mine = [(tid, t) for tid, t in
[Link]() if str([Link](\"owner\")) ==
str(uid)]\n [Link](key=lambda x:
-int(x[1].get(\"created_at\", 0)))\n
per_page = 4\n total_pages = max(1,
(len(mine) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
mine[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"my tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"you
have not created any task yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"status\") + \": \" + status_txt + \"
\" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \"\\n \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
toggle_txt = _sc(\"pause\") if
[Link](\"active\") else
_sc(\"resume\")\n
[Link]([\n
{\"text\": toggle_txt, \"callback_data\":
\"myt_toggle_\" +
tid},\n {\"text\":
_sc(\"delete\"), \"callback_data\":
\"myt_del_\" + tid}\n
])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"myt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"myt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def
_admin_tasks_rows(page):\n tasks =
_tasks()\n items =
list([Link]())\n
[Link](key=lambda x: -
int(x[1].get(\"created_at\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(items) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
items[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"manage tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"no
tasks created yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"owner\") + \": <code>\" +
str([Link](\"owner\")) + \"</code> \" +
_sc(\"status\") + \": \" + status_txt +
\"\\n \" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \" \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
[Link]([{\"text\": _sc(\"remove
task\") + \" #\" + tid, \"callback_data\":
\"adt_del_\" + tid}])\n nav =
[]\n if page > 0:\n
[Link]({\"text\": \"< \" +
_sc(\"prev\"), \"callback_data\":
\"adt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"adt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n u =
str(message.from_user.id)\n if not
_is_admin(u):\n
[Link](_sc(\"access denied.\"),
parse_mode=\"html\")\n else:\n
wreqs = _wreqs()\n pending = [(rid,
r) for rid, r in [Link]() if
[Link](\"status\") == \"pending\"]\n
if not pending:\n
[Link](_sc(\"no pending withdraw
requests.\"), parse_mode=\"html\")\n
else:\n for rid, r in
pending[:10]:\n
[Link](\n LN +
\"\\n\" + _sc(\"withdraw request\") +
\"\\n\" + LN +
\"\\n\\n\"\n +
_sc(\"user\") + \": <code>\" +
str([Link](\"user\")) + \"
</code>\\n\"\n +
_sc(\"amount\") + \": \" +
_fmt([Link](\"amount\")) +
\"\\n\"\n +
_sc(\"wallet\") + \": \" +
str([Link](\"wallet\")) + \"\\n\\n\" +
LN,\n
parse_mode=\"html\",\n
reply_markup={\"inline_keyboard\":
[[\n {\"text\":
_sc(\"approve\"), \"callback_data\":
\"wr_appr_\" +
rid},\n {\"text\":
_sc(\"reject\"), \"callback_data\":
\"wr_rej_\" + rid}\n
]]}\n )\n\nexcept Exception
as e:\n [Link](chat_id=int(u),
text=\"Error: \" + str(e))\n",
"created_at": "2026-07-28 09:20:40",
"folder": "",
"last_updated": "2026-07-28
09:20:40",
"pinned": false
},
{
"bot": "94886904",
"command": "Add Balance",
"admin_only": false,
"code": "try:\n def
_sc(t):\n m =
{'a':'ᴀ','b':'ʙ','c':'ᴄ','d':'ᴅ','e':'ᴇ','f
':'ꜰ','g':'ɢ','h':'ʜ','i':'ɪ','j':'ᴊ','k':'ᴋ
','l':'ʟ','m':'ᴍ','n':'ɴ','o':'ᴏ','p':'ᴘ','
q':'ǫ','r':'ʀ','s':'ꜱ','t':'ᴛ','u':'ᴜ','v':
'ᴠ','w':'ᴡ','x':'x','y':'ʏ','z':'ᴢ'}\n
out = \"\"\n for ch in
str(t):\n low =
[Link]()\n out += m[low] if
low in m else ch\n return out\n\n
LN = \"─\" * 20\n BUL = \"•\"\n ARR =
\"→\"\n\n def _users():\n d =
[Link](\"users\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_users(d):\n
[Link](\"users\", d)\n\n def
_urec(d, uid):\n if uid not in
d:\n d[uid] = {\n
\"balance\": 0.0,\n
\"total_refs\": 0,\n
\"banned\": False,\n
\"wallet\": \"\",\n
\"last_bonus\": 0,\n
\"referred_by\": None,\n
\"joined\": False,\n
\"joined_at\":
int([Link]()),\n
\"completed\": []\n }\n
if \"completed\" not in
d[uid]:\n d[uid][\"completed\"]
= []\n return d[uid]\n\n def
_settings():\n s =
[Link](\"settings\")\n if not
isinstance(s, dict):\n s =
{}\n [Link](\"ref_amount\",
1.0)\n [Link](\"daily_bonus\",
1.0)\n
[Link](\"min_task_reward\",
1.0)\n
[Link](\"min_withdraw\",
10.0)\n
[Link](\"bonus_hours\", 24)\n
return s\n\n def
_save_settings(s):\n
[Link](\"settings\", s)\n\n def
_is_admin(uid):\n admins =
[Link](\"admins\")\n if not
admins:\n admins = []\n
return str(uid) in admins\n\n def
_tasks():\n d =
[Link](\"tasks\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_tasks(d):\n
[Link](\"tasks\", d)\n\n def
_new_task_id():\n n =
[Link](\"task_counter\")\n n =
int(n) + 1 if n else 1\n
[Link](\"task_counter\", n)\n
return str(n)\n\n def
_norm_channel(raw):\n t =
str(raw).strip()\n t =
[Link](\"[Link]
\"\").replace(\"[Link] \"\")\n
if [Link](\"[Link]/\"):\n t
= t[5:]\n if
[Link](\"@\"):\n t =
t[1:]\n t = [Link](\"?\")
[0].split(\"/\")[0].strip()\n return
t\n\n def
_check_bot_admin(username):\n
try:\n admins =
[Link](chat_id=\"@\" +
username)\n except Exception as
e:\n return False,
str(e)\n for a in
admins:\n try:\n
member = [Link] if hasattr(a, \"user\")
else [Link](\"user\", {})\n
mid = [Link] if hasattr(member, \"id\")
else [Link](\"id\")\n except
Exception:\n mid =
None\n if mid is not None and
str(mid) == str(bot_id):\n
return True, \"\"\n return False,
\"not_admin\"\n\n def _fmt(n):\n
try:\n f = float(n)\n
if f == int(f):\n return
str(int(f))\n return
str(round(f, 2))\n except
Exception:\n return
str(n)\n\n def _wreqs():\n d =
[Link](\"withdrawals\")\n
return d if isinstance(d, dict) else
{}\n\n def _save_wreqs(d):\n
[Link](\"withdrawals\", d)\n\n def
_main_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"START
EARNING\"}],\n [{\"text\":
\"CREATE TASK\"}, {\"text\": \"MY
TASK\"}],\n [{\"text\":
\"INVITE FRIENDS\"}, {\"text\": \"MY
BALANCE\"}],\n [{\"text\":
\"DAILY BONUS\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def
_admin_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"Manage
Tasks\"}],\n [{\"text\":
\"Set Refer Reward\"}, {\"text\": \"Set
Daily Bonus\"}],\n
[{\"text\": \"Min Task Reward\"},
{\"text\": \"Withdraw
Requests\"}],\n [{\"text\":
\"Add Balance\"}, {\"text\": \"Remove
Balance\"}],\n [{\"text\":
\"Ban User\"}, {\"text\": \"User
Details\"}],\n [{\"text\":
\"Stats\"}, {\"text\":
\"Broadcast\"}],\n
[{\"text\": \"/start\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def _earn_rows(page,
uid, users_d):\n tasks =
_tasks()\n rec2 = _urec(users_d,
uid)\n active = []\n for tid,
t in [Link]():\n if not
[Link](\"active\"):\n
continue\n if
str([Link](\"owner\")) ==
str(uid):\n
continue\n if tid in
[Link](\"completed\",
[]):\n continue\n
if int([Link](\"completed\", 0)) >=
int([Link](\"slots\", 0)):\n
continue\n [Link]((tid,
t))\n [Link](key=lambda x: -
float(x[1].get(\"reward\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(active) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
active[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"available tasks\") + \" \" + BUL,
LN, \"\"]\n rows = []\n if
not chunk:\n
[Link](_sc(\"no tasks available right
now. check back later.\"))\n
else:\n for tid, t in
chunk:\n remaining =
int([Link](\"slots\", 0)) -
int([Link](\"completed\",
0))\n [Link](BUL + \"
<b>\" + [Link](\"link\", \"\") + \"</b>\\n
\" + _sc(\"reward\") + \": <b>\" +
_fmt([Link](\"reward\")) + \"</b> \" +
_sc(\"coin\") + \" \" + ARR + \" \" +
_sc(\"left\") + \": \" +
str(remaining))\n
[Link]([{\"text\": _sc(\"join &
verify\") + \" - \" + [Link](\"link\",
\"\").replace(\"[Link] \"@\"),
\"callback_data\": \"earn_join_\" +
tid}])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"earn_page_\" + str(page - 1)})\n
if page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"earn_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def _mytask_rows(page,
uid):\n tasks = _tasks()\n
mine = [(tid, t) for tid, t in
[Link]() if str([Link](\"owner\")) ==
str(uid)]\n [Link](key=lambda x:
-int(x[1].get(\"created_at\", 0)))\n
per_page = 4\n total_pages = max(1,
(len(mine) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
mine[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"my tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"you
have not created any task yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"status\") + \": \" + status_txt + \"
\" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \"\\n \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
toggle_txt = _sc(\"pause\") if
[Link](\"active\") else
_sc(\"resume\")\n
[Link]([\n
{\"text\": toggle_txt, \"callback_data\":
\"myt_toggle_\" +
tid},\n {\"text\":
_sc(\"delete\"), \"callback_data\":
\"myt_del_\" + tid}\n
])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"myt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"myt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def
_admin_tasks_rows(page):\n tasks =
_tasks()\n items =
list([Link]())\n
[Link](key=lambda x: -
int(x[1].get(\"created_at\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(items) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
items[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"manage tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"no
tasks created yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"owner\") + \": <code>\" +
str([Link](\"owner\")) + \"</code> \" +
_sc(\"status\") + \": \" + status_txt +
\"\\n \" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \" \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
[Link]([{\"text\": _sc(\"remove
task\") + \" #\" + tid, \"callback_data\":
\"adt_del_\" + tid}])\n nav =
[]\n if page > 0:\n
[Link]({\"text\": \"< \" +
_sc(\"prev\"), \"callback_data\":
\"adt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"adt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n u =
str(message.from_user.id)\n if not
_is_admin(u):\n
[Link](_sc(\"access denied.\"),
parse_mode=\"html\")\n else:\n
[Link](_sc(\"send the telegram
user id to add balance to\") + \":\",
parse_mode=\"html\")\n
[Link](\"add_bal_step2\")\n\
nexcept Exception as e:\n
[Link](chat_id=int(u),
text=\"Error: \" + str(e))\n",
"created_at": "2026-07-28 09:20:40",
"folder": "",
"last_updated": "2026-07-28
09:20:40",
"pinned": false
},
{
"bot": "94886904",
"command": "add_bal_step2",
"admin_only": false,
"code": "try:\n def
_sc(t):\n m =
{'a':'ᴀ','b':'ʙ','c':'ᴄ','d':'ᴅ','e':'ᴇ','f
':'ꜰ','g':'ɢ','h':'ʜ','i':'ɪ','j':'ᴊ','k':'ᴋ
','l':'ʟ','m':'ᴍ','n':'ɴ','o':'ᴏ','p':'ᴘ','
q':'ǫ','r':'ʀ','s':'ꜱ','t':'ᴛ','u':'ᴜ','v':
'ᴠ','w':'ᴡ','x':'x','y':'ʏ','z':'ᴢ'}\n
out = \"\"\n for ch in
str(t):\n low =
[Link]()\n out += m[low] if
low in m else ch\n return out\n\n
LN = \"─\" * 20\n BUL = \"•\"\n ARR =
\"→\"\n\n def _users():\n d =
[Link](\"users\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_users(d):\n
[Link](\"users\", d)\n\n def
_urec(d, uid):\n if uid not in
d:\n d[uid] = {\n
\"balance\": 0.0,\n
\"total_refs\": 0,\n
\"banned\": False,\n
\"wallet\": \"\",\n
\"last_bonus\": 0,\n
\"referred_by\": None,\n
\"joined\": False,\n
\"joined_at\":
int([Link]()),\n
\"completed\": []\n }\n
if \"completed\" not in
d[uid]:\n d[uid][\"completed\"]
= []\n return d[uid]\n\n def
_settings():\n s =
[Link](\"settings\")\n if not
isinstance(s, dict):\n s =
{}\n [Link](\"ref_amount\",
1.0)\n [Link](\"daily_bonus\",
1.0)\n
[Link](\"min_task_reward\",
1.0)\n
[Link](\"min_withdraw\",
10.0)\n
[Link](\"bonus_hours\", 24)\n
return s\n\n def
_save_settings(s):\n
[Link](\"settings\", s)\n\n def
_is_admin(uid):\n admins =
[Link](\"admins\")\n if not
admins:\n admins = []\n
return str(uid) in admins\n\n def
_tasks():\n d =
[Link](\"tasks\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_tasks(d):\n
[Link](\"tasks\", d)\n\n def
_new_task_id():\n n =
[Link](\"task_counter\")\n n =
int(n) + 1 if n else 1\n
[Link](\"task_counter\", n)\n
return str(n)\n\n def
_norm_channel(raw):\n t =
str(raw).strip()\n t =
[Link](\"[Link]
\"\").replace(\"[Link] \"\")\n
if [Link](\"[Link]/\"):\n t
= t[5:]\n if
[Link](\"@\"):\n t =
t[1:]\n t = [Link](\"?\")
[0].split(\"/\")[0].strip()\n return
t\n\n def
_check_bot_admin(username):\n
try:\n admins =
[Link](chat_id=\"@\" +
username)\n except Exception as
e:\n return False,
str(e)\n for a in
admins:\n try:\n
member = [Link] if hasattr(a, \"user\")
else [Link](\"user\", {})\n
mid = [Link] if hasattr(member, \"id\")
else [Link](\"id\")\n except
Exception:\n mid =
None\n if mid is not None and
str(mid) == str(bot_id):\n
return True, \"\"\n return False,
\"not_admin\"\n\n def _fmt(n):\n
try:\n f = float(n)\n
if f == int(f):\n return
str(int(f))\n return
str(round(f, 2))\n except
Exception:\n return
str(n)\n\n def _wreqs():\n d =
[Link](\"withdrawals\")\n
return d if isinstance(d, dict) else
{}\n\n def _save_wreqs(d):\n
[Link](\"withdrawals\", d)\n\n def
_main_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"START
EARNING\"}],\n [{\"text\":
\"CREATE TASK\"}, {\"text\": \"MY
TASK\"}],\n [{\"text\":
\"INVITE FRIENDS\"}, {\"text\": \"MY
BALANCE\"}],\n [{\"text\":
\"DAILY BONUS\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def
_admin_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"Manage
Tasks\"}],\n [{\"text\":
\"Set Refer Reward\"}, {\"text\": \"Set
Daily Bonus\"}],\n
[{\"text\": \"Min Task Reward\"},
{\"text\": \"Withdraw
Requests\"}],\n [{\"text\":
\"Add Balance\"}, {\"text\": \"Remove
Balance\"}],\n [{\"text\":
\"Ban User\"}, {\"text\": \"User
Details\"}],\n [{\"text\":
\"Stats\"}, {\"text\":
\"Broadcast\"}],\n
[{\"text\": \"/start\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def _earn_rows(page,
uid, users_d):\n tasks =
_tasks()\n rec2 = _urec(users_d,
uid)\n active = []\n for tid,
t in [Link]():\n if not
[Link](\"active\"):\n
continue\n if
str([Link](\"owner\")) ==
str(uid):\n
continue\n if tid in
[Link](\"completed\",
[]):\n continue\n
if int([Link](\"completed\", 0)) >=
int([Link](\"slots\", 0)):\n
continue\n [Link]((tid,
t))\n [Link](key=lambda x: -
float(x[1].get(\"reward\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(active) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
active[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"available tasks\") + \" \" + BUL,
LN, \"\"]\n rows = []\n if
not chunk:\n
[Link](_sc(\"no tasks available right
now. check back later.\"))\n
else:\n for tid, t in
chunk:\n remaining =
int([Link](\"slots\", 0)) -
int([Link](\"completed\",
0))\n [Link](BUL + \"
<b>\" + [Link](\"link\", \"\") + \"</b>\\n
\" + _sc(\"reward\") + \": <b>\" +
_fmt([Link](\"reward\")) + \"</b> \" +
_sc(\"coin\") + \" \" + ARR + \" \" +
_sc(\"left\") + \": \" +
str(remaining))\n
[Link]([{\"text\": _sc(\"join &
verify\") + \" - \" + [Link](\"link\",
\"\").replace(\"[Link] \"@\"),
\"callback_data\": \"earn_join_\" +
tid}])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"earn_page_\" + str(page - 1)})\n
if page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"earn_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def _mytask_rows(page,
uid):\n tasks = _tasks()\n
mine = [(tid, t) for tid, t in
[Link]() if str([Link](\"owner\")) ==
str(uid)]\n [Link](key=lambda x:
-int(x[1].get(\"created_at\", 0)))\n
per_page = 4\n total_pages = max(1,
(len(mine) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
mine[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"my tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"you
have not created any task yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"status\") + \": \" + status_txt + \"
\" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \"\\n \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
toggle_txt = _sc(\"pause\") if
[Link](\"active\") else
_sc(\"resume\")\n
[Link]([\n
{\"text\": toggle_txt, \"callback_data\":
\"myt_toggle_\" +
tid},\n {\"text\":
_sc(\"delete\"), \"callback_data\":
\"myt_del_\" + tid}\n
])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"myt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"myt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def
_admin_tasks_rows(page):\n tasks =
_tasks()\n items =
list([Link]())\n
[Link](key=lambda x: -
int(x[1].get(\"created_at\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(items) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
items[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"manage tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"no
tasks created yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"owner\") + \": <code>\" +
str([Link](\"owner\")) + \"</code> \" +
_sc(\"status\") + \": \" + status_txt +
\"\\n \" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \" \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
[Link]([{\"text\": _sc(\"remove
task\") + \" #\" + tid, \"callback_data\":
\"adt_del_\" + tid}])\n nav =
[]\n if page > 0:\n
[Link]({\"text\": \"< \" +
_sc(\"prev\"), \"callback_data\":
\"adt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"adt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n u =
str(message.from_user.id)\n if not
_is_admin(u):\n
[Link](_sc(\"access denied.\"),
parse_mode=\"html\")\n else:\n
target_id = str(msg).strip()\n
[Link](\"admin_temp_target_add_\" +
u, target_id)\n
[Link](_sc(\"send the amount to
add\") + \":\",
parse_mode=\"html\")\n
[Link](\"add_bal_step3\")\n\
nexcept Exception as e:\n
[Link](chat_id=int(u),
text=\"Error: \" + str(e))\n",
"created_at": "2026-07-28 09:20:40",
"folder": "",
"last_updated": "2026-07-28
09:20:40",
"pinned": false
},
{
"bot": "94886904",
"command": "add_bal_step3",
"admin_only": false,
"code": "try:\n def
_sc(t):\n m =
{'a':'ᴀ','b':'ʙ','c':'ᴄ','d':'ᴅ','e':'ᴇ','f
':'ꜰ','g':'ɢ','h':'ʜ','i':'ɪ','j':'ᴊ','k':'ᴋ
','l':'ʟ','m':'ᴍ','n':'ɴ','o':'ᴏ','p':'ᴘ','
q':'ǫ','r':'ʀ','s':'ꜱ','t':'ᴛ','u':'ᴜ','v':
'ᴠ','w':'ᴡ','x':'x','y':'ʏ','z':'ᴢ'}\n
out = \"\"\n for ch in
str(t):\n low =
[Link]()\n out += m[low] if
low in m else ch\n return out\n\n
LN = \"─\" * 20\n BUL = \"•\"\n ARR =
\"→\"\n\n def _users():\n d =
[Link](\"users\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_users(d):\n
[Link](\"users\", d)\n\n def
_urec(d, uid):\n if uid not in
d:\n d[uid] = {\n
\"balance\": 0.0,\n
\"total_refs\": 0,\n
\"banned\": False,\n
\"wallet\": \"\",\n
\"last_bonus\": 0,\n
\"referred_by\": None,\n
\"joined\": False,\n
\"joined_at\":
int([Link]()),\n
\"completed\": []\n }\n
if \"completed\" not in
d[uid]:\n d[uid][\"completed\"]
= []\n return d[uid]\n\n def
_settings():\n s =
[Link](\"settings\")\n if not
isinstance(s, dict):\n s =
{}\n [Link](\"ref_amount\",
1.0)\n [Link](\"daily_bonus\",
1.0)\n
[Link](\"min_task_reward\",
1.0)\n
[Link](\"min_withdraw\",
10.0)\n
[Link](\"bonus_hours\", 24)\n
return s\n\n def
_save_settings(s):\n
[Link](\"settings\", s)\n\n def
_is_admin(uid):\n admins =
[Link](\"admins\")\n if not
admins:\n admins = []\n
return str(uid) in admins\n\n def
_tasks():\n d =
[Link](\"tasks\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_tasks(d):\n
[Link](\"tasks\", d)\n\n def
_new_task_id():\n n =
[Link](\"task_counter\")\n n =
int(n) + 1 if n else 1\n
[Link](\"task_counter\", n)\n
return str(n)\n\n def
_norm_channel(raw):\n t =
str(raw).strip()\n t =
[Link](\"[Link]
\"\").replace(\"[Link] \"\")\n
if [Link](\"[Link]/\"):\n t
= t[5:]\n if
[Link](\"@\"):\n t =
t[1:]\n t = [Link](\"?\")
[0].split(\"/\")[0].strip()\n return
t\n\n def
_check_bot_admin(username):\n
try:\n admins =
[Link](chat_id=\"@\" +
username)\n except Exception as
e:\n return False,
str(e)\n for a in
admins:\n try:\n
member = [Link] if hasattr(a, \"user\")
else [Link](\"user\", {})\n
mid = [Link] if hasattr(member, \"id\")
else [Link](\"id\")\n except
Exception:\n mid =
None\n if mid is not None and
str(mid) == str(bot_id):\n
return True, \"\"\n return False,
\"not_admin\"\n\n def _fmt(n):\n
try:\n f = float(n)\n
if f == int(f):\n return
str(int(f))\n return
str(round(f, 2))\n except
Exception:\n return
str(n)\n\n def _wreqs():\n d =
[Link](\"withdrawals\")\n
return d if isinstance(d, dict) else
{}\n\n def _save_wreqs(d):\n
[Link](\"withdrawals\", d)\n\n def
_main_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"START
EARNING\"}],\n [{\"text\":
\"CREATE TASK\"}, {\"text\": \"MY
TASK\"}],\n [{\"text\":
\"INVITE FRIENDS\"}, {\"text\": \"MY
BALANCE\"}],\n [{\"text\":
\"DAILY BONUS\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def
_admin_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"Manage
Tasks\"}],\n [{\"text\":
\"Set Refer Reward\"}, {\"text\": \"Set
Daily Bonus\"}],\n
[{\"text\": \"Min Task Reward\"},
{\"text\": \"Withdraw
Requests\"}],\n [{\"text\":
\"Add Balance\"}, {\"text\": \"Remove
Balance\"}],\n [{\"text\":
\"Ban User\"}, {\"text\": \"User
Details\"}],\n [{\"text\":
\"Stats\"}, {\"text\":
\"Broadcast\"}],\n
[{\"text\": \"/start\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def _earn_rows(page,
uid, users_d):\n tasks =
_tasks()\n rec2 = _urec(users_d,
uid)\n active = []\n for tid,
t in [Link]():\n if not
[Link](\"active\"):\n
continue\n if
str([Link](\"owner\")) ==
str(uid):\n
continue\n if tid in
[Link](\"completed\",
[]):\n continue\n
if int([Link](\"completed\", 0)) >=
int([Link](\"slots\", 0)):\n
continue\n [Link]((tid,
t))\n [Link](key=lambda x: -
float(x[1].get(\"reward\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(active) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
active[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"available tasks\") + \" \" + BUL,
LN, \"\"]\n rows = []\n if
not chunk:\n
[Link](_sc(\"no tasks available right
now. check back later.\"))\n
else:\n for tid, t in
chunk:\n remaining =
int([Link](\"slots\", 0)) -
int([Link](\"completed\",
0))\n [Link](BUL + \"
<b>\" + [Link](\"link\", \"\") + \"</b>\\n
\" + _sc(\"reward\") + \": <b>\" +
_fmt([Link](\"reward\")) + \"</b> \" +
_sc(\"coin\") + \" \" + ARR + \" \" +
_sc(\"left\") + \": \" +
str(remaining))\n
[Link]([{\"text\": _sc(\"join &
verify\") + \" - \" + [Link](\"link\",
\"\").replace(\"[Link] \"@\"),
\"callback_data\": \"earn_join_\" +
tid}])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"earn_page_\" + str(page - 1)})\n
if page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"earn_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def _mytask_rows(page,
uid):\n tasks = _tasks()\n
mine = [(tid, t) for tid, t in
[Link]() if str([Link](\"owner\")) ==
str(uid)]\n [Link](key=lambda x:
-int(x[1].get(\"created_at\", 0)))\n
per_page = 4\n total_pages = max(1,
(len(mine) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
mine[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"my tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"you
have not created any task yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"status\") + \": \" + status_txt + \"
\" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \"\\n \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
toggle_txt = _sc(\"pause\") if
[Link](\"active\") else
_sc(\"resume\")\n
[Link]([\n
{\"text\": toggle_txt, \"callback_data\":
\"myt_toggle_\" +
tid},\n {\"text\":
_sc(\"delete\"), \"callback_data\":
\"myt_del_\" + tid}\n
])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"myt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"myt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def
_admin_tasks_rows(page):\n tasks =
_tasks()\n items =
list([Link]())\n
[Link](key=lambda x: -
int(x[1].get(\"created_at\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(items) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
items[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"manage tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"no
tasks created yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"owner\") + \": <code>\" +
str([Link](\"owner\")) + \"</code> \" +
_sc(\"status\") + \": \" + status_txt +
\"\\n \" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \" \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
[Link]([{\"text\": _sc(\"remove
task\") + \" #\" + tid, \"callback_data\":
\"adt_del_\" + tid}])\n nav =
[]\n if page > 0:\n
[Link]({\"text\": \"< \" +
_sc(\"prev\"), \"callback_data\":
\"adt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"adt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n u =
str(message.from_user.id)\n if not
_is_admin(u):\n
[Link](_sc(\"access denied.\"),
parse_mode=\"html\")\n else:\n
target_id =
str([Link](\"admin_temp_target_add_\"
+ u) or \"\")\n try:\n
amount = float(msg)\n users =
_users()\n rec = _urec(users,
target_id)\n rec[\"balance\"] =
float([Link](\"balance\", 0.0)) +
amount\n users[target_id] =
rec\n
_save_users(users)\n
[Link](_sc(\"added\") + \" \" +
_fmt(amount) + \" \" + _sc(\"to user\") +
\" <code>\" + target_id + \"</code>. \" +
_sc(\"new balance\") + \": \" +
_fmt(rec[\"balance\"]),
parse_mode=\"html\")\n
try:\n
[Link](chat_id=int(target_id),
text=_sc(\"an admin added\") + \" \" +
_fmt(amount) + \" \" + _sc(\"coin to your
balance.\"),
parse_mode=\"html\")\n except
Exception:\n pass\n
except ValueError:\n
[Link](_sc(\"please send a valid
number.\"), parse_mode=\"html\")\n\nexcept
Exception as e:\n
[Link](chat_id=int(u),
text=\"Error: \" + str(e))\n",
"created_at": "2026-07-28 09:20:40",
"folder": "",
"last_updated": "2026-07-28
09:20:40",
"pinned": false
},
{
"bot": "94886904",
"command": "Remove Balance",
"admin_only": false,
"code": "try:\n def
_sc(t):\n m =
{'a':'ᴀ','b':'ʙ','c':'ᴄ','d':'ᴅ','e':'ᴇ','f
':'ꜰ','g':'ɢ','h':'ʜ','i':'ɪ','j':'ᴊ','k':'ᴋ
','l':'ʟ','m':'ᴍ','n':'ɴ','o':'ᴏ','p':'ᴘ','
q':'ǫ','r':'ʀ','s':'ꜱ','t':'ᴛ','u':'ᴜ','v':
'ᴠ','w':'ᴡ','x':'x','y':'ʏ','z':'ᴢ'}\n
out = \"\"\n for ch in
str(t):\n low =
[Link]()\n out += m[low] if
low in m else ch\n return out\n\n
LN = \"─\" * 20\n BUL = \"•\"\n ARR =
\"→\"\n\n def _users():\n d =
[Link](\"users\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_users(d):\n
[Link](\"users\", d)\n\n def
_urec(d, uid):\n if uid not in
d:\n d[uid] = {\n
\"balance\": 0.0,\n
\"total_refs\": 0,\n
\"banned\": False,\n
\"wallet\": \"\",\n
\"last_bonus\": 0,\n
\"referred_by\": None,\n
\"joined\": False,\n
\"joined_at\":
int([Link]()),\n
\"completed\": []\n }\n
if \"completed\" not in
d[uid]:\n d[uid][\"completed\"]
= []\n return d[uid]\n\n def
_settings():\n s =
[Link](\"settings\")\n if not
isinstance(s, dict):\n s =
{}\n [Link](\"ref_amount\",
1.0)\n [Link](\"daily_bonus\",
1.0)\n
[Link](\"min_task_reward\",
1.0)\n
[Link](\"min_withdraw\",
10.0)\n
[Link](\"bonus_hours\", 24)\n
return s\n\n def
_save_settings(s):\n
[Link](\"settings\", s)\n\n def
_is_admin(uid):\n admins =
[Link](\"admins\")\n if not
admins:\n admins = []\n
return str(uid) in admins\n\n def
_tasks():\n d =
[Link](\"tasks\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_tasks(d):\n
[Link](\"tasks\", d)\n\n def
_new_task_id():\n n =
[Link](\"task_counter\")\n n =
int(n) + 1 if n else 1\n
[Link](\"task_counter\", n)\n
return str(n)\n\n def
_norm_channel(raw):\n t =
str(raw).strip()\n t =
[Link](\"[Link]
\"\").replace(\"[Link] \"\")\n
if [Link](\"[Link]/\"):\n t
= t[5:]\n if
[Link](\"@\"):\n t =
t[1:]\n t = [Link](\"?\")
[0].split(\"/\")[0].strip()\n return
t\n\n def
_check_bot_admin(username):\n
try:\n admins =
[Link](chat_id=\"@\" +
username)\n except Exception as
e:\n return False,
str(e)\n for a in
admins:\n try:\n
member = [Link] if hasattr(a, \"user\")
else [Link](\"user\", {})\n
mid = [Link] if hasattr(member, \"id\")
else [Link](\"id\")\n except
Exception:\n mid =
None\n if mid is not None and
str(mid) == str(bot_id):\n
return True, \"\"\n return False,
\"not_admin\"\n\n def _fmt(n):\n
try:\n f = float(n)\n
if f == int(f):\n return
str(int(f))\n return
str(round(f, 2))\n except
Exception:\n return
str(n)\n\n def _wreqs():\n d =
[Link](\"withdrawals\")\n
return d if isinstance(d, dict) else
{}\n\n def _save_wreqs(d):\n
[Link](\"withdrawals\", d)\n\n def
_main_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"START
EARNING\"}],\n [{\"text\":
\"CREATE TASK\"}, {\"text\": \"MY
TASK\"}],\n [{\"text\":
\"INVITE FRIENDS\"}, {\"text\": \"MY
BALANCE\"}],\n [{\"text\":
\"DAILY BONUS\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def
_admin_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"Manage
Tasks\"}],\n [{\"text\":
\"Set Refer Reward\"}, {\"text\": \"Set
Daily Bonus\"}],\n
[{\"text\": \"Min Task Reward\"},
{\"text\": \"Withdraw
Requests\"}],\n [{\"text\":
\"Add Balance\"}, {\"text\": \"Remove
Balance\"}],\n [{\"text\":
\"Ban User\"}, {\"text\": \"User
Details\"}],\n [{\"text\":
\"Stats\"}, {\"text\":
\"Broadcast\"}],\n
[{\"text\": \"/start\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def _earn_rows(page,
uid, users_d):\n tasks =
_tasks()\n rec2 = _urec(users_d,
uid)\n active = []\n for tid,
t in [Link]():\n if not
[Link](\"active\"):\n
continue\n if
str([Link](\"owner\")) ==
str(uid):\n
continue\n if tid in
[Link](\"completed\",
[]):\n continue\n
if int([Link](\"completed\", 0)) >=
int([Link](\"slots\", 0)):\n
continue\n [Link]((tid,
t))\n [Link](key=lambda x: -
float(x[1].get(\"reward\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(active) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
active[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"available tasks\") + \" \" + BUL,
LN, \"\"]\n rows = []\n if
not chunk:\n
[Link](_sc(\"no tasks available right
now. check back later.\"))\n
else:\n for tid, t in
chunk:\n remaining =
int([Link](\"slots\", 0)) -
int([Link](\"completed\",
0))\n [Link](BUL + \"
<b>\" + [Link](\"link\", \"\") + \"</b>\\n
\" + _sc(\"reward\") + \": <b>\" +
_fmt([Link](\"reward\")) + \"</b> \" +
_sc(\"coin\") + \" \" + ARR + \" \" +
_sc(\"left\") + \": \" +
str(remaining))\n
[Link]([{\"text\": _sc(\"join &
verify\") + \" - \" + [Link](\"link\",
\"\").replace(\"[Link] \"@\"),
\"callback_data\": \"earn_join_\" +
tid}])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"earn_page_\" + str(page - 1)})\n
if page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"earn_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def _mytask_rows(page,
uid):\n tasks = _tasks()\n
mine = [(tid, t) for tid, t in
[Link]() if str([Link](\"owner\")) ==
str(uid)]\n [Link](key=lambda x:
-int(x[1].get(\"created_at\", 0)))\n
per_page = 4\n total_pages = max(1,
(len(mine) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
mine[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"my tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"you
have not created any task yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"status\") + \": \" + status_txt + \"
\" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \"\\n \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
toggle_txt = _sc(\"pause\") if
[Link](\"active\") else
_sc(\"resume\")\n
[Link]([\n
{\"text\": toggle_txt, \"callback_data\":
\"myt_toggle_\" +
tid},\n {\"text\":
_sc(\"delete\"), \"callback_data\":
\"myt_del_\" + tid}\n
])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"myt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"myt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def
_admin_tasks_rows(page):\n tasks =
_tasks()\n items =
list([Link]())\n
[Link](key=lambda x: -
int(x[1].get(\"created_at\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(items) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
items[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"manage tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"no
tasks created yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"owner\") + \": <code>\" +
str([Link](\"owner\")) + \"</code> \" +
_sc(\"status\") + \": \" + status_txt +
\"\\n \" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \" \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
[Link]([{\"text\": _sc(\"remove
task\") + \" #\" + tid, \"callback_data\":
\"adt_del_\" + tid}])\n nav =
[]\n if page > 0:\n
[Link]({\"text\": \"< \" +
_sc(\"prev\"), \"callback_data\":
\"adt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"adt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n u =
str(message.from_user.id)\n if not
_is_admin(u):\n
[Link](_sc(\"access denied.\"),
parse_mode=\"html\")\n else:\n
[Link](_sc(\"send the telegram
user id to remove balance from\") + \":\",
parse_mode=\"html\")\n
[Link](\"rem_bal_step2\")\n\
nexcept Exception as e:\n
[Link](chat_id=int(u),
text=\"Error: \" + str(e))\n",
"created_at": "2026-07-28 09:20:40",
"folder": "",
"last_updated": "2026-07-28
09:20:40",
"pinned": false
},
{
"bot": "94886904",
"command": "rem_bal_step2",
"admin_only": false,
"code": "try:\n def
_sc(t):\n m =
{'a':'ᴀ','b':'ʙ','c':'ᴄ','d':'ᴅ','e':'ᴇ','f
':'ꜰ','g':'ɢ','h':'ʜ','i':'ɪ','j':'ᴊ','k':'ᴋ
','l':'ʟ','m':'ᴍ','n':'ɴ','o':'ᴏ','p':'ᴘ','
q':'ǫ','r':'ʀ','s':'ꜱ','t':'ᴛ','u':'ᴜ','v':
'ᴠ','w':'ᴡ','x':'x','y':'ʏ','z':'ᴢ'}\n
out = \"\"\n for ch in
str(t):\n low =
[Link]()\n out += m[low] if
low in m else ch\n return out\n\n
LN = \"─\" * 20\n BUL = \"•\"\n ARR =
\"→\"\n\n def _users():\n d =
[Link](\"users\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_users(d):\n
[Link](\"users\", d)\n\n def
_urec(d, uid):\n if uid not in
d:\n d[uid] = {\n
\"balance\": 0.0,\n
\"total_refs\": 0,\n
\"banned\": False,\n
\"wallet\": \"\",\n
\"last_bonus\": 0,\n
\"referred_by\": None,\n
\"joined\": False,\n
\"joined_at\":
int([Link]()),\n
\"completed\": []\n }\n
if \"completed\" not in
d[uid]:\n d[uid][\"completed\"]
= []\n return d[uid]\n\n def
_settings():\n s =
[Link](\"settings\")\n if not
isinstance(s, dict):\n s =
{}\n [Link](\"ref_amount\",
1.0)\n [Link](\"daily_bonus\",
1.0)\n
[Link](\"min_task_reward\",
1.0)\n
[Link](\"min_withdraw\",
10.0)\n
[Link](\"bonus_hours\", 24)\n
return s\n\n def
_save_settings(s):\n
[Link](\"settings\", s)\n\n def
_is_admin(uid):\n admins =
[Link](\"admins\")\n if not
admins:\n admins = []\n
return str(uid) in admins\n\n def
_tasks():\n d =
[Link](\"tasks\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_tasks(d):\n
[Link](\"tasks\", d)\n\n def
_new_task_id():\n n =
[Link](\"task_counter\")\n n =
int(n) + 1 if n else 1\n
[Link](\"task_counter\", n)\n
return str(n)\n\n def
_norm_channel(raw):\n t =
str(raw).strip()\n t =
[Link](\"[Link]
\"\").replace(\"[Link] \"\")\n
if [Link](\"[Link]/\"):\n t
= t[5:]\n if
[Link](\"@\"):\n t =
t[1:]\n t = [Link](\"?\")
[0].split(\"/\")[0].strip()\n return
t\n\n def
_check_bot_admin(username):\n
try:\n admins =
[Link](chat_id=\"@\" +
username)\n except Exception as
e:\n return False,
str(e)\n for a in
admins:\n try:\n
member = [Link] if hasattr(a, \"user\")
else [Link](\"user\", {})\n
mid = [Link] if hasattr(member, \"id\")
else [Link](\"id\")\n except
Exception:\n mid =
None\n if mid is not None and
str(mid) == str(bot_id):\n
return True, \"\"\n return False,
\"not_admin\"\n\n def _fmt(n):\n
try:\n f = float(n)\n
if f == int(f):\n return
str(int(f))\n return
str(round(f, 2))\n except
Exception:\n return
str(n)\n\n def _wreqs():\n d =
[Link](\"withdrawals\")\n
return d if isinstance(d, dict) else
{}\n\n def _save_wreqs(d):\n
[Link](\"withdrawals\", d)\n\n def
_main_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"START
EARNING\"}],\n [{\"text\":
\"CREATE TASK\"}, {\"text\": \"MY
TASK\"}],\n [{\"text\":
\"INVITE FRIENDS\"}, {\"text\": \"MY
BALANCE\"}],\n [{\"text\":
\"DAILY BONUS\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def
_admin_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"Manage
Tasks\"}],\n [{\"text\":
\"Set Refer Reward\"}, {\"text\": \"Set
Daily Bonus\"}],\n
[{\"text\": \"Min Task Reward\"},
{\"text\": \"Withdraw
Requests\"}],\n [{\"text\":
\"Add Balance\"}, {\"text\": \"Remove
Balance\"}],\n [{\"text\":
\"Ban User\"}, {\"text\": \"User
Details\"}],\n [{\"text\":
\"Stats\"}, {\"text\":
\"Broadcast\"}],\n
[{\"text\": \"/start\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def _earn_rows(page,
uid, users_d):\n tasks =
_tasks()\n rec2 = _urec(users_d,
uid)\n active = []\n for tid,
t in [Link]():\n if not
[Link](\"active\"):\n
continue\n if
str([Link](\"owner\")) ==
str(uid):\n
continue\n if tid in
[Link](\"completed\",
[]):\n continue\n
if int([Link](\"completed\", 0)) >=
int([Link](\"slots\", 0)):\n
continue\n [Link]((tid,
t))\n [Link](key=lambda x: -
float(x[1].get(\"reward\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(active) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
active[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"available tasks\") + \" \" + BUL,
LN, \"\"]\n rows = []\n if
not chunk:\n
[Link](_sc(\"no tasks available right
now. check back later.\"))\n
else:\n for tid, t in
chunk:\n remaining =
int([Link](\"slots\", 0)) -
int([Link](\"completed\",
0))\n [Link](BUL + \"
<b>\" + [Link](\"link\", \"\") + \"</b>\\n
\" + _sc(\"reward\") + \": <b>\" +
_fmt([Link](\"reward\")) + \"</b> \" +
_sc(\"coin\") + \" \" + ARR + \" \" +
_sc(\"left\") + \": \" +
str(remaining))\n
[Link]([{\"text\": _sc(\"join &
verify\") + \" - \" + [Link](\"link\",
\"\").replace(\"[Link] \"@\"),
\"callback_data\": \"earn_join_\" +
tid}])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"earn_page_\" + str(page - 1)})\n
if page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"earn_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def _mytask_rows(page,
uid):\n tasks = _tasks()\n
mine = [(tid, t) for tid, t in
[Link]() if str([Link](\"owner\")) ==
str(uid)]\n [Link](key=lambda x:
-int(x[1].get(\"created_at\", 0)))\n
per_page = 4\n total_pages = max(1,
(len(mine) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
mine[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"my tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"you
have not created any task yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"status\") + \": \" + status_txt + \"
\" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \"\\n \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
toggle_txt = _sc(\"pause\") if
[Link](\"active\") else
_sc(\"resume\")\n
[Link]([\n
{\"text\": toggle_txt, \"callback_data\":
\"myt_toggle_\" +
tid},\n {\"text\":
_sc(\"delete\"), \"callback_data\":
\"myt_del_\" + tid}\n
])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"myt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"myt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def
_admin_tasks_rows(page):\n tasks =
_tasks()\n items =
list([Link]())\n
[Link](key=lambda x: -
int(x[1].get(\"created_at\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(items) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
items[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"manage tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"no
tasks created yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"owner\") + \": <code>\" +
str([Link](\"owner\")) + \"</code> \" +
_sc(\"status\") + \": \" + status_txt +
\"\\n \" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \" \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
[Link]([{\"text\": _sc(\"remove
task\") + \" #\" + tid, \"callback_data\":
\"adt_del_\" + tid}])\n nav =
[]\n if page > 0:\n
[Link]({\"text\": \"< \" +
_sc(\"prev\"), \"callback_data\":
\"adt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"adt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n u =
str(message.from_user.id)\n if not
_is_admin(u):\n
[Link](_sc(\"access denied.\"),
parse_mode=\"html\")\n else:\n
target_id = str(msg).strip()\n
[Link](\"admin_temp_target_rem_\" +
u, target_id)\n
[Link](_sc(\"send the amount to
remove\") + \":\",
parse_mode=\"html\")\n
[Link](\"rem_bal_step3\")\n\
nexcept Exception as e:\n
[Link](chat_id=int(u),
text=\"Error: \" + str(e))\n",
"created_at": "2026-07-28 09:20:40",
"folder": "",
"last_updated": "2026-07-28
09:20:40",
"pinned": false
},
{
"bot": "94886904",
"command": "rem_bal_step3",
"admin_only": false,
"code": "try:\n def
_sc(t):\n m =
{'a':'ᴀ','b':'ʙ','c':'ᴄ','d':'ᴅ','e':'ᴇ','f
':'ꜰ','g':'ɢ','h':'ʜ','i':'ɪ','j':'ᴊ','k':'ᴋ
','l':'ʟ','m':'ᴍ','n':'ɴ','o':'ᴏ','p':'ᴘ','
q':'ǫ','r':'ʀ','s':'ꜱ','t':'ᴛ','u':'ᴜ','v':
'ᴠ','w':'ᴡ','x':'x','y':'ʏ','z':'ᴢ'}\n
out = \"\"\n for ch in
str(t):\n low =
[Link]()\n out += m[low] if
low in m else ch\n return out\n\n
LN = \"─\" * 20\n BUL = \"•\"\n ARR =
\"→\"\n\n def _users():\n d =
[Link](\"users\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_users(d):\n
[Link](\"users\", d)\n\n def
_urec(d, uid):\n if uid not in
d:\n d[uid] = {\n
\"balance\": 0.0,\n
\"total_refs\": 0,\n
\"banned\": False,\n
\"wallet\": \"\",\n
\"last_bonus\": 0,\n
\"referred_by\": None,\n
\"joined\": False,\n
\"joined_at\":
int([Link]()),\n
\"completed\": []\n }\n
if \"completed\" not in
d[uid]:\n d[uid][\"completed\"]
= []\n return d[uid]\n\n def
_settings():\n s =
[Link](\"settings\")\n if not
isinstance(s, dict):\n s =
{}\n [Link](\"ref_amount\",
1.0)\n [Link](\"daily_bonus\",
1.0)\n
[Link](\"min_task_reward\",
1.0)\n
[Link](\"min_withdraw\",
10.0)\n
[Link](\"bonus_hours\", 24)\n
return s\n\n def
_save_settings(s):\n
[Link](\"settings\", s)\n\n def
_is_admin(uid):\n admins =
[Link](\"admins\")\n if not
admins:\n admins = []\n
return str(uid) in admins\n\n def
_tasks():\n d =
[Link](\"tasks\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_tasks(d):\n
[Link](\"tasks\", d)\n\n def
_new_task_id():\n n =
[Link](\"task_counter\")\n n =
int(n) + 1 if n else 1\n
[Link](\"task_counter\", n)\n
return str(n)\n\n def
_norm_channel(raw):\n t =
str(raw).strip()\n t =
[Link](\"[Link]
\"\").replace(\"[Link] \"\")\n
if [Link](\"[Link]/\"):\n t
= t[5:]\n if
[Link](\"@\"):\n t =
t[1:]\n t = [Link](\"?\")
[0].split(\"/\")[0].strip()\n return
t\n\n def
_check_bot_admin(username):\n
try:\n admins =
[Link](chat_id=\"@\" +
username)\n except Exception as
e:\n return False,
str(e)\n for a in
admins:\n try:\n
member = [Link] if hasattr(a, \"user\")
else [Link](\"user\", {})\n
mid = [Link] if hasattr(member, \"id\")
else [Link](\"id\")\n except
Exception:\n mid =
None\n if mid is not None and
str(mid) == str(bot_id):\n
return True, \"\"\n return False,
\"not_admin\"\n\n def _fmt(n):\n
try:\n f = float(n)\n
if f == int(f):\n return
str(int(f))\n return
str(round(f, 2))\n except
Exception:\n return
str(n)\n\n def _wreqs():\n d =
[Link](\"withdrawals\")\n
return d if isinstance(d, dict) else
{}\n\n def _save_wreqs(d):\n
[Link](\"withdrawals\", d)\n\n def
_main_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"START
EARNING\"}],\n [{\"text\":
\"CREATE TASK\"}, {\"text\": \"MY
TASK\"}],\n [{\"text\":
\"INVITE FRIENDS\"}, {\"text\": \"MY
BALANCE\"}],\n [{\"text\":
\"DAILY BONUS\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def
_admin_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"Manage
Tasks\"}],\n [{\"text\":
\"Set Refer Reward\"}, {\"text\": \"Set
Daily Bonus\"}],\n
[{\"text\": \"Min Task Reward\"},
{\"text\": \"Withdraw
Requests\"}],\n [{\"text\":
\"Add Balance\"}, {\"text\": \"Remove
Balance\"}],\n [{\"text\":
\"Ban User\"}, {\"text\": \"User
Details\"}],\n [{\"text\":
\"Stats\"}, {\"text\":
\"Broadcast\"}],\n
[{\"text\": \"/start\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def _earn_rows(page,
uid, users_d):\n tasks =
_tasks()\n rec2 = _urec(users_d,
uid)\n active = []\n for tid,
t in [Link]():\n if not
[Link](\"active\"):\n
continue\n if
str([Link](\"owner\")) ==
str(uid):\n
continue\n if tid in
[Link](\"completed\",
[]):\n continue\n
if int([Link](\"completed\", 0)) >=
int([Link](\"slots\", 0)):\n
continue\n [Link]((tid,
t))\n [Link](key=lambda x: -
float(x[1].get(\"reward\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(active) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
active[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"available tasks\") + \" \" + BUL,
LN, \"\"]\n rows = []\n if
not chunk:\n
[Link](_sc(\"no tasks available right
now. check back later.\"))\n
else:\n for tid, t in
chunk:\n remaining =
int([Link](\"slots\", 0)) -
int([Link](\"completed\",
0))\n [Link](BUL + \"
<b>\" + [Link](\"link\", \"\") + \"</b>\\n
\" + _sc(\"reward\") + \": <b>\" +
_fmt([Link](\"reward\")) + \"</b> \" +
_sc(\"coin\") + \" \" + ARR + \" \" +
_sc(\"left\") + \": \" +
str(remaining))\n
[Link]([{\"text\": _sc(\"join &
verify\") + \" - \" + [Link](\"link\",
\"\").replace(\"[Link] \"@\"),
\"callback_data\": \"earn_join_\" +
tid}])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"earn_page_\" + str(page - 1)})\n
if page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"earn_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def _mytask_rows(page,
uid):\n tasks = _tasks()\n
mine = [(tid, t) for tid, t in
[Link]() if str([Link](\"owner\")) ==
str(uid)]\n [Link](key=lambda x:
-int(x[1].get(\"created_at\", 0)))\n
per_page = 4\n total_pages = max(1,
(len(mine) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
mine[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"my tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"you
have not created any task yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"status\") + \": \" + status_txt + \"
\" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \"\\n \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
toggle_txt = _sc(\"pause\") if
[Link](\"active\") else
_sc(\"resume\")\n
[Link]([\n
{\"text\": toggle_txt, \"callback_data\":
\"myt_toggle_\" +
tid},\n {\"text\":
_sc(\"delete\"), \"callback_data\":
\"myt_del_\" + tid}\n
])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"myt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"myt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def
_admin_tasks_rows(page):\n tasks =
_tasks()\n items =
list([Link]())\n
[Link](key=lambda x: -
int(x[1].get(\"created_at\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(items) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
items[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"manage tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"no
tasks created yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"owner\") + \": <code>\" +
str([Link](\"owner\")) + \"</code> \" +
_sc(\"status\") + \": \" + status_txt +
\"\\n \" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \" \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
[Link]([{\"text\": _sc(\"remove
task\") + \" #\" + tid, \"callback_data\":
\"adt_del_\" + tid}])\n nav =
[]\n if page > 0:\n
[Link]({\"text\": \"< \" +
_sc(\"prev\"), \"callback_data\":
\"adt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"adt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n u =
str(message.from_user.id)\n if not
_is_admin(u):\n
[Link](_sc(\"access denied.\"),
parse_mode=\"html\")\n else:\n
target_id =
str([Link](\"admin_temp_target_rem_\"
+ u) or \"\")\n try:\n
amount = float(msg)\n users =
_users()\n rec = _urec(users,
target_id)\n rec[\"balance\"] =
max(0.0, float([Link](\"balance\", 0.0)) -
amount)\n users[target_id] =
rec\n
_save_users(users)\n
[Link](_sc(\"deducted\") + \" \" +
_fmt(amount) + \" \" + _sc(\"from user\") +
\" <code>\" + target_id + \"</code>. \" +
_sc(\"new balance\") + \": \" +
_fmt(rec[\"balance\"]),
parse_mode=\"html\")\n
try:\n
[Link](chat_id=int(target_id),
text=_sc(\"an admin deducted\") + \" \" +
_fmt(amount) + \" \" + _sc(\"coin from your
balance.\"),
parse_mode=\"html\")\n except
Exception:\n pass\n
except ValueError:\n
[Link](_sc(\"please send a valid
number.\"), parse_mode=\"html\")\n\nexcept
Exception as e:\n
[Link](chat_id=int(u),
text=\"Error: \" + str(e))\n",
"created_at": "2026-07-28 09:20:40",
"folder": "",
"last_updated": "2026-07-28
09:20:40",
"pinned": false
},
{
"bot": "94886904",
"command": "Ban User",
"admin_only": false,
"code": "try:\n def
_sc(t):\n m =
{'a':'ᴀ','b':'ʙ','c':'ᴄ','d':'ᴅ','e':'ᴇ','f
':'ꜰ','g':'ɢ','h':'ʜ','i':'ɪ','j':'ᴊ','k':'ᴋ
','l':'ʟ','m':'ᴍ','n':'ɴ','o':'ᴏ','p':'ᴘ','
q':'ǫ','r':'ʀ','s':'ꜱ','t':'ᴛ','u':'ᴜ','v':
'ᴠ','w':'ᴡ','x':'x','y':'ʏ','z':'ᴢ'}\n
out = \"\"\n for ch in
str(t):\n low =
[Link]()\n out += m[low] if
low in m else ch\n return out\n\n
LN = \"─\" * 20\n BUL = \"•\"\n ARR =
\"→\"\n\n def _users():\n d =
[Link](\"users\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_users(d):\n
[Link](\"users\", d)\n\n def
_urec(d, uid):\n if uid not in
d:\n d[uid] = {\n
\"balance\": 0.0,\n
\"total_refs\": 0,\n
\"banned\": False,\n
\"wallet\": \"\",\n
\"last_bonus\": 0,\n
\"referred_by\": None,\n
\"joined\": False,\n
\"joined_at\":
int([Link]()),\n
\"completed\": []\n }\n
if \"completed\" not in
d[uid]:\n d[uid][\"completed\"]
= []\n return d[uid]\n\n def
_settings():\n s =
[Link](\"settings\")\n if not
isinstance(s, dict):\n s =
{}\n [Link](\"ref_amount\",
1.0)\n [Link](\"daily_bonus\",
1.0)\n
[Link](\"min_task_reward\",
1.0)\n
[Link](\"min_withdraw\",
10.0)\n
[Link](\"bonus_hours\", 24)\n
return s\n\n def
_save_settings(s):\n
[Link](\"settings\", s)\n\n def
_is_admin(uid):\n admins =
[Link](\"admins\")\n if not
admins:\n admins = []\n
return str(uid) in admins\n\n def
_tasks():\n d =
[Link](\"tasks\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_tasks(d):\n
[Link](\"tasks\", d)\n\n def
_new_task_id():\n n =
[Link](\"task_counter\")\n n =
int(n) + 1 if n else 1\n
[Link](\"task_counter\", n)\n
return str(n)\n\n def
_norm_channel(raw):\n t =
str(raw).strip()\n t =
[Link](\"[Link]
\"\").replace(\"[Link] \"\")\n
if [Link](\"[Link]/\"):\n t
= t[5:]\n if
[Link](\"@\"):\n t =
t[1:]\n t = [Link](\"?\")
[0].split(\"/\")[0].strip()\n return
t\n\n def
_check_bot_admin(username):\n
try:\n admins =
[Link](chat_id=\"@\" +
username)\n except Exception as
e:\n return False,
str(e)\n for a in
admins:\n try:\n
member = [Link] if hasattr(a, \"user\")
else [Link](\"user\", {})\n
mid = [Link] if hasattr(member, \"id\")
else [Link](\"id\")\n except
Exception:\n mid =
None\n if mid is not None and
str(mid) == str(bot_id):\n
return True, \"\"\n return False,
\"not_admin\"\n\n def _fmt(n):\n
try:\n f = float(n)\n
if f == int(f):\n return
str(int(f))\n return
str(round(f, 2))\n except
Exception:\n return
str(n)\n\n def _wreqs():\n d =
[Link](\"withdrawals\")\n
return d if isinstance(d, dict) else
{}\n\n def _save_wreqs(d):\n
[Link](\"withdrawals\", d)\n\n def
_main_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"START
EARNING\"}],\n [{\"text\":
\"CREATE TASK\"}, {\"text\": \"MY
TASK\"}],\n [{\"text\":
\"INVITE FRIENDS\"}, {\"text\": \"MY
BALANCE\"}],\n [{\"text\":
\"DAILY BONUS\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def
_admin_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"Manage
Tasks\"}],\n [{\"text\":
\"Set Refer Reward\"}, {\"text\": \"Set
Daily Bonus\"}],\n
[{\"text\": \"Min Task Reward\"},
{\"text\": \"Withdraw
Requests\"}],\n [{\"text\":
\"Add Balance\"}, {\"text\": \"Remove
Balance\"}],\n [{\"text\":
\"Ban User\"}, {\"text\": \"User
Details\"}],\n [{\"text\":
\"Stats\"}, {\"text\":
\"Broadcast\"}],\n
[{\"text\": \"/start\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def _earn_rows(page,
uid, users_d):\n tasks =
_tasks()\n rec2 = _urec(users_d,
uid)\n active = []\n for tid,
t in [Link]():\n if not
[Link](\"active\"):\n
continue\n if
str([Link](\"owner\")) ==
str(uid):\n
continue\n if tid in
[Link](\"completed\",
[]):\n continue\n
if int([Link](\"completed\", 0)) >=
int([Link](\"slots\", 0)):\n
continue\n [Link]((tid,
t))\n [Link](key=lambda x: -
float(x[1].get(\"reward\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(active) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
active[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"available tasks\") + \" \" + BUL,
LN, \"\"]\n rows = []\n if
not chunk:\n
[Link](_sc(\"no tasks available right
now. check back later.\"))\n
else:\n for tid, t in
chunk:\n remaining =
int([Link](\"slots\", 0)) -
int([Link](\"completed\",
0))\n [Link](BUL + \"
<b>\" + [Link](\"link\", \"\") + \"</b>\\n
\" + _sc(\"reward\") + \": <b>\" +
_fmt([Link](\"reward\")) + \"</b> \" +
_sc(\"coin\") + \" \" + ARR + \" \" +
_sc(\"left\") + \": \" +
str(remaining))\n
[Link]([{\"text\": _sc(\"join &
verify\") + \" - \" + [Link](\"link\",
\"\").replace(\"[Link] \"@\"),
\"callback_data\": \"earn_join_\" +
tid}])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"earn_page_\" + str(page - 1)})\n
if page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"earn_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def _mytask_rows(page,
uid):\n tasks = _tasks()\n
mine = [(tid, t) for tid, t in
[Link]() if str([Link](\"owner\")) ==
str(uid)]\n [Link](key=lambda x:
-int(x[1].get(\"created_at\", 0)))\n
per_page = 4\n total_pages = max(1,
(len(mine) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
mine[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"my tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"you
have not created any task yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"status\") + \": \" + status_txt + \"
\" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \"\\n \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
toggle_txt = _sc(\"pause\") if
[Link](\"active\") else
_sc(\"resume\")\n
[Link]([\n
{\"text\": toggle_txt, \"callback_data\":
\"myt_toggle_\" +
tid},\n {\"text\":
_sc(\"delete\"), \"callback_data\":
\"myt_del_\" + tid}\n
])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"myt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"myt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def
_admin_tasks_rows(page):\n tasks =
_tasks()\n items =
list([Link]())\n
[Link](key=lambda x: -
int(x[1].get(\"created_at\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(items) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
items[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"manage tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"no
tasks created yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"owner\") + \": <code>\" +
str([Link](\"owner\")) + \"</code> \" +
_sc(\"status\") + \": \" + status_txt +
\"\\n \" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \" \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
[Link]([{\"text\": _sc(\"remove
task\") + \" #\" + tid, \"callback_data\":
\"adt_del_\" + tid}])\n nav =
[]\n if page > 0:\n
[Link]({\"text\": \"< \" +
_sc(\"prev\"), \"callback_data\":
\"adt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"adt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n u =
str(message.from_user.id)\n if not
_is_admin(u):\n
[Link](_sc(\"access denied.\"),
parse_mode=\"html\")\n else:\n
[Link](_sc(\"send the telegram
user id to ban. send it again to unban\") +
\":\", parse_mode=\"html\")\n
[Link](\"ban_user_step\")\n\
nexcept Exception as e:\n
[Link](chat_id=int(u),
text=\"Error: \" + str(e))\n",
"created_at": "2026-07-28 09:20:40",
"folder": "",
"last_updated": "2026-07-28
09:20:40",
"pinned": false
},
{
"bot": "94886904",
"command": "ban_user_step",
"admin_only": false,
"code": "try:\n def
_sc(t):\n m =
{'a':'ᴀ','b':'ʙ','c':'ᴄ','d':'ᴅ','e':'ᴇ','f
':'ꜰ','g':'ɢ','h':'ʜ','i':'ɪ','j':'ᴊ','k':'ᴋ
','l':'ʟ','m':'ᴍ','n':'ɴ','o':'ᴏ','p':'ᴘ','
q':'ǫ','r':'ʀ','s':'ꜱ','t':'ᴛ','u':'ᴜ','v':
'ᴠ','w':'ᴡ','x':'x','y':'ʏ','z':'ᴢ'}\n
out = \"\"\n for ch in
str(t):\n low =
[Link]()\n out += m[low] if
low in m else ch\n return out\n\n
LN = \"─\" * 20\n BUL = \"•\"\n ARR =
\"→\"\n\n def _users():\n d =
[Link](\"users\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_users(d):\n
[Link](\"users\", d)\n\n def
_urec(d, uid):\n if uid not in
d:\n d[uid] = {\n
\"balance\": 0.0,\n
\"total_refs\": 0,\n
\"banned\": False,\n
\"wallet\": \"\",\n
\"last_bonus\": 0,\n
\"referred_by\": None,\n
\"joined\": False,\n
\"joined_at\":
int([Link]()),\n
\"completed\": []\n }\n
if \"completed\" not in
d[uid]:\n d[uid][\"completed\"]
= []\n return d[uid]\n\n def
_settings():\n s =
[Link](\"settings\")\n if not
isinstance(s, dict):\n s =
{}\n [Link](\"ref_amount\",
1.0)\n [Link](\"daily_bonus\",
1.0)\n
[Link](\"min_task_reward\",
1.0)\n
[Link](\"min_withdraw\",
10.0)\n
[Link](\"bonus_hours\", 24)\n
return s\n\n def
_save_settings(s):\n
[Link](\"settings\", s)\n\n def
_is_admin(uid):\n admins =
[Link](\"admins\")\n if not
admins:\n admins = []\n
return str(uid) in admins\n\n def
_tasks():\n d =
[Link](\"tasks\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_tasks(d):\n
[Link](\"tasks\", d)\n\n def
_new_task_id():\n n =
[Link](\"task_counter\")\n n =
int(n) + 1 if n else 1\n
[Link](\"task_counter\", n)\n
return str(n)\n\n def
_norm_channel(raw):\n t =
str(raw).strip()\n t =
[Link](\"[Link]
\"\").replace(\"[Link] \"\")\n
if [Link](\"[Link]/\"):\n t
= t[5:]\n if
[Link](\"@\"):\n t =
t[1:]\n t = [Link](\"?\")
[0].split(\"/\")[0].strip()\n return
t\n\n def
_check_bot_admin(username):\n
try:\n admins =
[Link](chat_id=\"@\" +
username)\n except Exception as
e:\n return False,
str(e)\n for a in
admins:\n try:\n
member = [Link] if hasattr(a, \"user\")
else [Link](\"user\", {})\n
mid = [Link] if hasattr(member, \"id\")
else [Link](\"id\")\n except
Exception:\n mid =
None\n if mid is not None and
str(mid) == str(bot_id):\n
return True, \"\"\n return False,
\"not_admin\"\n\n def _fmt(n):\n
try:\n f = float(n)\n
if f == int(f):\n return
str(int(f))\n return
str(round(f, 2))\n except
Exception:\n return
str(n)\n\n def _wreqs():\n d =
[Link](\"withdrawals\")\n
return d if isinstance(d, dict) else
{}\n\n def _save_wreqs(d):\n
[Link](\"withdrawals\", d)\n\n def
_main_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"START
EARNING\"}],\n [{\"text\":
\"CREATE TASK\"}, {\"text\": \"MY
TASK\"}],\n [{\"text\":
\"INVITE FRIENDS\"}, {\"text\": \"MY
BALANCE\"}],\n [{\"text\":
\"DAILY BONUS\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def
_admin_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"Manage
Tasks\"}],\n [{\"text\":
\"Set Refer Reward\"}, {\"text\": \"Set
Daily Bonus\"}],\n
[{\"text\": \"Min Task Reward\"},
{\"text\": \"Withdraw
Requests\"}],\n [{\"text\":
\"Add Balance\"}, {\"text\": \"Remove
Balance\"}],\n [{\"text\":
\"Ban User\"}, {\"text\": \"User
Details\"}],\n [{\"text\":
\"Stats\"}, {\"text\":
\"Broadcast\"}],\n
[{\"text\": \"/start\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def _earn_rows(page,
uid, users_d):\n tasks =
_tasks()\n rec2 = _urec(users_d,
uid)\n active = []\n for tid,
t in [Link]():\n if not
[Link](\"active\"):\n
continue\n if
str([Link](\"owner\")) ==
str(uid):\n
continue\n if tid in
[Link](\"completed\",
[]):\n continue\n
if int([Link](\"completed\", 0)) >=
int([Link](\"slots\", 0)):\n
continue\n [Link]((tid,
t))\n [Link](key=lambda x: -
float(x[1].get(\"reward\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(active) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
active[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"available tasks\") + \" \" + BUL,
LN, \"\"]\n rows = []\n if
not chunk:\n
[Link](_sc(\"no tasks available right
now. check back later.\"))\n
else:\n for tid, t in
chunk:\n remaining =
int([Link](\"slots\", 0)) -
int([Link](\"completed\",
0))\n [Link](BUL + \"
<b>\" + [Link](\"link\", \"\") + \"</b>\\n
\" + _sc(\"reward\") + \": <b>\" +
_fmt([Link](\"reward\")) + \"</b> \" +
_sc(\"coin\") + \" \" + ARR + \" \" +
_sc(\"left\") + \": \" +
str(remaining))\n
[Link]([{\"text\": _sc(\"join &
verify\") + \" - \" + [Link](\"link\",
\"\").replace(\"[Link] \"@\"),
\"callback_data\": \"earn_join_\" +
tid}])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"earn_page_\" + str(page - 1)})\n
if page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"earn_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def _mytask_rows(page,
uid):\n tasks = _tasks()\n
mine = [(tid, t) for tid, t in
[Link]() if str([Link](\"owner\")) ==
str(uid)]\n [Link](key=lambda x:
-int(x[1].get(\"created_at\", 0)))\n
per_page = 4\n total_pages = max(1,
(len(mine) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
mine[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"my tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"you
have not created any task yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"status\") + \": \" + status_txt + \"
\" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \"\\n \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
toggle_txt = _sc(\"pause\") if
[Link](\"active\") else
_sc(\"resume\")\n
[Link]([\n
{\"text\": toggle_txt, \"callback_data\":
\"myt_toggle_\" +
tid},\n {\"text\":
_sc(\"delete\"), \"callback_data\":
\"myt_del_\" + tid}\n
])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"myt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"myt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def
_admin_tasks_rows(page):\n tasks =
_tasks()\n items =
list([Link]())\n
[Link](key=lambda x: -
int(x[1].get(\"created_at\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(items) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
items[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"manage tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"no
tasks created yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"owner\") + \": <code>\" +
str([Link](\"owner\")) + \"</code> \" +
_sc(\"status\") + \": \" + status_txt +
\"\\n \" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \" \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
[Link]([{\"text\": _sc(\"remove
task\") + \" #\" + tid, \"callback_data\":
\"adt_del_\" + tid}])\n nav =
[]\n if page > 0:\n
[Link]({\"text\": \"< \" +
_sc(\"prev\"), \"callback_data\":
\"adt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"adt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n u =
str(message.from_user.id)\n if not
_is_admin(u):\n
[Link](_sc(\"access denied.\"),
parse_mode=\"html\")\n else:\n
target_id = str(msg).strip()\n users
= _users()\n rec = _urec(users,
target_id)\n rec[\"banned\"] = not
bool([Link](\"banned\", False))\n
users[target_id] = rec\n
_save_users(users)\n state =
_sc(\"banned\") if rec[\"banned\"] else
_sc(\"unbanned\")\n
[Link](_sc(\"user\") + \" <code>\"
+ target_id + \"</code> \" + _sc(\"is
now\") + \" \" + state + \".\",
parse_mode=\"html\")\n\nexcept Exception as
e:\n [Link](chat_id=int(u),
text=\"Error: \" + str(e))\n",
"created_at": "2026-07-28 09:20:40",
"folder": "",
"last_updated": "2026-07-28
09:20:40",
"pinned": false
},
{
"bot": "94886904",
"command": "User Details",
"admin_only": false,
"code": "try:\n def
_sc(t):\n m =
{'a':'ᴀ','b':'ʙ','c':'ᴄ','d':'ᴅ','e':'ᴇ','f
':'ꜰ','g':'ɢ','h':'ʜ','i':'ɪ','j':'ᴊ','k':'ᴋ
','l':'ʟ','m':'ᴍ','n':'ɴ','o':'ᴏ','p':'ᴘ','
q':'ǫ','r':'ʀ','s':'ꜱ','t':'ᴛ','u':'ᴜ','v':
'ᴠ','w':'ᴡ','x':'x','y':'ʏ','z':'ᴢ'}\n
out = \"\"\n for ch in
str(t):\n low =
[Link]()\n out += m[low] if
low in m else ch\n return out\n\n
LN = \"─\" * 20\n BUL = \"•\"\n ARR =
\"→\"\n\n def _users():\n d =
[Link](\"users\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_users(d):\n
[Link](\"users\", d)\n\n def
_urec(d, uid):\n if uid not in
d:\n d[uid] = {\n
\"balance\": 0.0,\n
\"total_refs\": 0,\n
\"banned\": False,\n
\"wallet\": \"\",\n
\"last_bonus\": 0,\n
\"referred_by\": None,\n
\"joined\": False,\n
\"joined_at\":
int([Link]()),\n
\"completed\": []\n }\n
if \"completed\" not in
d[uid]:\n d[uid][\"completed\"]
= []\n return d[uid]\n\n def
_settings():\n s =
[Link](\"settings\")\n if not
isinstance(s, dict):\n s =
{}\n [Link](\"ref_amount\",
1.0)\n [Link](\"daily_bonus\",
1.0)\n
[Link](\"min_task_reward\",
1.0)\n
[Link](\"min_withdraw\",
10.0)\n
[Link](\"bonus_hours\", 24)\n
return s\n\n def
_save_settings(s):\n
[Link](\"settings\", s)\n\n def
_is_admin(uid):\n admins =
[Link](\"admins\")\n if not
admins:\n admins = []\n
return str(uid) in admins\n\n def
_tasks():\n d =
[Link](\"tasks\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_tasks(d):\n
[Link](\"tasks\", d)\n\n def
_new_task_id():\n n =
[Link](\"task_counter\")\n n =
int(n) + 1 if n else 1\n
[Link](\"task_counter\", n)\n
return str(n)\n\n def
_norm_channel(raw):\n t =
str(raw).strip()\n t =
[Link](\"[Link]
\"\").replace(\"[Link] \"\")\n
if [Link](\"[Link]/\"):\n t
= t[5:]\n if
[Link](\"@\"):\n t =
t[1:]\n t = [Link](\"?\")
[0].split(\"/\")[0].strip()\n return
t\n\n def
_check_bot_admin(username):\n
try:\n admins =
[Link](chat_id=\"@\" +
username)\n except Exception as
e:\n return False,
str(e)\n for a in
admins:\n try:\n
member = [Link] if hasattr(a, \"user\")
else [Link](\"user\", {})\n
mid = [Link] if hasattr(member, \"id\")
else [Link](\"id\")\n except
Exception:\n mid =
None\n if mid is not None and
str(mid) == str(bot_id):\n
return True, \"\"\n return False,
\"not_admin\"\n\n def _fmt(n):\n
try:\n f = float(n)\n
if f == int(f):\n return
str(int(f))\n return
str(round(f, 2))\n except
Exception:\n return
str(n)\n\n def _wreqs():\n d =
[Link](\"withdrawals\")\n
return d if isinstance(d, dict) else
{}\n\n def _save_wreqs(d):\n
[Link](\"withdrawals\", d)\n\n def
_main_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"START
EARNING\"}],\n [{\"text\":
\"CREATE TASK\"}, {\"text\": \"MY
TASK\"}],\n [{\"text\":
\"INVITE FRIENDS\"}, {\"text\": \"MY
BALANCE\"}],\n [{\"text\":
\"DAILY BONUS\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def
_admin_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"Manage
Tasks\"}],\n [{\"text\":
\"Set Refer Reward\"}, {\"text\": \"Set
Daily Bonus\"}],\n
[{\"text\": \"Min Task Reward\"},
{\"text\": \"Withdraw
Requests\"}],\n [{\"text\":
\"Add Balance\"}, {\"text\": \"Remove
Balance\"}],\n [{\"text\":
\"Ban User\"}, {\"text\": \"User
Details\"}],\n [{\"text\":
\"Stats\"}, {\"text\":
\"Broadcast\"}],\n
[{\"text\": \"/start\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def _earn_rows(page,
uid, users_d):\n tasks =
_tasks()\n rec2 = _urec(users_d,
uid)\n active = []\n for tid,
t in [Link]():\n if not
[Link](\"active\"):\n
continue\n if
str([Link](\"owner\")) ==
str(uid):\n
continue\n if tid in
[Link](\"completed\",
[]):\n continue\n
if int([Link](\"completed\", 0)) >=
int([Link](\"slots\", 0)):\n
continue\n [Link]((tid,
t))\n [Link](key=lambda x: -
float(x[1].get(\"reward\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(active) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
active[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"available tasks\") + \" \" + BUL,
LN, \"\"]\n rows = []\n if
not chunk:\n
[Link](_sc(\"no tasks available right
now. check back later.\"))\n
else:\n for tid, t in
chunk:\n remaining =
int([Link](\"slots\", 0)) -
int([Link](\"completed\",
0))\n [Link](BUL + \"
<b>\" + [Link](\"link\", \"\") + \"</b>\\n
\" + _sc(\"reward\") + \": <b>\" +
_fmt([Link](\"reward\")) + \"</b> \" +
_sc(\"coin\") + \" \" + ARR + \" \" +
_sc(\"left\") + \": \" +
str(remaining))\n
[Link]([{\"text\": _sc(\"join &
verify\") + \" - \" + [Link](\"link\",
\"\").replace(\"[Link] \"@\"),
\"callback_data\": \"earn_join_\" +
tid}])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"earn_page_\" + str(page - 1)})\n
if page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"earn_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def _mytask_rows(page,
uid):\n tasks = _tasks()\n
mine = [(tid, t) for tid, t in
[Link]() if str([Link](\"owner\")) ==
str(uid)]\n [Link](key=lambda x:
-int(x[1].get(\"created_at\", 0)))\n
per_page = 4\n total_pages = max(1,
(len(mine) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
mine[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"my tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"you
have not created any task yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"status\") + \": \" + status_txt + \"
\" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \"\\n \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
toggle_txt = _sc(\"pause\") if
[Link](\"active\") else
_sc(\"resume\")\n
[Link]([\n
{\"text\": toggle_txt, \"callback_data\":
\"myt_toggle_\" +
tid},\n {\"text\":
_sc(\"delete\"), \"callback_data\":
\"myt_del_\" + tid}\n
])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"myt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"myt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def
_admin_tasks_rows(page):\n tasks =
_tasks()\n items =
list([Link]())\n
[Link](key=lambda x: -
int(x[1].get(\"created_at\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(items) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
items[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"manage tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"no
tasks created yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"owner\") + \": <code>\" +
str([Link](\"owner\")) + \"</code> \" +
_sc(\"status\") + \": \" + status_txt +
\"\\n \" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \" \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
[Link]([{\"text\": _sc(\"remove
task\") + \" #\" + tid, \"callback_data\":
\"adt_del_\" + tid}])\n nav =
[]\n if page > 0:\n
[Link]({\"text\": \"< \" +
_sc(\"prev\"), \"callback_data\":
\"adt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"adt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n u =
str(message.from_user.id)\n if not
_is_admin(u):\n
[Link](_sc(\"access denied.\"),
parse_mode=\"html\")\n else:\n
[Link](_sc(\"send the telegram
user id to look up\") + \":\",
parse_mode=\"html\")\n
[Link](\"user_details_step\"
)\n\nexcept Exception as e:\n
[Link](chat_id=int(u),
text=\"Error: \" + str(e))\n",
"created_at": "2026-07-28 09:20:40",
"folder": "",
"last_updated": "2026-07-28
09:20:40",
"pinned": false
},
{
"bot": "94886904",
"command": "user_details_step",
"admin_only": false,
"code": "try:\n def
_sc(t):\n m =
{'a':'ᴀ','b':'ʙ','c':'ᴄ','d':'ᴅ','e':'ᴇ','f
':'ꜰ','g':'ɢ','h':'ʜ','i':'ɪ','j':'ᴊ','k':'ᴋ
','l':'ʟ','m':'ᴍ','n':'ɴ','o':'ᴏ','p':'ᴘ','
q':'ǫ','r':'ʀ','s':'ꜱ','t':'ᴛ','u':'ᴜ','v':
'ᴠ','w':'ᴡ','x':'x','y':'ʏ','z':'ᴢ'}\n
out = \"\"\n for ch in
str(t):\n low =
[Link]()\n out += m[low] if
low in m else ch\n return out\n\n
LN = \"─\" * 20\n BUL = \"•\"\n ARR =
\"→\"\n\n def _users():\n d =
[Link](\"users\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_users(d):\n
[Link](\"users\", d)\n\n def
_urec(d, uid):\n if uid not in
d:\n d[uid] = {\n
\"balance\": 0.0,\n
\"total_refs\": 0,\n
\"banned\": False,\n
\"wallet\": \"\",\n
\"last_bonus\": 0,\n
\"referred_by\": None,\n
\"joined\": False,\n
\"joined_at\":
int([Link]()),\n
\"completed\": []\n }\n
if \"completed\" not in
d[uid]:\n d[uid][\"completed\"]
= []\n return d[uid]\n\n def
_settings():\n s =
[Link](\"settings\")\n if not
isinstance(s, dict):\n s =
{}\n [Link](\"ref_amount\",
1.0)\n [Link](\"daily_bonus\",
1.0)\n
[Link](\"min_task_reward\",
1.0)\n
[Link](\"min_withdraw\",
10.0)\n
[Link](\"bonus_hours\", 24)\n
return s\n\n def
_save_settings(s):\n
[Link](\"settings\", s)\n\n def
_is_admin(uid):\n admins =
[Link](\"admins\")\n if not
admins:\n admins = []\n
return str(uid) in admins\n\n def
_tasks():\n d =
[Link](\"tasks\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_tasks(d):\n
[Link](\"tasks\", d)\n\n def
_new_task_id():\n n =
[Link](\"task_counter\")\n n =
int(n) + 1 if n else 1\n
[Link](\"task_counter\", n)\n
return str(n)\n\n def
_norm_channel(raw):\n t =
str(raw).strip()\n t =
[Link](\"[Link]
\"\").replace(\"[Link] \"\")\n
if [Link](\"[Link]/\"):\n t
= t[5:]\n if
[Link](\"@\"):\n t =
t[1:]\n t = [Link](\"?\")
[0].split(\"/\")[0].strip()\n return
t\n\n def
_check_bot_admin(username):\n
try:\n admins =
[Link](chat_id=\"@\" +
username)\n except Exception as
e:\n return False,
str(e)\n for a in
admins:\n try:\n
member = [Link] if hasattr(a, \"user\")
else [Link](\"user\", {})\n
mid = [Link] if hasattr(member, \"id\")
else [Link](\"id\")\n except
Exception:\n mid =
None\n if mid is not None and
str(mid) == str(bot_id):\n
return True, \"\"\n return False,
\"not_admin\"\n\n def _fmt(n):\n
try:\n f = float(n)\n
if f == int(f):\n return
str(int(f))\n return
str(round(f, 2))\n except
Exception:\n return
str(n)\n\n def _wreqs():\n d =
[Link](\"withdrawals\")\n
return d if isinstance(d, dict) else
{}\n\n def _save_wreqs(d):\n
[Link](\"withdrawals\", d)\n\n def
_main_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"START
EARNING\"}],\n [{\"text\":
\"CREATE TASK\"}, {\"text\": \"MY
TASK\"}],\n [{\"text\":
\"INVITE FRIENDS\"}, {\"text\": \"MY
BALANCE\"}],\n [{\"text\":
\"DAILY BONUS\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def
_admin_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"Manage
Tasks\"}],\n [{\"text\":
\"Set Refer Reward\"}, {\"text\": \"Set
Daily Bonus\"}],\n
[{\"text\": \"Min Task Reward\"},
{\"text\": \"Withdraw
Requests\"}],\n [{\"text\":
\"Add Balance\"}, {\"text\": \"Remove
Balance\"}],\n [{\"text\":
\"Ban User\"}, {\"text\": \"User
Details\"}],\n [{\"text\":
\"Stats\"}, {\"text\":
\"Broadcast\"}],\n
[{\"text\": \"/start\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def _earn_rows(page,
uid, users_d):\n tasks =
_tasks()\n rec2 = _urec(users_d,
uid)\n active = []\n for tid,
t in [Link]():\n if not
[Link](\"active\"):\n
continue\n if
str([Link](\"owner\")) ==
str(uid):\n
continue\n if tid in
[Link](\"completed\",
[]):\n continue\n
if int([Link](\"completed\", 0)) >=
int([Link](\"slots\", 0)):\n
continue\n [Link]((tid,
t))\n [Link](key=lambda x: -
float(x[1].get(\"reward\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(active) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
active[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"available tasks\") + \" \" + BUL,
LN, \"\"]\n rows = []\n if
not chunk:\n
[Link](_sc(\"no tasks available right
now. check back later.\"))\n
else:\n for tid, t in
chunk:\n remaining =
int([Link](\"slots\", 0)) -
int([Link](\"completed\",
0))\n [Link](BUL + \"
<b>\" + [Link](\"link\", \"\") + \"</b>\\n
\" + _sc(\"reward\") + \": <b>\" +
_fmt([Link](\"reward\")) + \"</b> \" +
_sc(\"coin\") + \" \" + ARR + \" \" +
_sc(\"left\") + \": \" +
str(remaining))\n
[Link]([{\"text\": _sc(\"join &
verify\") + \" - \" + [Link](\"link\",
\"\").replace(\"[Link] \"@\"),
\"callback_data\": \"earn_join_\" +
tid}])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"earn_page_\" + str(page - 1)})\n
if page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"earn_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def _mytask_rows(page,
uid):\n tasks = _tasks()\n
mine = [(tid, t) for tid, t in
[Link]() if str([Link](\"owner\")) ==
str(uid)]\n [Link](key=lambda x:
-int(x[1].get(\"created_at\", 0)))\n
per_page = 4\n total_pages = max(1,
(len(mine) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
mine[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"my tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"you
have not created any task yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"status\") + \": \" + status_txt + \"
\" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \"\\n \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
toggle_txt = _sc(\"pause\") if
[Link](\"active\") else
_sc(\"resume\")\n
[Link]([\n
{\"text\": toggle_txt, \"callback_data\":
\"myt_toggle_\" +
tid},\n {\"text\":
_sc(\"delete\"), \"callback_data\":
\"myt_del_\" + tid}\n
])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"myt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"myt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def
_admin_tasks_rows(page):\n tasks =
_tasks()\n items =
list([Link]())\n
[Link](key=lambda x: -
int(x[1].get(\"created_at\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(items) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
items[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"manage tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"no
tasks created yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"owner\") + \": <code>\" +
str([Link](\"owner\")) + \"</code> \" +
_sc(\"status\") + \": \" + status_txt +
\"\\n \" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \" \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
[Link]([{\"text\": _sc(\"remove
task\") + \" #\" + tid, \"callback_data\":
\"adt_del_\" + tid}])\n nav =
[]\n if page > 0:\n
[Link]({\"text\": \"< \" +
_sc(\"prev\"), \"callback_data\":
\"adt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"adt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n u =
str(message.from_user.id)\n if not
_is_admin(u):\n
[Link](_sc(\"access denied.\"),
parse_mode=\"html\")\n else:\n
target_id = str(msg).strip()\n users
= _users()\n if target_id not in
users:\n
[Link](_sc(\"no record found for
that user id.\"),
parse_mode=\"html\")\n
else:\n rec =
users[target_id]\n
[Link](\n LN +
\"\\n\" + _sc(\"user details\") + \"\\n\" +
LN + \"\\n\\n\"\n +
_sc(\"id\") + \": <code>\" + target_id + \"
</code>\\n\"\n +
_sc(\"balance\") + \": \" +
_fmt([Link](\"balance\", 0.0)) +
\"\\n\"\n + _sc(\"total
referrals\") + \": \" +
str([Link](\"total_refs\", 0)) +
\"\\n\"\n + _sc(\"wallet\")
+ \": \" + ([Link](\"wallet\") or
_sc(\"not set\")) +
\"\\n\"\n + _sc(\"banned\")
+ \": \" + str(bool([Link](\"banned\",
False))) + \"\\n\"\n +
_sc(\"tasks completed\") + \": \" +
str(len([Link](\"completed\", []))) +
\"\\n\\n\" + LN,\n
parse_mode=\"html\"\n
)\n\nexcept Exception as e:\n
[Link](chat_id=int(u),
text=\"Error: \" + str(e))\n",
"created_at": "2026-07-28 09:20:40",
"folder": "",
"last_updated": "2026-07-28
09:20:40",
"pinned": false
},
{
"bot": "94886904",
"command": "Stats",
"admin_only": false,
"code": "try:\n def
_sc(t):\n m =
{'a':'ᴀ','b':'ʙ','c':'ᴄ','d':'ᴅ','e':'ᴇ','f
':'ꜰ','g':'ɢ','h':'ʜ','i':'ɪ','j':'ᴊ','k':'ᴋ
','l':'ʟ','m':'ᴍ','n':'ɴ','o':'ᴏ','p':'ᴘ','
q':'ǫ','r':'ʀ','s':'ꜱ','t':'ᴛ','u':'ᴜ','v':
'ᴠ','w':'ᴡ','x':'x','y':'ʏ','z':'ᴢ'}\n
out = \"\"\n for ch in
str(t):\n low =
[Link]()\n out += m[low] if
low in m else ch\n return out\n\n
LN = \"─\" * 20\n BUL = \"•\"\n ARR =
\"→\"\n\n def _users():\n d =
[Link](\"users\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_users(d):\n
[Link](\"users\", d)\n\n def
_urec(d, uid):\n if uid not in
d:\n d[uid] = {\n
\"balance\": 0.0,\n
\"total_refs\": 0,\n
\"banned\": False,\n
\"wallet\": \"\",\n
\"last_bonus\": 0,\n
\"referred_by\": None,\n
\"joined\": False,\n
\"joined_at\":
int([Link]()),\n
\"completed\": []\n }\n
if \"completed\" not in
d[uid]:\n d[uid][\"completed\"]
= []\n return d[uid]\n\n def
_settings():\n s =
[Link](\"settings\")\n if not
isinstance(s, dict):\n s =
{}\n [Link](\"ref_amount\",
1.0)\n [Link](\"daily_bonus\",
1.0)\n
[Link](\"min_task_reward\",
1.0)\n
[Link](\"min_withdraw\",
10.0)\n
[Link](\"bonus_hours\", 24)\n
return s\n\n def
_save_settings(s):\n
[Link](\"settings\", s)\n\n def
_is_admin(uid):\n admins =
[Link](\"admins\")\n if not
admins:\n admins = []\n
return str(uid) in admins\n\n def
_tasks():\n d =
[Link](\"tasks\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_tasks(d):\n
[Link](\"tasks\", d)\n\n def
_new_task_id():\n n =
[Link](\"task_counter\")\n n =
int(n) + 1 if n else 1\n
[Link](\"task_counter\", n)\n
return str(n)\n\n def
_norm_channel(raw):\n t =
str(raw).strip()\n t =
[Link](\"[Link]
\"\").replace(\"[Link] \"\")\n
if [Link](\"[Link]/\"):\n t
= t[5:]\n if
[Link](\"@\"):\n t =
t[1:]\n t = [Link](\"?\")
[0].split(\"/\")[0].strip()\n return
t\n\n def
_check_bot_admin(username):\n
try:\n admins =
[Link](chat_id=\"@\" +
username)\n except Exception as
e:\n return False,
str(e)\n for a in
admins:\n try:\n
member = [Link] if hasattr(a, \"user\")
else [Link](\"user\", {})\n
mid = [Link] if hasattr(member, \"id\")
else [Link](\"id\")\n except
Exception:\n mid =
None\n if mid is not None and
str(mid) == str(bot_id):\n
return True, \"\"\n return False,
\"not_admin\"\n\n def _fmt(n):\n
try:\n f = float(n)\n
if f == int(f):\n return
str(int(f))\n return
str(round(f, 2))\n except
Exception:\n return
str(n)\n\n def _wreqs():\n d =
[Link](\"withdrawals\")\n
return d if isinstance(d, dict) else
{}\n\n def _save_wreqs(d):\n
[Link](\"withdrawals\", d)\n\n def
_main_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"START
EARNING\"}],\n [{\"text\":
\"CREATE TASK\"}, {\"text\": \"MY
TASK\"}],\n [{\"text\":
\"INVITE FRIENDS\"}, {\"text\": \"MY
BALANCE\"}],\n [{\"text\":
\"DAILY BONUS\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def
_admin_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"Manage
Tasks\"}],\n [{\"text\":
\"Set Refer Reward\"}, {\"text\": \"Set
Daily Bonus\"}],\n
[{\"text\": \"Min Task Reward\"},
{\"text\": \"Withdraw
Requests\"}],\n [{\"text\":
\"Add Balance\"}, {\"text\": \"Remove
Balance\"}],\n [{\"text\":
\"Ban User\"}, {\"text\": \"User
Details\"}],\n [{\"text\":
\"Stats\"}, {\"text\":
\"Broadcast\"}],\n
[{\"text\": \"/start\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def _earn_rows(page,
uid, users_d):\n tasks =
_tasks()\n rec2 = _urec(users_d,
uid)\n active = []\n for tid,
t in [Link]():\n if not
[Link](\"active\"):\n
continue\n if
str([Link](\"owner\")) ==
str(uid):\n
continue\n if tid in
[Link](\"completed\",
[]):\n continue\n
if int([Link](\"completed\", 0)) >=
int([Link](\"slots\", 0)):\n
continue\n [Link]((tid,
t))\n [Link](key=lambda x: -
float(x[1].get(\"reward\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(active) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
active[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"available tasks\") + \" \" + BUL,
LN, \"\"]\n rows = []\n if
not chunk:\n
[Link](_sc(\"no tasks available right
now. check back later.\"))\n
else:\n for tid, t in
chunk:\n remaining =
int([Link](\"slots\", 0)) -
int([Link](\"completed\",
0))\n [Link](BUL + \"
<b>\" + [Link](\"link\", \"\") + \"</b>\\n
\" + _sc(\"reward\") + \": <b>\" +
_fmt([Link](\"reward\")) + \"</b> \" +
_sc(\"coin\") + \" \" + ARR + \" \" +
_sc(\"left\") + \": \" +
str(remaining))\n
[Link]([{\"text\": _sc(\"join &
verify\") + \" - \" + [Link](\"link\",
\"\").replace(\"[Link] \"@\"),
\"callback_data\": \"earn_join_\" +
tid}])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"earn_page_\" + str(page - 1)})\n
if page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"earn_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def _mytask_rows(page,
uid):\n tasks = _tasks()\n
mine = [(tid, t) for tid, t in
[Link]() if str([Link](\"owner\")) ==
str(uid)]\n [Link](key=lambda x:
-int(x[1].get(\"created_at\", 0)))\n
per_page = 4\n total_pages = max(1,
(len(mine) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
mine[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"my tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"you
have not created any task yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"status\") + \": \" + status_txt + \"
\" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \"\\n \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
toggle_txt = _sc(\"pause\") if
[Link](\"active\") else
_sc(\"resume\")\n
[Link]([\n
{\"text\": toggle_txt, \"callback_data\":
\"myt_toggle_\" +
tid},\n {\"text\":
_sc(\"delete\"), \"callback_data\":
\"myt_del_\" + tid}\n
])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"myt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"myt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def
_admin_tasks_rows(page):\n tasks =
_tasks()\n items =
list([Link]())\n
[Link](key=lambda x: -
int(x[1].get(\"created_at\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(items) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
items[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"manage tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"no
tasks created yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"owner\") + \": <code>\" +
str([Link](\"owner\")) + \"</code> \" +
_sc(\"status\") + \": \" + status_txt +
\"\\n \" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \" \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
[Link]([{\"text\": _sc(\"remove
task\") + \" #\" + tid, \"callback_data\":
\"adt_del_\" + tid}])\n nav =
[]\n if page > 0:\n
[Link]({\"text\": \"< \" +
_sc(\"prev\"), \"callback_data\":
\"adt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"adt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n u =
str(message.from_user.id)\n if not
_is_admin(u):\n
[Link](_sc(\"access denied.\"),
parse_mode=\"html\")\n else:\n
users = _users()\n tasks =
_tasks()\n total_users =
len(users)\n total_balance =
sum(float([Link](\"balance\", 0.0)) for r in
[Link]())\n active_tasks =
sum(1 for t in [Link]() if
[Link](\"active\"))\n banned = sum(1
for r in [Link]() if
[Link](\"banned\"))\n
[Link](\n LN + \"\\n\"
+ BUL + \" \" + _sc(\"bot stats\") + \" \"
+ BUL + \"\\n\" + LN +
\"\\n\\n\"\n + _sc(\"total
users\") + \": \" + str(total_users) +
\"\\n\"\n + _sc(\"banned
users\") + \": \" + str(banned) +
\"\\n\"\n + _sc(\"total tasks\")
+ \": \" + str(len(tasks)) +
\"\\n\"\n + _sc(\"active
tasks\") + \": \" + str(active_tasks) +
\"\\n\"\n + _sc(\"total coin in
circulation\") + \": \" +
_fmt(total_balance) + \"\\n\\n\" +
LN,\n
parse_mode=\"html\"\n )\n\nexcept
Exception as e:\n
[Link](chat_id=int(u),
text=\"Error: \" + str(e))\n",
"created_at": "2026-07-28 09:20:40",
"folder": "",
"last_updated": "2026-07-28
09:20:40",
"pinned": false
},
{
"bot": "94886904",
"command": "Broadcast",
"admin_only": false,
"code": "try:\n def
_sc(t):\n m =
{'a':'ᴀ','b':'ʙ','c':'ᴄ','d':'ᴅ','e':'ᴇ','f
':'ꜰ','g':'ɢ','h':'ʜ','i':'ɪ','j':'ᴊ','k':'ᴋ
','l':'ʟ','m':'ᴍ','n':'ɴ','o':'ᴏ','p':'ᴘ','
q':'ǫ','r':'ʀ','s':'ꜱ','t':'ᴛ','u':'ᴜ','v':
'ᴠ','w':'ᴡ','x':'x','y':'ʏ','z':'ᴢ'}\n
out = \"\"\n for ch in
str(t):\n low =
[Link]()\n out += m[low] if
low in m else ch\n return out\n\n
LN = \"─\" * 20\n BUL = \"•\"\n ARR =
\"→\"\n\n def _users():\n d =
[Link](\"users\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_users(d):\n
[Link](\"users\", d)\n\n def
_urec(d, uid):\n if uid not in
d:\n d[uid] = {\n
\"balance\": 0.0,\n
\"total_refs\": 0,\n
\"banned\": False,\n
\"wallet\": \"\",\n
\"last_bonus\": 0,\n
\"referred_by\": None,\n
\"joined\": False,\n
\"joined_at\":
int([Link]()),\n
\"completed\": []\n }\n
if \"completed\" not in
d[uid]:\n d[uid][\"completed\"]
= []\n return d[uid]\n\n def
_settings():\n s =
[Link](\"settings\")\n if not
isinstance(s, dict):\n s =
{}\n [Link](\"ref_amount\",
1.0)\n [Link](\"daily_bonus\",
1.0)\n
[Link](\"min_task_reward\",
1.0)\n
[Link](\"min_withdraw\",
10.0)\n
[Link](\"bonus_hours\", 24)\n
return s\n\n def
_save_settings(s):\n
[Link](\"settings\", s)\n\n def
_is_admin(uid):\n admins =
[Link](\"admins\")\n if not
admins:\n admins = []\n
return str(uid) in admins\n\n def
_tasks():\n d =
[Link](\"tasks\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_tasks(d):\n
[Link](\"tasks\", d)\n\n def
_new_task_id():\n n =
[Link](\"task_counter\")\n n =
int(n) + 1 if n else 1\n
[Link](\"task_counter\", n)\n
return str(n)\n\n def
_norm_channel(raw):\n t =
str(raw).strip()\n t =
[Link](\"[Link]
\"\").replace(\"[Link] \"\")\n
if [Link](\"[Link]/\"):\n t
= t[5:]\n if
[Link](\"@\"):\n t =
t[1:]\n t = [Link](\"?\")
[0].split(\"/\")[0].strip()\n return
t\n\n def
_check_bot_admin(username):\n
try:\n admins =
[Link](chat_id=\"@\" +
username)\n except Exception as
e:\n return False,
str(e)\n for a in
admins:\n try:\n
member = [Link] if hasattr(a, \"user\")
else [Link](\"user\", {})\n
mid = [Link] if hasattr(member, \"id\")
else [Link](\"id\")\n except
Exception:\n mid =
None\n if mid is not None and
str(mid) == str(bot_id):\n
return True, \"\"\n return False,
\"not_admin\"\n\n def _fmt(n):\n
try:\n f = float(n)\n
if f == int(f):\n return
str(int(f))\n return
str(round(f, 2))\n except
Exception:\n return
str(n)\n\n def _wreqs():\n d =
[Link](\"withdrawals\")\n
return d if isinstance(d, dict) else
{}\n\n def _save_wreqs(d):\n
[Link](\"withdrawals\", d)\n\n def
_main_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"START
EARNING\"}],\n [{\"text\":
\"CREATE TASK\"}, {\"text\": \"MY
TASK\"}],\n [{\"text\":
\"INVITE FRIENDS\"}, {\"text\": \"MY
BALANCE\"}],\n [{\"text\":
\"DAILY BONUS\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def
_admin_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"Manage
Tasks\"}],\n [{\"text\":
\"Set Refer Reward\"}, {\"text\": \"Set
Daily Bonus\"}],\n
[{\"text\": \"Min Task Reward\"},
{\"text\": \"Withdraw
Requests\"}],\n [{\"text\":
\"Add Balance\"}, {\"text\": \"Remove
Balance\"}],\n [{\"text\":
\"Ban User\"}, {\"text\": \"User
Details\"}],\n [{\"text\":
\"Stats\"}, {\"text\":
\"Broadcast\"}],\n
[{\"text\": \"/start\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def _earn_rows(page,
uid, users_d):\n tasks =
_tasks()\n rec2 = _urec(users_d,
uid)\n active = []\n for tid,
t in [Link]():\n if not
[Link](\"active\"):\n
continue\n if
str([Link](\"owner\")) ==
str(uid):\n
continue\n if tid in
[Link](\"completed\",
[]):\n continue\n
if int([Link](\"completed\", 0)) >=
int([Link](\"slots\", 0)):\n
continue\n [Link]((tid,
t))\n [Link](key=lambda x: -
float(x[1].get(\"reward\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(active) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
active[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"available tasks\") + \" \" + BUL,
LN, \"\"]\n rows = []\n if
not chunk:\n
[Link](_sc(\"no tasks available right
now. check back later.\"))\n
else:\n for tid, t in
chunk:\n remaining =
int([Link](\"slots\", 0)) -
int([Link](\"completed\",
0))\n [Link](BUL + \"
<b>\" + [Link](\"link\", \"\") + \"</b>\\n
\" + _sc(\"reward\") + \": <b>\" +
_fmt([Link](\"reward\")) + \"</b> \" +
_sc(\"coin\") + \" \" + ARR + \" \" +
_sc(\"left\") + \": \" +
str(remaining))\n
[Link]([{\"text\": _sc(\"join &
verify\") + \" - \" + [Link](\"link\",
\"\").replace(\"[Link] \"@\"),
\"callback_data\": \"earn_join_\" +
tid}])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"earn_page_\" + str(page - 1)})\n
if page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"earn_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def _mytask_rows(page,
uid):\n tasks = _tasks()\n
mine = [(tid, t) for tid, t in
[Link]() if str([Link](\"owner\")) ==
str(uid)]\n [Link](key=lambda x:
-int(x[1].get(\"created_at\", 0)))\n
per_page = 4\n total_pages = max(1,
(len(mine) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
mine[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"my tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"you
have not created any task yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"status\") + \": \" + status_txt + \"
\" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \"\\n \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
toggle_txt = _sc(\"pause\") if
[Link](\"active\") else
_sc(\"resume\")\n
[Link]([\n
{\"text\": toggle_txt, \"callback_data\":
\"myt_toggle_\" +
tid},\n {\"text\":
_sc(\"delete\"), \"callback_data\":
\"myt_del_\" + tid}\n
])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"myt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"myt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def
_admin_tasks_rows(page):\n tasks =
_tasks()\n items =
list([Link]())\n
[Link](key=lambda x: -
int(x[1].get(\"created_at\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(items) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
items[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"manage tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"no
tasks created yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"owner\") + \": <code>\" +
str([Link](\"owner\")) + \"</code> \" +
_sc(\"status\") + \": \" + status_txt +
\"\\n \" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \" \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
[Link]([{\"text\": _sc(\"remove
task\") + \" #\" + tid, \"callback_data\":
\"adt_del_\" + tid}])\n nav =
[]\n if page > 0:\n
[Link]({\"text\": \"< \" +
_sc(\"prev\"), \"callback_data\":
\"adt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"adt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n u =
str(message.from_user.id)\n if not
_is_admin(u):\n
[Link](_sc(\"access denied.\"),
parse_mode=\"html\")\n else:\n
[Link](_sc(\"send the message you
want to broadcast to all users\") + \":\",
parse_mode=\"html\")\n
[Link](\"broadcast_step\")\n
\nexcept Exception as e:\n
[Link](chat_id=int(u),
text=\"Error: \" + str(e))\n",
"created_at": "2026-07-28 09:20:40",
"folder": "",
"last_updated": "2026-07-28
09:20:40",
"pinned": false
},
{
"bot": "94886904",
"command": "broadcast_step",
"admin_only": false,
"code": "try:\n def
_sc(t):\n m =
{'a':'ᴀ','b':'ʙ','c':'ᴄ','d':'ᴅ','e':'ᴇ','f
':'ꜰ','g':'ɢ','h':'ʜ','i':'ɪ','j':'ᴊ','k':'ᴋ
','l':'ʟ','m':'ᴍ','n':'ɴ','o':'ᴏ','p':'ᴘ','
q':'ǫ','r':'ʀ','s':'ꜱ','t':'ᴛ','u':'ᴜ','v':
'ᴠ','w':'ᴡ','x':'x','y':'ʏ','z':'ᴢ'}\n
out = \"\"\n for ch in
str(t):\n low =
[Link]()\n out += m[low] if
low in m else ch\n return out\n\n
LN = \"─\" * 20\n BUL = \"•\"\n ARR =
\"→\"\n\n def _users():\n d =
[Link](\"users\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_users(d):\n
[Link](\"users\", d)\n\n def
_urec(d, uid):\n if uid not in
d:\n d[uid] = {\n
\"balance\": 0.0,\n
\"total_refs\": 0,\n
\"banned\": False,\n
\"wallet\": \"\",\n
\"last_bonus\": 0,\n
\"referred_by\": None,\n
\"joined\": False,\n
\"joined_at\":
int([Link]()),\n
\"completed\": []\n }\n
if \"completed\" not in
d[uid]:\n d[uid][\"completed\"]
= []\n return d[uid]\n\n def
_settings():\n s =
[Link](\"settings\")\n if not
isinstance(s, dict):\n s =
{}\n [Link](\"ref_amount\",
1.0)\n [Link](\"daily_bonus\",
1.0)\n
[Link](\"min_task_reward\",
1.0)\n
[Link](\"min_withdraw\",
10.0)\n
[Link](\"bonus_hours\", 24)\n
return s\n\n def
_save_settings(s):\n
[Link](\"settings\", s)\n\n def
_is_admin(uid):\n admins =
[Link](\"admins\")\n if not
admins:\n admins = []\n
return str(uid) in admins\n\n def
_tasks():\n d =
[Link](\"tasks\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_tasks(d):\n
[Link](\"tasks\", d)\n\n def
_new_task_id():\n n =
[Link](\"task_counter\")\n n =
int(n) + 1 if n else 1\n
[Link](\"task_counter\", n)\n
return str(n)\n\n def
_norm_channel(raw):\n t =
str(raw).strip()\n t =
[Link](\"[Link]
\"\").replace(\"[Link] \"\")\n
if [Link](\"[Link]/\"):\n t
= t[5:]\n if
[Link](\"@\"):\n t =
t[1:]\n t = [Link](\"?\")
[0].split(\"/\")[0].strip()\n return
t\n\n def
_check_bot_admin(username):\n
try:\n admins =
[Link](chat_id=\"@\" +
username)\n except Exception as
e:\n return False,
str(e)\n for a in
admins:\n try:\n
member = [Link] if hasattr(a, \"user\")
else [Link](\"user\", {})\n
mid = [Link] if hasattr(member, \"id\")
else [Link](\"id\")\n except
Exception:\n mid =
None\n if mid is not None and
str(mid) == str(bot_id):\n
return True, \"\"\n return False,
\"not_admin\"\n\n def _fmt(n):\n
try:\n f = float(n)\n
if f == int(f):\n return
str(int(f))\n return
str(round(f, 2))\n except
Exception:\n return
str(n)\n\n def _wreqs():\n d =
[Link](\"withdrawals\")\n
return d if isinstance(d, dict) else
{}\n\n def _save_wreqs(d):\n
[Link](\"withdrawals\", d)\n\n def
_main_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"START
EARNING\"}],\n [{\"text\":
\"CREATE TASK\"}, {\"text\": \"MY
TASK\"}],\n [{\"text\":
\"INVITE FRIENDS\"}, {\"text\": \"MY
BALANCE\"}],\n [{\"text\":
\"DAILY BONUS\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def
_admin_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"Manage
Tasks\"}],\n [{\"text\":
\"Set Refer Reward\"}, {\"text\": \"Set
Daily Bonus\"}],\n
[{\"text\": \"Min Task Reward\"},
{\"text\": \"Withdraw
Requests\"}],\n [{\"text\":
\"Add Balance\"}, {\"text\": \"Remove
Balance\"}],\n [{\"text\":
\"Ban User\"}, {\"text\": \"User
Details\"}],\n [{\"text\":
\"Stats\"}, {\"text\":
\"Broadcast\"}],\n
[{\"text\": \"/start\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def _earn_rows(page,
uid, users_d):\n tasks =
_tasks()\n rec2 = _urec(users_d,
uid)\n active = []\n for tid,
t in [Link]():\n if not
[Link](\"active\"):\n
continue\n if
str([Link](\"owner\")) ==
str(uid):\n
continue\n if tid in
[Link](\"completed\",
[]):\n continue\n
if int([Link](\"completed\", 0)) >=
int([Link](\"slots\", 0)):\n
continue\n [Link]((tid,
t))\n [Link](key=lambda x: -
float(x[1].get(\"reward\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(active) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
active[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"available tasks\") + \" \" + BUL,
LN, \"\"]\n rows = []\n if
not chunk:\n
[Link](_sc(\"no tasks available right
now. check back later.\"))\n
else:\n for tid, t in
chunk:\n remaining =
int([Link](\"slots\", 0)) -
int([Link](\"completed\",
0))\n [Link](BUL + \"
<b>\" + [Link](\"link\", \"\") + \"</b>\\n
\" + _sc(\"reward\") + \": <b>\" +
_fmt([Link](\"reward\")) + \"</b> \" +
_sc(\"coin\") + \" \" + ARR + \" \" +
_sc(\"left\") + \": \" +
str(remaining))\n
[Link]([{\"text\": _sc(\"join &
verify\") + \" - \" + [Link](\"link\",
\"\").replace(\"[Link] \"@\"),
\"callback_data\": \"earn_join_\" +
tid}])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"earn_page_\" + str(page - 1)})\n
if page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"earn_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def _mytask_rows(page,
uid):\n tasks = _tasks()\n
mine = [(tid, t) for tid, t in
[Link]() if str([Link](\"owner\")) ==
str(uid)]\n [Link](key=lambda x:
-int(x[1].get(\"created_at\", 0)))\n
per_page = 4\n total_pages = max(1,
(len(mine) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
mine[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"my tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"you
have not created any task yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"status\") + \": \" + status_txt + \"
\" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \"\\n \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
toggle_txt = _sc(\"pause\") if
[Link](\"active\") else
_sc(\"resume\")\n
[Link]([\n
{\"text\": toggle_txt, \"callback_data\":
\"myt_toggle_\" +
tid},\n {\"text\":
_sc(\"delete\"), \"callback_data\":
\"myt_del_\" + tid}\n
])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"myt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"myt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def
_admin_tasks_rows(page):\n tasks =
_tasks()\n items =
list([Link]())\n
[Link](key=lambda x: -
int(x[1].get(\"created_at\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(items) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
items[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"manage tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"no
tasks created yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"owner\") + \": <code>\" +
str([Link](\"owner\")) + \"</code> \" +
_sc(\"status\") + \": \" + status_txt +
\"\\n \" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \" \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
[Link]([{\"text\": _sc(\"remove
task\") + \" #\" + tid, \"callback_data\":
\"adt_del_\" + tid}])\n nav =
[]\n if page > 0:\n
[Link]({\"text\": \"< \" +
_sc(\"prev\"), \"callback_data\":
\"adt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"adt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n u =
str(message.from_user.id)\n if not
_is_admin(u):\n
[Link](_sc(\"access denied.\"),
parse_mode=\"html\")\n else:\n
users = _users()\n sent = 0\n
failed = 0\n for uid in
[Link]():\n
try:\n
[Link](chat_id=int(uid),
text=str(msg),
parse_mode=\"html\")\n sent
+= 1\n except
Exception:\n failed +=
1\n [Link](_sc(\"broadcast
complete.\") + \" \" + _sc(\"sent\") + \":
\" + str(sent) + \" \" + _sc(\"failed\") +
\": \" + str(failed),
parse_mode=\"html\")\n\nexcept Exception as
e:\n [Link](chat_id=int(u),
text=\"Error: \" + str(e))\n",
"created_at": "2026-07-28 09:20:40",
"folder": "",
"last_updated": "2026-07-28
09:20:40",
"pinned": false
},
{
"bot": "94886904",
"command": "*",
"admin_only": false,
"code": "try:\n def
_sc(t):\n m =
{'a':'ᴀ','b':'ʙ','c':'ᴄ','d':'ᴅ','e':'ᴇ','f
':'ꜰ','g':'ɢ','h':'ʜ','i':'ɪ','j':'ᴊ','k':'ᴋ
','l':'ʟ','m':'ᴍ','n':'ɴ','o':'ᴏ','p':'ᴘ','
q':'ǫ','r':'ʀ','s':'ꜱ','t':'ᴛ','u':'ᴜ','v':
'ᴠ','w':'ᴡ','x':'x','y':'ʏ','z':'ᴢ'}\n
out = \"\"\n for ch in
str(t):\n low =
[Link]()\n out += m[low] if
low in m else ch\n return out\n\n
LN = \"─\" * 20\n BUL = \"•\"\n ARR =
\"→\"\n\n def _users():\n d =
[Link](\"users\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_users(d):\n
[Link](\"users\", d)\n\n def
_urec(d, uid):\n if uid not in
d:\n d[uid] = {\n
\"balance\": 0.0,\n
\"total_refs\": 0,\n
\"banned\": False,\n
\"wallet\": \"\",\n
\"last_bonus\": 0,\n
\"referred_by\": None,\n
\"joined\": False,\n
\"joined_at\":
int([Link]()),\n
\"completed\": []\n }\n
if \"completed\" not in
d[uid]:\n d[uid][\"completed\"]
= []\n return d[uid]\n\n def
_settings():\n s =
[Link](\"settings\")\n if not
isinstance(s, dict):\n s =
{}\n [Link](\"ref_amount\",
1.0)\n [Link](\"daily_bonus\",
1.0)\n
[Link](\"min_task_reward\",
1.0)\n
[Link](\"min_withdraw\",
10.0)\n
[Link](\"bonus_hours\", 24)\n
return s\n\n def
_save_settings(s):\n
[Link](\"settings\", s)\n\n def
_is_admin(uid):\n admins =
[Link](\"admins\")\n if not
admins:\n admins = []\n
return str(uid) in admins\n\n def
_tasks():\n d =
[Link](\"tasks\")\n return d if
isinstance(d, dict) else {}\n\n def
_save_tasks(d):\n
[Link](\"tasks\", d)\n\n def
_new_task_id():\n n =
[Link](\"task_counter\")\n n =
int(n) + 1 if n else 1\n
[Link](\"task_counter\", n)\n
return str(n)\n\n def
_norm_channel(raw):\n t =
str(raw).strip()\n t =
[Link](\"[Link]
\"\").replace(\"[Link] \"\")\n
if [Link](\"[Link]/\"):\n t
= t[5:]\n if
[Link](\"@\"):\n t =
t[1:]\n t = [Link](\"?\")
[0].split(\"/\")[0].strip()\n return
t\n\n def
_check_bot_admin(username):\n
try:\n admins =
[Link](chat_id=\"@\" +
username)\n except Exception as
e:\n return False,
str(e)\n for a in
admins:\n try:\n
member = [Link] if hasattr(a, \"user\")
else [Link](\"user\", {})\n
mid = [Link] if hasattr(member, \"id\")
else [Link](\"id\")\n except
Exception:\n mid =
None\n if mid is not None and
str(mid) == str(bot_id):\n
return True, \"\"\n return False,
\"not_admin\"\n\n def _fmt(n):\n
try:\n f = float(n)\n
if f == int(f):\n return
str(int(f))\n return
str(round(f, 2))\n except
Exception:\n return
str(n)\n\n def _wreqs():\n d =
[Link](\"withdrawals\")\n
return d if isinstance(d, dict) else
{}\n\n def _save_wreqs(d):\n
[Link](\"withdrawals\", d)\n\n def
_main_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"START
EARNING\"}],\n [{\"text\":
\"CREATE TASK\"}, {\"text\": \"MY
TASK\"}],\n [{\"text\":
\"INVITE FRIENDS\"}, {\"text\": \"MY
BALANCE\"}],\n [{\"text\":
\"DAILY BONUS\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def
_admin_kb():\n # NOTE: button labels
must exactly equal the registered command
names\n # below, otherwise TBC
cannot route the tap to the right
command.\n return {\n
\"keyboard\": [\n
[{\"text\": \"Manage
Tasks\"}],\n [{\"text\":
\"Set Refer Reward\"}, {\"text\": \"Set
Daily Bonus\"}],\n
[{\"text\": \"Min Task Reward\"},
{\"text\": \"Withdraw
Requests\"}],\n [{\"text\":
\"Add Balance\"}, {\"text\": \"Remove
Balance\"}],\n [{\"text\":
\"Ban User\"}, {\"text\": \"User
Details\"}],\n [{\"text\":
\"Stats\"}, {\"text\":
\"Broadcast\"}],\n
[{\"text\": \"/start\"}]\n
],\n \"resize_keyboard\":
True\n }\n\n def _earn_rows(page,
uid, users_d):\n tasks =
_tasks()\n rec2 = _urec(users_d,
uid)\n active = []\n for tid,
t in [Link]():\n if not
[Link](\"active\"):\n
continue\n if
str([Link](\"owner\")) ==
str(uid):\n
continue\n if tid in
[Link](\"completed\",
[]):\n continue\n
if int([Link](\"completed\", 0)) >=
int([Link](\"slots\", 0)):\n
continue\n [Link]((tid,
t))\n [Link](key=lambda x: -
float(x[1].get(\"reward\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(active) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
active[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"available tasks\") + \" \" + BUL,
LN, \"\"]\n rows = []\n if
not chunk:\n
[Link](_sc(\"no tasks available right
now. check back later.\"))\n
else:\n for tid, t in
chunk:\n remaining =
int([Link](\"slots\", 0)) -
int([Link](\"completed\",
0))\n [Link](BUL + \"
<b>\" + [Link](\"link\", \"\") + \"</b>\\n
\" + _sc(\"reward\") + \": <b>\" +
_fmt([Link](\"reward\")) + \"</b> \" +
_sc(\"coin\") + \" \" + ARR + \" \" +
_sc(\"left\") + \": \" +
str(remaining))\n
[Link]([{\"text\": _sc(\"join &
verify\") + \" - \" + [Link](\"link\",
\"\").replace(\"[Link] \"@\"),
\"callback_data\": \"earn_join_\" +
tid}])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"earn_page_\" + str(page - 1)})\n
if page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"earn_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def _mytask_rows(page,
uid):\n tasks = _tasks()\n
mine = [(tid, t) for tid, t in
[Link]() if str([Link](\"owner\")) ==
str(uid)]\n [Link](key=lambda x:
-int(x[1].get(\"created_at\", 0)))\n
per_page = 4\n total_pages = max(1,
(len(mine) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
mine[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"my tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"you
have not created any task yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"status\") + \": \" + status_txt + \"
\" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \"\\n \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
toggle_txt = _sc(\"pause\") if
[Link](\"active\") else
_sc(\"resume\")\n
[Link]([\n
{\"text\": toggle_txt, \"callback_data\":
\"myt_toggle_\" +
tid},\n {\"text\":
_sc(\"delete\"), \"callback_data\":
\"myt_del_\" + tid}\n
])\n nav = []\n if page >
0:\n [Link]({\"text\": \"<
\" + _sc(\"prev\"), \"callback_data\":
\"myt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"myt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n def
_admin_tasks_rows(page):\n tasks =
_tasks()\n items =
list([Link]())\n
[Link](key=lambda x: -
int(x[1].get(\"created_at\", 0)))\n
per_page = 5\n total_pages = max(1,
(len(items) + per_page - 1) //
per_page)\n page = max(0, min(page,
total_pages - 1))\n chunk =
items[page * per_page:(page + 1) *
per_page]\n lines = [LN, BUL + \" \"
+ _sc(\"manage tasks\") + \" \" + BUL, LN,
\"\"]\n rows = []\n if not
chunk:\n [Link](_sc(\"no
tasks created yet.\"))\n
else:\n for tid, t in
chunk:\n status_txt =
_sc(\"active\") if [Link](\"active\") else
_sc(\"paused\")\n
[Link](BUL + \" <b>\" +
[Link](\"link\", \"\") + \"</b>\\n \" +
_sc(\"owner\") + \": <code>\" +
str([Link](\"owner\")) + \"</code> \" +
_sc(\"status\") + \": \" + status_txt +
\"\\n \" + _sc(\"reward\") + \": \" +
_fmt([Link](\"reward\")) + \" \" +
_sc(\"done\") + \": \" +
str([Link](\"completed\", 0)) + \"/\" +
str([Link](\"slots\", 0)))\n
[Link]([{\"text\": _sc(\"remove
task\") + \" #\" + tid, \"callback_data\":
\"adt_del_\" + tid}])\n nav =
[]\n if page > 0:\n
[Link]({\"text\": \"< \" +
_sc(\"prev\"), \"callback_data\":
\"adt_page_\" + str(page - 1)})\n if
page < total_pages - 1:\n
[Link]({\"text\": _sc(\"next\") + \"
>\", \"callback_data\": \"adt_page_\" +
str(page + 1)})\n if
nav:\n [Link](nav)\n
[Link](\"\")\n
[Link](LN)\n return
\"\\n\".join(lines), {\"inline_keyboard\":
rows}\n\n u =
str(message.from_user.id)\n if
update_type == \"callback_query\":\n
data = str([Link]) if
hasattr(message, \"data\") else
str([Link](\"data\", \"\"))\n
try:\n cb_id = [Link] if
hasattr(message, \"id\") else
[Link](\"id\")\n except
Exception:\n cb_id =
None\n try:\n chat_ref =
[Link]\n mid =
[Link].message_id\n except
Exception:\n chat_ref =
None\n mid = None\n\n
users = _users()\n rec =
_urec(users, u)\n\n def
_alert(txt):\n
try:\n
[Link](callback_query_id=c
b_id, text=txt,
show_alert=True)\n except
Exception:\n pass\n\n
def _ack():\n
try:\n
[Link](callback_query_id=c
b_id)\n except
Exception:\n pass\n\n
if [Link](\"banned\"):\n
_alert(_sc(\"you are banned from using this
bot.\"))\n elif
[Link](\"earn_page_\"):\n
_ack()\n page =
int([Link](\"_\")[-1])\n
text, kb = _earn_rows(page, u,
users)\n if chat_ref is not
None:\n
[Link](text, chat_id=chat_ref,
message_id=mid, parse_mode=\"html\",
reply_markup=kb)\n elif
[Link](\"earn_join_\"):\n
tid = [Link](\"_\", 2)
[2]\n tasks =
_tasks()\n t =
[Link](tid)\n if not t or not
[Link](\"active\"):\n
_alert(_sc(\"this task is no longer
available.\"))\n elif tid in
[Link](\"completed\",
[]):\n _alert(_sc(\"you
already completed this
task.\"))\n elif
int([Link](\"completed\", 0)) >=
int([Link](\"slots\", 0)):\n
_alert(_sc(\"this task is already
full.\"))\n elif
str([Link](\"owner\")) ==
u:\n _alert(_sc(\"you cannot
complete your own task.\"))\n
else:\n
try:\n member =
[Link](chat_id=\"@\" +
[Link](\"username\"),
user_id=int(u))\n status
= [Link] if hasattr(member,
\"status\") else [Link](\"status\",
\"\")\n except
Exception:\n status =
\"\"\n if status not in
(\"member\", \"administrator\",
\"creator\"):\n
_alert(_sc(\"join the channel first, then
tap join and verify
again.\"))\n
else:\n reward =
float([Link](\"reward\",
0))\n rec[\"balance\"] =
float([Link](\"balance\", 0.0)) +
reward\n
rec[\"completed\"].append(tid)\n
users[u] =
rec\n
_save_users(users)\n\n
t[\"completed\"] = int([Link](\"completed\",
0)) + 1\n if
t[\"completed\"] >= int([Link](\"slots\",
0)):\n t[\"active\"]
= False\n tasks[tid] =
t\n
_save_tasks(tasks)\n\n
_alert(_sc(\"reward credited\") + \" +\" +
_fmt(reward) + \" \" +
_sc(\"coin\"))\n
try:\n
[Link](\n

chat_id=int([Link](\"owner\")),\n
text=_sc(\"someone
completed your task on\") + \" \" +
[Link](\"link\", \"\") + \". \" +
_sc(\"remaining slots\") + \": \" +
str(int([Link](\"slots\", 0)) -
t[\"completed\"]),\n

parse_mode=\"html\"\n
)\n except
Exception:\n
pass\n\n text, kb =
_earn_rows(0, u,
users)\n if chat_ref is
not None:\n
[Link](text, chat_id=chat_ref,
message_id=mid, parse_mode=\"html\",
reply_markup=kb)\n elif data ==
\"wd_start\":\n
_ack()\n if not
[Link](\"wallet\"):\n
[Link](chat_id=int(u),
text=_sc(\"send your wallet address or
payment id to receive withdrawals\") +
\":\",
parse_mode=\"html\")\n
[Link](\"set_wallet_input\")
\n else:\n
settings = _settings()\n
[Link](\n
chat_id=int(u),\n
text=_sc(\"send the amount of coin you want
to withdraw, minimum\") + \" \" +
_fmt([Link](\"min_withdraw\", 10.0))
+ \".\",\n
parse_mode=\"html\"\n
)\n
[Link](\"withdraw_amount_inp
ut\")\n elif
[Link](\"myt_page_\"):\n
_ack()\n page =
int([Link](\"_\")[-1])\n
text, kb = _mytask_rows(page,
u)\n if chat_ref is not
None:\n
[Link](text, chat_id=chat_ref,
message_id=mid, parse_mode=\"html\",
reply_markup=kb)\n elif
[Link](\"myt_toggle_\"):\n
tid = [Link](\"_\", 2)
[2]\n tasks =
_tasks()\n t =
[Link](tid)\n if not t or
str([Link](\"owner\")) !=
u:\n _alert(_sc(\"task not
found.\"))\n
else:\n t[\"active\"] = not
bool([Link](\"active\"))\n
tasks[tid] = t\n
_save_tasks(tasks)\n
_ack()\n text, kb =
_mytask_rows(0, u)\n if
chat_ref is not None:\n
[Link](text, chat_id=chat_ref,
message_id=mid, parse_mode=\"html\",
reply_markup=kb)\n elif
[Link](\"myt_del_\"):\n
tid = [Link](\"_\", 2)[2]\n
tasks = _tasks()\n t =
[Link](tid)\n if not t or
str([Link](\"owner\")) !=
u:\n _alert(_sc(\"task not
found.\"))\n
else:\n remaining_slots =
int([Link](\"slots\", 0)) -
int([Link](\"completed\",
0))\n refund =
round(remaining_slots *
float([Link](\"reward\", 0)),
2)\n if refund >
0:\n rec[\"balance\"] =
float([Link](\"balance\", 0.0)) +
refund\n users[u] =
rec\n
_save_users(users)\n del
tasks[tid]\n
_save_tasks(tasks)\n
_alert(_sc(\"task deleted.\") + \" \" +
_sc(\"refunded\") + \" \" + _fmt(refund) +
\" \" + _sc(\"coin\"))\n
text, kb = _mytask_rows(0,
u)\n if chat_ref is not
None:\n
[Link](text, chat_id=chat_ref,
message_id=mid, parse_mode=\"html\",
reply_markup=kb)\n elif
[Link](\"adt_page_\"):\n
if not _is_admin(u):\n
_alert(_sc(\"access
denied.\"))\n
else:\n
_ack()\n page =
int([Link](\"_\")[-1])\n
text, kb =
_admin_tasks_rows(page)\n if
chat_ref is not None:\n
[Link](text, chat_id=chat_ref,
message_id=mid, parse_mode=\"html\",
reply_markup=kb)\n elif
[Link](\"adt_del_\"):\n
if not _is_admin(u):\n
_alert(_sc(\"access
denied.\"))\n
else:\n tid =
[Link](\"_\", 2)[2]\n
tasks = _tasks()\n t =
[Link](tid)\n if not
t:\n _alert(_sc(\"task
not found.\"))\n
else:\n owner =
str([Link](\"owner\"))\n
remaining_slots = int([Link](\"slots\", 0))
- int([Link](\"completed\",
0))\n refund =
round(remaining_slots *
float([Link](\"reward\", 0)),
2)\n if refund >
0:\n owner_rec =
_urec(users,
owner)\n
owner_rec[\"balance\"] =
float(owner_rec.get(\"balance\", 0.0)) +
refund\n
users[owner] =
owner_rec\n
_save_users(users)\n del
tasks[tid]\n
_save_tasks(tasks)\n
_alert(_sc(\"task
removed.\"))\n
try:\n
[Link](chat_id=int(owner),
text=_sc(\"your task on\") + \" \" +
[Link](\"link\", \"\") + \" \" + _sc(\"was
removed by an admin. remaining balance
refunded.\"),
parse_mode=\"html\")\n
except Exception:\n
pass\n text, kb =
_admin_tasks_rows(0)\n
if chat_ref is not
None:\n
[Link](text, chat_id=chat_ref,
message_id=mid, parse_mode=\"html\",
reply_markup=kb)\n elif
[Link](\"wr_appr_\") or
[Link](\"wr_rej_\"):\n
if not _is_admin(u):\n
_alert(_sc(\"access
denied.\"))\n
else:\n approve =
[Link](\"wr_appr_\")\n
rid = [Link](\"_\", 2)
[2]\n wreqs =
_wreqs()\n r =
[Link](rid)\n if not r or
[Link](\"status\") !=
\"pending\":\n
_alert(_sc(\"request not found or already
handled.\"))\n
else:\n target =
str([Link](\"user\"))\n
if approve:\n
r[\"status\"] =
\"approved\"\n note
= _sc(\"your withdraw of\") + \" \" +
_fmt([Link](\"amount\")) + \" \" +
_sc(\"coin was approved and will be sent
to\") + \" \" + str([Link](\"wallet\")) +
\".\"\n
else:\n
r[\"status\"] =
\"rejected\"\n
t_users = _users()\n
t_rec = _urec(t_users,
target)\n
t_rec[\"balance\"] =
float(t_rec.get(\"balance\", 0.0)) +
float([Link](\"amount\",
0))\n
t_users[target] =
t_rec\n
_save_users(t_users)\n
note = _sc(\"your withdraw of\") + \" \"
+ _fmt([Link](\"amount\")) + \" \" +
_sc(\"coin was rejected and refunded to
your balance.\")\n
wreqs[rid] = r\n
_save_wreqs(wreqs)\n
_ack()\n
try:\n
[Link](_sc(\"request\") + \"
\" + (_sc(\"approved\") if approve else
_sc(\"rejected\")), chat_id=chat_ref,
message_id=mid,
parse_mode=\"html\")\n
except Exception:\n
pass\n
try:\n
[Link](chat_id=int(target),
text=note,
parse_mode=\"html\")\n
except Exception:\n
pass\n else:\n
_ack()\n else:\n users =
_users()\n rec = _urec(users,
u)\n if
[Link](\"banned\"):\n
[Link](_sc(\"you are banned from
using this bot.\"),
parse_mode=\"html\")\n elif not
[Link] or not
str([Link]).startswith(\"/\"):\n
[Link](_sc(\"unrecognized
option. use the menu buttons below, or send
/start.\"), parse_mode=\"html\")\n\nexcept
Exception as e:\n
[Link](chat_id=int(u),
text=\"Error: \" + str(e))\n",
"created_at": "2026-07-28 09:20:40",
"folder": "",
"last_updated": "2026-07-28
09:20:40",
"pinned": false
}
]
}

You might also like