diff options
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 | } | ||
