35 nl::json json = nl::json::object();
#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.
Describes the options used for link preview generation. https://core.telegram.org/bots/api#linkprevie...
nl::json toJson() const
Serializes this object to JSON.
bool preferSmallMedia
Optional. True, if the media in the link preview is supposed to be shrunk; ignored if the URL isn't e...
LinkPreviewOptions()=default
bool showAboveText
Optional. True, if the link preview must be shown above the message text; otherwise,...
std::string url
Optional. URL to use for the link preview. If empty, then the first URL found in the message text wil...
LinkPreviewOptions(const nl::json &json)
void fromJson(const nl::json &json)
Deserializes this object from JSON.
bool isDisabled
Optional. True, if the link preview is disabled.
bool preferLargeMedia
Optional. True, if the media in the link preview is supposed to be enlarged; ignored if the URL isn't...