Skip to content

Instantly share code, notes, and snippets.

View xmoiduts's full-sized avatar

xmoiduts

View GitHub Profile
@xmoiduts
xmoiduts / tg_async_api.py
Created March 17, 2020 16:43
Micropython ESP32 Telegram Bot async API uasyncio
# Async Telegram-bot interface inspired by https://github.com/Lepeshka92/TelegaGraph .
# async examples: https://github.com/micropython/micropython-lib/blob/master/uasyncio/example_http_client.py,
# DO NOT use their ping-pong test case 'cause I failed.
import gc
import ujson
import uasyncio as asyncio
import uerrno
class Telegram_API: