Update readme
This commit is contained in:
parent
bc71e1765b
commit
e99d4dc9a3
22
README.md
22
README.md
|
@ -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```
|
||||
|
|
Loading…
Reference in New Issue