aboutsummaryrefslogtreecommitdiff
path: root/main.c
blob: 6cd6c165c660819cb643a94254233832ddb8068f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "mutebot.h"
#include "tdutils.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>

int post_auth() {
    return 0;
}

int main(int argc, char **argv) {
    int r = 0;
    if ((r = cmdline_init(argc, argv))) goto cleanup;
    if ((r = td_init())) goto cleanup;
    td_loop();
    goto cleanup;
    cleanup:
    td_free();
    return r;
}