diff --git a/loop.c b/loop.c index 1b2b408..c2b6348 100644 --- a/loop.c +++ b/loop.c @@ -723,6 +723,7 @@ int loop (void) { tgl_set_timer_methods (TLS, &tgl_libevent_timers); assert (TLS->timer_methods); tgl_set_download_directory (TLS, get_downloads_directory ()); + tgl_register_app_id (TLS, TELEGRAM_CLI_APP_ID, TELEGRAM_CLI_APP_HASH); tgl_init (TLS); if (binlog_enabled) { diff --git a/loop.h b/loop.h index ee0f1c5..e580118 100644 --- a/loop.h +++ b/loop.h @@ -18,6 +18,9 @@ */ #ifndef __LOOP_H__ #define __LOOP_H__ +#define TELEGRAM_CLI_APP_HASH "36722c72256a24c1225de00eb6a1ca74" +#define TELEGRAM_CLI_APP_ID 2899 + int loop (void); void do_halt (int error); void net_loop (int flags, int (*end)(void)); diff --git a/tgl b/tgl index 343cf63..a2403df 160000 --- a/tgl +++ b/tgl @@ -1 +1 @@ -Subproject commit 343cf63ead5872975c4e24ac936dc2b255dcf7fc +Subproject commit a2403df85b430311feb6a8c214428802800b1633