Commit 7f83a124 authored by vvaltman's avatar vvaltman

Use new version of libtgl

parent cbf95249
...@@ -723,6 +723,7 @@ int loop (void) { ...@@ -723,6 +723,7 @@ int loop (void) {
tgl_set_timer_methods (TLS, &tgl_libevent_timers); tgl_set_timer_methods (TLS, &tgl_libevent_timers);
assert (TLS->timer_methods); assert (TLS->timer_methods);
tgl_set_download_directory (TLS, get_downloads_directory ()); tgl_set_download_directory (TLS, get_downloads_directory ());
tgl_register_app_id (TLS, TELEGRAM_CLI_APP_ID, TELEGRAM_CLI_APP_HASH);
tgl_init (TLS); tgl_init (TLS);
if (binlog_enabled) { if (binlog_enabled) {
......
...@@ -18,6 +18,9 @@ ...@@ -18,6 +18,9 @@
*/ */
#ifndef __LOOP_H__ #ifndef __LOOP_H__
#define __LOOP_H__ #define __LOOP_H__
#define TELEGRAM_CLI_APP_HASH "36722c72256a24c1225de00eb6a1ca74"
#define TELEGRAM_CLI_APP_ID 2899
int loop (void); int loop (void);
void do_halt (int error); void do_halt (int error);
void net_loop (int flags, int (*end)(void)); void net_loop (int flags, int (*end)(void));
......
Subproject commit 343cf63ead5872975c4e24ac936dc2b255dcf7fc Subproject commit a2403df85b430311feb6a8c214428802800b1633
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment