Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/famousketchup/pytgbot-autopost
- Owner: famousketchup
- License: gpl-3.0
- Created: 2024-01-13T23:46:17.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-05-03T05:00:38.000Z (6 months ago)
- Last Synced: 2024-05-03T11:16:08.737Z (6 months ago)
- Topics: pytelegrambotapi, python, python-script, python3, telegram, telegram-api, telegram-bot, telegram-bot-api, telegram-channel
- Language: Python
- Homepage:
- Size: 204 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)## β€οΈ 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...")**