From fcfb194c549c5d2d56d296fc6f6ea80c504f6123 Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 9 Mar 2021 13:24:17 +0300 Subject: [PATCH] Use "from" instead of "actor" for consistency with most other updates. --- telegram-bot-api/Client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index d0e3482..fa0a95c 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -2277,7 +2277,7 @@ class Client::JsonChatMemberUpdated : public Jsonable { void store(JsonValueScope *scope) const { auto object = scope->enter_object(); object("chat", JsonChat(update_->chat_id_, false, client_)); - object("actor", JsonUser(update_->actor_user_id_, client_)); + object("from", JsonUser(update_->actor_user_id_, client_)); object("date", update_->date_); auto chat_type = client_->get_chat_type(update_->chat_id_); object("old_chat_member", JsonChatMember(update_->old_chat_member_.get(), chat_type, client_));