Skip to content
This repository has been archived by the owner on Jul 16, 2021. It is now read-only.

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

odel4y
Copy link

@odel4y odel4y commented Dec 17, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant