19 lines
298 B
Markdown
19 lines
298 B
Markdown
# Example: Telegram Pyrogram bot
|
|
|
|
## Bot launch
|
|
|
|
```shell
|
|
cd examples
|
|
python -m bot
|
|
```
|
|
|
|
## Bot settings
|
|
|
|
```python
|
|
SESSION_NAME = 'bot'
|
|
API_ID = '' # https://my.telegram.org/
|
|
API_HASH = '' # https://my.telegram.org/
|
|
BOT_TOKEN = '' # @BotFather
|
|
APP_PLUGINS = 'bot/modules'
|
|
|
|
``` |