WeebZoneIndia / Video-Encoder-Bot

a telegram bot for compressing/encoding videos in h264 format.
GNU Affero General Public License v3.0
76 stars 200 forks source link

error (needed help) #27

Closed irabro1992 closed 7 months ago

irabro1992 commented 1 year ago

hello , i changed config.env.template to config.env and i put all of my details in the config.evn. then i started the bot and it show this error message

" 2023-07-22 18:57:13,941 - root - INFO - Successfully updated with latest commit from UPSTREAM_REPO 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 "/root/Video-Encoder-Bot/VideoEncoder/init.py", line 33, in api_id = int(os.environ.get("API_ID")) TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

then config.env file automatically change it back to config.env.template and all settings back to the default.

any idea ? thanks

WeebZoneIndia commented 1 year ago

I can't edit the code right now but you can try changing the run.sh file

remove everything in the file before python3 -m VideoEncoder

irabro1992 commented 1 year ago

it work now . thanks for your support