Closed mbnoimi closed 4 years ago
I'll have a look at this in a few weeks, but since it's just a Deprecation Warning, its ok to ignore it until u plan to update ptb
have you set use_context: True in your bot settings? Which version of ptb are you using? using this context
variable is a new feature in ptb-v12 and will be the default for ptb-v13. If you wan't to use context you also have to change the arguments for your handler functions. The new handlers only take the arguments context
and update
, the old optional arguments user_data
, chat_data
such as the errors and the bot itself moved to the context dict.
Read more about that here: https://github.com/python-telegram-bot/python-telegram-bot/wiki/Transition-guide-to-Version-12.0
If you use the context style handlers in your app and enabled it in the settings, but the warning still appears, you can reopen the Issue, or just ignore it. If we update the requirements this should raise an error, which is easy to fix.
When I run my project I get this warning:
I'm using commit 5f07ec585086eca9f26d10305eca58fe21c67a6d