mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2024-11-30 15:42:54 +01:00
Use "from" instead of "actor" for consistency with most other updates.
This commit is contained in:
parent
871cbcfeec
commit
fcfb194c54
@ -2277,7 +2277,7 @@ class Client::JsonChatMemberUpdated : public Jsonable {
|
|||||||
void store(JsonValueScope *scope) const {
|
void store(JsonValueScope *scope) const {
|
||||||
auto object = scope->enter_object();
|
auto object = scope->enter_object();
|
||||||
object("chat", JsonChat(update_->chat_id_, false, client_));
|
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_);
|
object("date", update_->date_);
|
||||||
auto chat_type = client_->get_chat_type(update_->chat_id_);
|
auto chat_type = client_->get_chat_type(update_->chat_id_);
|
||||||
object("old_chat_member", JsonChatMember(update_->old_chat_member_.get(), chat_type, client_));
|
object("old_chat_member", JsonChatMember(update_->old_chat_member_.get(), chat_type, client_));
|
||||||
|
Loading…
Reference in New Issue
Block a user