telegram.ext.utils.types Module¶
This module contains custom typing aliases.
New in version 13.6.
-
telegram.ext.utils.types.BD¶ Type of the bot data.
New in version 13.6.
alias of TypeVar(‘BD’)
-
telegram.ext.utils.types.CCT¶ An instance of
telegram.ext.CallbackContextor a custom subclass.New in version 13.6.
alias of TypeVar(‘CCT’)
-
telegram.ext.utils.types.CD¶ Type of the chat data for a single user.
New in version 13.6.
alias of TypeVar(‘CD’)
-
telegram.ext.utils.types.CDCData¶ Data returned by
telegram.ext.CallbackDataCache.persistence_data.New in version 13.6.
- Type
Tuple[List[Tuple[
str,float, Dict[str,any]]], Dict[str,str]]
alias of Tuple[List[Tuple[str, float, Dict[str, Any]]], Dict[str, str]]
-
telegram.ext.utils.types.ConversationDict¶ Dicts as maintained by the
telegram.ext.ConversationHandler.New in version 13.6.
alias of Dict[Tuple[int, …], Optional[object]]
-
telegram.ext.utils.types.UD¶ Type of the user data for a single user.
New in version 13.6.
alias of TypeVar(‘UD’)