It occurred when I perform this :
updater = Updater('xyaz:testtsttttt-HI', use_context=True)
Many Thanks!
It occurred when I perform this :
updater = Updater('xyaz:testtsttttt-HI', use_context=True)
Many Thanks!
"Down grade" or "upgrade" the python-telegram-bot to the relevant version , e.g i downgraded by using "pip install python-telegram-bot==13.7" from the lastest python-telegram-bot 20.0 version, and it worked for me, NOTE: my version might be different from yours so use the right version that wont call the error
You should revoke the token that you just posted. Also double check which version of python-telegram-bot
you are using and followng the resources that PTB provides for that version.
Disclaimer: I'm currently the maintainer of python-telegram-bot
.
python-telegram-bot
that you are using. @Jiggermast the use_context
argument was dropped without replacement, because it no longer has any meaning. –
Humfried I think this is a version related issue and I faced the same while I was using 20.6 version.I fixed this issue by using Application class instead of using Updater.
from telegram.ext import Application
application = Application.builder().token(TELEGRAM_API_TOKEN).build()
Later you can start the bot using application object.
application.run_polling()
© 2022 - 2025 — McMap. All rights reserved.