kacpi2442 / am_bot

Using the toogoodtogo and foodsi APIs to notify me via a Telegram bot for open offers
39 stars 19 forks source link

Issue with delete message foodsi #5

Closed swiezaczek closed 1 year ago

swiezaczek commented 1 year ago

(most recent call last): File "C:\Users\ASUS ROG\Desktop\am_bot-mainkopia\watch_script.py", line 358, in refresh foodsi() File "C:\Users\ASUS ROG\Desktop\am_bot-mainkopia\watch_script.py", line 329, in foodsi telegram_bot_delete_message([stock['msg_id'] for stock in foodsi_in_stock if stock['id'] == item['id']][0]) File "C:\Users\ASUS ROG\Desktop\am_bot-mainkopia\watch_script.py", line 329, in telegram_bot_delete_message([stock['msg_id'] for stock in foodsi_in_stock if stock['id'] == item['id']][0]) KeyError: 'msg_id'

swiezaczek commented 1 year ago

My mistake, sorry