Go to file
jimmy ed9b9608d0 Remove details 2021-07-09 11:37:19 +00:00
.gitignore Ignore config.json 2021-07-06 22:29:54 +12:00
LICENSE Initial commit 2021-05-29 08:53:09 +00:00
Pipfile Add pipfile 2021-07-06 22:30:21 +12:00
Pipfile.lock Add pipfile 2021-07-06 22:30:21 +12:00
README.md Update readme 2021-07-08 23:11:13 +12:00
boot.py Add boot file 2021-07-08 23:04:49 +12:00
config.json.sample Remove details 2021-07-09 11:37:19 +00:00
main.py MicroPython doesn't like f strings 2021-07-08 23:05:44 +12:00
up.py Add MicroPython specific version 2021-07-08 23:03:36 +12:00

README.md

Telegram Python Example

This is designed for MicroPython but will work on a desktop

It'll echo what you send to it

Setup

pip3 install pipenv

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

Type /newbot and follow the prompts

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 your id in config.json

Run

pipenv run prod

MicroPython

TODO see up.py and boot.py