diff --git a/telegram-purple.c b/telegram-purple.c index bdb47f8..f6dfd41 100644 --- a/telegram-purple.c +++ b/telegram-purple.c @@ -423,6 +423,7 @@ static void tgprpl_login (PurpleAccount * acct) { tgl_set_net_methods (TLS, &tgp_conn_methods); tgl_set_timer_methods (TLS, &tgp_timers); tgl_set_callback (TLS, &tgp_callback); + tgl_register_app_id (TLS, TGP_APP_ID, TGP_APP_HASH); tgl_init (TLS); purple_connection_set_state (conn->gc, PURPLE_CONNECTING); diff --git a/telegram-purple.h b/telegram-purple.h index e4cd7d1..2119a2c 100644 --- a/telegram-purple.h +++ b/telegram-purple.h @@ -36,6 +36,9 @@ #include #include #include + +#define TGP_APP_HASH "99428c722d0ed59b9cd844e4577cb4bb" +#define TGP_APP_ID 16154 typedef struct { struct tgl_state *TLS; diff --git a/tgl b/tgl index 3cf1f76..a2403df 160000 --- a/tgl +++ b/tgl @@ -1 +1 @@ -Subproject commit 3cf1f76832e7ec758b559860d77d226455a9a83e +Subproject commit a2403df85b430311feb6a8c214428802800b1633