Skip to content

Commit

Permalink
Update example
Browse files Browse the repository at this point in the history
  • Loading branch information
batatsar committed Sep 10, 2022
1 parent 2c79eeb commit aa478fc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion example/cpp/td_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class TdExample {
} else if (!are_authorized_) {
process_response(client_manager_->receive(10));
} else {
std::this_thread::sleep_for(10000);
std::this_thread::sleep_for(10000ms);
// std::cout << "Enter action [q] quit [u] check for updates and request results [c] show chats [m <chat_id> "
// "<text>] send message [me] show self [l] logout: "
// << std::endl;
Expand Down Expand Up @@ -103,6 +103,10 @@ class TdExample {
std::cout << "Logging out..." << std::endl;
send_query(td_api::make_object<td_api::logOut>(), {});
} else if (action == "m") {
std::string line;
std::getline(std::cin, line);
std::istringstream ss(line);

std::int64_t chat_id;
ss >> chat_id;
ss.get();
Expand Down

0 comments on commit aa478fc

Please sign in to comment.