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

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

Open
odel4y wants to merge 4 commits intoosir:masterfrom
odel4y:master
Open

Fix argument passing for python-telegram-bot>=12.0#7
odel4y wants to merge 4 commits intoosir:masterfrom
odel4y:master

Conversation

@odel4y
Copy link
Copy Markdown

@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.

1 participant