Telegram bot used to manage programs on remote GNU/Linux servers
pip install python-telegram-bot --upgrade
orpip install python-telegram-bot -U --pre
pip install python-telegram-bot[rate-limiter]
- Create the
config.properties
file in the project's directory, and put this content:
[secrets]
telegram.token=XXX
telegram.group.id=YYY
telegram.developer.chat.id=WWW
remote.sudo.password=
[application]
restart.flag=false
# log.level = info | debug | error
log.level=info
send.start.and.stop.message=false
cmd.timeout=16
# 1.1 | 2
http.version=1.1
/setcommands
@TG_Remote_Bot
- Copy paste this:
version - show bot's version
shutdown - shutdown the bot
send - es: /send ls
cmd with spacesstop cmd looptelegram.error.BadRequest: Message is too longcustom timeout in propertiesbetter string message managementsudo suma basico- regressione timeout