My Error
Hi Guys,
i just deploying a simple watermark telegram bot and getting stuck with these error, please help me with this if you can. same error persist renderer and on local pc niether one of them works for me.
can’t know what to write here im newbie
> ==> Running 'python3 bot.py'
> Traceback (most recent call last):
> File "/opt/render/project/src/bot.py", line 552, in <module>
> AHBot.run()
> File "/opt/render/project/src/.venv/lib/python3.11/site-packages/pyrogram/methods/utilities/run.py",
> line 58, in run
> self.start()
> File "/opt/render/project/src/.venv/lib/python3.11/site-packages/pyrogram/sync.py",
> line 66, in async_to_sync_wrap
> return loop.run_until_complete(coroutine)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/usr/local/lib/python3.11/asyncio/base_events.py", line 654, in run_until_complete
> return future.result()
> ^^^^^^^^^^^^^^^
> File "/opt/render/project/src/.venv/lib/python3.11/site-packages/pyrogram/methods/utilities/start.py",
> line 52, in start
> is_authorized = await self.connect()
> ^^^^^^^^^^^^^^^^^^^^
> File "/opt/render/project/src/.venv/lib/python3.11/site-packages/pyrogram/methods/auth/connect.py",
> line 38, in connect
> self.load_config()
> File "/opt/render/project/src/.venv/lib/python3.11/site-packages/pyrogram/client.py",
> line 616, in load_config
> raise AttributeError("No API Key found. More info: https://docs.pyrogram.org/intro/setup")
> AttributeError: No API Key found. More info: https://docs.pyrogram.org/intro/setup
New contributor
Abhishek is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
3