tg_cli: add addadmin chat member status.

GitOrigin-RevId: e87588a4f1d3bd484b33aed530cd9f1a25e59ad6
This commit is contained in:
levlam 2020-10-26 23:11:27 +03:00
parent 36492d3af9
commit e94e4b8dff

View File

@ -3835,6 +3835,9 @@ class CliClient final : public Actor {
} else if (status_str == "anonadmin") {
status = td_api::make_object<td_api::chatMemberStatusAdministrator>("anon", false, false, false, false, false,
false, false, false, false, true);
} else if (status_str == "addadmin") {
status = td_api::make_object<td_api::chatMemberStatusAdministrator>("anon", false, false, false, false, false,
false, false, false, true, false);
} else if (status_str == "admin") {
status = td_api::make_object<td_api::chatMemberStatusAdministrator>("", true, true, true, true, true, true,
true, true, true, false);