raspishake / rsudp

Continuous visual display, sudden motion monitoring, and historical replay of Raspberry Shake data
https://raspishake.github.io/rsudp/
GNU General Public License v3.0
52 stars 30 forks source link

New style telegram with asyncio #54

Open Lallirafn opened 1 year ago

Lallirafn commented 1 year ago

as for issue #53, version >20.0 of the Telegram bot uses asyncio. This is at least one way of solving this. Most likely would be enough to use asyncio.run() on the bot call without making the whole definitions async, but this works too.