19 std::variant<std::int64_t, std::string>
chatId;
47 nl::json json = nl::json::object();
49 if (std::holds_alternative<std::int64_t>(
chatId)) {
51 }
else if (std::holds_alternative<std::string>(
chatId)) {
66 if (json[
"chat_id"].is_string())
chatId = json[
"chat_id"].get<std::string>();
67 else chatId = json[
"chat_id"].get<std::int64_t>();
#define OBJECT_SERIALIZE_FIELD_PTR_ARRAY(json, json_field, array_field)
#define OBJECT_SERIALIZE_FIELD(json, json_field, field)
Available objects: https://core.telegram.org/bots/api#available-types.
#define OBJECT_DESERIALIZE_FIELD(json, json_field, field, default_value, optional)
Deserialize.
#define OBJECT_DESERIALIZE_FIELD_PTR_ARRAY(json, json_field, array_field, optional)
Describes reply parameters for the message that is being sent. https://core.telegram....
nl::json toJson() const
Serializes this object to JSON.
void fromJson(const nl::json &json)
Deserializes this object from JSON.
ReplyParameters(const nl::json &json)
std::vector< Ptr< MessageEntity > > quoteEntities
Optional. A JSON-serialized list of special entities that appear in the quote. It can be specified in...
std::int32_t checklistTaskId
Optional. Identifier of the specific checklist task to be replied to.
std::string quote
Optional. Quoted part of the message to be replied to; 0-1024 characters after entities parsing....
std::int32_t messageId
Identifier of the message that will be replied to in the current chat, or in the chat chat_id if it i...
std::string quoteParseMode
Optional. Mode for parsing entities in the quote. See formatting options for more details.
std::variant< std::int64_t, std::string > chatId
Optional. If the message to be replied to is from a different chat, unique identifier for the chat or...
std::int32_t quotePosition
Optional. Position of the quote in the original message in UTF-16 code units.
bool allowSendingWithoutReply
Optional. Pass True if the message should be sent even if the specified message to be replied to is n...
ReplyParameters()=default