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.
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::int32_t position { }
 Approximate quote position in the original message in UTF-16 code units as specified by the sender.
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 14054 of file Types.h.

Member Typedef Documentation

◆ Ptr

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

Definition at line 14055 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 14067 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 14079 of file Types.h.

◆ position

std::int32_t TgBot::TextQuote::position { }

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

Definition at line 14073 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.

Definition at line 14060 of file Types.h.


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