https://github.com/ivan-knyazev/tg_mqtt_bot
Telegram asynchronous bot with mqtt for NTO
https://github.com/ivan-knyazev/tg_mqtt_bot
aiogram async bot mqtt paho python telegram
Last synced: about 1 month ago
JSON representation
Telegram asynchronous bot with mqtt for NTO
- Host: GitHub
- URL: https://github.com/ivan-knyazev/tg_mqtt_bot
- Owner: Ivan-Knyazev
- Created: 2023-02-19T20:34:13.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-03-23T16:54:35.000Z (over 1 year ago)
- Last Synced: 2025-06-11T09:53:29.250Z (about 1 year ago)
- Topics: aiogram, async, bot, mqtt, paho, python, telegram
- Language: Python
- Homepage:
- Size: 175 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Telegram MQTT Bot
## Usage example

## Env
Put env vars to `.env`
Example in `.env.example`
## Local deployment:
* With database in Docker
1. Go to `database_deployment` directory
```bash
cd database_deployment
```
2. Create a containers and start them or use instruction in `database_deployment` directory in Linux
```bash
docker compose up -d
```
- Run to stop and delete the containers
```bash
docker compose down
```
3. Go back to the original directory
```bash
cd ..
```
4. Start the bot
```bash
python -m app
```
## Docker deployment
1. Follow steps 1-3 from _Local deployment_
2. Build docker bot image:
```bash
docker build . -t nto-mqtt-bot
```
- Or clone from GitHub Packages
3. Create a container and start his
```bash
docker compose up -d
```
- Run to stop and delete the bot container
```bash
docker compose down
```