Hi welcome to the TGTG Bot:
The bot will notify you as soon as new bags from your favorites are available.
❗️️This is necessary if you want to use the bot❗️ 🔑 To login into your TooGoodToGo account enter /login email@example.com, in your Telegram client, in the chat with your bot. You will then receive an email with a confirmation link. You do not need to enter a password.
⚙️ With /settings you can set when you want to be notified.
ℹ️ With /info you can display all stores from your favorites where bags are currently available.
🌐 You can find more information about Too Good To Go here.
🌍 LET'S FIGHT food waste TOGETHER 🌎
-
Clone this project to your local PC.
-
Copy
config.template.ini
toconfig.ini
.cp config.template.ini config.ini
-
Replace
<YOUR-TOKEN>
inconfig.ini
with your own bot access token that you obtained from Telegram. You can create a bot and obtain a token by following the steps outlined here.
Python version: 3.8+
Install all libraries that are needed:
pip install -r requirements.txt
Start the Python script:
python3 Telegram.py
If using Docker, install requirements and start the bot with:
docker compose up --build -d
If needed, see logs with:
docker logs toogoodtogobot -t -f --tail 1000
To stop the bot:
docker compose down