Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/djccnt15/messenger_bot

Simple Telegram Alarm Bot
https://github.com/djccnt15/messenger_bot

bot chatbot python telegram telegram-bot

Last synced: 25 days ago
JSON representation

Simple Telegram Alarm Bot

Awesome Lists containing this project

README

        

# Simple Messenger Alarm Bot

Simple Alarm Bot for messengers

## Requires

- Python 3.11
- requirements.txt

## Alembic

how to revision with Alembic

### initialize

```
alembic init migrations
```

### Alembic setting

- set DB info to `alembic.ini`

```
sqlalchemy.url = mysql+pymysql://root:admin1015*@localhost:3306/mydb
```

- add table metadata to `migrations/env.py`

```python
from src.db.entity import *

target_metadata = BaseEntity.metadata
```

### create Alembic revision

```
alembic revision --autogenerate
```

### run Alembic revision to head

```
alembic upgrade head
```

## Messengers

API list done

- [x] Telegram
- [ ] Line
- [ ] KakaoTalk

### Messenger API Docs

- [Telegram Bot API](https://core.telegram.org/bots/api)