Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/famousketchup/pytgbot-autopost

Automates posting images with description to Telegram channel, every day at specific time
https://github.com/famousketchup/pytgbot-autopost

pytelegrambotapi python python-script python3 telegram telegram-api telegram-bot telegram-bot-api telegram-channel

Last synced: 2 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# πŸ“… \\\ 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](https://img.shields.io/github/v/release/dmitriy-korotayev/pytgbot-autopost)
![Python Version](https://img.shields.io/badge/python-3.6+-blue.svg?style=flat-square)


[![Contributions welcome](https://img.shields.io/badge/contributions-welcome-orange.svg)](https://github.com/dmitriy-korotayev/pytgbot-autopost/fork)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)

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 πŸ”₯

- [x] **Automated Posting:** Schedule up to 100 images with captions to be posted at chosen time daily. πŸ“†
- [x] _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 πŸ”§

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

#### 2. πŸ“₯ Preamble and dependencies installation πŸ“₯

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

#### 3. πŸ€– Run the bot πŸ€–:

```bash
python3 main.py
```

---

### ⏲️ You can use a `őystend-service.service` to automate script launch ⏲️

```bash
# 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 βš›οΈ](https://github.com/dmitriy-korotayev "My GitHub profile") \
[Email me 🀝](mailto:korotayev.dmitriy+github "Email any questions you might have!") \
**[LinkedIn (Hire me 😊)](https://www.linkedin.com/in/foreverdev/ "My professional profile: skills, experience and much more...")**