Go to file
Jimmy 361cb37fe3 Add boot file 2021-07-08 23:04:49 +12: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 Install pipenv 2021-07-06 22:53:12 +12:00
boot.py Add boot file 2021-07-08 23:04:49 +12:00
config.json.sample Sample config 2021-07-06 22:30:04 +12:00
main.py Comments Use f string 2021-07-06 22:36:03 +12:00
up.py Add MicroPython specific version 2021-07-08 23:03:36 +12:00

README.md

Telegram Python Example

This is desinged 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