1. Aiogram

Telegram Base TelegramObject

MetaTelegramObject

classaiogram.types.base.MetaTelegramObject(name: strbases: Tuple[Type]namespace: Dict[str, Any]**kwargs: Any)[source]

Bases: type

Metaclass for telegram objects

TelegramObject

classaiogram.types.base.TelegramObject(conf: Optional[Dict[str, Any]] = None**kwargs: Any)[source]

Bases: ContextInstanceMixin

Abstract class for telegram objects

Deserialize objectParameters

  • conf –
  • kwargs –

propertyprops: Dict[str, BaseField]

Get propsReturns

dict with propspropertyprops_aliases: Dict[str, str]

Get aliases for propsReturnspropertyvalues: Dict[str, Any]

Get valuesReturnsclassmethodto_object(data: Dict[str, Any]conf: Optional[Dict[str, Any]] = None)→ T[source]

Deserialize objectParameters

  • data –
  • conf –

Returnsto_python()→ Dict[str, Any][source]

Get object as JSON serializableReturnsclean()→ None[source]

Remove empty valuesas_json()→ str[source]

Get object as JSON stringReturns

JSONReturn type

striter_keys()→ Generator[Any, None, None][source]

Iterate over keysReturnsiter_values()→ Generator[Any, None, None][source]

Iterate over valuesReturns