From d5783a1545c5627b808b5b970bb55150c3f70b41 Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 19 Sep 2023 20:37:10 +0300 Subject: [PATCH] Add more fields to WriteAccessAllowed. --- telegram-bot-api/Client.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index 2762826..149e7af 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -1764,6 +1764,10 @@ class Client::JsonWriteAccessAllowed final : public td::Jsonable { auto object = scope->enter_object(); if (write_access_allowed_->web_app_ != nullptr) { object("web_app_name", write_access_allowed_->web_app_->short_name_); + } else if (write_access_allowed_->by_request_) { + object("from_request", td::JsonTrue()); + } else { + object("from_attachment_menu", td::JsonTrue()); } }