diff options
Diffstat (limited to 'protocols/Telegram/tdlib/td/example/cpp')
4 files changed, 8 insertions, 8 deletions
diff --git a/protocols/Telegram/tdlib/td/example/cpp/CMakeLists.txt b/protocols/Telegram/tdlib/td/example/cpp/CMakeLists.txt index 6ad8be44b7..19c4d11011 100644 --- a/protocols/Telegram/tdlib/td/example/cpp/CMakeLists.txt +++ b/protocols/Telegram/tdlib/td/example/cpp/CMakeLists.txt @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.4 FATAL_ERROR) project(TdExample VERSION 1.0 LANGUAGES CXX) -find_package(Td 1.8.8 REQUIRED) +find_package(Td 1.8.14 REQUIRED) add_executable(tdjson_example tdjson_example.cpp) target_link_libraries(tdjson_example PRIVATE Td::TdJson) diff --git a/protocols/Telegram/tdlib/td/example/cpp/README.md b/protocols/Telegram/tdlib/td/example/cpp/README.md index 1658ade6fc..c8ee34d4fa 100644 --- a/protocols/Telegram/tdlib/td/example/cpp/README.md +++ b/protocols/Telegram/tdlib/td/example/cpp/README.md @@ -8,9 +8,9 @@ cd build cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=../example/cpp/td .. cmake --build . --target install ``` -Also see [building](https://github.com/tdlib/td#building) for additional details on TDLib building. +Also, see [building](https://github.com/tdlib/td#building) for additional details on TDLib building. -Then you can build the examples: +After this you can build the examples: ``` cd <path to TDLib sources>/example/cpp mkdir build diff --git a/protocols/Telegram/tdlib/td/example/cpp/td_example.cpp b/protocols/Telegram/tdlib/td/example/cpp/td_example.cpp index 3b6cf42edc..b30afa8070 100644 --- a/protocols/Telegram/tdlib/td/example/cpp/td_example.cpp +++ b/protocols/Telegram/tdlib/td/example/cpp/td_example.cpp @@ -1,5 +1,5 @@ // -// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2022 +// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2023 // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) @@ -222,8 +222,8 @@ class TdExample { if (update_new_message.message_->content_->get_id() == td_api::messageText::ID) { text = static_cast<td_api::messageText &>(*update_new_message.message_->content_).text_->text_; } - std::cout << "Got message: [chat_id:" << chat_id << "] [from:" << sender_name << "] [" << text - << "]" << std::endl; + std::cout << "Receive message: [chat_id:" << chat_id << "] [from:" << sender_name << "] [" + << text << "]" << std::endl; }, [](auto &update) {})); } @@ -242,7 +242,7 @@ class TdExample { overloaded( [this](td_api::authorizationStateReady &) { are_authorized_ = true; - std::cout << "Got authorization" << std::endl; + std::cout << "Authorization is completed" << std::endl; }, [this](td_api::authorizationStateLoggingOut &) { are_authorized_ = false; diff --git a/protocols/Telegram/tdlib/td/example/cpp/tdjson_example.cpp b/protocols/Telegram/tdlib/td/example/cpp/tdjson_example.cpp index dcf203f2e9..29a9be04be 100644 --- a/protocols/Telegram/tdlib/td/example/cpp/tdjson_example.cpp +++ b/protocols/Telegram/tdlib/td/example/cpp/tdjson_example.cpp @@ -1,5 +1,5 @@ // -// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2022 +// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2023 // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |