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

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

#include <TextQuote.h>

Public Types

typedef std::shared_ptr< TextQuotePtr
 

Public Attributes

std::string text
 Text of the quoted part of a message that is replied to by the given message.
 
std::vector< MessageEntity::Ptrentities
 Optional. Special entities that appear in the quote.
 
std::int32_t position
 Approximate quote position in the original message in UTF-16 code units as specified by the sender.
 
bool isManual
 Optional. True, if the quote was chosen manually by the message sender.
 

Detailed Description

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

Definition at line 18 of file TextQuote.h.

Member Typedef Documentation

◆ Ptr

typedef std::shared_ptr<TextQuote> TgBot::TextQuote::Ptr

Definition at line 21 of file TextQuote.h.

Member Data Documentation

◆ entities

std::vector<MessageEntity::Ptr> TgBot::TextQuote::entities

Optional. Special entities that appear in the quote.

Currently, only bold, italic, underline, strikethrough, spoiler, and customEmoji entities are kept in quotes.

Definition at line 33 of file TextQuote.h.

◆ isManual

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 45 of file TextQuote.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 38 of file TextQuote.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 26 of file TextQuote.h.


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