{"id":14956805,"url":"https://github.com/nacbots/broadcastbot","last_synced_at":"2025-04-13T11:48:16.158Z","repository":{"id":39709868,"uuid":"404374444","full_name":"NACBots/BroadcastBot","owner":"NACBots","description":"A simple Telegram bot that can broadcast messages and media to the bot subscribers. with mongo DB support","archived":false,"fork":false,"pushed_at":"2025-03-13T14:42:43.000Z","size":73,"stargazers_count":104,"open_issues_count":2,"forks_count":159,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-06T07:06:00.218Z","etag":null,"topics":["bot","broadcast","broadcast-bot","heroku","heroku-app","mongo","mongodb","nacbots","pyrogram","python-telegram-bot","telegram","telegram-bot"],"latest_commit_sha":null,"homepage":"http://t.me/NACBots","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NACBots.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-08T14:15:19.000Z","updated_at":"2025-04-02T16:17:13.000Z","dependencies_parsed_at":"2024-08-09T13:20:52.230Z","dependency_job_id":null,"html_url":"https://github.com/NACBots/BroadcastBot","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NACBots%2FBroadcastBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NACBots%2FBroadcastBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NACBots%2FBroadcastBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NACBots%2FBroadcastBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NACBots","download_url":"https://codeload.github.com/NACBots/BroadcastBot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248710410,"owners_count":21149186,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","broadcast","broadcast-bot","heroku","heroku-app","mongo","mongodb","nacbots","pyrogram","python-telegram-bot","telegram","telegram-bot"],"created_at":"2024-09-24T13:13:33.829Z","updated_at":"2025-04-13T11:48:16.121Z","avatar_url":"https://github.com/NACBots.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Broadcast Bot v2\nA simple Telegram bot that can broadcast messages and media to the bot subscribers using [MongoDB](https://mongodb.com).  \n\n[![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=NACBots\u0026repo=BroadcastBot\u0026theme=flag-india)](https://github.com/nacbots/broadcastbot\u0026bg_color=#24292F)  \n\n## 🚀 What's New in v2?  \n- **15x Faster Broadcasts** – Implemented **semaphore**, making message delivery significantly faster!  \n- **Live Broadcast Status** – Real-time progress updates to track your broadcasts.  \n- **PyroBlack Migration** – Switched from **Pyrogram** to **PyroBlack** for improved performance and efficiency.  \n- **New Config Variables:**  \n  - `MAX_CONCURRENT` – Maximum concurrent message sends (Default: 15, can be set up to 1000 for paid broadcasts).  \n  - `UPDATE_INTERVAL` – Update interval in seconds to avoid flood waits (Default: 2).  \n\n## Features  \n\n- Supports [MongoDB](https://mongodb.com) database 💁 for user records 📽.  \n- Users can choose whether to enable broadcast messages using `/settings` command.  \n- Logs new users in a specified channel.  \n- Get total user count from the database.  \n- Ban and unban users.  \n\n## Required Configs  \n\n- `BOT_TOKEN` - Get from [@BotFather](https://t.me/BotFather)  \n- `API_ID` - Get it from [telegram.org](https://my.telegram.org/auth)  \n- `API_HASH` - Get it from [telegram.org](https://my.telegram.org/auth)  \n- `AUTH_USERS` - Authorized user IDs for [Admin Commands](https://github.com/nacbots/broadcastbot#admin-commands) (separated by spaces).  \n- `DB_URL` - MongoDB Database URI from [mongodb.com](https://mongodb.com)  \n\n## Optional Configs  \n\n- `LOG_CHANNEL` - Channel ID to log new user notifications.  \n- `BROADCAST_AS_COPY` - Set to `True` for copy-forwarded messages, `False` for forwarded messages with a tag.  \n- `DB_NAME` - Collection name in MongoDB.  \n- `MAX_CONCURRENT` - Maximum concurrent message sends (Default: 15, can be set up to 2000).  \n- `UPDATE_INTERVAL` - Update interval in seconds to avoid flood waits (Default: 2).  \n\n## User Commands 🤔  \n\n```\nstart - Start the bot 🥲  \nsettings - Customize settings  \n```\n\n## Admin Commands 🤫  \n\n```\nstats - Get total user count in the database  \nbroadcast - Reply to a message to broadcast  \nban_user - Ban a user with time \u0026 reason  \nunban_user - Unban a user  \nbanned_users - Show banned users  \n```\n\n## Deploy 🚀  \n\n### Easiest Heroku Deploy 🤭  \n\n\u003cp align=\"center\"\u003e  \n    \u003ca href=\"https://heroku.com/deploy?template=https://github.com/nacbots/BroadcastBot\"\u003e  \n    \u003cimg src=\"https://github.com/nacbots/broadcastbot/blob/main/herokudeploy-01.svg\" alt=\"herokudeploy-01\" border=\"0\" height=\"90\" width=\"285\"\u003e\u003c/a\u003e  \n\u003c/p\u003e  \n\n### Host Locally 🤕  \n\n```shell\ngit clone https://github.com/nacbots/BroadcastBot  \ncd BroadcastBot  \npip3 install -r requirements.txt  \n# EDIT config.py values appropriately  \npython3 main.py  \n```\n\n## Support Group  \n\n\u003ca href=\"https://t.me/NACBots\"\u003e\u003cimg src=\"https://img.shields.io/badge/Telegram-Updates%20Channel-blue.svg?logo=telegram\"\u003e\u003c/a\u003e  \n\u003ca href=\"https://t.me/n_a_c_bot_developers\"\u003e\u003cimg src=\"https://img.shields.io/badge/Telegram-Support%20Group-blue.svg?logo=telegram\"\u003e\u003c/a\u003e  \n\n## Found a Bug? 🐛  \n\n```Feel free to create a pull request or open an issue and describe your problem freely.```  \n\n## Credits  \n\n- [@NikhilEashy](https://github.com/nikhileashy)  \n- [@MrBotDeveloper](https://github.com/MrBotDeveloper)  \n\n\u003ca href=\"https://pyrogram.org\"\u003e\u003cimg src=\"https://i.ibb.co/SVLD5k8/Document-1222546317.png\" alt=\"pyrogram\" border=\"0\"\u003e\u003c/a\u003e  \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnacbots%2Fbroadcastbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnacbots%2Fbroadcastbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnacbots%2Fbroadcastbot/lists"}