Forums

Can't run telegram bot on PWA

My telegram bot works fine on my computer, but not running here. Says some file is missing

File "/home/wasi006/D:/Telegram Bot/admin_panel.py", line 2, in <module>
    from firebase_utils import db
  File "/home/wasi006/D:/Telegram Bot/firebase_utils.py", line 7, in <module>
    cred = credentials.Certificate(os.getenv("FIREBASE_CREDENTIALS_PATH"))
  File "/home/wasi006/.local/lib/python3.10/site-packages/firebase_admin/credentials.py", line 102, in __init__
    raise ValueError(
ValueError: Invalid certificate argument: "None". Certificate argument must be a file path, or a dict containing the parsed file contents.

[edit by admin: formatting]

I see that you posted about this in another forum thread so I've replied there.