From 2b7ea39b1a367586d5fc062e6d0536b0463ff890 Mon Sep 17 00:00:00 2001 From: Tolmachev Igor Date: Mon, 6 Oct 2025 12:20:23 +0300 Subject: Init project --- main.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 main.cpp (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..f70e6c0 --- /dev/null +++ b/main.cpp @@ -0,0 +1,21 @@ +#include "client.cpp" +#include +#include +#include + +int main(int argc, char *argv[]) { + td::ClientManager::execute( + td::td_api::make_object(0)); + + if (argc != 3) { + std::cout << "Must be exactly 2 arguments (user_id and reaction_emoji)" + << std::endl; + return 1; + } + + AutoReactClient client(std::atoi(argv[1]), argv[2]); + client.authorize(); + client.loop(); + + return 0; +} -- cgit v1.2.3