Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions compiler/api/template/type.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,5 @@

from typing import Union
from hydrogram import raw
from hydrogram.raw.core import TLObject

{name} = Union[{types}]


class {name}: # type: ignore
"""{docstring}
"""

QUALNAME = "hydrogram.raw.base.{qualname}"

def __init__(self):
raise TypeError("Base types can only be used for type checking purposes: "
"you tried to use a base type instance as argument, "
"but you need to instantiate one of its constructors instead. "
"More info: https://docs.hydrogram.org/en/latest/telegram/base/{doc_name}.html")