Update readme

This commit is contained in:
Jimmy 2021-07-06 22:40:36 +12:00
parent bc71e1765b
commit e99d4dc9a3
1 changed files with 17 additions and 5 deletions

View File

@ -1,22 +1,34 @@
# telegramapi
# Telegram Python Example
This is desinged for MicroPython but will work on a desktop
It'll echo what you send to it
## Setup
```pipenv sync```
```cp config.json.sample config.json```
Create a Telegram account if you don't have one
https://telegram.org/
## Setup Bot
Search users for ```BotFather```
Click start
Type ```/newbot``` and follow the prompts
Take the token under ```Use this token to access the HTTP API:``` and put it into config.json
Take the token under ```Use this token to access the HTTP API:``` and put it into config.json
## Get User Id
Search users for ```userinfobot @userinfobot```
Put you id in config.json
Run
Put your id in config.json
## Run
```pipenv run prod```