How trishi880988/advance-txt-uploader works
Project type and purpose
• This is a backend‐only Python Telegram Bot (“ᴛᴜsʜᴀʀ ᴛxᴛ ᴜᴘʟᴏᴀᴅᴇʀ”) whose job is to receive commands and text files via the Telegram API, process or transform them (e.g. edit text, extract YouTube playlist to TXT using cookies), and respond back to the user.
• There is no traditional GUI/frontend—everything is driven by Telegram messages and commands.
File structure
• Top‐level Python modules:
• main.py – the entry point that invokes the bot
• app.py – application setup and Telethon client initialization
• core.py – command & event handlers (business logic)
• utils.py – helper functions (file I/O, text processing, YouTube logic)
• logs.py – logging configuration and wrappers
• vars.py – environment variables loader (API ID, API hash, BOT_TOKEN)
• youtube_cookies.txt – static cookies file for YouTube extraction
• Configuration & deployment:
• requirements.txt – Python dependencies (Telethon, requests, etc.)
• Dockerfile, runtime.txt – containerize the bot
• Procfile, heroku.yml – Heroku deployment descriptors
• app.json – optional Heroku app manifest
• No separate “src” or “lib” directory—everything lives at root. Tests are not present.
Extract insights from README
• Describes the bot’s slash‐command interface (/start, /tushar, /e2t, /yt2txt, etc.)
• Walks through Heroku, Koyeb, and Render deployment (connect GitHub → set env vars → add buildpack → deploy)
• Emphasizes use of environment variables and a custom buildpack