Review errors and remove some type checks

If the type is not correct, we can let the API fail instead.
This way, if the API supports more types in the future, there
does not need to be an update. This has affected participant
permissions in groups.
This commit is contained in:
Lonami Exo
2022-02-09 10:00:20 +01:00
parent 4fae119a18
commit d1836ab899
2 changed files with 1 additions and 9 deletions

View File

@@ -157,7 +157,7 @@ def init(
if not api_id or not api_hash:
raise ValueError(
"Your API ID or Hash cannot be empty or None. "
"Refer to telethon.rtfd.io for more information.")
"Refer to docs.telethon.dev for more information.")
if local_addr is not None:
if use_ipv6 is False and ':' in local_addr: