From 7f83a1246ea6b444148b3753ba942326250c2814 Mon Sep 17 00:00:00 2001 From: vvaltman Date: Mon, 17 Nov 2014 23:21:25 +0300 Subject: [PATCH] Use new version of libtgl --- loop.c | 1 + loop.h | 3 +++ tgl | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) 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