pythontelegrambotgroup | Unsorted

Telegram-канал pythontelegrambotgroup - >>> telegram.Bot()

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

Subscribe to a channel

>>> telegram.Bot()

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.

Читать полностью…

>>> telegram.Bot()

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.

Читать полностью…

>>> telegram.Bot()

Thank you as well, I really appreciated that

Читать полностью…

>>> telegram.Bot()

Yes, telegram.ext.Application.shutdown updates the persistence

Читать полностью…

>>> telegram.Bot()

No that polling thing

Читать полностью…

>>> telegram.Bot()

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?

Читать полностью…

>>> telegram.Bot()

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 😊

Читать полностью…

>>> telegram.Bot()

@botfatther

Читать полностью…

>>> telegram.Bot()

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

Читать полностью…

>>> telegram.Bot()

ok now reinstall in pycharm

Читать полностью…

>>> telegram.Bot()

uninstall all telegram libraries from terminal with pip or pip3 or pipx if u have them installed there

Читать полностью…

>>> telegram.Bot()

if you use pycharm go and install the package manually

Читать полностью…

>>> telegram.Bot()

its working pretty well actually , i just dont know i think my code could be better or i could do it in another way

Читать полностью…

>>> telegram.Bot()

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

Читать полностью…

>>> telegram.Bot()

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

Читать полностью…

>>> telegram.Bot()

I'm using 20.7 , but I haven't used from a long time so my information are old a bit

Читать полностью…

>>> telegram.Bot()

updater.start_polling()
updater.idle()


I've wrote that code it suppos to run the application until I stops it but It won't

Читать полностью…

>>> telegram.Bot()

/channel/pythontelegrambotgroup/718468

I could say I told you so 😜

Читать полностью…

>>> telegram.Bot()

ext.Application.run_polling
python-telegram-bot documentation for this method:
telegram.ext.Application.run_polling

Читать полностью…

>>> telegram.Bot()

Can anyone remind me of that command makes bot wait until massages, not turned off immediately

Читать полностью…

>>> telegram.Bot()

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 😊

Читать полностью…

>>> telegram.Bot()

Hey. You can find our documentation at Read the Docs.

Читать полностью…

>>> telegram.Bot()

Bro give me your head to kiss it

Читать полностью…

>>> telegram.Bot()

after calling bot.log_out()
how do I use it again? It will work after 10 mins right?

Читать полностью…

>>> telegram.Bot()

Done, sadly nothing happens

Читать полностью…

>>> telegram.Bot()

From Python Package? I've already done that

Читать полностью…

>>> telegram.Bot()

I'm mean PyCharm terminal

Читать полностью…

>>> telegram.Bot()

Is it the terminal in your IDE?

Читать полностью…

>>> telegram.Bot()

How is it unstable currently?

Читать полностью…

>>> telegram.Bot()

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

Читать полностью…
Subscribe to a channel