A simple Telegram chatbot to suggest who will order the lunch today!
- Create bot using telegram @BotFather see How to get Telegram Bot Chat ID.
- Create a telegram group, add the bot to the group, and make it admin.
- Set the env var
BOT_TOKEN
andCHAT_ID
. (you get from previous steps, whereCHAT_ID
should refer to the group created in prev step). - Optionally, if you need to persist the data between restarts, configure
VOLUME_ROOT_FS
to point to path of some persistent volume (block or network storage). - Run the app using
BOT_TOKEN=<bot_token> CHAT_ID=<chat_id> python main.py
- Start sending commands in the group (e.g.
/help
), the bot will detect food names as well (using chatgpt). - Enjoy!
This app built using telebot