This Telegram bot is designed to facilitate the moderation of content submissions within a Telegram channel. It allows users to submit text, images, videos, and GIFs, which are then reviewed by an administrator before being published to the channel. The bot ensures that all submissions are reviewed for appropriateness and relevance before being shared with a broader audience.
- Content Submission: Users can send text, photos, videos, and GIFs to the bot.
- Admin Review: Submissions are forwarded to an admin for approval or rejection.
- Support for Various Media Types: The bot handles different types of media including text, images, videos, and GIFs.
- Automatic Posting: Upon approval, content is automatically posted to the specified Telegram channel.
- Rejection Notifications: Users receive notifications if their submissions are rejected.
- Python 3.6 or higher
pipfor package installation- A Telegram bot token (obtainable through BotFather on Telegram)
-
Clone the repository:
git clone https://github.com/Fugance/telegram-bot.git cd telegram-bot -
Install required packages:
pip install pyTelegramBotAPI
-
Configure the bot: Edit the
bot_config.pyfile to include yourTOKEN,ADMIN_ID, andCHANNEL_ID. -
Run the bot:
python bot.py
- Start the Bot: Send
/startto the bot on Telegram. - Submit Content: Directly send text messages, images, videos, or GIFs to the bot.
- Admin Review: The admin receives the submissions with options to approve or reject.
- Check Channel: Approved content is automatically posted to the specified channel.
- TOKEN: Your bot's unique authentication token.
- ADMIN_ID: The Telegram user ID of the administrator.
- CHANNEL_ID: The ID of the Telegram channel where approved messages will be posted.