diff options
author | Trumeet <yuuta@yuuta.moe> | 2021-10-12 14:12:27 -0700 |
---|---|---|
committer | Trumeet <yuuta@yuuta.moe> | 2021-10-12 14:12:27 -0700 |
commit | 612fa53409ae24bf4b17e87a0c52e63658b59014 (patch) | |
tree | f05554fb57ea2162333d8918b0a3498550707fb7 /example.c | |
parent | 5eb340686e89c77411dc9c2b301db02b69739676 (diff) | |
download | easy-tg-612fa53409ae24bf4b17e87a0c52e63658b59014.tar easy-tg-612fa53409ae24bf4b17e87a0c52e63658b59014.tar.gz easy-tg-612fa53409ae24bf4b17e87a0c52e63658b59014.tar.bz2 easy-tg-612fa53409ae24bf4b17e87a0c52e63658b59014.zip |
handle updateConnectionState
Diffstat (limited to 'example.c')
-rw-r--r-- | example.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -174,6 +174,9 @@ int main(int argc, char **argv) /* Error code is stored in tg_errno. */ printf("Fetal: %d\n", tg_errno); break; + case TG_CONNECTION: /* Telegram connection status is changed. */ + printf("[CONNECTION]: %s (%d)\n", tg_reg1, tg_errno); + break; default: printf("???\n"); break; |