10206
This group is for questions, answers and discussions around the python-telegram-bot library. Off-topic group: @pythontelegrambottalk | Website: https://python-telegram-bot.org
Hey. You seem to be using the new version (>=20.0) of python-telegram-bot but your code is written for an older and deprecated version (<=13.15).
Please update your code to the new v20 by reading the release notes and the transition guide linked below.
You can also install a version of PTB that is compatible with your code base, but please note that the library has undergone significant changes in v20 and the older version is not supported anymore. It may contain bugs that will not be fixed by the PTB team and it also doesn't support new functions added by newer Bot API releases.
Hey. You seem to be using a version <=13.15 of python-telegram-bot. Please note that we only provide support for the latest stable version and that the library has undergone significant changes in v20. Please consider upgrading to v20 by reading the release notes and the transition guide linked below.
Thank you as well, I really appreciated that
Читать полностью…
Yes, telegram.ext.Application.shutdown updates the persistence
Читать полностью…
general question, the PicklePersistance work by snapshotting it into file periodically right. So is there a snapshot when I close the bot?
try:Читать полностью…
Application.run()
except: —-
finally:
# snapshots here again right?
Please don't spam the group with searches or commands, and go to a private chat with me instead. Thanks a lot, the other members will appreciate it 😊
Читать полностью…
probably pip is installing in other python version and you are running script with other python version.
always use python -m pip install instead of pip install
uninstall all telegram libraries from terminal with pip or pip3 or pipx if u have them installed there
Читать полностью…
if you use pycharm go and install the package manually
Читать полностью…
its working pretty well actually , i just dont know i think my code could be better or i could do it in another way
Читать полностью…
The problem is when I hit run it's will run fine with no any problems but when I type in terminal
python main.py
To run the script it shows up with this error
for example i have 1 directory named 'modules' , inside that directory i have many categories such as 'moderation' and in each category i have commands
Читать полностью…
I'm using 20.7 , but I haven't used from a long time so my information are old a bit
Читать полностью…
updater.start_polling()
updater.idle()
I've wrote that code it suppos to run the application until I stops it but It won't
/channel/pythontelegrambotgroup/718468
I could say I told you so 😜
ext.Application.run_polling
python-telegram-bot documentation for this method:
telegram.ext.Application.run_polling
Can anyone remind me of that command makes bot wait until massages, not turned off immediately
Читать полностью…
Please don't spam the group with searches or commands, and go to a private chat with me instead. Thanks a lot, the other members will appreciate it 😊
Читать полностью…
Hey. You can find our documentation at Read the Docs.
Читать полностью…
after calling bot.log_out()
how do I use it again? It will work after 10 mins right?
From Python Package? I've already done that
Читать полностью…
I am making a large bot with many commands and categories , i am importing all modules and getting all handlers to use them in commandhandler with this code , it is working perfectly but i am worried , is there any more stable way of doing this ? https://pastebin.com/22RcSQKQ
Читать полностью…