Skip to content

Commit 0f4029c

Browse files
authored
Update Client.cpp.patch to v9.5
1 parent 5795795 commit 0f4029c

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

add_proxy/Client.cpp.patch

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
--- Client.cpp 2026-02-14 14:44:58.197143847 +0300
2-
+++ ../Client.cpp 2026-02-14 14:46:20.790511432 +0300
3-
@@ -8542,6 +8542,32 @@
1+
--- a/telegram-bot-api/Client.cpp
2+
+++ b/telegram-bot-api/Client.cpp
3+
@@ -8542,6 +8542,32 @@ void Client::on_update_authorization_state() {
44
td::make_unique<TdOnOkCallback>());
55
}
66

@@ -21,9 +21,9 @@
2121
+
2222
+ if (proxy_type != nullptr) {
2323
+ auto proxy_obj = make_object<td_api::proxy>(
24-
+ parameters_->proxy_server_,
25-
+ parameters_->proxy_port_,
26-
+ std::move(proxy_type)
24+
+ parameters_->proxy_server_,
25+
+ parameters_->proxy_port_,
26+
+ std::move(proxy_type)
2727
+ );
2828
+ send_request(make_object<td_api::addProxy>(std::move(proxy_obj), true),
2929
+ td::make_unique<TdOnOkCallback>());
@@ -32,4 +32,4 @@
3232
+
3333
auto request = make_object<td_api::setTdlibParameters>();
3434
request->use_test_dc_ = is_test_dc_;
35-
request->database_directory_ = dir_;
35+
request->database_directory_ = dir_;

0 commit comments

Comments
 (0)