tgbot-cpp
Loading...
Searching...
No Matches
TgBot::TextQuote Struct Reference

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

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<TextQuote>

Public Attributes

std::string text { }
 Text of the quoted part of a message that is replied to by the given message; may be empty if the quote was chosen from a rich message.
std::optional< std::vector< std::shared_ptr< MessageEntity > > > entities { }
 Optional. Special entities that appear in the quote. Currently, only bold, italic, underline, strikethrough, spoiler, custom_emoji, and date_time entities are kept in quotes.
std::optional< std::vector< std::shared_ptr< RichText > > > richTexts { }
 Optional. Rich text of the quote if it was chosen from a rich message. May contain only plain text, RichTextBold, RichTextItalic, RichTextUnderline, RichTextStrikethrough, RichTextSpoiler, RichTextSubscript, RichTextSuperscript, RichTextDateTime, RichTextCustomEmoji, RichTextMathematicalExpression, and arrays of them.
std::uint32_t position { }
 Approximate quote position in the original message in UTF-16 code units as specified by the sender. For quotes from rich messages, it is the position in the text formed by joining plain texts of all quotable texts of the message, separated by line feeds.
std::optional< bool > isManual { }
 Optional. True, if the quote was chosen manually by the message sender. Otherwise, the quote was added automatically by the server.

Detailed Description

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

Definition at line 13555 of file Types.h.

Member Typedef Documentation

◆ Ptr

using TgBot::TextQuote::Ptr = std::shared_ptr<TextQuote>

Definition at line 13556 of file Types.h.

Member Data Documentation

◆ entities

std::optional<std::vector<std::shared_ptr<MessageEntity> > > TgBot::TextQuote::entities { }

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

Definition at line 13568 of file Types.h.

◆ isManual

std::optional<bool> TgBot::TextQuote::isManual { }

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

Definition at line 13586 of file Types.h.

◆ position

std::uint32_t TgBot::TextQuote::position { }

Approximate quote position in the original message in UTF-16 code units as specified by the sender. For quotes from rich messages, it is the position in the text formed by joining plain texts of all quotable texts of the message, separated by line feeds.

Definition at line 13581 of file Types.h.

◆ richTexts

std::optional<std::vector<std::shared_ptr<RichText> > > TgBot::TextQuote::richTexts { }

Optional. Rich text of the quote if it was chosen from a rich message. May contain only plain text, RichTextBold, RichTextItalic, RichTextUnderline, RichTextStrikethrough, RichTextSpoiler, RichTextSubscript, RichTextSuperscript, RichTextDateTime, RichTextCustomEmoji, RichTextMathematicalExpression, and arrays of them.

Definition at line 13575 of file Types.h.

◆ text

std::string TgBot::TextQuote::text { }

Text of the quoted part of a message that is replied to by the given message; may be empty if the quote was chosen from a rich message.

Definition at line 13562 of file Types.h.


The documentation for this struct was generated from the following file: