Skip to content

Automates posting images with description to Telegram channel, every day at specific time

License

Notifications You must be signed in to change notification settings

famousketchup/pytgbot-autopost

Repository files navigation

📅 \\ AutoPost: The Telegram Bot // 🤖

Every day at a time you choose, post to my (or yours) Telegram channel,
with memes or other picture topics (with a caption!),
let me introduce: pytgbot-autopost

GitHub Release Python Version Contributions welcome License

Look at our cute little Python-based helper!

❤️ Introduction ❤️

Welcome to the AutoPost Telegram Bot. It is a simple yet clever Python-based bot which automatically posts messages or media to Telegram groups or channels daily. It's perfect for sharing memes, wallpapers, stories, news, or any other picture with a comment. You've found the right open-source bot for keeping your channel active with daily content without all the manual scheduling b^shit.

🔥 Features 🔥

  • Automated Posting: Schedule up to 100 images with captions to be posted at chosen time daily. 📆
  • And... And... Let me think - you need more? Read along

📥 Planned features 📥

  • More Media Support: Whether it's photos, videos, or documents, AutoPost handles it all. 🖼️🎥📄
  • Interactive Scheduler: Set up your posting schedule with ease through our intuitive command-line interface. ⏲️
  • Customizable Templates: Tailor your messages with dynamic content for that personal touch. ✍️
  • Logging and Analytics: Keep track of what's posted and engage your audience more effectively. 📊

🚀 Usage Guide 🚀

Prerequisites

  • Python 3.6 or later
  • pip / pipx

Installation and usage

(From git clone to running a bot daemon script):

1. 🔧 Fetch and configure the bot 🔧

git clone https://github.com/dmitriy-korotayev/pytgbot-autopost.git
cd pytgbot-autopost
cp .env.sample .env
$EDITOR .env

2. 📥 Preamble and dependencies installation 📥

python -m venv venv
source venv/bin/activate
pip install -r requirements.txt

3. 🤖 Run the bot 🤖:

python3 main.py

⏲️ You can use a šystend-service.service to automate script launch ⏲️

# Copy service from repo
sudo cp systend-service.service /etc/systemd/system/autopost-telegram-bot.service
# Reload
sudo systemctl daemon-reload
# Enable autorun and start
sudo systemctl enable autopost-telegram-bot
sudo systemctl start autopost-telegram-bot

🚦 Support 🚦

Contributions, issues, and feature requests are welcome!
Give a ⭐️ if you like this project!

📝 License 📝

MIT License - Free, open-source license with minimal restrictions.


Copyright (c) 2024 Dmitriy Korotayev
Profile ⚛️
Email me 🤝
LinkedIn (Hire me 😊)