osir / wolbot

Go here https://github.com/schrer/shepherd-bot
11 stars 3 forks source link

Fix argument passing for python-telegram-bot>=12.0 #7

Open odel4y opened 3 years ago

odel4y commented 3 years ago

Hello!

Thanks for this nifty script! However the current code fails with newer python-telegram-bot>=12.0 pip packages. The reason is a change in how arguments are passed to the callbacks. See the official transition guide here: https://github.com/python-telegram-bot/python-telegram-bot/wiki/Transition-guide-to-Version-12.0#context-based-callbacks

I fixed the code accordingly. I also tested each Telegram command individually and it worked successfully.

If you don't mind, you can merge the changes.

Regards