#ifndef _TDUTILS_H
#define _TDUTILS_H
#include
#include
extern long long my_id;
extern bool closing;
void td_init();
void td_free();
void td_loop();
void tg_close();
int td_send(void *func, void (*cb)(bool, struct TdObject *, struct TdError *, void *), void *cb_arg);
void fetal_cb(bool successful, struct TdObject *result, struct TdError *error, void *cb_arg);
int post_auth();
int handle_message(struct TdUpdateNewMessage *update);
int handle_inline(struct TdUpdateNewInlineQuery * update);
#endif /* _TDUTILS_H */ |