Closed MrBotDeveloper closed 3 years ago
You are supposed to use it with a Client
object, not with the class itself but with an object.
The same code works for me (except importing pyrogram.types for BotCommand). Try to re-install it and make sure you install it to the same environment you ran the code with.
Can you share it's sample code for better understanding ????
Can you share it's sample code for better understanding ????
Try to re-run the pip install command, and try again. You probably didn't install it to the correct interpreter. Try it out:
python -m pip install https://... etc python script.py
If needed, use python3 instead of python.
Ok sir thanks a lot ......
Checklist
pip3 install -U https://github.com/pyrogram/pyrogram/archive/master.zip
and reproduced the issue using the latest development version.Description
Sir, I am trying to set Bot commands. My code is as follows
But it shows the following error.
Traceback
The full traceback (if applicable).