tgbotxx 1.2.9.5
Telegram Bot C++ Library
Loading...
Searching...
No Matches
ChatOwnerChanged.hpp
Go to the documentation of this file.
1#pragma once
4
5namespace tgbotxx {
9 ChatOwnerChanged() = default;
10 explicit ChatOwnerChanged(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, false);
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 an ownership change in the chat. https://core.telegram....
ChatOwnerChanged(const nl::json &json)
void fromJson(const nl::json &json)
Deserializes this object from JSON.
nl::json toJson() const
Serializes this object to JSON.
Ptr< User > newOwner
The new owner of the chat.