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

https://github.com/valendrew/telegram-text-generation


https://github.com/valendrew/telegram-text-generation

Last synced: 12 months ago
JSON representation

Awesome Lists containing this project

README

          

# N-Gram Text Generation

## Run the bot

Place the **json** with chats in the main folder and run:

```bash
python -m textgen
```

## Configuration file

- Create a **config.ini** file
- Retrieve your api id and hash from
- Add your bot name and bot token, which you can retrieve by writing to @BotFather on Telegram
- TELEGRAM_CHAT.ids is a string of space separated chat ids

```ini
[TELEGRAM_CHAT]
ids =

[BOT]
name =
id =
hash =
token =
```