TRN Music - Your Ultimate Telegram Music & Utility Companion
𝐒𝐚𝐠𝐧𝐢𝐤TRN Music Bot is the most advanced Telegram bot developed to deliver a comprehensive music playback experience within your Telegram groups and channels, alongside a powerful suite of administrative and utility tools.

🎶 Advanced Music & Media Playback
At its core, TRN Music excels as a versatile media player, supporting a wide array of sources and offering granular control over your audio experience:
* Multi-Source Playback: Play music and videos directly from popular platforms like YouTube, Spotify, Soundcloud, Apple Music, Resso, and Telegram audio/video files.
* Flexible Voice Chat Integration: Enjoy seamless music playback in both group voice chats and linked channel voice chats (with dedicated c prefixed commands for channel control).
* Comprehensive Playback Controls:
* Play/Pause/Resume: /play, /pause, /resume, /cplay, /cpause, /cresume
* Queue Management: /queue, /cnext (skip), /shuffle, /cshuffle
* Seek & Loop: /seek, /cseekback, /loop, /cloop
* Radio Streams: /radio (currently under maintenance), /radioplayforce for direct streaming.
* Playback Status: /cplayback, /cplaying to see what's currently playing.
* Playlist Management: Create, add to, and play from personal or group playlists (/addplaylist, /addplist, /playplaylist, /vplayplaylist).
* Direct Media Downloads: Download and send audio (/song, currently under maintenance) and video (/video) directly within Telegram.
* Media Utilities: Fetch song lyrics (/lyrics), download Instagram Reels (/reel), and YouTube Shorts (/shorts).
* Active Voice/Video Call Monitoring: Track active voice and video chats where the bot is streaming (/activev, /activevc, /activevideo, /activevoice).
🛠️ Powerful Group Management & Moderation
Beyond music, TRN Music offers an extensive set of tools for chat administrators to manage their communities effectively:
* Smart Tagging & Mentions: Effortlessly mention all members (/tagall, /mentionall, /uall), or use specialized tags for specific purposes like greetings (/gmtag, /gntag, /hitag), language-specific tags (/englishtag, /bntag - for Bengali messages), or even "life quote" tags (/lifetag). Commands to stop ongoing tags are also available (/tagoff, /tagstop, /stoputag, /bnstop, /gmstop, /gnstop, /lifestop).
* User & Chat Authorisation: Grant specific users access to bot functions without full admin rights (/auth, /authlist, /authusers, /unauth).
* Blacklisting & Whitelisting: Control where the bot operates by blacklisting or whitelisting chats (/blacklistchat, /blchat, /whitelistchat, /unblchat).
* User Blocking & Global Bans: Manage individual user access (/block, /unblock) and implement global bans across all bot-joined chats (/gban, /globalban, /ungban).
* Welcome Messages: Configure and manage welcome messages for new members (/welcome).
* Zombie Account Management: Tools to identify and manage inactive or deleted user accounts (/zombies).
⚙️ Robust Bot Administration & Sudo Tools
Designed for scalability and ease of management, TRN Music includes advanced features for bot owners and sudo users:
* Sudoers Management: Easily add and remove trusted users from the bot's sudo list (/addsudo, /delsudo, /listsudo, /sudoers, /sudolist).
* Bot Updates & Deployment: Pull the latest code from the Git repository (/gitpull, /update) and manage bot restarts (/restart, /reboot).
* System & Debugging: Access bot logs (/getlog, /getlogs, /logger), check database status (/mongochk), and refresh internal caches (/admincache, /refresh).
* Broadcasting: Send messages to all bot users or chats (/broadcast, /gcast).
* Remote Command Execution: Execute shell commands directly on the bot's server via /sh (a powerful feature for owners).
* Dynamic Code Execution: The /eval command allows for on-the-fly execution of Python code snippets (owner-only, for advanced debugging/management).
* Bot Cloning: Functionality to clone bot instances (/clone, /cloned, /delallclone).
* Maintenance Mode: Put the bot into maintenance mode (/maintenance).
* Auto-Ending Features: Configure voice chats to end automatically under certain conditions (/autoend).
* Cookie Management: Manage cookies for enhanced interaction with external services (/cookies).
🧰 Essential Utilities & Fun Commands
TRN Music also packs a variety of general utilities and engaging features:
* Bot Status: Check bot responsiveness (/ping, /alive), view usage statistics (/stats, /gstats), and get server performance data (/speedtest).
* User & Chat Info: Retrieve IDs (/id).
* Content Upload: Upload media or text to Telegra.ph and get the link (/telegraph, /tgm, /tl).
* User Status: Set yourself as Away From Keyboard (/afk, /brb).
* Language Support: Set and display the bot's language (/lang, /language).
* Shayari Generation: Generate and send short poems (/shayari, /shayarioff, /cancelshayari).
* Fun Features: Randomly pick "couples" (/couples).
* General Controls: /help, /start, /cancel, /end.
💻 Technology Stack
TRN Music Bot is built with modern, efficient, and robust technologies:
* Python: The core programming language.
* Pyrogram (via pyrofork): A powerful, asynchronous Telegram MTProto API client library for Python, enabling seamless interaction with Telegram's features.
* Py-TgCalls / NTgCalls: Essential libraries for handling Telegram Voice Chats, enabling high-quality audio and video streaming.
* MongoDB (via Motor & PyMongo): A NoSQL database for flexible and scalable data storage (user data, chat settings, playlists, etc.).
* yt-dlp / Pytube: Advanced media downloaders for extracting content from YouTube and other video platforms.
* Spotipy: Python client for the Spotify Web API.
* FFmpeg-Python / MoviePy / Pydub: Libraries for robust audio and video processing, conversion, and manipulation.
* OpenAI / Bard / DeepAI / Lexica-API: Integration with various AI models for potential features like smart replies, content generation, or image processing.
* gpytranslate: For translation functionalities.
* GitPython: For programmatic interaction with Git, facilitating bot updates.
* Docker: Containerisation support for easy and consistent deployment across environments.
* Heroku: Ready for cloud deployment on platforms like Heroku, as indicated by heroku.yml and Procfile.
* GitHub Actions: CI/CD workflows (.github/workflows) for automated testing and deployment processes.
Getting Started
TRN Music Bot is designed for straightforward deployment, leveraging modern practices like containerisation. Refer to the Dockerfile and heroku.yml for deployment instructions in the GitHub repo.
Bot - t.me/therapnationbot
Telegram - t.me/the_rap_nation
Instagram - instagram.com/ther.apnation
YouTube - youtube.com/@thenationofrap
Pinterest - pin.it/6MPsFQAqA