You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jimmy ed9b9608d0 Remove details 1 year ago
.gitignore Ignore config.json 1 year ago
LICENSE Initial commit 1 year ago
Pipfile Add pipfile 1 year ago
Pipfile.lock Add pipfile 1 year ago
README.md Update readme 1 year ago
boot.py Add boot file 1 year ago
config.json.sample Remove details 1 year ago
main.py MicroPython doesn't like f strings 1 year ago
up.py Add MicroPython specific version 1 year ago

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