| 1641 | } |
| 1642 | |
| 1643 | std::string ProxyRunner::http_withdraw() { |
| 1644 | if (!sc_) { |
| 1645 | return wrap_short_answer_to_http("proxy is disabled"); |
| 1646 | } |
| 1647 | |
| 1648 | if (!sc_->ready_for_withdraw()) { |
| 1649 | return wrap_short_answer_to_http("nothing to withdraw"); |
| 1650 | } |
| 1651 | |
| 1652 | if (running_withdraw_) { |
| 1653 | return wrap_short_answer_to_http("withdraw already running"); |
| 1654 | } |
| 1655 | |
| 1656 | run_withdraw(); |
| 1657 | |
| 1658 | return wrap_short_answer_to_http("request sent"); |
| 1659 | } |
| 1660 | |
| 1661 | std::string ProxyRunner::http_change_worker_model(std::string worker_connection_id, std::string new_model_name) { |
| 1662 | auto R = td::to_integer_safe<td::int64>(worker_connection_id); |
nothing calls this directly
no test coverage detected