Go to file
Jimmy e99d4dc9a3 Update readme 2021-07-06 22:40:36 +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 Update readme 2021-07-06 22:40:36 +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

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

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