TextQuote#

class aiogram.types.text_quote.TextQuote(*, text: str, position: int, entities: List[MessageEntity] | None = None, is_manual: bool | None = None, **extra_data: Any)[source]#

This object contains information about the quoted part of a message that is replied to by the given message.

Source: https://core.telegram.org/bots/api#textquote

text: str#

Text of the quoted part of a message that is replied to by the given message

position: int#

Approximate quote position in the original message in UTF-16 code units as specified by the sender

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}#

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_post_init(_ModelMetaclass__context: Any) None#

We need to both initialize private attributes and call the user-defined model_post_init method.

entities: List[MessageEntity] | None#

Optional. Special entities that appear in the quote. Currently, only bold, italic, underline, strikethrough, spoiler, and custom_emoji entities are kept in quotes.

is_manual: bool | None#

Optional. True, if the quote was chosen manually by the message sender. Otherwise, the quote was added automatically by the server.