Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/majn/tgl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tgl.h
diff options
context:
space:
mode:
authorvvaltman <vvaltman@neon>2015-05-27 17:15:54 +0300
committervvaltman <vvaltman@neon>2015-05-27 17:15:54 +0300
commit5d95f33ed351da940430be05097c2a2819836065 (patch)
tree128d78023b50bea2291594b5559a6e42c1acca72 /tgl.h
parenta790e6c148fca005eebf81527003b7405eccc01a (diff)
added block/unblock methods
Diffstat (limited to 'tgl.h')
-rw-r--r--tgl.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/tgl.h b/tgl.h
index 9a22e1f..fb65fd8 100644
--- a/tgl.h
+++ b/tgl.h
@@ -46,7 +46,7 @@
#define TG_SERVER_TEST_DEFAULT 2
// JUST RANDOM STRING
-#define TGL_VERSION "2.0.1"
+#define TGL_VERSION "2.0.2"
#define TGL_ENCRYPTED_LAYER 17
#define TGL_SCHEME_LAYER 28
@@ -479,6 +479,11 @@ void tgl_do_del_contact (struct tgl_state *TLS, tgl_peer_id_t id, void (*callbac
// imports card exported by another user
void tgl_do_import_card (struct tgl_state *TLS, int size, int *card, void (*callback)(struct tgl_state *TLS, void *callback_extra, int success, struct tgl_user *U), void *callback_extra);
+// blocks user
+void tgl_do_block_user (struct tgl_state *TLS, tgl_peer_id_t id, void (*callback)(struct tgl_state *TLS, void *callback_extra, int success), void *callback_extra);
+
+// unblocks blocked user
+void tgl_do_unblock_user (struct tgl_state *TLS, tgl_peer_id_t id, void (*callback)(struct tgl_state *TLS, void *callback_extra, int success), void *callback_extra);
/* }}} */
/* {{{ WORKING WITH SECRET CHATS */