Telegram echo-bot that converts text messages to it's Morse representation as text and sound.
This project uses Poetry, but requirements.txt
also provided for compatibility with services that does not support pyproject.toml
.
To run the bot you should set these environment variables:
-
TOKEN
: Required. Telegram bot token -
LOGLEVEL
: Optional.logging
level, should be eitherDEBUG
,INFO
,WARNING
,ERROR
orCRITICAL
. Default:WARNING
-
USE_WEBHOOK
: Optional. Whether to use webhook or not (use long polling). Default:False
.If
USE_WEBHOOK
isTrue
, you should also set these variables:WEBHOOK_URL
: Required.WEBHOOK_PATH
: Required.WEBAPP_HOST
: Optional. Defaults to "0.0.0.0".PORT
: Required. Note that you don't have to explicitly setPORT
if you plan to host your bot instance on Heroku.