Closed samucamg closed 2 years ago
This is becasue you are using an older version of pyrogram
. Please install the latest version by running
pip3 install -U pyrogram
same goes for here
same goes for here
Seems like your pyrogram version is still <2.0.0
maybe try pip install Pyrogram>=2.0.50
same goes for here
Seems like your pyrogram version is still <2.0.0 maybe try
pip install Pyrogram>=2.0.50
He/She using python 3.6
Old version:Linux(Ubuntu 18.04) Newer version:Linux (Ubuntu 22.04)
solved After changing os version. python newer can't be installed in older version. updating the version helped me
I'm using ubuntu 20.04 python 3.8 and when I start the bot for the first time this work fine. But after stop and start again I got the error.
Traceback (most recent call last): File "/usr/lib/python3.8/runpy.py", line 185, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File "/usr/lib/python3.8/runpy.py", line 144, in _get_module_details return _get_module_details(pkg_main_name, error) File "/usr/lib/python3.8/runpy.py", line 111, in _get_module_details import(pkg_name) File "/opt/TG-FileStreamBot/WebStreamer/init.py", line 7, in
from WebStreamer.bot.clients import StreamBot
File "/opt/TG-FileStreamBot/WebStreamer/bot/init.py", line 9, in
StreamBot = Client(
TypeError: init() got an unexpected keyword argument 'name'