Raised when the token is invalid. Args: message (:obj:`str`, optional): Any additional information about the exception. .. versionadded:: 20.0
| 111 | |
| 112 | |
| 113 | class InvalidToken(TelegramError): |
| 114 | """Raised when the token is invalid. |
| 115 | |
| 116 | Args: |
| 117 | message (:obj:`str`, optional): Any additional information about the exception. |
| 118 | |
| 119 | .. versionadded:: 20.0 |
| 120 | """ |
| 121 | |
| 122 | __slots__ = () |
| 123 | |
| 124 | def __init__(self, message: str | None = None) -> None: |
| 125 | super().__init__("Invalid token" if message is None else message) |
| 126 | |
| 127 | |
| 128 | class EndPointNotFound(TelegramError): |
no outgoing calls
searching dependent graphs…