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

Failed to remove message for item id #13

Closed swiezaczek closed 1 year ago

swiezaczek commented 1 year ago

Failed to remove message for item id: 80021 Traceback (most recent call last): File "C:\Users\ASUS ROG\Desktop\am_bot-mainkopia\s.py", line 334, in foodsi tg = 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\s.py", line 334, in tg = telegram_bot_delete_message([stock['msg_id'] for stock in foodsi_in_stock if stock['id'] == item['id']][0]) KeyError: 'msg_id'

----edit: It may used old version of am_bot hence why I received this error, but SOMETIMES there is an issue with foodsi offers not being deleted when unavailable anymore, but no error is showing up

swiezaczek commented 1 year ago

I am closing it for now, I will reopen when have more info for you