A low-requirements Telegram-API-wrapper for your bot to respond to messages
https://github.com/slovanos/tgbot
The current sample implementation returns wikipedia summary information
- requests>=2.31.0
- wikipedia==(1, 4, 0)
The wikipedia module is only necessary for the sample reaction implementation, not necessary for the actual bot.
- Create/Fill parameters.py with the necessary IDs from your bot and required constants on the main file.
- Create/Fill ./data/rtas.txt with the alternative answers. One answer per line.
Run:
$ python3 tgbot.py
from botwrapper import TelegramBot