SonyDevWorld Telegram Bot
The bot that powers t.me/SMDW_downloads
Neither affiliated nor endorsed by Sony Mobile
You need to have
python3 installed with the
Further, you need to supply token and channel id via environment variables:
SONYDEVWORLD_BOT_TOKEN: Bot token, get one from t.me/botfather, e.g.
SONYDEVWORLD_BOT_CHANNEL: Channel id to post to, e.g.
-1000000000000for t.me/MyExampleChannel. You can quickly obtain channel info from @getidsbot
export SONYDEVWORLD_BOT_TOKEN=<my-token> export SONYDEVWORLD_BOT_CHANNEL=<my-channel-id> python3 SonyDevWorld.py
It makes sense to run this bot maybe once an hour to avoid hammering the Sony Dev World API.
export DEBUG=true to run in debug mode, set
export OFFLINE=True to run
in offline mode after you've saved
For deploying, a simple
systemd unit file with a timer is included.
After you've supplied your token inside the
.service file and copied the unit
and timer files into
/etc/systemd/system/, you can run the service
systemctl daemon-reload and then
systemctl reenable --now sonydevworldbot.timer
For convenience, there is also an ansible role available.
SonyDevWorld.py does all the heavy lifting for you. It posts to the Telegram
bot API at
The last posted item's
guid info is saved to
laststatus.txt. It would look
MIT, see LICENSE.md.