summaryrefslogtreecommitdiff
path: root/botd.h
diff options
context:
space:
mode:
authorTrumeet <yuuta@yuuta.moe>2022-04-01 21:13:31 -0700
committerTrumeet <yuuta@yuuta.moe>2022-04-01 21:13:31 -0700
commit318a1ef88bb5ea09ff4cf953908aef5c76735a46 (patch)
tree9cdd8be7679e6a336af7a82ca4947b3ffdac97b2 /botd.h
downloadksyxbot-318a1ef88bb5ea09ff4cf953908aef5c76735a46.tar
ksyxbot-318a1ef88bb5ea09ff4cf953908aef5c76735a46.tar.gz
ksyxbot-318a1ef88bb5ea09ff4cf953908aef5c76735a46.tar.bz2
ksyxbot-318a1ef88bb5ea09ff4cf953908aef5c76735a46.zip
First Commit
Diffstat (limited to 'botd.h')
-rw-r--r--botd.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/botd.h b/botd.h
new file mode 100644
index 0000000..5bdd8fe
--- /dev/null
+++ b/botd.h
@@ -0,0 +1,29 @@
+/*
+ * Created by yuuta on 4/1/22.
+ */
+
+#ifndef KSYXBOT_BOTD_H
+#define KSYXBOT_BOTD_H
+
+#include <stdbool.h>
+
+#define ADMIN 2122005901
+#define CHANNEL -1001794945713
+
+extern int td;
+
+typedef struct cmd_s {
+ const char *bot_token;
+ int api_id;
+ const char *api_hash;
+ bool test_dc;
+ const char *td_path;
+ bool logout;
+ const char *db_path;
+} cmd_t;
+
+extern cmd_t cmd;
+
+void parse_cmdline(int argc, char **argv);
+
+#endif /* KSYXBOT_BOTD_H */