diff options
Diffstat (limited to 'tdutils.h')
-rw-r--r-- | tdutils.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tdutils.h b/tdutils.h new file mode 100644 index 0000000..c0653d5 --- /dev/null +++ b/tdutils.h @@ -0,0 +1,28 @@ +#ifndef _TDUTILS_H +#define _TDUTILS_H + +#include <td/telegram/td_c_client.h> +#include <stdbool.h> + +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 */
\ No newline at end of file |