diff options
| author | Tolmachev Igor <me@igorek.dev> | 2025-10-06 12:20:23 +0300 |
|---|---|---|
| committer | Tolmachev Igor <me@igorek.dev> | 2025-10-06 12:33:13 +0300 |
| commit | 2b7ea39b1a367586d5fc062e6d0536b0463ff890 (patch) | |
| tree | 5358e08d8069f7bb35ef214ed3e74fe08104a80c /main.cpp | |
| download | auto_telegram_reaction-2b7ea39b1a367586d5fc062e6d0536b0463ff890.tar.gz auto_telegram_reaction-2b7ea39b1a367586d5fc062e6d0536b0463ff890.zip | |
Init project
Diffstat (limited to 'main.cpp')
| -rw-r--r-- | main.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..f70e6c0 --- /dev/null +++ b/main.cpp | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | #include "client.cpp" | ||
| 2 | #include <cstdlib> | ||
| 3 | #include <iostream> | ||
| 4 | #include <ostream> | ||
| 5 | |||
| 6 | int main(int argc, char *argv[]) { | ||
| 7 | td::ClientManager::execute( | ||
| 8 | td::td_api::make_object<td::td_api::setLogVerbosityLevel>(0)); | ||
| 9 | |||
| 10 | if (argc != 3) { | ||
| 11 | std::cout << "Must be exactly 2 arguments (user_id and reaction_emoji)" | ||
| 12 | << std::endl; | ||
| 13 | return 1; | ||
| 14 | } | ||
| 15 | |||
| 16 | AutoReactClient client(std::atoi(argv[1]), argv[2]); | ||
| 17 | client.authorize(); | ||
| 18 | client.loop(); | ||
| 19 | |||
| 20 | return 0; | ||
| 21 | } | ||
