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

Method receive_answer_part

runners/proxy/ProxyRunningRequest.cpp:199–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197}
198
199void ProxyRunningRequest::receive_answer_part(ton::tl_object_ptr<cocoon_api::proxy_queryAnswerPart> ans) {
200 ton::tl_object_ptr<cocoon_api::proxy_queryFinalInfo> final_info;
201 if (ans->is_completed_) {
202 final_info = create_final_info_from_old(std::move(ans->tokens_used_));
203 }
204 bool has_final_info = final_info != nullptr;
205 receive_answer_ex_impl(*ton::create_tl_object<cocoon_api::proxy_queryAnswerPartEx>(
206 ans->request_id_, std::move(ans->answer_), has_final_info ? 1 : 0, std::move(final_info)));
207}
208
209void ProxyRunningRequest::receive_answer_part_error(ton::tl_object_ptr<cocoon_api::proxy_queryAnswerPartError> ans) {
210 auto final_info = create_final_info_from_old(std::move(ans->tokens_used_));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected