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.
FileLike
¶ Either an open file handler or in
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]