2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-29 13:27:47 +00:00

Update docs link

This commit is contained in:
Dan 2019-09-09 15:44:45 +02:00
parent 71148758c9
commit 011375d0b2

View File

@ -1429,10 +1429,7 @@ class Client(Methods, BaseClient):
self.api_id = parser.getint("pyrogram", "api_id") self.api_id = parser.getint("pyrogram", "api_id")
self.api_hash = parser.get("pyrogram", "api_hash") self.api_hash = parser.get("pyrogram", "api_hash")
else: else:
raise AttributeError( raise AttributeError("No API Key found. More info: https://docs.pyrogram.org/intro/setup")
"No API Key found. "
"More info: https://docs.pyrogram.org/intro/setup#configuration"
)
for option in ["app_version", "device_model", "system_version", "lang_code"]: for option in ["app_version", "device_model", "system_version", "lang_code"]:
if getattr(self, option): if getattr(self, option):