summaryrefslogtreecommitdiff
path: root/botd.h
blob: 62efcaeca435d0a3b2414bbd0ecee30daac1050b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
 * Created by yuuta on 4/1/22.
 */

#ifndef KSYXBOT_BOTD_H
#define KSYXBOT_BOTD_H

#include <stdbool.h>
#include <time.h>

#define ADMIN 230103978
#define CHANNEL -1001794945713

extern time_t start_time;

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 */