From 7febd857d6d6084e291f80667ccbd0373959f637 Mon Sep 17 00:00:00 2001 From: levlam Date: Sat, 4 May 2024 00:57:31 +0300 Subject: [PATCH] Add ChatMemberUpdated.via_join_request. --- telegram-bot-api/Client.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index 7778364..3502e19 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -3655,6 +3655,9 @@ class Client::JsonChatMemberUpdated final : public td::Jsonable { if (update_->invite_link_ != nullptr) { object("invite_link", JsonChatInviteLink(update_->invite_link_.get(), client_)); } + if (update_->via_join_request_) { + object("via_join_request", td::JsonTrue()); + } if (update_->via_chat_folder_invite_link_) { object("via_chat_folder_invite_link", td::JsonTrue()); }