tgbotxx 1.2.9.5
Telegram Bot C++ Library
Loading...
Searching...
No Matches
ChatOwnerLeft.hpp
Go to the documentation of this file.
1#pragma once
4
5namespace tgbotxx {
8 struct ChatOwnerLeft {
9 ChatOwnerLeft() = default;
10 explicit ChatOwnerLeft(const nl::json& json) {
12 }
13
16
17
20 nl::json toJson() const {
21 nl::json json = nl::json::object();
23 return json;
24 }
25
27 void fromJson(const nl::json& json) {
28 OBJECT_DESERIALIZE_FIELD_PTR(json, "new_owner", newOwner, true);
29 }
30 };
31}
#define OBJECT_SERIALIZE_FIELD_PTR(json, json_field, field)
Definition Object.hpp:32
#define OBJECT_DESERIALIZE_FIELD_PTR(json, json_field, field, optional)
Definition Object.hpp:92
std::shared_ptr< T > Ptr
Definition Ptr.hpp:6
Describes a service message about the chat owner leaving the chat. https://core.telegram....
void fromJson(const nl::json &json)
Deserializes this object from JSON.
ChatOwnerLeft(const nl::json &json)
nl::json toJson() const
Serializes this object to JSON.
Ptr< User > newOwner
Optional. The user which will be the new owner of the chat if the previous owner does not return to t...