MCPcopy Create free account
hub / github.com/TelegramMessenger/cocoon / process_boolean

Function process_boolean

runners/helpers/ValidateRequest.cpp:831–836  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

829}
830
831static td::Status process_boolean(Ctx &ctx) {
832 if (!ctx.is_boolean()) {
833 return td::Status::Error(ton::ErrorCode::protoviolation, PSTRING() << ctx.path() << " must be a boolean");
834 }
835 return td::Status::OK();
836}
837
838template <typename F>
839static td::Status process_string_or_array(Ctx &ctx, F &&run) {

Callers

nothing calls this directly

Calls 1

is_booleanMethod · 0.45

Tested by

no test coverage detected