telegram.utils.types Module¶
This module contains custom typing aliases.
-
telegram.utils.types.ConversationDict¶ Dicts as maintained by the
telegram.ext.ConversationHandler.alias of Dict[Tuple[int, …], Optional[object]]
-
telegram.utils.types.FileInput¶ Valid input for passing files to Telegram. Either a file id as string, a file like object or a local file path as string or
pathlib.Path.alias of Union[str, IO, InputFile, pathlib.Path]
-
telegram.utils.types.FileLike¶ Either an open file handler or a
telegram.InputFile.alias of Union[IO, InputFile]
-
telegram.utils.types.HandlerArg¶ The argument that handlers parse for
telegram.ext.handler.check_update()etc.alias of Union[str, Update]
-
telegram.utils.types.JSONDict¶ Dictionary containing response from Telegram or data to send to the API.
alias of Dict[str, Any]
-
telegram.utils.types.SLT¶ Single instance or list/tuple of instances.
alias of Union[RT, List[RT], Tuple[RT, …]]