mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2025-02-20 15:36:48 +01:00
Add more fields to WriteAccessAllowed.
This commit is contained in:
parent
2b43e08dca
commit
d5783a1545
@ -1764,6 +1764,10 @@ class Client::JsonWriteAccessAllowed final : public td::Jsonable {
|
|||||||
auto object = scope->enter_object();
|
auto object = scope->enter_object();
|
||||||
if (write_access_allowed_->web_app_ != nullptr) {
|
if (write_access_allowed_->web_app_ != nullptr) {
|
||||||
object("web_app_name", write_access_allowed_->web_app_->short_name_);
|
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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user