athphane / userbot

Telegram Userbot built with Pyrogram
GNU General Public License v3.0
155 stars 103 forks source link

[BUG] config file is no longer supported in Pyrogram #58

Closed phoenixatom closed 2 years ago

phoenixatom commented 2 years ago

python -m userbot Traceback (most recent call last):
File "C:\Users\root\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 188, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "C:\Users\root\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 147, in _get_module_details return _get_module_details(pkg_main_name, error)
File "C:\Users\root\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 111, in _get_module_details import(pkg_name)
File "C:\Users\root\Documents\userbot\userbot_init.py", line 37, in e> UserBot = UserBot(version)
File "C:\Users\root\Documents\userbot\userbot\userbot.py", line 22, in
init
_ super().init(
TypeError: init() got an unexpected keyword argument 'config_file'

Originally posted by @OcroCodeChain in https://github.com/athphane/userbot/issues/56#issuecomment-1126856993

athphane commented 2 years ago

Fixed in 83473990e1afe96a4f347de164b9b0b337fe3624

CC: @OrcoCodeChain