Source code for aiogram.types.input_rich_block_mathematical_expression

from __future__ import annotations

from typing import TYPE_CHECKING, Any, Literal

from ..enums import InputRichBlockType
from .base import TelegramObject
from .input_rich_block import InputRichBlock


[docs] class InputRichBlockMathematicalExpression(InputRichBlock): """ A block with a mathematical expression in LaTeX format, corresponding to the custom HTML tag :code:`<tg-math-block>`. Source: https://core.telegram.org/bots/api#inputrichblockmathematicalexpression """ type: Literal[InputRichBlockType.MATHEMATICAL_EXPRESSION] = ( InputRichBlockType.MATHEMATICAL_EXPRESSION ) """Type of the block, always 'mathematical_expression'""" expression: str """The mathematical expression in LaTeX format""" if TYPE_CHECKING: # DO NOT EDIT MANUALLY!!! # This section was auto-generated via `butcher` def __init__( __pydantic__self__, *, type: Literal[ InputRichBlockType.MATHEMATICAL_EXPRESSION ] = InputRichBlockType.MATHEMATICAL_EXPRESSION, expression: str, **__pydantic_kwargs: Any, ) -> None: # DO NOT EDIT MANUALLY!!! # This method was auto-generated via `butcher` # Is needed only for type checking and IDE support without any additional plugins super().__init__(type=type, expression=expression, **__pydantic_kwargs)