https://github.com/valendrew/telegram-text-generation
https://github.com/valendrew/telegram-text-generation
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/valendrew/telegram-text-generation
- Owner: Valendrew
- License: gpl-3.0
- Created: 2022-09-30T16:42:14.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-07T10:12:18.000Z (over 3 years ago)
- Last Synced: 2025-03-16T06:26:49.790Z (over 1 year ago)
- Language: Python
- Size: 43.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 =
```