A bot for posting to your Telegram channel with inline buttons.
https://t.me/channel_inline_post_bot
- Create posts with inline buttons
- Easy-to-use inline interface
- Supports all message formats, links and media
- Privacy-friendly
- Python 3.11+
- Poetry for dependency management
- A Telegram Bot API token
Clone the repository:
git clone https://github.com/WatchDogsDev/inline-post-telegram-bot.git
cd inline-post-telegram-bot
Install dependencies using Poetry:
poetry install
- Copy the
.env.template
file to.env
:
cp .env.template .env
- Fill in the required environment variables in
.env
:INLINE_POST_BOT_TOKEN
: Your Telegram Bot API token from BotFather
Activate the virtual environment:
poetry shell
Run the bot:
python src/main.py
Build and run the Docker container:
-
Ensure Docker and Docker Compose are installed
-
Configure your
.env
file from.env.template
# Build the image
docker build -t inline-post-bot .
# Or use Docker Compose
docker-compose up --build
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'feat: Add amazing-feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
- Ensure all environment variables are correctly set
- Check Poetry and Python versions compatibility
- Verify Telegram Bot API token is correct
This project is licensed under the MIT License. See LICENSE for details.
- Project Link: https://github.com/WatchDogsDev/inline-post-telegram-bot
- Telegram: @channel_inline_post_bot