Skip to content

gordon0056/FromSubsBot

Repository files navigation

✉️ FromSubsBot

FromSubsBot is a Telegram bot for moderation and delayed publication of user content in a Telegram channel. Suitable for publics where subscribers can send their thoughts or suggestions, and moderators can approve and publish them manually or on a schedule.


🚀 Features

  • Receiving texts from subscribers.
  • Transferring for moderation with the "Accept" / "Reject" buttons.
  • Request for publication immediately or by date.
  • Flexible parsing of the publication date.
  • Secure storage of tokens and configuration via .env.

📦 Installation

  1. Clone the repository:
    git clone https://github.com/gordon0056/fromsubsbot.git
    cd fromsubsbot
    
  2. Install dependencies:
    pip install -r requirements.txt
    
  3. Create a .env file:
    API_TOKEN=your_bot_token
    MODERATOR_CHAT_ID=your_moderator_chat_id
    CHANNEL_ID=@your_channel_name
  4. Run the bot:
    python main.py
    

🛠 Configuration All configuration is stored centrally in the config.py file, which uses pydantic and dotenv. ```python

from config import settings
print(settings.API_TOKEN)

🔐 Security All keys and tokens are moved to .env.

The .env file is added to .gitignore and should not be included in the public repository.

About

Telegram Content Moderation Bot automates content moderation and posting to a channel. Features: accepts user content, sends it for moderation with inline approval/rejection buttons, requests publication time (immediate/scheduled), posts automatically by timer, and supports flexible date/time formats.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages