-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathfeatures.txt
More file actions
46 lines (38 loc) ยท 4.4 KB
/
features.txt
File metadata and controls
46 lines (38 loc) ยท 4.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<blockquote>โจ ๐๐๐๐๐๐๐๐๐๐ ๐๐๐๐๐๐๐๐ & ๐
๐๐๐๐๐๐๐ ๐๐๐๐๐๐ โจ</blockquote>
<blockquote>๐ ๐๐๐๐๐๐๐ ๐๐๐๐๐๐๐๐ ๐</blockquote>
<blockquote>This repository hosts a sophisticated, high-load optimized Pyrogram Telegram Bot tailored for file sharing, link generation, and channel promotion (Force Subscribe) with advanced monetization hooks (Shorteners, Premium tiers). Currently, everything appears structurally sound and well-pipelined via asynchronous task queues and efficient Pyrogram command handling. ๐</blockquote>
<blockquote>๐ ๏ธ ๐๐๐๐ ๐
๐๐๐๐๐๐๐๐๐๐๐๐๐๐ ๐ ๏ธ</blockquote>
<blockquote>๐ญ. ๐๐ถ๐ด๐ต๐น๐ผ๐ฎ๐ฑ ๐ข๐ฝ๐๐ถ๐บ๐ถ๐๐ฎ๐๐ถ๐ผ๐ป โก</blockquote>
<blockquote>โข The bot employs \`uvloop\` and \`tgcrypto\` for drastically reduced latency.
โข Employs a \`GLOBAL_SEMAPHORE\` limits simultaneous \`/start\` executions to prevent server overloads.
โข Threads and background tasks handle file batching and auto-deletion without locking the event loop (\`start.py\`).
โข \`flood_safe()\` function seamlessly handles Telegram API FloodWaits automatically.</blockquote>
<blockquote>๐ฎ. ๐๐ฑ๐๐ฎ๐ป๐ฐ๐ฒ๐ฑ ๐๐ผ๐ฟ๐ฐ๐ฒ ๐ฆ๐๐ฏ๐๐ฐ๐ฟ๐ถ๐ฝ๐๐ถ๐ผ๐ป๐ (๐-๐ฆ๐๐ฏ) ๐ก๏ธ</blockquote>
<blockquote>โข Managed comprehensively in \`command/fsub.py\`.
โข Supports both Normal F-Sub and Request-based F-Sub (R-Sub).
โข Admins can dynamically add or remove channels from the DB using interactive inline dialogs and \`client.listen()\` from \`pyromod\`.
โข Checks user presence in mandatory channels before delivering requested payloads.</blockquote>
<blockquote>๐ฏ. ๐ ๐ผ๐ป๐ฒ๐๐ถ๐๐ฎ๐๐ถ๐ผ๐ป & ๐ฆ๐ต๐ผ๐ฟ๐๐ฒ๐ป๐ฒ๐ฟ๐ ๐</blockquote>
<blockquote>โข Admins can enforce Ad-Shorteners across two modes: "24-Hour Pass" or "Per Link" access (\`command/admin.py\`, \`plugins/start.py\`).
โข Fully integrated with Shortzy APIs (\`helper_func.py\`).
โข Includes bypassing privileges for Premium Users (\`pre.py\`).</blockquote>
<blockquote>๐ฐ. ๐๐ฑ๐บ๐ถ๐ป๐ถ๐๐๐ฟ๐ฎ๐๐ถ๐ผ๐ป ๐ฃ๐ฎ๐ป๐ฒ๐น๐ ๐</blockquote>
<blockquote>โข Handled in \`command/admin.py\` & \`plugins/new.py\`.
โข Powerful callback query systems to toggle configurations visually: \`website\` URLs, \`API\` keys, \`protect\` content toggle, \`hide\` captions, etc.
โข \`/users\` to count total users and \`/broadcast\` to send announcements globally efficiently.
โข \`/log\` to directly extract \`bot.txt\` without SSH.
โข \`/restart\` to hot-reload the bot instance.</blockquote>
<blockquote>๐ฑ. ๐๐ถ๐น๐ฒ ๐๐ฒ๐น๐ถ๐๐ฒ๐ฟ๐ & ๐ ๐ฒ๐๐๐ฎ๐ด๐ฒ ๐๐น๐ฒ๐ฎ๐ป๐๐ฝ ๐๏ธ</blockquote>
<blockquote>โข Extracts files from DB channels by Base64 decoding string identifiers (\`helper_func.py\`).
โข Includes customizable caption modification (\`/code\` to preview HTML formats).
โข Optionally configures auto-deletion of sent media after a set timer using asyncio background scheduling.</blockquote>
<blockquote>๐ก ๐๐ฅ๐๐๐๐ง๐๐๐ง๐จ๐ฅ๐ ๐๐ฅ๐๐๐๐๐ข๐ช๐ก ๐ก</blockquote>
<blockquote>โข \`bot.py\` : Instantiates Pyrogram Client sessions (bot + user options) & kicks off \`web_server\`.
โข \`config.py\` : Safely loads Env variables with DB fallbacks and establishes \`logging\`.
โข \`plugins/start.py\` : The core router. Where users hit the bot, get verified, and receive their requested files.
โข \`plugins/new.py\` : Entrypoint router for miscellaneous commands and the master callback query handler for inline buttons.
โข \`command/fsub.py\` : Logic center for adding/removing force-sub channels.
โข \`command/admin.py\` : Dialog logic for tweaking bot settings dynamically.
โข \`helper_func.py\` : Base64 manipulation, time formatting, Shortzy wrapper, and flood-wait hardened message fetchers.</blockquote>
<blockquote>๐ฅ ๐๐ข๐ก๐๐๐จ๐ฆ๐๐ข๐ก ๐ฅ</blockquote>
<blockquote>The bot is streamlined and heavily packed with inline button dialogs. The usage of \`pyromod\` for conversational UI is cleanly separated across files. Database state management is functional. Everything stands ready and correctly wired! ๐</blockquote>