summaryrefslogtreecommitdiff
path: root/protocols/Telegram/tgl/auto/auto-autocomplete.c
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Telegram/tgl/auto/auto-autocomplete.c')
-rw-r--r--protocols/Telegram/tgl/auto/auto-autocomplete.c29968
1 files changed, 29968 insertions, 0 deletions
diff --git a/protocols/Telegram/tgl/auto/auto-autocomplete.c b/protocols/Telegram/tgl/auto/auto-autocomplete.c
new file mode 100644
index 0000000000..e0f5d4a990
--- /dev/null
+++ b/protocols/Telegram/tgl/auto/auto-autocomplete.c
@@ -0,0 +1,29968 @@
+#ifdef _MSC_VER
+#include "..\auto.h"
+#include "..\mtproto-common.h"
+#include "auto-autocomplete.h"
+#include "..\auto-static-autocomplete.c"
+#else
+#include "auto.h"
+#include "mtproto-common.h"
+#include "auto/auto-autocomplete.h"
+#include "auto-static-autocomplete.c"
+#endif
+#include <assert.h>
+int autocomplete_constructor_account_days_t_t_l (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xb8d0afdf && T->type->name != 0x472f5020)) { return -1; }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_audio_empty (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x9fc5ec4e && T->type->name != 0x603a13b1)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_audio (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x9fc5ec4e && T->type->name != 0x603a13b1)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "access_hash", cur_token_real_len)) {
+ set_autocomplete_string ("access_hash");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "access_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "user_id", cur_token_real_len)) {
+ set_autocomplete_string ("user_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "user_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "duration", cur_token_real_len)) {
+ set_autocomplete_string ("duration");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "duration", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field5) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "mime_type", cur_token_real_len)) {
+ set_autocomplete_string ("mime_type");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "mime_type", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field6) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "size", cur_token_real_len)) {
+ set_autocomplete_string ("size");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "size", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field7 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field7) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "dc_id", cur_token_real_len)) {
+ set_autocomplete_string ("dc_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "dc_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field8 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field8) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_authorization (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x7bf2e6f6 && T->type->name != 0x840d1909)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "hash", cur_token_real_len)) {
+ set_autocomplete_string ("hash");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "flags", cur_token_real_len)) {
+ set_autocomplete_string ("flags");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "flags", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "device_model", cur_token_real_len)) {
+ set_autocomplete_string ("device_model");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "device_model", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "platform", cur_token_real_len)) {
+ set_autocomplete_string ("platform");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "platform", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 14 && !cur_token_quoted && !memcmp (cur_token, "system_version", cur_token_real_len)) {
+ set_autocomplete_string ("system_version");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 14 && !memcmp (cur_token, "system_version", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field5) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "api_id", cur_token_real_len)) {
+ set_autocomplete_string ("api_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "api_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field6) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "app_name", cur_token_real_len)) {
+ set_autocomplete_string ("app_name");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "app_name", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field7 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field7) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "app_version", cur_token_real_len)) {
+ set_autocomplete_string ("app_version");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "app_version", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field8 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field8) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "date_created", cur_token_real_len)) {
+ set_autocomplete_string ("date_created");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "date_created", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field9 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field9) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "date_active", cur_token_real_len)) {
+ set_autocomplete_string ("date_active");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "date_active", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field10 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field10) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "ip", cur_token_real_len)) {
+ set_autocomplete_string ("ip");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "ip", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field11 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field11) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "country", cur_token_real_len)) {
+ set_autocomplete_string ("country");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "country", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field12 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field12) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "region", cur_token_real_len)) {
+ set_autocomplete_string ("region");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "region", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field13 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field13) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_bool_false (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x250be282 && T->type->name != 0xdaf41d7d)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_bool_true (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x250be282 && T->type->name != 0xdaf41d7d)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_bot_command (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x75e7ea6c && T->type->name != 0x8a181593)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "command", cur_token_real_len)) {
+ set_autocomplete_string ("command");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "command", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "description", cur_token_real_len)) {
+ set_autocomplete_string ("description");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "description", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_bot_command_old (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x75e7ea6c && T->type->name != 0x8a181593)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "command", cur_token_real_len)) {
+ set_autocomplete_string ("command");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "command", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "params", cur_token_real_len)) {
+ set_autocomplete_string ("params");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "params", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "description", cur_token_real_len)) {
+ set_autocomplete_string ("description");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "description", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_bot_info_empty (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xb2e16f93 && T->type->name != 0x4d1e906c)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_bot_info (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xb2e16f93 && T->type->name != 0x4d1e906c)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "user_id", cur_token_real_len)) {
+ set_autocomplete_string ("user_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "user_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "version", cur_token_real_len)) {
+ set_autocomplete_string ("version");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "version", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "share_text", cur_token_real_len)) {
+ set_autocomplete_string ("share_text");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "share_text", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "description", cur_token_real_len)) {
+ set_autocomplete_string ("description");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "description", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "commands", cur_token_real_len)) {
+ set_autocomplete_string ("commands");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "commands", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x75e7ea6c, .id = "BotCommand", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field5) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_bytes (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x0ee1379f && T->type->name != 0xf11ec860)) { return -1; }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_chat_empty (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x7bd865dc && T->type->name != 0x84279a23)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_chat (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x7bd865dc && T->type->name != 0x84279a23)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "title", cur_token_real_len)) {
+ set_autocomplete_string ("title");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "title", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "photo", cur_token_real_len)) {
+ set_autocomplete_string ("photo");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "photo", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x56922676, .id = "ChatPhoto", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_chat_photo (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 18 && !cur_token_quoted && !memcmp (cur_token, "participants_count", cur_token_real_len)) {
+ set_autocomplete_string ("participants_count");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 18 && !memcmp (cur_token, "participants_count", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field5) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "left", cur_token_real_len)) {
+ set_autocomplete_string ("left");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "left", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bool (field6) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "version", cur_token_real_len)) {
+ set_autocomplete_string ("version");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "version", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field7 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field7) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_chat_forbidden (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x7bd865dc && T->type->name != 0x84279a23)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "title", cur_token_real_len)) {
+ set_autocomplete_string ("title");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "title", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_geo_chat (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x7bd865dc && T->type->name != 0x84279a23)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "access_hash", cur_token_real_len)) {
+ set_autocomplete_string ("access_hash");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "access_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "title", cur_token_real_len)) {
+ set_autocomplete_string ("title");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "title", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "address", cur_token_real_len)) {
+ set_autocomplete_string ("address");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "address", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "venue", cur_token_real_len)) {
+ set_autocomplete_string ("venue");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "venue", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field5) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "geo", cur_token_real_len)) {
+ set_autocomplete_string ("geo");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "geo", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x315e0a53, .id = "GeoPoint", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_geo_point (field6) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "photo", cur_token_real_len)) {
+ set_autocomplete_string ("photo");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "photo", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field7 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x56922676, .id = "ChatPhoto", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_chat_photo (field7) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 18 && !cur_token_quoted && !memcmp (cur_token, "participants_count", cur_token_real_len)) {
+ set_autocomplete_string ("participants_count");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 18 && !memcmp (cur_token, "participants_count", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field8 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field8) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field9 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field9) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "checked_in", cur_token_real_len)) {
+ set_autocomplete_string ("checked_in");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "checked_in", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field10 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bool (field10) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "version", cur_token_real_len)) {
+ set_autocomplete_string ("version");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "version", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field11 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field11) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_chat_full (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x2e02a614 && T->type->name != 0xd1fd59eb)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "participants", cur_token_real_len)) {
+ set_autocomplete_string ("participants");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "participants", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x77930f9f, .id = "ChatParticipants", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_chat_participants (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "chat_photo", cur_token_real_len)) {
+ set_autocomplete_string ("chat_photo");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "chat_photo", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xc207550a, .id = "Photo", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_photo (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 15 && !cur_token_quoted && !memcmp (cur_token, "notify_settings", cur_token_real_len)) {
+ set_autocomplete_string ("notify_settings");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 15 && !memcmp (cur_token, "notify_settings", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xfdf894fc, .id = "PeerNotifySettings", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_peer_notify_settings (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 15 && !cur_token_quoted && !memcmp (cur_token, "exported_invite", cur_token_real_len)) {
+ set_autocomplete_string ("exported_invite");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 15 && !memcmp (cur_token, "exported_invite", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x95f132d5, .id = "ExportedChatInvite", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_exported_chat_invite (field5) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "bot_info", cur_token_real_len)) {
+ set_autocomplete_string ("bot_info");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "bot_info", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xb2e16f93, .id = "BotInfo", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field6) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_chat_invite_already (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x94f910b1 && T->type->name != 0x6b06ef4e)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "chat", cur_token_real_len)) {
+ set_autocomplete_string ("chat");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "chat", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x7bd865dc, .id = "Chat", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_chat (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_chat_invite (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x94f910b1 && T->type->name != 0x6b06ef4e)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "title", cur_token_real_len)) {
+ set_autocomplete_string ("title");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "title", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_chat_located (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x3631cf4c && T->type->name != 0xc9ce30b3)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "chat_id", cur_token_real_len)) {
+ set_autocomplete_string ("chat_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "chat_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "distance", cur_token_real_len)) {
+ set_autocomplete_string ("distance");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "distance", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_chat_participant (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xc8d7493e && T->type->name != 0x3728b6c1)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "user_id", cur_token_real_len)) {
+ set_autocomplete_string ("user_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "user_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "inviter_id", cur_token_real_len)) {
+ set_autocomplete_string ("inviter_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "inviter_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_chat_participants_forbidden (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x77930f9f && T->type->name != 0x886cf060)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "chat_id", cur_token_real_len)) {
+ set_autocomplete_string ("chat_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "chat_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_chat_participants (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x77930f9f && T->type->name != 0x886cf060)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "chat_id", cur_token_real_len)) {
+ set_autocomplete_string ("chat_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "chat_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "admin_id", cur_token_real_len)) {
+ set_autocomplete_string ("admin_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "admin_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "participants", cur_token_real_len)) {
+ set_autocomplete_string ("participants");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "participants", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xc8d7493e, .id = "ChatParticipant", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "version", cur_token_real_len)) {
+ set_autocomplete_string ("version");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "version", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_chat_photo_empty (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x56922676 && T->type->name != 0xa96dd989)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_chat_photo (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x56922676 && T->type->name != 0xa96dd989)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "photo_small", cur_token_real_len)) {
+ set_autocomplete_string ("photo_small");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "photo_small", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x2f8ffb30, .id = "FileLocation", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_file_location (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "photo_big", cur_token_real_len)) {
+ set_autocomplete_string ("photo_big");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "photo_big", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x2f8ffb30, .id = "FileLocation", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_file_location (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_client_d_h_inner_data (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x6643b654 && T->type->name != 0x99bc49ab)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "nonce", cur_token_real_len)) {
+ set_autocomplete_string ("nonce");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "nonce", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x82c93bc6, .id = "Bare_Int128", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int128 (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "server_nonce", cur_token_real_len)) {
+ set_autocomplete_string ("server_nonce");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "server_nonce", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x82c93bc6, .id = "Bare_Int128", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int128 (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "retry_id", cur_token_real_len)) {
+ set_autocomplete_string ("retry_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "retry_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "g_b", cur_token_real_len)) {
+ set_autocomplete_string ("g_b");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "g_b", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field4) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_config (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x4e32b894 && T->type->name != 0xb1cd476b)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "expires", cur_token_real_len)) {
+ set_autocomplete_string ("expires");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "expires", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "test_mode", cur_token_real_len)) {
+ set_autocomplete_string ("test_mode");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "test_mode", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bool (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "this_dc", cur_token_real_len)) {
+ set_autocomplete_string ("this_dc");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "this_dc", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "dc_options", cur_token_real_len)) {
+ set_autocomplete_string ("dc_options");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "dc_options", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x2b1a62f0, .id = "DcOption", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field5) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 13 && !cur_token_quoted && !memcmp (cur_token, "chat_size_max", cur_token_real_len)) {
+ set_autocomplete_string ("chat_size_max");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 13 && !memcmp (cur_token, "chat_size_max", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field6) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 18 && !cur_token_quoted && !memcmp (cur_token, "broadcast_size_max", cur_token_real_len)) {
+ set_autocomplete_string ("broadcast_size_max");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 18 && !memcmp (cur_token, "broadcast_size_max", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field7 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field7) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 19 && !cur_token_quoted && !memcmp (cur_token, "forwarded_count_max", cur_token_real_len)) {
+ set_autocomplete_string ("forwarded_count_max");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 19 && !memcmp (cur_token, "forwarded_count_max", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field8 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field8) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 23 && !cur_token_quoted && !memcmp (cur_token, "online_update_period_ms", cur_token_real_len)) {
+ set_autocomplete_string ("online_update_period_ms");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 23 && !memcmp (cur_token, "online_update_period_ms", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field9 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field9) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 23 && !cur_token_quoted && !memcmp (cur_token, "offline_blur_timeout_ms", cur_token_real_len)) {
+ set_autocomplete_string ("offline_blur_timeout_ms");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 23 && !memcmp (cur_token, "offline_blur_timeout_ms", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field10 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field10) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 23 && !cur_token_quoted && !memcmp (cur_token, "offline_idle_timeout_ms", cur_token_real_len)) {
+ set_autocomplete_string ("offline_idle_timeout_ms");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 23 && !memcmp (cur_token, "offline_idle_timeout_ms", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field11 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field11) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 23 && !cur_token_quoted && !memcmp (cur_token, "online_cloud_timeout_ms", cur_token_real_len)) {
+ set_autocomplete_string ("online_cloud_timeout_ms");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 23 && !memcmp (cur_token, "online_cloud_timeout_ms", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field12 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field12) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 21 && !cur_token_quoted && !memcmp (cur_token, "notify_cloud_delay_ms", cur_token_real_len)) {
+ set_autocomplete_string ("notify_cloud_delay_ms");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 21 && !memcmp (cur_token, "notify_cloud_delay_ms", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field13 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field13) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 23 && !cur_token_quoted && !memcmp (cur_token, "notify_default_delay_ms", cur_token_real_len)) {
+ set_autocomplete_string ("notify_default_delay_ms");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 23 && !memcmp (cur_token, "notify_default_delay_ms", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field14 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field14) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 13 && !cur_token_quoted && !memcmp (cur_token, "chat_big_size", cur_token_real_len)) {
+ set_autocomplete_string ("chat_big_size");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 13 && !memcmp (cur_token, "chat_big_size", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field15 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field15) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 19 && !cur_token_quoted && !memcmp (cur_token, "push_chat_period_ms", cur_token_real_len)) {
+ set_autocomplete_string ("push_chat_period_ms");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 19 && !memcmp (cur_token, "push_chat_period_ms", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field16 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field16) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 15 && !cur_token_quoted && !memcmp (cur_token, "push_chat_limit", cur_token_real_len)) {
+ set_autocomplete_string ("push_chat_limit");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 15 && !memcmp (cur_token, "push_chat_limit", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field17 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field17) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 17 && !cur_token_quoted && !memcmp (cur_token, "disabled_features", cur_token_real_len)) {
+ set_autocomplete_string ("disabled_features");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 17 && !memcmp (cur_token, "disabled_features", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field18 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xae636f24, .id = "DisabledFeature", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field18) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_contact (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xf911c994 && T->type->name != 0x06ee366b)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "user_id", cur_token_real_len)) {
+ set_autocomplete_string ("user_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "user_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "mutual", cur_token_real_len)) {
+ set_autocomplete_string ("mutual");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "mutual", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bool (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_contact_blocked (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x561bc879 && T->type->name != 0xa9e43786)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "user_id", cur_token_real_len)) {
+ set_autocomplete_string ("user_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "user_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_contact_found (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xea879f95 && T->type->name != 0x1578606a)) { return -1; }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_contact_link_unknown (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x522fbc63 && T->type->name != 0xadd0439c)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_contact_link_none (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x522fbc63 && T->type->name != 0xadd0439c)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_contact_link_has_phone (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x522fbc63 && T->type->name != 0xadd0439c)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_contact_link_contact (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x522fbc63 && T->type->name != 0xadd0439c)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_contact_status (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xd3680c61 && T->type->name != 0x2c97f39e)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "user_id", cur_token_real_len)) {
+ set_autocomplete_string ("user_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "user_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "status", cur_token_real_len)) {
+ set_autocomplete_string ("status");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "status", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x76de9570, .id = "UserStatus", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_user_status (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_contact_suggested (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x3de191a1 && T->type->name != 0xc21e6e5e)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "user_id", cur_token_real_len)) {
+ set_autocomplete_string ("user_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "user_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 15 && !cur_token_quoted && !memcmp (cur_token, "mutual_contacts", cur_token_real_len)) {
+ set_autocomplete_string ("mutual_contacts");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 15 && !memcmp (cur_token, "mutual_contacts", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_dc_option_l28 (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x2b1a62f0 && T->type->name != 0xd4e59d0f)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "hostname", cur_token_real_len)) {
+ set_autocomplete_string ("hostname");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "hostname", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "ip_address", cur_token_real_len)) {
+ set_autocomplete_string ("ip_address");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "ip_address", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "port", cur_token_real_len)) {
+ set_autocomplete_string ("port");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "port", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_dc_option (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x2b1a62f0 && T->type->name != 0xd4e59d0f)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "flags", cur_token_real_len)) {
+ set_autocomplete_string ("flags");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "flags", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "ip_address", cur_token_real_len)) {
+ set_autocomplete_string ("ip_address");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "ip_address", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "port", cur_token_real_len)) {
+ set_autocomplete_string ("port");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "port", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_decrypted_message (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x535b7918 && T->type->name != 0xaca486e7)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "random_id", cur_token_real_len)) {
+ set_autocomplete_string ("random_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "random_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "ttl", cur_token_real_len)) {
+ set_autocomplete_string ("ttl");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "ttl", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "message", cur_token_real_len)) {
+ set_autocomplete_string ("message");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "message", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "media", cur_token_real_len)) {
+ set_autocomplete_string ("media");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "media", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x34e0d674, .id = "DecryptedMessageMedia", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_decrypted_message_media (field4) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_decrypted_message_service (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x535b7918 && T->type->name != 0xaca486e7)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "random_id", cur_token_real_len)) {
+ set_autocomplete_string ("random_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "random_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "action", cur_token_real_len)) {
+ set_autocomplete_string ("action");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "action", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4e0eefde, .id = "DecryptedMessageAction", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_decrypted_message_action (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_decrypted_message_action_set_message_t_t_l (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x4e0eefde && T->type->name != 0xb1f11021)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "ttl_seconds", cur_token_real_len)) {
+ set_autocomplete_string ("ttl_seconds");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "ttl_seconds", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_decrypted_message_action_read_messages (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x4e0eefde && T->type->name != 0xb1f11021)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "random_ids", cur_token_real_len)) {
+ set_autocomplete_string ("random_ids");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "random_ids", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_decrypted_message_action_delete_messages (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x4e0eefde && T->type->name != 0xb1f11021)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "random_ids", cur_token_real_len)) {
+ set_autocomplete_string ("random_ids");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "random_ids", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_decrypted_message_action_screenshot_messages (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x4e0eefde && T->type->name != 0xb1f11021)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "random_ids", cur_token_real_len)) {
+ set_autocomplete_string ("random_ids");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "random_ids", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_decrypted_message_action_flush_history (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x4e0eefde && T->type->name != 0xb1f11021)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_decrypted_message_action_resend (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x4e0eefde && T->type->name != 0xb1f11021)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "start_seq_no", cur_token_real_len)) {
+ set_autocomplete_string ("start_seq_no");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "start_seq_no", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "end_seq_no", cur_token_real_len)) {
+ set_autocomplete_string ("end_seq_no");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "end_seq_no", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_decrypted_message_action_notify_layer (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x4e0eefde && T->type->name != 0xb1f11021)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "layer", cur_token_real_len)) {
+ set_autocomplete_string ("layer");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "layer", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_decrypted_message_action_typing (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x4e0eefde && T->type->name != 0xb1f11021)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "action", cur_token_real_len)) {
+ set_autocomplete_string ("action");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "action", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x70541c7e, .id = "SendMessageAction", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_send_message_action (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_decrypted_message_action_request_key (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x4e0eefde && T->type->name != 0xb1f11021)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "exchange_id", cur_token_real_len)) {
+ set_autocomplete_string ("exchange_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "exchange_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "g_a", cur_token_real_len)) {
+ set_autocomplete_string ("g_a");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "g_a", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_decrypted_message_action_accept_key (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x4e0eefde && T->type->name != 0xb1f11021)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "exchange_id", cur_token_real_len)) {
+ set_autocomplete_string ("exchange_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "exchange_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "g_b", cur_token_real_len)) {
+ set_autocomplete_string ("g_b");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "g_b", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 15 && !cur_token_quoted && !memcmp (cur_token, "key_fingerprint", cur_token_real_len)) {
+ set_autocomplete_string ("key_fingerprint");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 15 && !memcmp (cur_token, "key_fingerprint", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field3) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_decrypted_message_action_abort_key (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x4e0eefde && T->type->name != 0xb1f11021)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "exchange_id", cur_token_real_len)) {
+ set_autocomplete_string ("exchange_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "exchange_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_decrypted_message_action_commit_key (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x4e0eefde && T->type->name != 0xb1f11021)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "exchange_id", cur_token_real_len)) {
+ set_autocomplete_string ("exchange_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "exchange_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 15 && !cur_token_quoted && !memcmp (cur_token, "key_fingerprint", cur_token_real_len)) {
+ set_autocomplete_string ("key_fingerprint");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 15 && !memcmp (cur_token, "key_fingerprint", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_decrypted_message_action_noop (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x4e0eefde && T->type->name != 0xb1f11021)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_decrypted_message_layer (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x1be31789 && T->type->name != 0xe41ce876)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "random_bytes", cur_token_real_len)) {
+ set_autocomplete_string ("random_bytes");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "random_bytes", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "layer", cur_token_real_len)) {
+ set_autocomplete_string ("layer");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "layer", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "in_seq_no", cur_token_real_len)) {
+ set_autocomplete_string ("in_seq_no");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "in_seq_no", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "out_seq_no", cur_token_real_len)) {
+ set_autocomplete_string ("out_seq_no");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "out_seq_no", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "message", cur_token_real_len)) {
+ set_autocomplete_string ("message");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "message", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x535b7918, .id = "DecryptedMessage", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_decrypted_message (field5) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_decrypted_message_media_empty (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x34e0d674 && T->type->name != 0xcb1f298b)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_decrypted_message_media_photo (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x34e0d674 && T->type->name != 0xcb1f298b)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "str_thumb", cur_token_real_len)) {
+ set_autocomplete_string ("str_thumb");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "str_thumb", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "thumb_w", cur_token_real_len)) {
+ set_autocomplete_string ("thumb_w");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "thumb_w", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "thumb_h", cur_token_real_len)) {
+ set_autocomplete_string ("thumb_h");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "thumb_h", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 1 && !cur_token_quoted && !memcmp (cur_token, "w", cur_token_real_len)) {
+ set_autocomplete_string ("w");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 1 && !memcmp (cur_token, "w", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 1 && !cur_token_quoted && !memcmp (cur_token, "h", cur_token_real_len)) {
+ set_autocomplete_string ("h");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 1 && !memcmp (cur_token, "h", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field5) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "size", cur_token_real_len)) {
+ set_autocomplete_string ("size");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "size", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field6) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "key", cur_token_real_len)) {
+ set_autocomplete_string ("key");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "key", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field7 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field7) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "iv", cur_token_real_len)) {
+ set_autocomplete_string ("iv");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "iv", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field8 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field8) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_decrypted_message_media_geo_point (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x34e0d674 && T->type->name != 0xcb1f298b)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "latitude", cur_token_real_len)) {
+ set_autocomplete_string ("latitude");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "latitude", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddef3eab, .id = "Bare_Double", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_double (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "longitude", cur_token_real_len)) {
+ set_autocomplete_string ("longitude");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "longitude", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddef3eab, .id = "Bare_Double", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_double (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_decrypted_message_media_contact (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x34e0d674 && T->type->name != 0xcb1f298b)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "phone_number", cur_token_real_len)) {
+ set_autocomplete_string ("phone_number");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "phone_number", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "first_name", cur_token_real_len)) {
+ set_autocomplete_string ("first_name");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "first_name", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "last_name", cur_token_real_len)) {
+ set_autocomplete_string ("last_name");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "last_name", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "user_id", cur_token_real_len)) {
+ set_autocomplete_string ("user_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "user_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_decrypted_message_media_document (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x34e0d674 && T->type->name != 0xcb1f298b)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "str_thumb", cur_token_real_len)) {
+ set_autocomplete_string ("str_thumb");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "str_thumb", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "thumb_w", cur_token_real_len)) {
+ set_autocomplete_string ("thumb_w");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "thumb_w", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "thumb_h", cur_token_real_len)) {
+ set_autocomplete_string ("thumb_h");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "thumb_h", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "file_name", cur_token_real_len)) {
+ set_autocomplete_string ("file_name");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "file_name", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "mime_type", cur_token_real_len)) {
+ set_autocomplete_string ("mime_type");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "mime_type", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field5) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "size", cur_token_real_len)) {
+ set_autocomplete_string ("size");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "size", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field6) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "key", cur_token_real_len)) {
+ set_autocomplete_string ("key");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "key", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field7 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field7) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "iv", cur_token_real_len)) {
+ set_autocomplete_string ("iv");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "iv", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field8 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field8) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_decrypted_message_media_video (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x34e0d674 && T->type->name != 0xcb1f298b)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "str_thumb", cur_token_real_len)) {
+ set_autocomplete_string ("str_thumb");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "str_thumb", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "thumb_w", cur_token_real_len)) {
+ set_autocomplete_string ("thumb_w");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "thumb_w", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "thumb_h", cur_token_real_len)) {
+ set_autocomplete_string ("thumb_h");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "thumb_h", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "duration", cur_token_real_len)) {
+ set_autocomplete_string ("duration");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "duration", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "mime_type", cur_token_real_len)) {
+ set_autocomplete_string ("mime_type");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "mime_type", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field5) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 1 && !cur_token_quoted && !memcmp (cur_token, "w", cur_token_real_len)) {
+ set_autocomplete_string ("w");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 1 && !memcmp (cur_token, "w", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field6) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 1 && !cur_token_quoted && !memcmp (cur_token, "h", cur_token_real_len)) {
+ set_autocomplete_string ("h");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 1 && !memcmp (cur_token, "h", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field7 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field7) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "size", cur_token_real_len)) {
+ set_autocomplete_string ("size");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "size", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field8 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field8) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "key", cur_token_real_len)) {
+ set_autocomplete_string ("key");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "key", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field9 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field9) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "iv", cur_token_real_len)) {
+ set_autocomplete_string ("iv");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "iv", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field10 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field10) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_decrypted_message_media_audio (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x34e0d674 && T->type->name != 0xcb1f298b)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "duration", cur_token_real_len)) {
+ set_autocomplete_string ("duration");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "duration", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "mime_type", cur_token_real_len)) {
+ set_autocomplete_string ("mime_type");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "mime_type", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "size", cur_token_real_len)) {
+ set_autocomplete_string ("size");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "size", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "key", cur_token_real_len)) {
+ set_autocomplete_string ("key");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "key", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "iv", cur_token_real_len)) {
+ set_autocomplete_string ("iv");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "iv", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field5) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_decrypted_message_media_external_document (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x34e0d674 && T->type->name != 0xcb1f298b)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "access_hash", cur_token_real_len)) {
+ set_autocomplete_string ("access_hash");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "access_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "mime_type", cur_token_real_len)) {
+ set_autocomplete_string ("mime_type");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "mime_type", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "size", cur_token_real_len)) {
+ set_autocomplete_string ("size");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "size", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field5) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "thumb", cur_token_real_len)) {
+ set_autocomplete_string ("thumb");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "thumb", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x900f60dd, .id = "PhotoSize", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_photo_size (field6) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "dc_id", cur_token_real_len)) {
+ set_autocomplete_string ("dc_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "dc_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field7 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field7) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "attributes", cur_token_real_len)) {
+ set_autocomplete_string ("attributes");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "attributes", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field8 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x97c637a3, .id = "DocumentAttribute", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field8) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_decrypted_message_media_video_l12 (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x34e0d674 && T->type->name != 0xcb1f298b)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "str_thumb", cur_token_real_len)) {
+ set_autocomplete_string ("str_thumb");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "str_thumb", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "thumb_w", cur_token_real_len)) {
+ set_autocomplete_string ("thumb_w");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "thumb_w", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "thumb_h", cur_token_real_len)) {
+ set_autocomplete_string ("thumb_h");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "thumb_h", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "duration", cur_token_real_len)) {
+ set_autocomplete_string ("duration");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "duration", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 1 && !cur_token_quoted && !memcmp (cur_token, "w", cur_token_real_len)) {
+ set_autocomplete_string ("w");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 1 && !memcmp (cur_token, "w", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field5) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 1 && !cur_token_quoted && !memcmp (cur_token, "h", cur_token_real_len)) {
+ set_autocomplete_string ("h");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 1 && !memcmp (cur_token, "h", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field6) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "size", cur_token_real_len)) {
+ set_autocomplete_string ("size");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "size", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field7 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field7) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "key", cur_token_real_len)) {
+ set_autocomplete_string ("key");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "key", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field8 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field8) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "iv", cur_token_real_len)) {
+ set_autocomplete_string ("iv");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "iv", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field9 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field9) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_decrypted_message_media_audio_l12 (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x34e0d674 && T->type->name != 0xcb1f298b)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "duration", cur_token_real_len)) {
+ set_autocomplete_string ("duration");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "duration", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "size", cur_token_real_len)) {
+ set_autocomplete_string ("size");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "size", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "key", cur_token_real_len)) {
+ set_autocomplete_string ("key");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "key", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "iv", cur_token_real_len)) {
+ set_autocomplete_string ("iv");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "iv", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field4) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_dialog (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xc1dd804a && T->type->name != 0x3e227fb5)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "peer", cur_token_real_len)) {
+ set_autocomplete_string ("peer");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "peer", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x276159d6, .id = "Peer", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_peer (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "top_message", cur_token_real_len)) {
+ set_autocomplete_string ("top_message");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "top_message", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 17 && !cur_token_quoted && !memcmp (cur_token, "read_inbox_max_id", cur_token_real_len)) {
+ set_autocomplete_string ("read_inbox_max_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 17 && !memcmp (cur_token, "read_inbox_max_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "unread_count", cur_token_real_len)) {
+ set_autocomplete_string ("unread_count");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "unread_count", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 15 && !cur_token_quoted && !memcmp (cur_token, "notify_settings", cur_token_real_len)) {
+ set_autocomplete_string ("notify_settings");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 15 && !memcmp (cur_token, "notify_settings", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xfdf894fc, .id = "PeerNotifySettings", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_peer_notify_settings (field5) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_disabled_feature (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xae636f24 && T->type->name != 0x519c90db)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "feature", cur_token_real_len)) {
+ set_autocomplete_string ("feature");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "feature", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "description", cur_token_real_len)) {
+ set_autocomplete_string ("description");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "description", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_document_empty (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x51a73418 && T->type->name != 0xae58cbe7)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_document (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x51a73418 && T->type->name != 0xae58cbe7)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "access_hash", cur_token_real_len)) {
+ set_autocomplete_string ("access_hash");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "access_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "mime_type", cur_token_real_len)) {
+ set_autocomplete_string ("mime_type");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "mime_type", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "size", cur_token_real_len)) {
+ set_autocomplete_string ("size");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "size", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field5) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "thumb", cur_token_real_len)) {
+ set_autocomplete_string ("thumb");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "thumb", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x900f60dd, .id = "PhotoSize", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_photo_size (field6) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "dc_id", cur_token_real_len)) {
+ set_autocomplete_string ("dc_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "dc_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field7 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field7) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "attributes", cur_token_real_len)) {
+ set_autocomplete_string ("attributes");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "attributes", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field8 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x97c637a3, .id = "DocumentAttribute", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field8) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_document_l19 (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x51a73418 && T->type->name != 0xae58cbe7)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "access_hash", cur_token_real_len)) {
+ set_autocomplete_string ("access_hash");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "access_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "user_id", cur_token_real_len)) {
+ set_autocomplete_string ("user_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "user_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "file_name", cur_token_real_len)) {
+ set_autocomplete_string ("file_name");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "file_name", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field5) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "mime_type", cur_token_real_len)) {
+ set_autocomplete_string ("mime_type");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "mime_type", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field6) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "size", cur_token_real_len)) {
+ set_autocomplete_string ("size");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "size", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field7 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field7) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "thumb", cur_token_real_len)) {
+ set_autocomplete_string ("thumb");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "thumb", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field8 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x900f60dd, .id = "PhotoSize", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_photo_size (field8) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "dc_id", cur_token_real_len)) {
+ set_autocomplete_string ("dc_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "dc_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field9 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field9) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_document_attribute_image_size (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x97c637a3 && T->type->name != 0x6839c85c)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 1 && !cur_token_quoted && !memcmp (cur_token, "w", cur_token_real_len)) {
+ set_autocomplete_string ("w");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 1 && !memcmp (cur_token, "w", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 1 && !cur_token_quoted && !memcmp (cur_token, "h", cur_token_real_len)) {
+ set_autocomplete_string ("h");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 1 && !memcmp (cur_token, "h", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_document_attribute_animated (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x97c637a3 && T->type->name != 0x6839c85c)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_document_attribute_sticker_l28 (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x97c637a3 && T->type->name != 0x6839c85c)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "alt", cur_token_real_len)) {
+ set_autocomplete_string ("alt");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "alt", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_document_attribute_sticker (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x97c637a3 && T->type->name != 0x6839c85c)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "alt", cur_token_real_len)) {
+ set_autocomplete_string ("alt");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "alt", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "stickerset", cur_token_real_len)) {
+ set_autocomplete_string ("stickerset");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "stickerset", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xe44d415c, .id = "InputStickerSet", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_sticker_set (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_document_attribute_video (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x97c637a3 && T->type->name != 0x6839c85c)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "duration", cur_token_real_len)) {
+ set_autocomplete_string ("duration");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "duration", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 1 && !cur_token_quoted && !memcmp (cur_token, "w", cur_token_real_len)) {
+ set_autocomplete_string ("w");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 1 && !memcmp (cur_token, "w", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 1 && !cur_token_quoted && !memcmp (cur_token, "h", cur_token_real_len)) {
+ set_autocomplete_string ("h");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 1 && !memcmp (cur_token, "h", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_document_attribute_audio (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x97c637a3 && T->type->name != 0x6839c85c)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "duration", cur_token_real_len)) {
+ set_autocomplete_string ("duration");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "duration", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_document_attribute_filename (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x97c637a3 && T->type->name != 0x6839c85c)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "file_name", cur_token_real_len)) {
+ set_autocomplete_string ("file_name");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "file_name", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_double (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x2210c154 && T->type->name != 0xddef3eab)) { return -1; }
+ if (is_double ()) {
+ local_next_token ();
+ return 0;
+ } else {
+ return -1;
+ }
+}
+int autocomplete_constructor_encrypted_chat_empty (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xb1718213 && T->type->name != 0x4e8e7dec)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_encrypted_chat_waiting (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xb1718213 && T->type->name != 0x4e8e7dec)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "access_hash", cur_token_real_len)) {
+ set_autocomplete_string ("access_hash");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "access_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "admin_id", cur_token_real_len)) {
+ set_autocomplete_string ("admin_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "admin_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 14 && !cur_token_quoted && !memcmp (cur_token, "participant_id", cur_token_real_len)) {
+ set_autocomplete_string ("participant_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 14 && !memcmp (cur_token, "participant_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field5) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_encrypted_chat_requested (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xb1718213 && T->type->name != 0x4e8e7dec)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "access_hash", cur_token_real_len)) {
+ set_autocomplete_string ("access_hash");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "access_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "admin_id", cur_token_real_len)) {
+ set_autocomplete_string ("admin_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "admin_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 14 && !cur_token_quoted && !memcmp (cur_token, "participant_id", cur_token_real_len)) {
+ set_autocomplete_string ("participant_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 14 && !memcmp (cur_token, "participant_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field5) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "g_a", cur_token_real_len)) {
+ set_autocomplete_string ("g_a");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "g_a", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field6) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_encrypted_chat (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xb1718213 && T->type->name != 0x4e8e7dec)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "access_hash", cur_token_real_len)) {
+ set_autocomplete_string ("access_hash");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "access_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "admin_id", cur_token_real_len)) {
+ set_autocomplete_string ("admin_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "admin_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 14 && !cur_token_quoted && !memcmp (cur_token, "participant_id", cur_token_real_len)) {
+ set_autocomplete_string ("participant_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 14 && !memcmp (cur_token, "participant_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field5) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "g_a_or_b", cur_token_real_len)) {
+ set_autocomplete_string ("g_a_or_b");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "g_a_or_b", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field6) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 15 && !cur_token_quoted && !memcmp (cur_token, "key_fingerprint", cur_token_real_len)) {
+ set_autocomplete_string ("key_fingerprint");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 15 && !memcmp (cur_token, "key_fingerprint", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field7 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field7) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_encrypted_chat_discarded (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xb1718213 && T->type->name != 0x4e8e7dec)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_encrypted_file_empty (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x886fd032 && T->type->name != 0x77902fcd)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_encrypted_file (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x886fd032 && T->type->name != 0x77902fcd)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "access_hash", cur_token_real_len)) {
+ set_autocomplete_string ("access_hash");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "access_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "size", cur_token_real_len)) {
+ set_autocomplete_string ("size");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "size", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "dc_id", cur_token_real_len)) {
+ set_autocomplete_string ("dc_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "dc_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 15 && !cur_token_quoted && !memcmp (cur_token, "key_fingerprint", cur_token_real_len)) {
+ set_autocomplete_string ("key_fingerprint");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 15 && !memcmp (cur_token, "key_fingerprint", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field5) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_encrypted_message (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xce6b8a1e && T->type->name != 0x319475e1)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "random_id", cur_token_real_len)) {
+ set_autocomplete_string ("random_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "random_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "chat_id", cur_token_real_len)) {
+ set_autocomplete_string ("chat_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "chat_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "bytes", cur_token_real_len)) {
+ set_autocomplete_string ("bytes");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "bytes", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "file", cur_token_real_len)) {
+ set_autocomplete_string ("file");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "file", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x886fd032, .id = "EncryptedFile", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_encrypted_file (field5) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_encrypted_message_service (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xce6b8a1e && T->type->name != 0x319475e1)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "random_id", cur_token_real_len)) {
+ set_autocomplete_string ("random_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "random_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "chat_id", cur_token_real_len)) {
+ set_autocomplete_string ("chat_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "chat_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "bytes", cur_token_real_len)) {
+ set_autocomplete_string ("bytes");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "bytes", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field4) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_error (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xc4b9f9bb && T->type->name != 0x3b460644)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "code", cur_token_real_len)) {
+ set_autocomplete_string ("code");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "code", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "text", cur_token_real_len)) {
+ set_autocomplete_string ("text");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "text", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_chat_invite_empty (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x95f132d5 && T->type->name != 0x6a0ecd2a)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_chat_invite_exported (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x95f132d5 && T->type->name != 0x6a0ecd2a)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "link", cur_token_real_len)) {
+ set_autocomplete_string ("link");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "link", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_file_location_unavailable (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x2f8ffb30 && T->type->name != 0xd07004cf)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "volume_id", cur_token_real_len)) {
+ set_autocomplete_string ("volume_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "volume_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "local_id", cur_token_real_len)) {
+ set_autocomplete_string ("local_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "local_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "secret", cur_token_real_len)) {
+ set_autocomplete_string ("secret");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "secret", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field3) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_file_location (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x2f8ffb30 && T->type->name != 0xd07004cf)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "dc_id", cur_token_real_len)) {
+ set_autocomplete_string ("dc_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "dc_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "volume_id", cur_token_real_len)) {
+ set_autocomplete_string ("volume_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "volume_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "local_id", cur_token_real_len)) {
+ set_autocomplete_string ("local_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "local_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "secret", cur_token_real_len)) {
+ set_autocomplete_string ("secret");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "secret", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field4) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_geo_chat_message_empty (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xf67b4034 && T->type->name != 0x0984bfcb)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "chat_id", cur_token_real_len)) {
+ set_autocomplete_string ("chat_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "chat_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_geo_chat_message (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xf67b4034 && T->type->name != 0x0984bfcb)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "chat_id", cur_token_real_len)) {
+ set_autocomplete_string ("chat_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "chat_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "from_id", cur_token_real_len)) {
+ set_autocomplete_string ("from_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "from_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "message", cur_token_real_len)) {
+ set_autocomplete_string ("message");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "message", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field5) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "media", cur_token_real_len)) {
+ set_autocomplete_string ("media");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "media", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x95f2471a, .id = "MessageMedia", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_message_media (field6) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_geo_chat_message_service (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xf67b4034 && T->type->name != 0x0984bfcb)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "chat_id", cur_token_real_len)) {
+ set_autocomplete_string ("chat_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "chat_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "from_id", cur_token_real_len)) {
+ set_autocomplete_string ("from_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "from_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "action", cur_token_real_len)) {
+ set_autocomplete_string ("action");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "action", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x383415fa, .id = "MessageAction", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_message_action (field5) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_geo_point_empty (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x315e0a53 && T->type->name != 0xcea1f5ac)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_geo_point (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x315e0a53 && T->type->name != 0xcea1f5ac)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "longitude", cur_token_real_len)) {
+ set_autocomplete_string ("longitude");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "longitude", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddef3eab, .id = "Bare_Double", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_double (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "latitude", cur_token_real_len)) {
+ set_autocomplete_string ("latitude");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "latitude", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddef3eab, .id = "Bare_Double", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_double (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_imported_contact (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xd0028438 && T->type->name != 0x2ffd7bc7)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "user_id", cur_token_real_len)) {
+ set_autocomplete_string ("user_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "user_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "client_id", cur_token_real_len)) {
+ set_autocomplete_string ("client_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "client_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_app_event (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x770656a8 && T->type->name != 0x88f9a957)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "time", cur_token_real_len)) {
+ set_autocomplete_string ("time");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "time", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddef3eab, .id = "Bare_Double", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_double (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "type", cur_token_real_len)) {
+ set_autocomplete_string ("type");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "type", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "peer", cur_token_real_len)) {
+ set_autocomplete_string ("peer");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "peer", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "data", cur_token_real_len)) {
+ set_autocomplete_string ("data");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "data", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field4) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_audio_empty (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xae8e9c7b && T->type->name != 0x51716384)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_input_audio (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xae8e9c7b && T->type->name != 0x51716384)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "access_hash", cur_token_real_len)) {
+ set_autocomplete_string ("access_hash");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "access_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_chat_photo_empty (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x3a60776d && T->type->name != 0xc59f8892)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_input_chat_uploaded_photo (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x3a60776d && T->type->name != 0xc59f8892)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "file", cur_token_real_len)) {
+ set_autocomplete_string ("file");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "file", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x0f60f9ca, .id = "InputFile", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_file (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "crop", cur_token_real_len)) {
+ set_autocomplete_string ("crop");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "crop", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x7477e321, .id = "InputPhotoCrop", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_photo_crop (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_chat_photo (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x3a60776d && T->type->name != 0xc59f8892)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xe74279c9, .id = "InputPhoto", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_photo (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "crop", cur_token_real_len)) {
+ set_autocomplete_string ("crop");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "crop", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x7477e321, .id = "InputPhotoCrop", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_photo_crop (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_phone_contact (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xf392b7f4 && T->type->name != 0x0c6d480b)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "client_id", cur_token_real_len)) {
+ set_autocomplete_string ("client_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "client_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "phone", cur_token_real_len)) {
+ set_autocomplete_string ("phone");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "phone", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "first_name", cur_token_real_len)) {
+ set_autocomplete_string ("first_name");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "first_name", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "last_name", cur_token_real_len)) {
+ set_autocomplete_string ("last_name");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "last_name", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field4) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_document_empty (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x6a8963fc && T->type->name != 0x95769c03)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_input_document (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x6a8963fc && T->type->name != 0x95769c03)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "access_hash", cur_token_real_len)) {
+ set_autocomplete_string ("access_hash");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "access_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_encrypted_chat (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xf141b5e1 && T->type->name != 0x0ebe4a1e)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "chat_id", cur_token_real_len)) {
+ set_autocomplete_string ("chat_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "chat_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "access_hash", cur_token_real_len)) {
+ set_autocomplete_string ("access_hash");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "access_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_encrypted_file_empty (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x0b5c064f && T->type->name != 0xf4a3f9b0)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_input_encrypted_file_uploaded (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x0b5c064f && T->type->name != 0xf4a3f9b0)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "parts", cur_token_real_len)) {
+ set_autocomplete_string ("parts");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "parts", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "md5_checksum", cur_token_real_len)) {
+ set_autocomplete_string ("md5_checksum");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "md5_checksum", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 15 && !cur_token_quoted && !memcmp (cur_token, "key_fingerprint", cur_token_real_len)) {
+ set_autocomplete_string ("key_fingerprint");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 15 && !memcmp (cur_token, "key_fingerprint", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_encrypted_file (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x0b5c064f && T->type->name != 0xf4a3f9b0)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "access_hash", cur_token_real_len)) {
+ set_autocomplete_string ("access_hash");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "access_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_encrypted_file_big_uploaded (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x0b5c064f && T->type->name != 0xf4a3f9b0)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "parts", cur_token_real_len)) {
+ set_autocomplete_string ("parts");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "parts", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 15 && !cur_token_quoted && !memcmp (cur_token, "key_fingerprint", cur_token_real_len)) {
+ set_autocomplete_string ("key_fingerprint");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 15 && !memcmp (cur_token, "key_fingerprint", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_file (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x0f60f9ca && T->type->name != 0xf09f0635)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "parts", cur_token_real_len)) {
+ set_autocomplete_string ("parts");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "parts", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "name", cur_token_real_len)) {
+ set_autocomplete_string ("name");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "name", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "md5_checksum", cur_token_real_len)) {
+ set_autocomplete_string ("md5_checksum");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "md5_checksum", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field4) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_file_big (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x0f60f9ca && T->type->name != 0xf09f0635)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "parts", cur_token_real_len)) {
+ set_autocomplete_string ("parts");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "parts", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "name", cur_token_real_len)) {
+ set_autocomplete_string ("name");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "name", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_file_location (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xe6daa38b && T->type->name != 0x19255c74)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "volume_id", cur_token_real_len)) {
+ set_autocomplete_string ("volume_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "volume_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "local_id", cur_token_real_len)) {
+ set_autocomplete_string ("local_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "local_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "secret", cur_token_real_len)) {
+ set_autocomplete_string ("secret");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "secret", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field3) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_video_file_location (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xe6daa38b && T->type->name != 0x19255c74)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "access_hash", cur_token_real_len)) {
+ set_autocomplete_string ("access_hash");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "access_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_encrypted_file_location (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xe6daa38b && T->type->name != 0x19255c74)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "access_hash", cur_token_real_len)) {
+ set_autocomplete_string ("access_hash");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "access_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_audio_file_location (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xe6daa38b && T->type->name != 0x19255c74)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "access_hash", cur_token_real_len)) {
+ set_autocomplete_string ("access_hash");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "access_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_document_file_location (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xe6daa38b && T->type->name != 0x19255c74)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "access_hash", cur_token_real_len)) {
+ set_autocomplete_string ("access_hash");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "access_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_geo_chat (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x74d456fa && T->type->name != 0x8b2ba905)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "chat_id", cur_token_real_len)) {
+ set_autocomplete_string ("chat_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "chat_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "access_hash", cur_token_real_len)) {
+ set_autocomplete_string ("access_hash");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "access_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_geo_point_empty (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x17768f1f && T->type->name != 0xe88970e0)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_input_geo_point (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x17768f1f && T->type->name != 0xe88970e0)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "latitude", cur_token_real_len)) {
+ set_autocomplete_string ("latitude");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "latitude", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddef3eab, .id = "Bare_Double", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_double (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "longitude", cur_token_real_len)) {
+ set_autocomplete_string ("longitude");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "longitude", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddef3eab, .id = "Bare_Double", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_double (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_media_empty (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xb32c91dd && T->type->name != 0x4cd36e22)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_input_media_uploaded_photo (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xb32c91dd && T->type->name != 0x4cd36e22)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "file", cur_token_real_len)) {
+ set_autocomplete_string ("file");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "file", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x0f60f9ca, .id = "InputFile", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_file (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "caption", cur_token_real_len)) {
+ set_autocomplete_string ("caption");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "caption", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_media_photo (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xb32c91dd && T->type->name != 0x4cd36e22)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xe74279c9, .id = "InputPhoto", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_photo (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "caption", cur_token_real_len)) {
+ set_autocomplete_string ("caption");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "caption", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_media_geo_point (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xb32c91dd && T->type->name != 0x4cd36e22)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "geo_point", cur_token_real_len)) {
+ set_autocomplete_string ("geo_point");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "geo_point", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x17768f1f, .id = "InputGeoPoint", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_geo_point (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_media_contact (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xb32c91dd && T->type->name != 0x4cd36e22)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "phone_number", cur_token_real_len)) {
+ set_autocomplete_string ("phone_number");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "phone_number", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "first_name", cur_token_real_len)) {
+ set_autocomplete_string ("first_name");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "first_name", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "last_name", cur_token_real_len)) {
+ set_autocomplete_string ("last_name");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "last_name", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_media_uploaded_video (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xb32c91dd && T->type->name != 0x4cd36e22)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "file", cur_token_real_len)) {
+ set_autocomplete_string ("file");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "file", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x0f60f9ca, .id = "InputFile", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_file (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "duration", cur_token_real_len)) {
+ set_autocomplete_string ("duration");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "duration", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 1 && !cur_token_quoted && !memcmp (cur_token, "w", cur_token_real_len)) {
+ set_autocomplete_string ("w");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 1 && !memcmp (cur_token, "w", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 1 && !cur_token_quoted && !memcmp (cur_token, "h", cur_token_real_len)) {
+ set_autocomplete_string ("h");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 1 && !memcmp (cur_token, "h", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "caption", cur_token_real_len)) {
+ set_autocomplete_string ("caption");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "caption", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field5) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_media_uploaded_thumb_video (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xb32c91dd && T->type->name != 0x4cd36e22)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "file", cur_token_real_len)) {
+ set_autocomplete_string ("file");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "file", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x0f60f9ca, .id = "InputFile", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_file (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "thumb", cur_token_real_len)) {
+ set_autocomplete_string ("thumb");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "thumb", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x0f60f9ca, .id = "InputFile", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_file (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "duration", cur_token_real_len)) {
+ set_autocomplete_string ("duration");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "duration", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 1 && !cur_token_quoted && !memcmp (cur_token, "w", cur_token_real_len)) {
+ set_autocomplete_string ("w");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 1 && !memcmp (cur_token, "w", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 1 && !cur_token_quoted && !memcmp (cur_token, "h", cur_token_real_len)) {
+ set_autocomplete_string ("h");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 1 && !memcmp (cur_token, "h", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field5) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "caption", cur_token_real_len)) {
+ set_autocomplete_string ("caption");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "caption", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field6) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_media_video (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xb32c91dd && T->type->name != 0x4cd36e22)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "video_id", cur_token_real_len)) {
+ set_autocomplete_string ("video_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "video_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xbb5f7a27, .id = "InputVideo", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_video (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "caption", cur_token_real_len)) {
+ set_autocomplete_string ("caption");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "caption", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_media_uploaded_audio (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xb32c91dd && T->type->name != 0x4cd36e22)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "file", cur_token_real_len)) {
+ set_autocomplete_string ("file");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "file", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x0f60f9ca, .id = "InputFile", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_file (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "duration", cur_token_real_len)) {
+ set_autocomplete_string ("duration");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "duration", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "mime_type", cur_token_real_len)) {
+ set_autocomplete_string ("mime_type");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "mime_type", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_media_audio (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xb32c91dd && T->type->name != 0x4cd36e22)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "audio_id", cur_token_real_len)) {
+ set_autocomplete_string ("audio_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "audio_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xae8e9c7b, .id = "InputAudio", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_audio (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_media_uploaded_document (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xb32c91dd && T->type->name != 0x4cd36e22)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "file", cur_token_real_len)) {
+ set_autocomplete_string ("file");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "file", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x0f60f9ca, .id = "InputFile", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_file (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "mime_type", cur_token_real_len)) {
+ set_autocomplete_string ("mime_type");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "mime_type", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "attributes", cur_token_real_len)) {
+ set_autocomplete_string ("attributes");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "attributes", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x97c637a3, .id = "DocumentAttribute", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field3) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_media_uploaded_thumb_document (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xb32c91dd && T->type->name != 0x4cd36e22)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "file", cur_token_real_len)) {
+ set_autocomplete_string ("file");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "file", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x0f60f9ca, .id = "InputFile", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_file (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "thumb", cur_token_real_len)) {
+ set_autocomplete_string ("thumb");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "thumb", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x0f60f9ca, .id = "InputFile", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_file (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "mime_type", cur_token_real_len)) {
+ set_autocomplete_string ("mime_type");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "mime_type", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "attributes", cur_token_real_len)) {
+ set_autocomplete_string ("attributes");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "attributes", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x97c637a3, .id = "DocumentAttribute", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field4) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_media_document (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xb32c91dd && T->type->name != 0x4cd36e22)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "document_id", cur_token_real_len)) {
+ set_autocomplete_string ("document_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "document_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x6a8963fc, .id = "InputDocument", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_document (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_media_venue (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xb32c91dd && T->type->name != 0x4cd36e22)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "geo_point", cur_token_real_len)) {
+ set_autocomplete_string ("geo_point");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "geo_point", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x17768f1f, .id = "InputGeoPoint", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_geo_point (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "title", cur_token_real_len)) {
+ set_autocomplete_string ("title");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "title", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "address", cur_token_real_len)) {
+ set_autocomplete_string ("address");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "address", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "provider", cur_token_real_len)) {
+ set_autocomplete_string ("provider");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "provider", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "venue_id", cur_token_real_len)) {
+ set_autocomplete_string ("venue_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "venue_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field5) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_notify_peer (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x02b6911b && T->type->name != 0xfd496ee4)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "peer", cur_token_real_len)) {
+ set_autocomplete_string ("peer");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "peer", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x9e67268d, .id = "InputPeer", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_peer (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_notify_users (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x02b6911b && T->type->name != 0xfd496ee4)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_input_notify_chats (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x02b6911b && T->type->name != 0xfd496ee4)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_input_notify_all (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x02b6911b && T->type->name != 0xfd496ee4)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_input_notify_geo_chat_peer (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x02b6911b && T->type->name != 0xfd496ee4)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "geo_peer", cur_token_real_len)) {
+ set_autocomplete_string ("geo_peer");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "geo_peer", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x74d456fa, .id = "InputGeoChat", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_geo_chat (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_peer_empty (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x9e67268d && T->type->name != 0x6198d972)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_input_peer_self (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x9e67268d && T->type->name != 0x6198d972)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_input_peer_contact (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x9e67268d && T->type->name != 0x6198d972)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "user_id", cur_token_real_len)) {
+ set_autocomplete_string ("user_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "user_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_peer_foreign (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x9e67268d && T->type->name != 0x6198d972)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "user_id", cur_token_real_len)) {
+ set_autocomplete_string ("user_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "user_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "access_hash", cur_token_real_len)) {
+ set_autocomplete_string ("access_hash");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "access_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_peer_chat (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x9e67268d && T->type->name != 0x6198d972)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "chat_id", cur_token_real_len)) {
+ set_autocomplete_string ("chat_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "chat_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_peer_notify_events_empty (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x185a48ac && T->type->name != 0xe7a5b753)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_input_peer_notify_events_all (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x185a48ac && T->type->name != 0xe7a5b753)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_input_peer_notify_settings (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x46a2ce98 && T->type->name != 0xb95d3167)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "mute_until", cur_token_real_len)) {
+ set_autocomplete_string ("mute_until");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "mute_until", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "sound", cur_token_real_len)) {
+ set_autocomplete_string ("sound");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "sound", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 13 && !cur_token_quoted && !memcmp (cur_token, "show_previews", cur_token_real_len)) {
+ set_autocomplete_string ("show_previews");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 13 && !memcmp (cur_token, "show_previews", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bool (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "events_mask", cur_token_real_len)) {
+ set_autocomplete_string ("events_mask");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "events_mask", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_photo_empty (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xe74279c9 && T->type->name != 0x18bd8636)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_input_photo (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xe74279c9 && T->type->name != 0x18bd8636)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "access_hash", cur_token_real_len)) {
+ set_autocomplete_string ("access_hash");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "access_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_photo_crop_auto (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x7477e321 && T->type->name != 0x8b881cde)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_input_photo_crop (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x7477e321 && T->type->name != 0x8b881cde)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "crop_left", cur_token_real_len)) {
+ set_autocomplete_string ("crop_left");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "crop_left", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddef3eab, .id = "Bare_Double", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_double (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "crop_top", cur_token_real_len)) {
+ set_autocomplete_string ("crop_top");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "crop_top", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddef3eab, .id = "Bare_Double", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_double (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "crop_width", cur_token_real_len)) {
+ set_autocomplete_string ("crop_width");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "crop_width", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddef3eab, .id = "Bare_Double", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_double (field3) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_privacy_key_status_timestamp (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x4f96cb18 && T->type->name != 0xb06934e7)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_input_privacy_value_allow_contacts (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x4b815163 && T->type->name != 0xb47eae9c)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_input_privacy_value_allow_all (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x4b815163 && T->type->name != 0xb47eae9c)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_input_privacy_value_allow_users (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x4b815163 && T->type->name != 0xb47eae9c)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "users", cur_token_real_len)) {
+ set_autocomplete_string ("users");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "users", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xadfe0c6a, .id = "InputUser", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_privacy_value_disallow_contacts (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x4b815163 && T->type->name != 0xb47eae9c)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_input_privacy_value_disallow_all (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x4b815163 && T->type->name != 0xb47eae9c)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_input_privacy_value_disallow_users (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x4b815163 && T->type->name != 0xb47eae9c)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "users", cur_token_real_len)) {
+ set_autocomplete_string ("users");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "users", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xadfe0c6a, .id = "InputUser", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_sticker_set_empty (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xe44d415c && T->type->name != 0x1bb2bea3)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_input_sticker_set_i_d (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xe44d415c && T->type->name != 0x1bb2bea3)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "access_hash", cur_token_real_len)) {
+ set_autocomplete_string ("access_hash");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "access_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_sticker_set_short_name (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xe44d415c && T->type->name != 0x1bb2bea3)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "short_name", cur_token_real_len)) {
+ set_autocomplete_string ("short_name");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "short_name", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_user_empty (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xadfe0c6a && T->type->name != 0x5201f395)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_input_user_self (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xadfe0c6a && T->type->name != 0x5201f395)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_input_user_contact (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xadfe0c6a && T->type->name != 0x5201f395)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "user_id", cur_token_real_len)) {
+ set_autocomplete_string ("user_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "user_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_user_foreign (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xadfe0c6a && T->type->name != 0x5201f395)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "user_id", cur_token_real_len)) {
+ set_autocomplete_string ("user_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "user_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "access_hash", cur_token_real_len)) {
+ set_autocomplete_string ("access_hash");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "access_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_video_empty (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xbb5f7a27 && T->type->name != 0x44a085d8)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_input_video (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xbb5f7a27 && T->type->name != 0x44a085d8)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "access_hash", cur_token_real_len)) {
+ set_autocomplete_string ("access_hash");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "access_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_int (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xa8509bda && T->type->name != 0x57af6425)) { return -1; }
+ if (is_int ()) {
+ local_next_token ();
+ return 0;
+ } else {
+ return -1;
+ }
+}
+int autocomplete_constructor_int128 (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x7d36c439 && T->type->name != 0x82c93bc6)) { return -1; }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_int256 (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xf2c798b3 && T->type->name != 0x0d38674c)) { return -1; }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field2) < 0) { return -1;}
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field3) < 0) { return -1;}
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field4) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_keyboard_button (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xa2fa4880 && T->type->name != 0x5d05b77f)) { return -1; }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_keyboard_button_row (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x77608b83 && T->type->name != 0x889f747c)) { return -1; }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xa2fa4880, .id = "KeyboardButton", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_long (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x22076cba && T->type->name != 0xddf89345)) { return -1; }
+ if (is_int ()) {
+ local_next_token ();
+ return 0;
+ } else {
+ return -1;
+ }
+}
+int autocomplete_constructor_message_empty (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x5d652a7f && T->type->name != 0xa29ad580)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_message (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x5d652a7f && T->type->name != 0xa29ad580)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "flags", cur_token_real_len)) {
+ set_autocomplete_string ("flags");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "flags", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ if (cur_token_len < 0) { return -1; }
+ if (!is_int ()) { return -1;}
+ struct paramed_type *var0 = INT2PTR (get_int ());
+ assert (var0);
+ local_next_token ();
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "from_id", cur_token_real_len)) {
+ set_autocomplete_string ("from_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "from_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "to_id", cur_token_real_len)) {
+ set_autocomplete_string ("to_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "to_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x276159d6, .id = "Peer", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_peer (field4) < 0) { return -1;}
+ if (PTR2INT (var0) & (1 << 2)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "fwd_from_id", cur_token_real_len)) {
+ set_autocomplete_string ("fwd_from_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "fwd_from_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field5) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 2)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "fwd_date", cur_token_real_len)) {
+ set_autocomplete_string ("fwd_date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "fwd_date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field6) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 3)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 15 && !cur_token_quoted && !memcmp (cur_token, "reply_to_msg_id", cur_token_real_len)) {
+ set_autocomplete_string ("reply_to_msg_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 15 && !memcmp (cur_token, "reply_to_msg_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field7 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field7) < 0) { return -1;}
+ }
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field8 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field8) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "message", cur_token_real_len)) {
+ set_autocomplete_string ("message");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "message", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field9 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field9) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "media", cur_token_real_len)) {
+ set_autocomplete_string ("media");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "media", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field10 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x95f2471a, .id = "MessageMedia", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_message_media (field10) < 0) { return -1;}
+ if (PTR2INT (var0) & (1 << 6)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "reply_markup", cur_token_real_len)) {
+ set_autocomplete_string ("reply_markup");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "reply_markup", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field11 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x612ca4a9, .id = "ReplyMarkup", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_reply_markup (field11) < 0) { return -1;}
+ }
+ return 0;
+}
+int autocomplete_constructor_message_service (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x5d652a7f && T->type->name != 0xa29ad580)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "flags", cur_token_real_len)) {
+ set_autocomplete_string ("flags");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "flags", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "from_id", cur_token_real_len)) {
+ set_autocomplete_string ("from_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "from_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "to_id", cur_token_real_len)) {
+ set_autocomplete_string ("to_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "to_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x276159d6, .id = "Peer", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_peer (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field5) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "action", cur_token_real_len)) {
+ set_autocomplete_string ("action");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "action", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x383415fa, .id = "MessageAction", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_message_action (field6) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_message_action_empty (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x383415fa && T->type->name != 0xc7cbea05)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_message_action_chat_create (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x383415fa && T->type->name != 0xc7cbea05)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "title", cur_token_real_len)) {
+ set_autocomplete_string ("title");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "title", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "users", cur_token_real_len)) {
+ set_autocomplete_string ("users");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "users", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_message_action_chat_edit_title (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x383415fa && T->type->name != 0xc7cbea05)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "title", cur_token_real_len)) {
+ set_autocomplete_string ("title");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "title", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_message_action_chat_edit_photo (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x383415fa && T->type->name != 0xc7cbea05)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "photo", cur_token_real_len)) {
+ set_autocomplete_string ("photo");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "photo", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xc207550a, .id = "Photo", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_photo (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_message_action_chat_delete_photo (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x383415fa && T->type->name != 0xc7cbea05)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_message_action_chat_add_user (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x383415fa && T->type->name != 0xc7cbea05)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "user_id", cur_token_real_len)) {
+ set_autocomplete_string ("user_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "user_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_message_action_chat_delete_user (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x383415fa && T->type->name != 0xc7cbea05)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "user_id", cur_token_real_len)) {
+ set_autocomplete_string ("user_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "user_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_message_action_geo_chat_create (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x383415fa && T->type->name != 0xc7cbea05)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "title", cur_token_real_len)) {
+ set_autocomplete_string ("title");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "title", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "address", cur_token_real_len)) {
+ set_autocomplete_string ("address");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "address", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_message_action_geo_chat_checkin (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x383415fa && T->type->name != 0xc7cbea05)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_message_action_chat_joined_by_link (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x383415fa && T->type->name != 0xc7cbea05)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "inviter_id", cur_token_real_len)) {
+ set_autocomplete_string ("inviter_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "inviter_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_message_media_empty (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x95f2471a && T->type->name != 0x6a0db8e5)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_message_media_photo (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x95f2471a && T->type->name != 0x6a0db8e5)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "photo", cur_token_real_len)) {
+ set_autocomplete_string ("photo");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "photo", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xc207550a, .id = "Photo", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_photo (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "caption", cur_token_real_len)) {
+ set_autocomplete_string ("caption");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "caption", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_message_media_video (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x95f2471a && T->type->name != 0x6a0db8e5)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "video", cur_token_real_len)) {
+ set_autocomplete_string ("video");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "video", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1716b174, .id = "Video", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_video (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "caption", cur_token_real_len)) {
+ set_autocomplete_string ("caption");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "caption", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_message_media_geo (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x95f2471a && T->type->name != 0x6a0db8e5)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "geo", cur_token_real_len)) {
+ set_autocomplete_string ("geo");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "geo", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x315e0a53, .id = "GeoPoint", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_geo_point (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_message_media_contact (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x95f2471a && T->type->name != 0x6a0db8e5)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "phone_number", cur_token_real_len)) {
+ set_autocomplete_string ("phone_number");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "phone_number", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "first_name", cur_token_real_len)) {
+ set_autocomplete_string ("first_name");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "first_name", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "last_name", cur_token_real_len)) {
+ set_autocomplete_string ("last_name");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "last_name", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "user_id", cur_token_real_len)) {
+ set_autocomplete_string ("user_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "user_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_message_media_unsupported (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x95f2471a && T->type->name != 0x6a0db8e5)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_message_media_document (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x95f2471a && T->type->name != 0x6a0db8e5)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "document", cur_token_real_len)) {
+ set_autocomplete_string ("document");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "document", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x51a73418, .id = "Document", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_document (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_message_media_audio (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x95f2471a && T->type->name != 0x6a0db8e5)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "audio", cur_token_real_len)) {
+ set_autocomplete_string ("audio");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "audio", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x9fc5ec4e, .id = "Audio", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_audio (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_message_media_web_page (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x95f2471a && T->type->name != 0x6a0db8e5)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "webpage", cur_token_real_len)) {
+ set_autocomplete_string ("webpage");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "webpage", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x8d8c0d41, .id = "WebPage", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_web_page (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_message_media_venue (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x95f2471a && T->type->name != 0x6a0db8e5)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "geo", cur_token_real_len)) {
+ set_autocomplete_string ("geo");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "geo", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x315e0a53, .id = "GeoPoint", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_geo_point (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "title", cur_token_real_len)) {
+ set_autocomplete_string ("title");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "title", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "address", cur_token_real_len)) {
+ set_autocomplete_string ("address");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "address", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "provider", cur_token_real_len)) {
+ set_autocomplete_string ("provider");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "provider", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "venue_id", cur_token_real_len)) {
+ set_autocomplete_string ("venue_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "venue_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field5) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_message_media_photo_l27 (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x95f2471a && T->type->name != 0x6a0db8e5)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "photo", cur_token_real_len)) {
+ set_autocomplete_string ("photo");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "photo", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xc207550a, .id = "Photo", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_photo (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_message_media_video_l27 (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x95f2471a && T->type->name != 0x6a0db8e5)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "video", cur_token_real_len)) {
+ set_autocomplete_string ("video");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "video", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1716b174, .id = "Video", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_video (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_input_messages_filter_empty (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x80895ae0 && T->type->name != 0x7f76a51f)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_input_messages_filter_photos (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x80895ae0 && T->type->name != 0x7f76a51f)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_input_messages_filter_video (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x80895ae0 && T->type->name != 0x7f76a51f)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_input_messages_filter_photo_video (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x80895ae0 && T->type->name != 0x7f76a51f)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_input_messages_filter_photo_video_documents (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x80895ae0 && T->type->name != 0x7f76a51f)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_input_messages_filter_document (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x80895ae0 && T->type->name != 0x7f76a51f)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_input_messages_filter_audio (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x80895ae0 && T->type->name != 0x7f76a51f)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_nearest_dc (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x8e1a1775 && T->type->name != 0x71e5e88a)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "country", cur_token_real_len)) {
+ set_autocomplete_string ("country");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "country", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "this_dc", cur_token_real_len)) {
+ set_autocomplete_string ("this_dc");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "this_dc", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "nearest_dc", cur_token_real_len)) {
+ set_autocomplete_string ("nearest_dc");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "nearest_dc", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_notify_peer (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x9fcb8237 && T->type->name != 0x60347dc8)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "peer", cur_token_real_len)) {
+ set_autocomplete_string ("peer");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "peer", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x276159d6, .id = "Peer", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_peer (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_notify_users (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x9fcb8237 && T->type->name != 0x60347dc8)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_notify_chats (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x9fcb8237 && T->type->name != 0x60347dc8)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_notify_all (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x9fcb8237 && T->type->name != 0x60347dc8)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_null (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x56730bcc && T->type->name != 0xa98cf433)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_p_q_inner_data (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xbfa3de38 && T->type->name != 0x405c21c7)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "pq", cur_token_real_len)) {
+ set_autocomplete_string ("pq");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "pq", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 1 && !cur_token_quoted && !memcmp (cur_token, "p", cur_token_real_len)) {
+ set_autocomplete_string ("p");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 1 && !memcmp (cur_token, "p", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 1 && !cur_token_quoted && !memcmp (cur_token, "q", cur_token_real_len)) {
+ set_autocomplete_string ("q");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 1 && !memcmp (cur_token, "q", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "nonce", cur_token_real_len)) {
+ set_autocomplete_string ("nonce");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "nonce", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x82c93bc6, .id = "Bare_Int128", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int128 (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "server_nonce", cur_token_real_len)) {
+ set_autocomplete_string ("server_nonce");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "server_nonce", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x82c93bc6, .id = "Bare_Int128", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int128 (field5) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "new_nonce", cur_token_real_len)) {
+ set_autocomplete_string ("new_nonce");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "new_nonce", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x0d38674c, .id = "Bare_Int256", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int256 (field6) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_p_q_inner_data_temp (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xbfa3de38 && T->type->name != 0x405c21c7)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "pq", cur_token_real_len)) {
+ set_autocomplete_string ("pq");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "pq", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 1 && !cur_token_quoted && !memcmp (cur_token, "p", cur_token_real_len)) {
+ set_autocomplete_string ("p");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 1 && !memcmp (cur_token, "p", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 1 && !cur_token_quoted && !memcmp (cur_token, "q", cur_token_real_len)) {
+ set_autocomplete_string ("q");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 1 && !memcmp (cur_token, "q", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "nonce", cur_token_real_len)) {
+ set_autocomplete_string ("nonce");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "nonce", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x82c93bc6, .id = "Bare_Int128", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int128 (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "server_nonce", cur_token_real_len)) {
+ set_autocomplete_string ("server_nonce");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "server_nonce", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x82c93bc6, .id = "Bare_Int128", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int128 (field5) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "new_nonce", cur_token_real_len)) {
+ set_autocomplete_string ("new_nonce");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "new_nonce", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x0d38674c, .id = "Bare_Int256", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int256 (field6) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "expires_in", cur_token_real_len)) {
+ set_autocomplete_string ("expires_in");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "expires_in", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field7 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field7) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_peer_user (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x276159d6 && T->type->name != 0xd89ea629)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "user_id", cur_token_real_len)) {
+ set_autocomplete_string ("user_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "user_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_peer_chat (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x276159d6 && T->type->name != 0xd89ea629)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "chat_id", cur_token_real_len)) {
+ set_autocomplete_string ("chat_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "chat_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_peer_notify_events_empty (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xc0c8d13b && T->type->name != 0x3f372ec4)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_peer_notify_events_all (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xc0c8d13b && T->type->name != 0x3f372ec4)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_peer_notify_settings_empty (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xfdf894fc && T->type->name != 0x02076b03)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_peer_notify_settings (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xfdf894fc && T->type->name != 0x02076b03)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "mute_until", cur_token_real_len)) {
+ set_autocomplete_string ("mute_until");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "mute_until", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "sound", cur_token_real_len)) {
+ set_autocomplete_string ("sound");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "sound", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 13 && !cur_token_quoted && !memcmp (cur_token, "show_previews", cur_token_real_len)) {
+ set_autocomplete_string ("show_previews");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 13 && !memcmp (cur_token, "show_previews", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bool (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "events_mask", cur_token_real_len)) {
+ set_autocomplete_string ("events_mask");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "events_mask", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_photo_empty (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xc207550a && T->type->name != 0x3df8aaf5)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_photo (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xc207550a && T->type->name != 0x3df8aaf5)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "access_hash", cur_token_real_len)) {
+ set_autocomplete_string ("access_hash");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "access_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "user_id", cur_token_real_len)) {
+ set_autocomplete_string ("user_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "user_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "geo", cur_token_real_len)) {
+ set_autocomplete_string ("geo");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "geo", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x315e0a53, .id = "GeoPoint", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_geo_point (field5) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "sizes", cur_token_real_len)) {
+ set_autocomplete_string ("sizes");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "sizes", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x900f60dd, .id = "PhotoSize", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field6) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_photo_l27 (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xc207550a && T->type->name != 0x3df8aaf5)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "access_hash", cur_token_real_len)) {
+ set_autocomplete_string ("access_hash");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "access_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "user_id", cur_token_real_len)) {
+ set_autocomplete_string ("user_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "user_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "caption", cur_token_real_len)) {
+ set_autocomplete_string ("caption");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "caption", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field5) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "geo", cur_token_real_len)) {
+ set_autocomplete_string ("geo");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "geo", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x315e0a53, .id = "GeoPoint", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_geo_point (field6) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "sizes", cur_token_real_len)) {
+ set_autocomplete_string ("sizes");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "sizes", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field7 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x900f60dd, .id = "PhotoSize", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field7) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_photo_size_empty (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x900f60dd && T->type->name != 0x6ff09f22)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "type", cur_token_real_len)) {
+ set_autocomplete_string ("type");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "type", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_photo_size (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x900f60dd && T->type->name != 0x6ff09f22)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "type", cur_token_real_len)) {
+ set_autocomplete_string ("type");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "type", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "location", cur_token_real_len)) {
+ set_autocomplete_string ("location");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "location", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x2f8ffb30, .id = "FileLocation", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_file_location (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 1 && !cur_token_quoted && !memcmp (cur_token, "w", cur_token_real_len)) {
+ set_autocomplete_string ("w");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 1 && !memcmp (cur_token, "w", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 1 && !cur_token_quoted && !memcmp (cur_token, "h", cur_token_real_len)) {
+ set_autocomplete_string ("h");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 1 && !memcmp (cur_token, "h", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "size", cur_token_real_len)) {
+ set_autocomplete_string ("size");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "size", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field5) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_photo_cached_size (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x900f60dd && T->type->name != 0x6ff09f22)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "type", cur_token_real_len)) {
+ set_autocomplete_string ("type");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "type", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "location", cur_token_real_len)) {
+ set_autocomplete_string ("location");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "location", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x2f8ffb30, .id = "FileLocation", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_file_location (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 1 && !cur_token_quoted && !memcmp (cur_token, "w", cur_token_real_len)) {
+ set_autocomplete_string ("w");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 1 && !memcmp (cur_token, "w", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 1 && !cur_token_quoted && !memcmp (cur_token, "h", cur_token_real_len)) {
+ set_autocomplete_string ("h");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 1 && !memcmp (cur_token, "h", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "bytes", cur_token_real_len)) {
+ set_autocomplete_string ("bytes");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "bytes", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field5) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_privacy_key_status_timestamp (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xbc2eab30 && T->type->name != 0x43d154cf)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_privacy_value_allow_contacts (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xa8638aec && T->type->name != 0x579c7513)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_privacy_value_allow_all (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xa8638aec && T->type->name != 0x579c7513)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_privacy_value_allow_users (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xa8638aec && T->type->name != 0x579c7513)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "users", cur_token_real_len)) {
+ set_autocomplete_string ("users");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "users", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_privacy_value_disallow_contacts (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xa8638aec && T->type->name != 0x579c7513)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_privacy_value_disallow_all (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xa8638aec && T->type->name != 0x579c7513)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_privacy_value_disallow_users (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xa8638aec && T->type->name != 0x579c7513)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "users", cur_token_real_len)) {
+ set_autocomplete_string ("users");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "users", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_received_notify_message (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xa384b779 && T->type->name != 0x5c7b4886)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "flags", cur_token_real_len)) {
+ set_autocomplete_string ("flags");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "flags", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_reply_keyboard_hide (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x612ca4a9 && T->type->name != 0x9ed35b56)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "flags", cur_token_real_len)) {
+ set_autocomplete_string ("flags");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "flags", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_reply_keyboard_force_reply (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x612ca4a9 && T->type->name != 0x9ed35b56)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "flags", cur_token_real_len)) {
+ set_autocomplete_string ("flags");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "flags", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_reply_keyboard_markup (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x612ca4a9 && T->type->name != 0x9ed35b56)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "flags", cur_token_real_len)) {
+ set_autocomplete_string ("flags");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "flags", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "rows", cur_token_real_len)) {
+ set_autocomplete_string ("rows");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "rows", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x77608b83, .id = "KeyboardButtonRow", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_res_p_q (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x05162463 && T->type->name != 0xfae9db9c)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "nonce", cur_token_real_len)) {
+ set_autocomplete_string ("nonce");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "nonce", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x82c93bc6, .id = "Bare_Int128", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int128 (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "server_nonce", cur_token_real_len)) {
+ set_autocomplete_string ("server_nonce");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "server_nonce", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x82c93bc6, .id = "Bare_Int128", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int128 (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "pq", cur_token_real_len)) {
+ set_autocomplete_string ("pq");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "pq", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 30 && !cur_token_quoted && !memcmp (cur_token, "server_public_key_fingerprints", cur_token_real_len)) {
+ set_autocomplete_string ("server_public_key_fingerprints");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 30 && !memcmp (cur_token, "server_public_key_fingerprints", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field4) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_send_message_typing_action (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x70541c7e && T->type->name != 0x8fabe381)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_send_message_cancel_action (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x70541c7e && T->type->name != 0x8fabe381)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_send_message_record_video_action (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x70541c7e && T->type->name != 0x8fabe381)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_send_message_upload_video_action_l27 (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x70541c7e && T->type->name != 0x8fabe381)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_send_message_upload_video_action (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x70541c7e && T->type->name != 0x8fabe381)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "progress", cur_token_real_len)) {
+ set_autocomplete_string ("progress");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "progress", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_send_message_record_audio_action (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x70541c7e && T->type->name != 0x8fabe381)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_send_message_upload_audio_action_l27 (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x70541c7e && T->type->name != 0x8fabe381)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_send_message_upload_audio_action (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x70541c7e && T->type->name != 0x8fabe381)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "progress", cur_token_real_len)) {
+ set_autocomplete_string ("progress");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "progress", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_send_message_upload_photo_action (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x70541c7e && T->type->name != 0x8fabe381)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "progress", cur_token_real_len)) {
+ set_autocomplete_string ("progress");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "progress", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_send_message_upload_document_action_l27 (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x70541c7e && T->type->name != 0x8fabe381)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_send_message_upload_document_action (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x70541c7e && T->type->name != 0x8fabe381)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "progress", cur_token_real_len)) {
+ set_autocomplete_string ("progress");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "progress", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_send_message_geo_location_action (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x70541c7e && T->type->name != 0x8fabe381)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_send_message_choose_contact_action (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x70541c7e && T->type->name != 0x8fabe381)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_server_d_h_params_fail (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xa9230301 && T->type->name != 0x56dcfcfe)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "nonce", cur_token_real_len)) {
+ set_autocomplete_string ("nonce");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "nonce", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x82c93bc6, .id = "Bare_Int128", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int128 (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "server_nonce", cur_token_real_len)) {
+ set_autocomplete_string ("server_nonce");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "server_nonce", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x82c93bc6, .id = "Bare_Int128", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int128 (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 14 && !cur_token_quoted && !memcmp (cur_token, "new_nonce_hash", cur_token_real_len)) {
+ set_autocomplete_string ("new_nonce_hash");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 14 && !memcmp (cur_token, "new_nonce_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x82c93bc6, .id = "Bare_Int128", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int128 (field3) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_server_d_h_params_ok (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xa9230301 && T->type->name != 0x56dcfcfe)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "nonce", cur_token_real_len)) {
+ set_autocomplete_string ("nonce");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "nonce", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x82c93bc6, .id = "Bare_Int128", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int128 (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "server_nonce", cur_token_real_len)) {
+ set_autocomplete_string ("server_nonce");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "server_nonce", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x82c93bc6, .id = "Bare_Int128", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int128 (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 16 && !cur_token_quoted && !memcmp (cur_token, "encrypted_answer", cur_token_real_len)) {
+ set_autocomplete_string ("encrypted_answer");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 16 && !memcmp (cur_token, "encrypted_answer", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_server_d_h_inner_data (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xb5890dba && T->type->name != 0x4a76f245)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "nonce", cur_token_real_len)) {
+ set_autocomplete_string ("nonce");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "nonce", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x82c93bc6, .id = "Bare_Int128", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int128 (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "server_nonce", cur_token_real_len)) {
+ set_autocomplete_string ("server_nonce");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "server_nonce", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x82c93bc6, .id = "Bare_Int128", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int128 (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 1 && !cur_token_quoted && !memcmp (cur_token, "g", cur_token_real_len)) {
+ set_autocomplete_string ("g");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 1 && !memcmp (cur_token, "g", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "dh_prime", cur_token_real_len)) {
+ set_autocomplete_string ("dh_prime");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "dh_prime", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "g_a", cur_token_real_len)) {
+ set_autocomplete_string ("g_a");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "g_a", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field5) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "server_time", cur_token_real_len)) {
+ set_autocomplete_string ("server_time");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "server_time", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field6) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_dh_gen_ok (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xdb8a468f && T->type->name != 0x2475b970)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "nonce", cur_token_real_len)) {
+ set_autocomplete_string ("nonce");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "nonce", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x82c93bc6, .id = "Bare_Int128", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int128 (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "server_nonce", cur_token_real_len)) {
+ set_autocomplete_string ("server_nonce");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "server_nonce", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x82c93bc6, .id = "Bare_Int128", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int128 (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 15 && !cur_token_quoted && !memcmp (cur_token, "new_nonce_hash1", cur_token_real_len)) {
+ set_autocomplete_string ("new_nonce_hash1");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 15 && !memcmp (cur_token, "new_nonce_hash1", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x82c93bc6, .id = "Bare_Int128", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int128 (field3) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_dh_gen_retry (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xdb8a468f && T->type->name != 0x2475b970)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "nonce", cur_token_real_len)) {
+ set_autocomplete_string ("nonce");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "nonce", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x82c93bc6, .id = "Bare_Int128", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int128 (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "server_nonce", cur_token_real_len)) {
+ set_autocomplete_string ("server_nonce");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "server_nonce", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x82c93bc6, .id = "Bare_Int128", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int128 (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 15 && !cur_token_quoted && !memcmp (cur_token, "new_nonce_hash2", cur_token_real_len)) {
+ set_autocomplete_string ("new_nonce_hash2");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 15 && !memcmp (cur_token, "new_nonce_hash2", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x82c93bc6, .id = "Bare_Int128", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int128 (field3) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_dh_gen_fail (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xdb8a468f && T->type->name != 0x2475b970)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "nonce", cur_token_real_len)) {
+ set_autocomplete_string ("nonce");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "nonce", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x82c93bc6, .id = "Bare_Int128", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int128 (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "server_nonce", cur_token_real_len)) {
+ set_autocomplete_string ("server_nonce");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "server_nonce", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x82c93bc6, .id = "Bare_Int128", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int128 (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 15 && !cur_token_quoted && !memcmp (cur_token, "new_nonce_hash3", cur_token_real_len)) {
+ set_autocomplete_string ("new_nonce_hash3");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 15 && !memcmp (cur_token, "new_nonce_hash3", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x82c93bc6, .id = "Bare_Int128", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int128 (field3) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_sticker_pack (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x12b299d4 && T->type->name != 0xed4d662b)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "emoticon", cur_token_real_len)) {
+ set_autocomplete_string ("emoticon");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "emoticon", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "documents", cur_token_real_len)) {
+ set_autocomplete_string ("documents");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "documents", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_sticker_set (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xa7a43b17 && T->type->name != 0x585bc4e8)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "access_hash", cur_token_real_len)) {
+ set_autocomplete_string ("access_hash");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "access_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "title", cur_token_real_len)) {
+ set_autocomplete_string ("title");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "title", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "short_name", cur_token_real_len)) {
+ set_autocomplete_string ("short_name");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "short_name", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field4) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_string (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xb5286e24 && T->type->name != 0x4ad791db)) { return -1; }
+ if (cur_token_len >= 0) {
+ local_next_token ();
+ return 0;
+ } else {
+ return -1;
+ }
+}
+int autocomplete_constructor_update_new_message (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x2e02b27e && T->type->name != 0xd1fd4d81)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "message", cur_token_real_len)) {
+ set_autocomplete_string ("message");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "message", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x5d652a7f, .id = "Message", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_message (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "pts", cur_token_real_len)) {
+ set_autocomplete_string ("pts");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "pts", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "pts_count", cur_token_real_len)) {
+ set_autocomplete_string ("pts_count");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "pts_count", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_update_message_i_d (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x2e02b27e && T->type->name != 0xd1fd4d81)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "random_id", cur_token_real_len)) {
+ set_autocomplete_string ("random_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "random_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_update_delete_messages (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x2e02b27e && T->type->name != 0xd1fd4d81)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "messages", cur_token_real_len)) {
+ set_autocomplete_string ("messages");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "messages", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "pts", cur_token_real_len)) {
+ set_autocomplete_string ("pts");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "pts", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "pts_count", cur_token_real_len)) {
+ set_autocomplete_string ("pts_count");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "pts_count", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_update_user_typing (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x2e02b27e && T->type->name != 0xd1fd4d81)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "user_id", cur_token_real_len)) {
+ set_autocomplete_string ("user_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "user_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "action", cur_token_real_len)) {
+ set_autocomplete_string ("action");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "action", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x70541c7e, .id = "SendMessageAction", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_send_message_action (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_update_chat_user_typing (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x2e02b27e && T->type->name != 0xd1fd4d81)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "chat_id", cur_token_real_len)) {
+ set_autocomplete_string ("chat_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "chat_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "user_id", cur_token_real_len)) {
+ set_autocomplete_string ("user_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "user_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "action", cur_token_real_len)) {
+ set_autocomplete_string ("action");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "action", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x70541c7e, .id = "SendMessageAction", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_send_message_action (field3) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_update_chat_participants (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x2e02b27e && T->type->name != 0xd1fd4d81)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "participants", cur_token_real_len)) {
+ set_autocomplete_string ("participants");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "participants", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x77930f9f, .id = "ChatParticipants", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_chat_participants (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_update_user_status (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x2e02b27e && T->type->name != 0xd1fd4d81)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "user_id", cur_token_real_len)) {
+ set_autocomplete_string ("user_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "user_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "status", cur_token_real_len)) {
+ set_autocomplete_string ("status");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "status", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x76de9570, .id = "UserStatus", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_user_status (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_update_user_name (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x2e02b27e && T->type->name != 0xd1fd4d81)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "user_id", cur_token_real_len)) {
+ set_autocomplete_string ("user_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "user_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "first_name", cur_token_real_len)) {
+ set_autocomplete_string ("first_name");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "first_name", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "last_name", cur_token_real_len)) {
+ set_autocomplete_string ("last_name");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "last_name", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "username", cur_token_real_len)) {
+ set_autocomplete_string ("username");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "username", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field4) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_update_user_photo (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x2e02b27e && T->type->name != 0xd1fd4d81)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "user_id", cur_token_real_len)) {
+ set_autocomplete_string ("user_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "user_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "photo", cur_token_real_len)) {
+ set_autocomplete_string ("photo");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "photo", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x9a486229, .id = "UserProfilePhoto", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_user_profile_photo (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "previous", cur_token_real_len)) {
+ set_autocomplete_string ("previous");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "previous", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bool (field4) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_update_contact_registered (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x2e02b27e && T->type->name != 0xd1fd4d81)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "user_id", cur_token_real_len)) {
+ set_autocomplete_string ("user_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "user_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_update_contact_link (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x2e02b27e && T->type->name != 0xd1fd4d81)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "user_id", cur_token_real_len)) {
+ set_autocomplete_string ("user_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "user_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "my_link", cur_token_real_len)) {
+ set_autocomplete_string ("my_link");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "my_link", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x522fbc63, .id = "ContactLink", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_contact_link (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "foreign_link", cur_token_real_len)) {
+ set_autocomplete_string ("foreign_link");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "foreign_link", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x522fbc63, .id = "ContactLink", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_contact_link (field3) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_update_new_authorization (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x2e02b27e && T->type->name != 0xd1fd4d81)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "auth_key_id", cur_token_real_len)) {
+ set_autocomplete_string ("auth_key_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "auth_key_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "device", cur_token_real_len)) {
+ set_autocomplete_string ("device");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "device", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "location", cur_token_real_len)) {
+ set_autocomplete_string ("location");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "location", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field4) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_update_new_geo_chat_message (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x2e02b27e && T->type->name != 0xd1fd4d81)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "geo_message", cur_token_real_len)) {
+ set_autocomplete_string ("geo_message");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "geo_message", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf67b4034, .id = "GeoChatMessage", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_geo_chat_message (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_update_new_encrypted_message (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x2e02b27e && T->type->name != 0xd1fd4d81)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "encr_message", cur_token_real_len)) {
+ set_autocomplete_string ("encr_message");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "encr_message", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xce6b8a1e, .id = "EncryptedMessage", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_encrypted_message (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "qts", cur_token_real_len)) {
+ set_autocomplete_string ("qts");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "qts", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_update_encrypted_chat_typing (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x2e02b27e && T->type->name != 0xd1fd4d81)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "chat_id", cur_token_real_len)) {
+ set_autocomplete_string ("chat_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "chat_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_update_encryption (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x2e02b27e && T->type->name != 0xd1fd4d81)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "encr_chat", cur_token_real_len)) {
+ set_autocomplete_string ("encr_chat");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "encr_chat", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xb1718213, .id = "EncryptedChat", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_encrypted_chat (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_update_encrypted_messages_read (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x2e02b27e && T->type->name != 0xd1fd4d81)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "chat_id", cur_token_real_len)) {
+ set_autocomplete_string ("chat_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "chat_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "max_date", cur_token_real_len)) {
+ set_autocomplete_string ("max_date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "max_date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_update_chat_participant_add (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x2e02b27e && T->type->name != 0xd1fd4d81)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "chat_id", cur_token_real_len)) {
+ set_autocomplete_string ("chat_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "chat_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "user_id", cur_token_real_len)) {
+ set_autocomplete_string ("user_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "user_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "inviter_id", cur_token_real_len)) {
+ set_autocomplete_string ("inviter_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "inviter_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "version", cur_token_real_len)) {
+ set_autocomplete_string ("version");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "version", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_update_chat_participant_delete (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x2e02b27e && T->type->name != 0xd1fd4d81)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "chat_id", cur_token_real_len)) {
+ set_autocomplete_string ("chat_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "chat_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "user_id", cur_token_real_len)) {
+ set_autocomplete_string ("user_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "user_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "version", cur_token_real_len)) {
+ set_autocomplete_string ("version");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "version", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_update_dc_options (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x2e02b27e && T->type->name != 0xd1fd4d81)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "dc_options", cur_token_real_len)) {
+ set_autocomplete_string ("dc_options");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "dc_options", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x2b1a62f0, .id = "DcOption", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_update_user_blocked (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x2e02b27e && T->type->name != 0xd1fd4d81)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "user_id", cur_token_real_len)) {
+ set_autocomplete_string ("user_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "user_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "blocked", cur_token_real_len)) {
+ set_autocomplete_string ("blocked");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "blocked", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bool (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_update_notify_settings (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x2e02b27e && T->type->name != 0xd1fd4d81)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "notify_peer", cur_token_real_len)) {
+ set_autocomplete_string ("notify_peer");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "notify_peer", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x9fcb8237, .id = "NotifyPeer", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_notify_peer (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 15 && !cur_token_quoted && !memcmp (cur_token, "notify_settings", cur_token_real_len)) {
+ set_autocomplete_string ("notify_settings");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 15 && !memcmp (cur_token, "notify_settings", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xfdf894fc, .id = "PeerNotifySettings", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_peer_notify_settings (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_update_service_notification (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x2e02b27e && T->type->name != 0xd1fd4d81)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "type", cur_token_real_len)) {
+ set_autocomplete_string ("type");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "type", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "message_text", cur_token_real_len)) {
+ set_autocomplete_string ("message_text");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "message_text", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "media", cur_token_real_len)) {
+ set_autocomplete_string ("media");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "media", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x95f2471a, .id = "MessageMedia", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_message_media (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "popup", cur_token_real_len)) {
+ set_autocomplete_string ("popup");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "popup", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bool (field4) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_update_privacy (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x2e02b27e && T->type->name != 0xd1fd4d81)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "key", cur_token_real_len)) {
+ set_autocomplete_string ("key");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "key", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xbc2eab30, .id = "PrivacyKey", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_privacy_key (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "rules", cur_token_real_len)) {
+ set_autocomplete_string ("rules");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "rules", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xa8638aec, .id = "PrivacyRule", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_update_user_phone (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x2e02b27e && T->type->name != 0xd1fd4d81)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "user_id", cur_token_real_len)) {
+ set_autocomplete_string ("user_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "user_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "phone", cur_token_real_len)) {
+ set_autocomplete_string ("phone");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "phone", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_update_read_history_inbox (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x2e02b27e && T->type->name != 0xd1fd4d81)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "peer", cur_token_real_len)) {
+ set_autocomplete_string ("peer");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "peer", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x276159d6, .id = "Peer", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_peer (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "max_id", cur_token_real_len)) {
+ set_autocomplete_string ("max_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "max_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "pts", cur_token_real_len)) {
+ set_autocomplete_string ("pts");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "pts", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "pts_count", cur_token_real_len)) {
+ set_autocomplete_string ("pts_count");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "pts_count", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_update_read_history_outbox (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x2e02b27e && T->type->name != 0xd1fd4d81)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "peer", cur_token_real_len)) {
+ set_autocomplete_string ("peer");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "peer", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x276159d6, .id = "Peer", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_peer (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "max_id", cur_token_real_len)) {
+ set_autocomplete_string ("max_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "max_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "pts", cur_token_real_len)) {
+ set_autocomplete_string ("pts");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "pts", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "pts_count", cur_token_real_len)) {
+ set_autocomplete_string ("pts_count");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "pts_count", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_update_web_page (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x2e02b27e && T->type->name != 0xd1fd4d81)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "webpage", cur_token_real_len)) {
+ set_autocomplete_string ("webpage");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "webpage", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x8d8c0d41, .id = "WebPage", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_web_page (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_update_read_messages_contents (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x2e02b27e && T->type->name != 0xd1fd4d81)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "messages", cur_token_real_len)) {
+ set_autocomplete_string ("messages");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "messages", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "pts", cur_token_real_len)) {
+ set_autocomplete_string ("pts");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "pts", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "pts_count", cur_token_real_len)) {
+ set_autocomplete_string ("pts_count");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "pts_count", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_update_msg_update (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x2e02b27e && T->type->name != 0xd1fd4d81)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "pts", cur_token_real_len)) {
+ set_autocomplete_string ("pts");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "pts", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "pts_count", cur_token_real_len)) {
+ set_autocomplete_string ("pts_count");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "pts_count", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_updates_too_long (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x22499d27 && T->type->name != 0xddb662d8)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_update_short_message (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x22499d27 && T->type->name != 0xddb662d8)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "flags", cur_token_real_len)) {
+ set_autocomplete_string ("flags");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "flags", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ if (cur_token_len < 0) { return -1; }
+ if (!is_int ()) { return -1;}
+ struct paramed_type *var0 = INT2PTR (get_int ());
+ assert (var0);
+ local_next_token ();
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "user_id", cur_token_real_len)) {
+ set_autocomplete_string ("user_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "user_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "message", cur_token_real_len)) {
+ set_autocomplete_string ("message");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "message", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "pts", cur_token_real_len)) {
+ set_autocomplete_string ("pts");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "pts", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field5) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "pts_count", cur_token_real_len)) {
+ set_autocomplete_string ("pts_count");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "pts_count", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field6) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field7 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field7) < 0) { return -1;}
+ if (PTR2INT (var0) & (1 << 2)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "fwd_from_id", cur_token_real_len)) {
+ set_autocomplete_string ("fwd_from_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "fwd_from_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field8 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field8) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 2)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "fwd_date", cur_token_real_len)) {
+ set_autocomplete_string ("fwd_date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "fwd_date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field9 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field9) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 3)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 15 && !cur_token_quoted && !memcmp (cur_token, "reply_to_msg_id", cur_token_real_len)) {
+ set_autocomplete_string ("reply_to_msg_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 15 && !memcmp (cur_token, "reply_to_msg_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field10 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field10) < 0) { return -1;}
+ }
+ return 0;
+}
+int autocomplete_constructor_update_short_chat_message (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x22499d27 && T->type->name != 0xddb662d8)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "flags", cur_token_real_len)) {
+ set_autocomplete_string ("flags");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "flags", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ if (cur_token_len < 0) { return -1; }
+ if (!is_int ()) { return -1;}
+ struct paramed_type *var0 = INT2PTR (get_int ());
+ assert (var0);
+ local_next_token ();
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "from_id", cur_token_real_len)) {
+ set_autocomplete_string ("from_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "from_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "chat_id", cur_token_real_len)) {
+ set_autocomplete_string ("chat_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "chat_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "message", cur_token_real_len)) {
+ set_autocomplete_string ("message");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "message", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field5) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "pts", cur_token_real_len)) {
+ set_autocomplete_string ("pts");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "pts", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field6) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "pts_count", cur_token_real_len)) {
+ set_autocomplete_string ("pts_count");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "pts_count", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field7 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field7) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field8 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field8) < 0) { return -1;}
+ if (PTR2INT (var0) & (1 << 2)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "fwd_from_id", cur_token_real_len)) {
+ set_autocomplete_string ("fwd_from_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "fwd_from_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field9 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field9) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 2)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "fwd_date", cur_token_real_len)) {
+ set_autocomplete_string ("fwd_date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "fwd_date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field10 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field10) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 3)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 15 && !cur_token_quoted && !memcmp (cur_token, "reply_to_msg_id", cur_token_real_len)) {
+ set_autocomplete_string ("reply_to_msg_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 15 && !memcmp (cur_token, "reply_to_msg_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field11 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field11) < 0) { return -1;}
+ }
+ return 0;
+}
+int autocomplete_constructor_update_short (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x22499d27 && T->type->name != 0xddb662d8)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "update", cur_token_real_len)) {
+ set_autocomplete_string ("update");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "update", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x2e02b27e, .id = "Update", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_update (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_updates_combined (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x22499d27 && T->type->name != 0xddb662d8)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "updates", cur_token_real_len)) {
+ set_autocomplete_string ("updates");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "updates", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x2e02b27e, .id = "Update", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "users", cur_token_real_len)) {
+ set_autocomplete_string ("users");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "users", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x02e6c0c8, .id = "User", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "chats", cur_token_real_len)) {
+ set_autocomplete_string ("chats");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "chats", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x7bd865dc, .id = "Chat", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "seq_start", cur_token_real_len)) {
+ set_autocomplete_string ("seq_start");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "seq_start", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field5) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "seq", cur_token_real_len)) {
+ set_autocomplete_string ("seq");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "seq", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field6) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_updates (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x22499d27 && T->type->name != 0xddb662d8)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "updates", cur_token_real_len)) {
+ set_autocomplete_string ("updates");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "updates", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x2e02b27e, .id = "Update", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "users", cur_token_real_len)) {
+ set_autocomplete_string ("users");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "users", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x02e6c0c8, .id = "User", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "chats", cur_token_real_len)) {
+ set_autocomplete_string ("chats");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "chats", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x7bd865dc, .id = "Chat", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "seq", cur_token_real_len)) {
+ set_autocomplete_string ("seq");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "seq", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field5) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_user_empty (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x02e6c0c8 && T->type->name != 0xfd193f37)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_user (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x02e6c0c8 && T->type->name != 0xfd193f37)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "flags", cur_token_real_len)) {
+ set_autocomplete_string ("flags");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "flags", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ if (cur_token_len < 0) { return -1; }
+ if (!is_int ()) { return -1;}
+ struct paramed_type *var0 = INT2PTR (get_int ());
+ assert (var0);
+ local_next_token ();
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (PTR2INT (var0) & (1 << 0)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "access_hash", cur_token_real_len)) {
+ set_autocomplete_string ("access_hash");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "access_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field3) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 1)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "first_name", cur_token_real_len)) {
+ set_autocomplete_string ("first_name");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "first_name", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field4) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 2)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "last_name", cur_token_real_len)) {
+ set_autocomplete_string ("last_name");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "last_name", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field5) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 3)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "username", cur_token_real_len)) {
+ set_autocomplete_string ("username");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "username", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field6) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 4)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "phone", cur_token_real_len)) {
+ set_autocomplete_string ("phone");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "phone", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field7 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field7) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 5)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "photo", cur_token_real_len)) {
+ set_autocomplete_string ("photo");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "photo", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field8 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x9a486229, .id = "UserProfilePhoto", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_user_profile_photo (field8) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 6)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "status", cur_token_real_len)) {
+ set_autocomplete_string ("status");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "status", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field9 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x76de9570, .id = "UserStatus", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_user_status (field9) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 14)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 16 && !cur_token_quoted && !memcmp (cur_token, "bot_info_version", cur_token_real_len)) {
+ set_autocomplete_string ("bot_info_version");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 16 && !memcmp (cur_token, "bot_info_version", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field10 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field10) < 0) { return -1;}
+ }
+ return 0;
+}
+int autocomplete_constructor_user_full (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x5a89ac5b && T->type->name != 0xa57653a4)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "user", cur_token_real_len)) {
+ set_autocomplete_string ("user");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "user", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x02e6c0c8, .id = "User", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_user (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "link", cur_token_real_len)) {
+ set_autocomplete_string ("link");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "link", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x3ace484c, .id = "contacts.Link", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_contacts_link (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 13 && !cur_token_quoted && !memcmp (cur_token, "profile_photo", cur_token_real_len)) {
+ set_autocomplete_string ("profile_photo");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 13 && !memcmp (cur_token, "profile_photo", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xc207550a, .id = "Photo", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_photo (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 15 && !cur_token_quoted && !memcmp (cur_token, "notify_settings", cur_token_real_len)) {
+ set_autocomplete_string ("notify_settings");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 15 && !memcmp (cur_token, "notify_settings", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xfdf894fc, .id = "PeerNotifySettings", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_peer_notify_settings (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "blocked", cur_token_real_len)) {
+ set_autocomplete_string ("blocked");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "blocked", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bool (field5) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "bot_info", cur_token_real_len)) {
+ set_autocomplete_string ("bot_info");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "bot_info", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xb2e16f93, .id = "BotInfo", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bot_info (field6) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_user_profile_photo_empty (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x9a486229 && T->type->name != 0x65b79dd6)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_user_profile_photo (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x9a486229 && T->type->name != 0x65b79dd6)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "photo_id", cur_token_real_len)) {
+ set_autocomplete_string ("photo_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "photo_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "photo_small", cur_token_real_len)) {
+ set_autocomplete_string ("photo_small");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "photo_small", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x2f8ffb30, .id = "FileLocation", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_file_location (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "photo_big", cur_token_real_len)) {
+ set_autocomplete_string ("photo_big");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "photo_big", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x2f8ffb30, .id = "FileLocation", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_file_location (field3) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_user_status_empty (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x76de9570 && T->type->name != 0x89216a8f)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_user_status_online (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x76de9570 && T->type->name != 0x89216a8f)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "expires", cur_token_real_len)) {
+ set_autocomplete_string ("expires");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "expires", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_user_status_offline (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x76de9570 && T->type->name != 0x89216a8f)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "was_online", cur_token_real_len)) {
+ set_autocomplete_string ("was_online");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "was_online", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_user_status_recently (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x76de9570 && T->type->name != 0x89216a8f)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_user_status_last_week (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x76de9570 && T->type->name != 0x89216a8f)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_user_status_last_month (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x76de9570 && T->type->name != 0x89216a8f)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_vector (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x1cb5c415 && T->type->name != 0xe34a3bea)) { return -1; }
+ if (ODDP(T->params[0])) { return -1; }
+ struct paramed_type *var0 = T->params[0]; assert (var0);
+ if (cur_token_len < 0) { return -1; }
+ if (!is_int ()) { return -1;}
+ struct paramed_type *var1 = INT2PTR (get_int ());
+ assert (var1);
+ local_next_token ();
+ expect_token_autocomplete ("[", 1);
+ int multiplicity3 = PTR2INT (
+ ((void *)var1) + 0 );
+ struct paramed_type *field3 =
+ var0;
+ while (multiplicity3 -- > 0) {
+ if (autocomplete_type_any (field3) < 0) { return -1;}
+ }
+ expect_token_autocomplete ("]", 1);
+ return 0;
+}
+int autocomplete_constructor_video_empty (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x1716b174 && T->type->name != 0xe8e94e8b)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_video (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x1716b174 && T->type->name != 0xe8e94e8b)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "access_hash", cur_token_real_len)) {
+ set_autocomplete_string ("access_hash");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "access_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "user_id", cur_token_real_len)) {
+ set_autocomplete_string ("user_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "user_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "duration", cur_token_real_len)) {
+ set_autocomplete_string ("duration");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "duration", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field5) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "size", cur_token_real_len)) {
+ set_autocomplete_string ("size");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "size", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field6) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "thumb", cur_token_real_len)) {
+ set_autocomplete_string ("thumb");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "thumb", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field7 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x900f60dd, .id = "PhotoSize", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_photo_size (field7) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "dc_id", cur_token_real_len)) {
+ set_autocomplete_string ("dc_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "dc_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field8 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field8) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 1 && !cur_token_quoted && !memcmp (cur_token, "w", cur_token_real_len)) {
+ set_autocomplete_string ("w");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 1 && !memcmp (cur_token, "w", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field9 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field9) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 1 && !cur_token_quoted && !memcmp (cur_token, "h", cur_token_real_len)) {
+ set_autocomplete_string ("h");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 1 && !memcmp (cur_token, "h", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field10 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field10) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_video_l27 (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x1716b174 && T->type->name != 0xe8e94e8b)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "access_hash", cur_token_real_len)) {
+ set_autocomplete_string ("access_hash");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "access_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "user_id", cur_token_real_len)) {
+ set_autocomplete_string ("user_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "user_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "caption", cur_token_real_len)) {
+ set_autocomplete_string ("caption");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "caption", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field5) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "duration", cur_token_real_len)) {
+ set_autocomplete_string ("duration");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "duration", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field6) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "mime_type", cur_token_real_len)) {
+ set_autocomplete_string ("mime_type");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "mime_type", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field7 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field7) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "size", cur_token_real_len)) {
+ set_autocomplete_string ("size");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "size", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field8 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field8) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "thumb", cur_token_real_len)) {
+ set_autocomplete_string ("thumb");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "thumb", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field9 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x900f60dd, .id = "PhotoSize", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_photo_size (field9) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "dc_id", cur_token_real_len)) {
+ set_autocomplete_string ("dc_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "dc_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field10 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field10) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 1 && !cur_token_quoted && !memcmp (cur_token, "w", cur_token_real_len)) {
+ set_autocomplete_string ("w");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 1 && !memcmp (cur_token, "w", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field11 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field11) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 1 && !cur_token_quoted && !memcmp (cur_token, "h", cur_token_real_len)) {
+ set_autocomplete_string ("h");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 1 && !memcmp (cur_token, "h", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field12 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field12) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_wall_paper (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xafa14973 && T->type->name != 0x505eb68c)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "title", cur_token_real_len)) {
+ set_autocomplete_string ("title");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "title", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "sizes", cur_token_real_len)) {
+ set_autocomplete_string ("sizes");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "sizes", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x900f60dd, .id = "PhotoSize", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "color", cur_token_real_len)) {
+ set_autocomplete_string ("color");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "color", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_wall_paper_solid (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xafa14973 && T->type->name != 0x505eb68c)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "title", cur_token_real_len)) {
+ set_autocomplete_string ("title");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "title", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "bg_color", cur_token_real_len)) {
+ set_autocomplete_string ("bg_color");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "bg_color", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "color", cur_token_real_len)) {
+ set_autocomplete_string ("color");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "color", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_web_page_empty (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x8d8c0d41 && T->type->name != 0x7273f2be)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_web_page_pending (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x8d8c0d41 && T->type->name != 0x7273f2be)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_web_page (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x8d8c0d41 && T->type->name != 0x7273f2be)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "flags", cur_token_real_len)) {
+ set_autocomplete_string ("flags");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "flags", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ if (cur_token_len < 0) { return -1; }
+ if (!is_int ()) { return -1;}
+ struct paramed_type *var0 = INT2PTR (get_int ());
+ assert (var0);
+ local_next_token ();
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "url", cur_token_real_len)) {
+ set_autocomplete_string ("url");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "url", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "display_url", cur_token_real_len)) {
+ set_autocomplete_string ("display_url");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "display_url", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field4) < 0) { return -1;}
+ if (PTR2INT (var0) & (1 << 0)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "type", cur_token_real_len)) {
+ set_autocomplete_string ("type");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "type", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field5) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 1)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "site_name", cur_token_real_len)) {
+ set_autocomplete_string ("site_name");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "site_name", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field6) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 2)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "title", cur_token_real_len)) {
+ set_autocomplete_string ("title");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "title", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field7 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field7) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 3)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "description", cur_token_real_len)) {
+ set_autocomplete_string ("description");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "description", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field8 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field8) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 4)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "photo", cur_token_real_len)) {
+ set_autocomplete_string ("photo");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "photo", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field9 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xc207550a, .id = "Photo", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_photo (field9) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 5)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "embed_url", cur_token_real_len)) {
+ set_autocomplete_string ("embed_url");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "embed_url", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field10 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field10) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 5)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "embed_type", cur_token_real_len)) {
+ set_autocomplete_string ("embed_type");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "embed_type", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field11 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field11) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 6)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "embed_width", cur_token_real_len)) {
+ set_autocomplete_string ("embed_width");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "embed_width", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field12 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field12) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 6)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "embed_height", cur_token_real_len)) {
+ set_autocomplete_string ("embed_height");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "embed_height", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field13 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field13) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 7)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "duration", cur_token_real_len)) {
+ set_autocomplete_string ("duration");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "duration", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field14 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field14) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 8)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "author", cur_token_real_len)) {
+ set_autocomplete_string ("author");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "author", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field15 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field15) < 0) { return -1;}
+ }
+ return 0;
+}
+int autocomplete_constructor_account_authorizations (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x1250abde && T->type->name != 0xedaf5421)) { return -1; }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x7bf2e6f6, .id = "Authorization", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_account_no_password (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xeac2a804 && T->type->name != 0x153d57fb)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "new_salt", cur_token_real_len)) {
+ set_autocomplete_string ("new_salt");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "new_salt", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 25 && !cur_token_quoted && !memcmp (cur_token, "email_unconfirmed_pattern", cur_token_real_len)) {
+ set_autocomplete_string ("email_unconfirmed_pattern");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 25 && !memcmp (cur_token, "email_unconfirmed_pattern", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_account_password (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xeac2a804 && T->type->name != 0x153d57fb)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "current_salt", cur_token_real_len)) {
+ set_autocomplete_string ("current_salt");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "current_salt", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "new_salt", cur_token_real_len)) {
+ set_autocomplete_string ("new_salt");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "new_salt", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "hint", cur_token_real_len)) {
+ set_autocomplete_string ("hint");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "hint", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "has_recovery", cur_token_real_len)) {
+ set_autocomplete_string ("has_recovery");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "has_recovery", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bool (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 25 && !cur_token_quoted && !memcmp (cur_token, "email_unconfirmed_pattern", cur_token_real_len)) {
+ set_autocomplete_string ("email_unconfirmed_pattern");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 25 && !memcmp (cur_token, "email_unconfirmed_pattern", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field5) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_account_password_input_settings (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xbcfc532c && T->type->name != 0x4303acd3)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "flags", cur_token_real_len)) {
+ set_autocomplete_string ("flags");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "flags", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ if (cur_token_len < 0) { return -1; }
+ if (!is_int ()) { return -1;}
+ struct paramed_type *var0 = INT2PTR (get_int ());
+ assert (var0);
+ local_next_token ();
+ if (PTR2INT (var0) & (1 << 0)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "new_salt", cur_token_real_len)) {
+ set_autocomplete_string ("new_salt");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "new_salt", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field2) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 0)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 17 && !cur_token_quoted && !memcmp (cur_token, "new_password_hash", cur_token_real_len)) {
+ set_autocomplete_string ("new_password_hash");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 17 && !memcmp (cur_token, "new_password_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field3) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 0)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "hint", cur_token_real_len)) {
+ set_autocomplete_string ("hint");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "hint", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field4) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 1)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "email", cur_token_real_len)) {
+ set_autocomplete_string ("email");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "email", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field5) < 0) { return -1;}
+ }
+ return 0;
+}
+int autocomplete_constructor_account_password_settings (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xb7b72ab3 && T->type->name != 0x4848d54c)) { return -1; }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_account_privacy_rules (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x554abb6f && T->type->name != 0xaab54490)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "rules", cur_token_real_len)) {
+ set_autocomplete_string ("rules");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "rules", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xa8638aec, .id = "PrivacyRule", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "users", cur_token_real_len)) {
+ set_autocomplete_string ("users");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "users", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x02e6c0c8, .id = "User", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_account_sent_change_phone_code (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xa4f58c4c && T->type->name != 0x5b0a73b3)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 15 && !cur_token_quoted && !memcmp (cur_token, "phone_code_hash", cur_token_real_len)) {
+ set_autocomplete_string ("phone_code_hash");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 15 && !memcmp (cur_token, "phone_code_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 17 && !cur_token_quoted && !memcmp (cur_token, "send_call_timeout", cur_token_real_len)) {
+ set_autocomplete_string ("send_call_timeout");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 17 && !memcmp (cur_token, "send_call_timeout", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_auth_authorization (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xff036af1 && T->type->name != 0x00fc950e)) { return -1; }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x02e6c0c8, .id = "User", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_user (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_auth_checked_phone (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x811ea28e && T->type->name != 0x7ee15d71)) { return -1; }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bool (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_auth_exported_authorization (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xdf969c2d && T->type->name != 0x206963d2)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "bytes", cur_token_real_len)) {
+ set_autocomplete_string ("bytes");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "bytes", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_auth_password_recovery (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x137948a5 && T->type->name != 0xec86b75a)) { return -1; }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_auth_sent_code (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x0cc8bc16 && T->type->name != 0xf33743e9)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 16 && !cur_token_quoted && !memcmp (cur_token, "phone_registered", cur_token_real_len)) {
+ set_autocomplete_string ("phone_registered");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 16 && !memcmp (cur_token, "phone_registered", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bool (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 15 && !cur_token_quoted && !memcmp (cur_token, "phone_code_hash", cur_token_real_len)) {
+ set_autocomplete_string ("phone_code_hash");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 15 && !memcmp (cur_token, "phone_code_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 17 && !cur_token_quoted && !memcmp (cur_token, "send_call_timeout", cur_token_real_len)) {
+ set_autocomplete_string ("send_call_timeout");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 17 && !memcmp (cur_token, "send_call_timeout", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "is_password", cur_token_real_len)) {
+ set_autocomplete_string ("is_password");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "is_password", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bool (field4) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_auth_sent_app_code (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x0cc8bc16 && T->type->name != 0xf33743e9)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 16 && !cur_token_quoted && !memcmp (cur_token, "phone_registered", cur_token_real_len)) {
+ set_autocomplete_string ("phone_registered");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 16 && !memcmp (cur_token, "phone_registered", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bool (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 15 && !cur_token_quoted && !memcmp (cur_token, "phone_code_hash", cur_token_real_len)) {
+ set_autocomplete_string ("phone_code_hash");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 15 && !memcmp (cur_token, "phone_code_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 17 && !cur_token_quoted && !memcmp (cur_token, "send_call_timeout", cur_token_real_len)) {
+ set_autocomplete_string ("send_call_timeout");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 17 && !memcmp (cur_token, "send_call_timeout", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "is_password", cur_token_real_len)) {
+ set_autocomplete_string ("is_password");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "is_password", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bool (field4) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_binlog_encr_key (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x0377168f && T->type->name != 0xfc88e970)) { return -1; }
+ expect_token_autocomplete ("[", 1);
+ int multiplicity1 = PTR2INT (
+ INT2PTR (64) );
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ while (multiplicity1 -- > 0) {
+ if (autocomplete_type_any (field1) < 0) { return -1;}
+ }
+ expect_token_autocomplete ("]", 1);
+ return 0;
+}
+int autocomplete_constructor_binlog_start (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x66ff03a6 && T->type->name != 0x9900fc59)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_binlog_dc_option (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x66ff03a6 && T->type->name != 0x9900fc59)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "dc", cur_token_real_len)) {
+ set_autocomplete_string ("dc");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "dc", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "name", cur_token_real_len)) {
+ set_autocomplete_string ("name");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "name", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "ip", cur_token_real_len)) {
+ set_autocomplete_string ("ip");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "ip", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "port", cur_token_real_len)) {
+ set_autocomplete_string ("port");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "port", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_binlog_dc_option_new (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x66ff03a6 && T->type->name != 0x9900fc59)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "flags", cur_token_real_len)) {
+ set_autocomplete_string ("flags");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "flags", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "dc", cur_token_real_len)) {
+ set_autocomplete_string ("dc");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "dc", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "name", cur_token_real_len)) {
+ set_autocomplete_string ("name");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "name", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "ip", cur_token_real_len)) {
+ set_autocomplete_string ("ip");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "ip", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "port", cur_token_real_len)) {
+ set_autocomplete_string ("port");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "port", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field5) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_binlog_auth_key (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x66ff03a6 && T->type->name != 0x9900fc59)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "dc", cur_token_real_len)) {
+ set_autocomplete_string ("dc");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "dc", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "key", cur_token_real_len)) {
+ set_autocomplete_string ("key");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "key", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xfc88e970, .id = "Bare_binlog.EncrKey", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_binlog_encr_key (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_binlog_default_dc (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x66ff03a6 && T->type->name != 0x9900fc59)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "dc", cur_token_real_len)) {
+ set_autocomplete_string ("dc");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "dc", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_binlog_dc_signed (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x66ff03a6 && T->type->name != 0x9900fc59)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "dc", cur_token_real_len)) {
+ set_autocomplete_string ("dc");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "dc", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_binlog_our_id (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x66ff03a6 && T->type->name != 0x9900fc59)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_binlog_set_dh_params (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x66ff03a6 && T->type->name != 0x9900fc59)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "root", cur_token_real_len)) {
+ set_autocomplete_string ("root");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "root", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "prime", cur_token_real_len)) {
+ set_autocomplete_string ("prime");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "prime", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xfc88e970, .id = "Bare_binlog.EncrKey", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_binlog_encr_key (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "version", cur_token_real_len)) {
+ set_autocomplete_string ("version");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "version", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_binlog_set_pts (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x66ff03a6 && T->type->name != 0x9900fc59)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "pts", cur_token_real_len)) {
+ set_autocomplete_string ("pts");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "pts", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_binlog_set_qts (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x66ff03a6 && T->type->name != 0x9900fc59)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "qts", cur_token_real_len)) {
+ set_autocomplete_string ("qts");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "qts", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_binlog_set_date (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x66ff03a6 && T->type->name != 0x9900fc59)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_binlog_set_seq (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x66ff03a6 && T->type->name != 0x9900fc59)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "seq", cur_token_real_len)) {
+ set_autocomplete_string ("seq");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "seq", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_binlog_encr_chat_delete (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x66ff03a6 && T->type->name != 0x9900fc59)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_binlog_encr_chat_new (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x66ff03a6 && T->type->name != 0x9900fc59)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "flags", cur_token_real_len)) {
+ set_autocomplete_string ("flags");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "flags", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ if (cur_token_len < 0) { return -1; }
+ if (!is_int ()) { return -1;}
+ struct paramed_type *var0 = INT2PTR (get_int ());
+ assert (var0);
+ local_next_token ();
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (PTR2INT (var0) & (1 << 17)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "access_hash", cur_token_real_len)) {
+ set_autocomplete_string ("access_hash");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "access_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field3) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 18)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 19)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "admin", cur_token_real_len)) {
+ set_autocomplete_string ("admin");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "admin", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field5) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 20)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "user_id", cur_token_real_len)) {
+ set_autocomplete_string ("user_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "user_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field6) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 21)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "key", cur_token_real_len)) {
+ set_autocomplete_string ("key");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "key", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field7 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xfc88e970, .id = "Bare_binlog.EncrKey", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_binlog_encr_key (field7) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 22)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "g_key", cur_token_real_len)) {
+ set_autocomplete_string ("g_key");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "g_key", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field8 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xfc88e970, .id = "Bare_binlog.EncrKey", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_binlog_encr_key (field8) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 23)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "state", cur_token_real_len)) {
+ set_autocomplete_string ("state");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "state", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field9 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field9) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 24)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "ttl", cur_token_real_len)) {
+ set_autocomplete_string ("ttl");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "ttl", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field10 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field10) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 25)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "layer", cur_token_real_len)) {
+ set_autocomplete_string ("layer");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "layer", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field11 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field11) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 26)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "in_seq_no", cur_token_real_len)) {
+ set_autocomplete_string ("in_seq_no");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "in_seq_no", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field12 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field12) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 26)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 14 && !cur_token_quoted && !memcmp (cur_token, "last_in_seq_no", cur_token_real_len)) {
+ set_autocomplete_string ("last_in_seq_no");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 14 && !memcmp (cur_token, "last_in_seq_no", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field13 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field13) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 26)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "out_seq_no", cur_token_real_len)) {
+ set_autocomplete_string ("out_seq_no");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "out_seq_no", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field14 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field14) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 27)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 15 && !cur_token_quoted && !memcmp (cur_token, "key_fingerprint", cur_token_real_len)) {
+ set_autocomplete_string ("key_fingerprint");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 15 && !memcmp (cur_token, "key_fingerprint", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field15 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field15) < 0) { return -1;}
+ }
+ return 0;
+}
+int autocomplete_constructor_binlog_encr_chat_exchange_new (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x66ff03a6 && T->type->name != 0x9900fc59)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "flags", cur_token_real_len)) {
+ set_autocomplete_string ("flags");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "flags", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ if (cur_token_len < 0) { return -1; }
+ if (!is_int ()) { return -1;}
+ struct paramed_type *var0 = INT2PTR (get_int ());
+ assert (var0);
+ local_next_token ();
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (PTR2INT (var0) & (1 << 17)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "exchange_id", cur_token_real_len)) {
+ set_autocomplete_string ("exchange_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "exchange_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field3) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 18)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "key", cur_token_real_len)) {
+ set_autocomplete_string ("key");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "key", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xfc88e970, .id = "Bare_binlog.EncrKey", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_binlog_encr_key (field4) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 19)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "state", cur_token_real_len)) {
+ set_autocomplete_string ("state");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "state", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field5) < 0) { return -1;}
+ }
+ return 0;
+}
+int autocomplete_constructor_binlog_user_delete (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x66ff03a6 && T->type->name != 0x9900fc59)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_binlog_user_new (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x66ff03a6 && T->type->name != 0x9900fc59)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "flags", cur_token_real_len)) {
+ set_autocomplete_string ("flags");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "flags", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ if (cur_token_len < 0) { return -1; }
+ if (!is_int ()) { return -1;}
+ struct paramed_type *var0 = INT2PTR (get_int ());
+ assert (var0);
+ local_next_token ();
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (PTR2INT (var0) & (1 << 17)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "access_hash", cur_token_real_len)) {
+ set_autocomplete_string ("access_hash");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "access_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field3) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 18)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "first_name", cur_token_real_len)) {
+ set_autocomplete_string ("first_name");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "first_name", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field4) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 18)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "last_name", cur_token_real_len)) {
+ set_autocomplete_string ("last_name");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "last_name", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field5) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 19)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "phone", cur_token_real_len)) {
+ set_autocomplete_string ("phone");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "phone", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field6) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 20)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "username", cur_token_real_len)) {
+ set_autocomplete_string ("username");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "username", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field7 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field7) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 21)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "photo", cur_token_real_len)) {
+ set_autocomplete_string ("photo");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "photo", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field8 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xc207550a, .id = "Photo", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_photo (field8) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 22)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 15 && !cur_token_quoted && !memcmp (cur_token, "real_first_name", cur_token_real_len)) {
+ set_autocomplete_string ("real_first_name");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 15 && !memcmp (cur_token, "real_first_name", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field9 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field9) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 22)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 14 && !cur_token_quoted && !memcmp (cur_token, "real_last_name", cur_token_real_len)) {
+ set_autocomplete_string ("real_last_name");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 14 && !memcmp (cur_token, "real_last_name", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field10 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field10) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 23)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "user_photo", cur_token_real_len)) {
+ set_autocomplete_string ("user_photo");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "user_photo", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field11 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x9a486229, .id = "UserProfilePhoto", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_user_profile_photo (field11) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 24)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "last_read_in", cur_token_real_len)) {
+ set_autocomplete_string ("last_read_in");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "last_read_in", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field12 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field12) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 25)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 13 && !cur_token_quoted && !memcmp (cur_token, "last_read_out", cur_token_real_len)) {
+ set_autocomplete_string ("last_read_out");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 13 && !memcmp (cur_token, "last_read_out", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field13 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field13) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 26)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "bot_info", cur_token_real_len)) {
+ set_autocomplete_string ("bot_info");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "bot_info", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field14 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xb2e16f93, .id = "BotInfo", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bot_info (field14) < 0) { return -1;}
+ }
+ return 0;
+}
+int autocomplete_constructor_binlog_chat_new (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x66ff03a6 && T->type->name != 0x9900fc59)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "flags", cur_token_real_len)) {
+ set_autocomplete_string ("flags");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "flags", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ if (cur_token_len < 0) { return -1; }
+ if (!is_int ()) { return -1;}
+ struct paramed_type *var0 = INT2PTR (get_int ());
+ assert (var0);
+ local_next_token ();
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (PTR2INT (var0) & (1 << 17)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "title", cur_token_real_len)) {
+ set_autocomplete_string ("title");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "title", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 18)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "user_num", cur_token_real_len)) {
+ set_autocomplete_string ("user_num");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "user_num", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 19)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field5) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 20)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "version", cur_token_real_len)) {
+ set_autocomplete_string ("version");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "version", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field6) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 20)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "participants", cur_token_real_len)) {
+ set_autocomplete_string ("participants");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "participants", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field7 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xc8d7493e, .id = "ChatParticipant", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field7) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 21)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "chat_photo", cur_token_real_len)) {
+ set_autocomplete_string ("chat_photo");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "chat_photo", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field8 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x56922676, .id = "ChatPhoto", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_chat_photo (field8) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 22)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "photo", cur_token_real_len)) {
+ set_autocomplete_string ("photo");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "photo", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field9 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xc207550a, .id = "Photo", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_photo (field9) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 23)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "admin", cur_token_real_len)) {
+ set_autocomplete_string ("admin");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "admin", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field10 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field10) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 24)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "last_read_in", cur_token_real_len)) {
+ set_autocomplete_string ("last_read_in");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "last_read_in", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field11 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field11) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 25)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 13 && !cur_token_quoted && !memcmp (cur_token, "last_read_out", cur_token_real_len)) {
+ set_autocomplete_string ("last_read_out");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 13 && !memcmp (cur_token, "last_read_out", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field12 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field12) < 0) { return -1;}
+ }
+ return 0;
+}
+int autocomplete_constructor_binlog_chat_add_participant (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x66ff03a6 && T->type->name != 0x9900fc59)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "version", cur_token_real_len)) {
+ set_autocomplete_string ("version");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "version", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "user_id", cur_token_real_len)) {
+ set_autocomplete_string ("user_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "user_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "inviter_id", cur_token_real_len)) {
+ set_autocomplete_string ("inviter_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "inviter_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field5) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_binlog_chat_del_participant (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x66ff03a6 && T->type->name != 0x9900fc59)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "version", cur_token_real_len)) {
+ set_autocomplete_string ("version");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "version", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "user_id", cur_token_real_len)) {
+ set_autocomplete_string ("user_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "user_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_binlog_set_msg_id (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x66ff03a6 && T->type->name != 0x9900fc59)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "old_id", cur_token_real_len)) {
+ set_autocomplete_string ("old_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "old_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "new_id", cur_token_real_len)) {
+ set_autocomplete_string ("new_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "new_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_binlog_message_delete (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x66ff03a6 && T->type->name != 0x9900fc59)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "lid", cur_token_real_len)) {
+ set_autocomplete_string ("lid");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "lid", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_binlog_message_new (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x66ff03a6 && T->type->name != 0x9900fc59)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "flags", cur_token_real_len)) {
+ set_autocomplete_string ("flags");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "flags", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ if (cur_token_len < 0) { return -1; }
+ if (!is_int ()) { return -1;}
+ struct paramed_type *var0 = INT2PTR (get_int ());
+ assert (var0);
+ local_next_token ();
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "lid", cur_token_real_len)) {
+ set_autocomplete_string ("lid");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "lid", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field2) < 0) { return -1;}
+ if (PTR2INT (var0) & (1 << 17)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "from_id", cur_token_real_len)) {
+ set_autocomplete_string ("from_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "from_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 17)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "to_type", cur_token_real_len)) {
+ set_autocomplete_string ("to_type");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "to_type", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 17)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "to_id", cur_token_real_len)) {
+ set_autocomplete_string ("to_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "to_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field5) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 18)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "fwd_from_id", cur_token_real_len)) {
+ set_autocomplete_string ("fwd_from_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "fwd_from_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field6) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 18)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "fwd_date", cur_token_real_len)) {
+ set_autocomplete_string ("fwd_date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "fwd_date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field7 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field7) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 19)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field8 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field8) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 20)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "message", cur_token_real_len)) {
+ set_autocomplete_string ("message");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "message", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field9 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field9) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 21)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "media", cur_token_real_len)) {
+ set_autocomplete_string ("media");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "media", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field10 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x95f2471a, .id = "MessageMedia", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_message_media (field10) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 22)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "action", cur_token_real_len)) {
+ set_autocomplete_string ("action");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "action", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field11 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x383415fa, .id = "MessageAction", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_message_action (field11) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 23)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "reply_id", cur_token_real_len)) {
+ set_autocomplete_string ("reply_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "reply_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field12 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field12) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 24)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "reply_markup", cur_token_real_len)) {
+ set_autocomplete_string ("reply_markup");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "reply_markup", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field13 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x612ca4a9, .id = "ReplyMarkup", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_reply_markup (field13) < 0) { return -1;}
+ }
+ return 0;
+}
+int autocomplete_constructor_binlog_message_encr_new (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x66ff03a6 && T->type->name != 0x9900fc59)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "flags", cur_token_real_len)) {
+ set_autocomplete_string ("flags");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "flags", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ if (cur_token_len < 0) { return -1; }
+ if (!is_int ()) { return -1;}
+ struct paramed_type *var0 = INT2PTR (get_int ());
+ assert (var0);
+ local_next_token ();
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "lid", cur_token_real_len)) {
+ set_autocomplete_string ("lid");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "lid", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field2) < 0) { return -1;}
+ if (PTR2INT (var0) & (1 << 17)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "from_id", cur_token_real_len)) {
+ set_autocomplete_string ("from_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "from_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 17)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "to_type", cur_token_real_len)) {
+ set_autocomplete_string ("to_type");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "to_type", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 17)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "to_id", cur_token_real_len)) {
+ set_autocomplete_string ("to_id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "to_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field5) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 19)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field6) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 20)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "message", cur_token_real_len)) {
+ set_autocomplete_string ("message");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "message", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field7 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field7) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 21)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "encr_media", cur_token_real_len)) {
+ set_autocomplete_string ("encr_media");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "encr_media", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field8 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x34e0d674, .id = "DecryptedMessageMedia", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_decrypted_message_media (field8) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 22)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "encr_action", cur_token_real_len)) {
+ set_autocomplete_string ("encr_action");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "encr_action", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field9 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4e0eefde, .id = "DecryptedMessageAction", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_decrypted_message_action (field9) < 0) { return -1;}
+ }
+ if (PTR2INT (var0) & (1 << 23)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "file", cur_token_real_len)) {
+ set_autocomplete_string ("file");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "file", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field10 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x886fd032, .id = "EncryptedFile", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_encrypted_file (field10) < 0) { return -1;}
+ }
+ return 0;
+}
+int autocomplete_constructor_binlog_msg_update (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x66ff03a6 && T->type->name != 0x9900fc59)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "lid", cur_token_real_len)) {
+ set_autocomplete_string ("lid");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "lid", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_binlog_reset_authorization (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x66ff03a6 && T->type->name != 0x9900fc59)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_contacts_blocked (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x8c1b8fb4 && T->type->name != 0x73e4704b)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "blocked", cur_token_real_len)) {
+ set_autocomplete_string ("blocked");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "blocked", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x561bc879, .id = "ContactBlocked", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "users", cur_token_real_len)) {
+ set_autocomplete_string ("users");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "users", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x02e6c0c8, .id = "User", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_contacts_blocked_slice (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x8c1b8fb4 && T->type->name != 0x73e4704b)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "count", cur_token_real_len)) {
+ set_autocomplete_string ("count");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "count", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "blocked", cur_token_real_len)) {
+ set_autocomplete_string ("blocked");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "blocked", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x561bc879, .id = "ContactBlocked", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "users", cur_token_real_len)) {
+ set_autocomplete_string ("users");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "users", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x02e6c0c8, .id = "User", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field3) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_contacts_contacts_not_modified (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xd8c02560 && T->type->name != 0x273fda9f)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_contacts_contacts (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xd8c02560 && T->type->name != 0x273fda9f)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "contacts", cur_token_real_len)) {
+ set_autocomplete_string ("contacts");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "contacts", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf911c994, .id = "Contact", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "users", cur_token_real_len)) {
+ set_autocomplete_string ("users");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "users", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x02e6c0c8, .id = "User", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_contacts_found (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x0566000e && T->type->name != 0xfa99fff1)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "results", cur_token_real_len)) {
+ set_autocomplete_string ("results");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "results", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xea879f95, .id = "ContactFound", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "users", cur_token_real_len)) {
+ set_autocomplete_string ("users");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "users", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x02e6c0c8, .id = "User", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_contacts_imported_contacts (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xad524315 && T->type->name != 0x52adbcea)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "imported", cur_token_real_len)) {
+ set_autocomplete_string ("imported");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "imported", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xd0028438, .id = "ImportedContact", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 14 && !cur_token_quoted && !memcmp (cur_token, "retry_contacts", cur_token_real_len)) {
+ set_autocomplete_string ("retry_contacts");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 14 && !memcmp (cur_token, "retry_contacts", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "users", cur_token_real_len)) {
+ set_autocomplete_string ("users");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "users", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x02e6c0c8, .id = "User", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field3) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_contacts_link (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x3ace484c && T->type->name != 0xc531b7b3)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "my_link", cur_token_real_len)) {
+ set_autocomplete_string ("my_link");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "my_link", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x522fbc63, .id = "ContactLink", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_contact_link (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "foreign_link", cur_token_real_len)) {
+ set_autocomplete_string ("foreign_link");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "foreign_link", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x522fbc63, .id = "ContactLink", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_contact_link (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "user", cur_token_real_len)) {
+ set_autocomplete_string ("user");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "user", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x02e6c0c8, .id = "User", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_user (field3) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_contacts_suggested (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x5649dcc5 && T->type->name != 0xa9b6233a)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "results", cur_token_real_len)) {
+ set_autocomplete_string ("results");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "results", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x3de191a1, .id = "ContactSuggested", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "users", cur_token_real_len)) {
+ set_autocomplete_string ("users");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "users", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x02e6c0c8, .id = "User", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_geochats_located (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x48feb267 && T->type->name != 0xb7014d98)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "results", cur_token_real_len)) {
+ set_autocomplete_string ("results");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "results", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x3631cf4c, .id = "ChatLocated", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "messages", cur_token_real_len)) {
+ set_autocomplete_string ("messages");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "messages", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf67b4034, .id = "GeoChatMessage", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "chats", cur_token_real_len)) {
+ set_autocomplete_string ("chats");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "chats", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x7bd865dc, .id = "Chat", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "users", cur_token_real_len)) {
+ set_autocomplete_string ("users");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "users", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x02e6c0c8, .id = "User", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field4) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_geochats_messages (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x6d0a0e59 && T->type->name != 0x92f5f1a6)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "messages", cur_token_real_len)) {
+ set_autocomplete_string ("messages");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "messages", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf67b4034, .id = "GeoChatMessage", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "chats", cur_token_real_len)) {
+ set_autocomplete_string ("chats");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "chats", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x7bd865dc, .id = "Chat", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "users", cur_token_real_len)) {
+ set_autocomplete_string ("users");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "users", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x02e6c0c8, .id = "User", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field3) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_geochats_messages_slice (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x6d0a0e59 && T->type->name != 0x92f5f1a6)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "count", cur_token_real_len)) {
+ set_autocomplete_string ("count");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "count", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "messages", cur_token_real_len)) {
+ set_autocomplete_string ("messages");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "messages", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf67b4034, .id = "GeoChatMessage", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "chats", cur_token_real_len)) {
+ set_autocomplete_string ("chats");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "chats", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x7bd865dc, .id = "Chat", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "users", cur_token_real_len)) {
+ set_autocomplete_string ("users");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "users", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x02e6c0c8, .id = "User", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field4) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_geochats_stated_message (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x17b1578b && T->type->name != 0xe84ea874)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "message", cur_token_real_len)) {
+ set_autocomplete_string ("message");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "message", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf67b4034, .id = "GeoChatMessage", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_geo_chat_message (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "chats", cur_token_real_len)) {
+ set_autocomplete_string ("chats");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "chats", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x7bd865dc, .id = "Chat", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "users", cur_token_real_len)) {
+ set_autocomplete_string ("users");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "users", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x02e6c0c8, .id = "User", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "seq", cur_token_real_len)) {
+ set_autocomplete_string ("seq");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "seq", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_help_app_update (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x4ddd9627 && T->type->name != 0xb22269d8)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "critical", cur_token_real_len)) {
+ set_autocomplete_string ("critical");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "critical", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bool (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "url", cur_token_real_len)) {
+ set_autocomplete_string ("url");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "url", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "text", cur_token_real_len)) {
+ set_autocomplete_string ("text");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "text", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field4) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_help_no_app_update (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x4ddd9627 && T->type->name != 0xb22269d8)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_help_invite_text (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x18cb9f78 && T->type->name != 0xe7346087)) { return -1; }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_help_support (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x17c6b5f6 && T->type->name != 0xe8394a09)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "phone_number", cur_token_real_len)) {
+ set_autocomplete_string ("phone_number");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "phone_number", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "user", cur_token_real_len)) {
+ set_autocomplete_string ("user");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "user", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x02e6c0c8, .id = "User", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_user (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_messages_affected_history (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xb45c69d1 && T->type->name != 0x4ba3962e)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "pts", cur_token_real_len)) {
+ set_autocomplete_string ("pts");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "pts", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "pts_count", cur_token_real_len)) {
+ set_autocomplete_string ("pts_count");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "pts_count", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "offset", cur_token_real_len)) {
+ set_autocomplete_string ("offset");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "offset", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_messages_affected_messages (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x84d19185 && T->type->name != 0x7b2e6e7a)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "pts", cur_token_real_len)) {
+ set_autocomplete_string ("pts");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "pts", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "pts_count", cur_token_real_len)) {
+ set_autocomplete_string ("pts_count");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "pts_count", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_messages_all_stickers_not_modified (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xb485502f && T->type->name != 0x4b7aafd0)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_messages_all_stickers (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xb485502f && T->type->name != 0x4b7aafd0)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "hash", cur_token_real_len)) {
+ set_autocomplete_string ("hash");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "packs", cur_token_real_len)) {
+ set_autocomplete_string ("packs");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "packs", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x12b299d4, .id = "StickerPack", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "sets", cur_token_real_len)) {
+ set_autocomplete_string ("sets");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "sets", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xa7a43b17, .id = "StickerSet", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "documents", cur_token_real_len)) {
+ set_autocomplete_string ("documents");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "documents", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x51a73418, .id = "Document", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field4) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_messages_chat_full (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xe5d7d19c && T->type->name != 0x1a282e63)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "full_chat", cur_token_real_len)) {
+ set_autocomplete_string ("full_chat");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "full_chat", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x2e02a614, .id = "ChatFull", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_chat_full (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "chats", cur_token_real_len)) {
+ set_autocomplete_string ("chats");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "chats", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x7bd865dc, .id = "Chat", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "users", cur_token_real_len)) {
+ set_autocomplete_string ("users");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "users", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x02e6c0c8, .id = "User", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field3) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_messages_chats (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x64ff9fd5 && T->type->name != 0x9b00602a)) { return -1; }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x7bd865dc, .id = "Chat", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_messages_dh_config_not_modified (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xecc058e8 && T->type->name != 0x133fa717)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "random", cur_token_real_len)) {
+ set_autocomplete_string ("random");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "random", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_messages_dh_config (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xecc058e8 && T->type->name != 0x133fa717)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 1 && !cur_token_quoted && !memcmp (cur_token, "g", cur_token_real_len)) {
+ set_autocomplete_string ("g");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 1 && !memcmp (cur_token, "g", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 1 && !cur_token_quoted && !memcmp (cur_token, "p", cur_token_real_len)) {
+ set_autocomplete_string ("p");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 1 && !memcmp (cur_token, "p", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "version", cur_token_real_len)) {
+ set_autocomplete_string ("version");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "version", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "random", cur_token_real_len)) {
+ set_autocomplete_string ("random");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "random", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field4) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_messages_dialogs (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x645af8b3 && T->type->name != 0x9ba5074c)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "dialogs", cur_token_real_len)) {
+ set_autocomplete_string ("dialogs");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "dialogs", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xc1dd804a, .id = "Dialog", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "messages", cur_token_real_len)) {
+ set_autocomplete_string ("messages");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "messages", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x5d652a7f, .id = "Message", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "chats", cur_token_real_len)) {
+ set_autocomplete_string ("chats");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "chats", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x7bd865dc, .id = "Chat", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "users", cur_token_real_len)) {
+ set_autocomplete_string ("users");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "users", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x02e6c0c8, .id = "User", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field4) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_messages_dialogs_slice (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x645af8b3 && T->type->name != 0x9ba5074c)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "count", cur_token_real_len)) {
+ set_autocomplete_string ("count");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "count", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "dialogs", cur_token_real_len)) {
+ set_autocomplete_string ("dialogs");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "dialogs", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xc1dd804a, .id = "Dialog", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "messages", cur_token_real_len)) {
+ set_autocomplete_string ("messages");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "messages", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x5d652a7f, .id = "Message", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "chats", cur_token_real_len)) {
+ set_autocomplete_string ("chats");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "chats", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x7bd865dc, .id = "Chat", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "users", cur_token_real_len)) {
+ set_autocomplete_string ("users");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "users", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x02e6c0c8, .id = "User", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field5) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_messages_message_empty (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x3f4e0648 && T->type->name != 0xc0b1f9b7)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_messages_messages (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x8735e464 && T->type->name != 0x78ca1b9b)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "messages", cur_token_real_len)) {
+ set_autocomplete_string ("messages");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "messages", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x5d652a7f, .id = "Message", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "chats", cur_token_real_len)) {
+ set_autocomplete_string ("chats");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "chats", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x7bd865dc, .id = "Chat", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "users", cur_token_real_len)) {
+ set_autocomplete_string ("users");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "users", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x02e6c0c8, .id = "User", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field3) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_messages_messages_slice (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x8735e464 && T->type->name != 0x78ca1b9b)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "count", cur_token_real_len)) {
+ set_autocomplete_string ("count");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "count", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "messages", cur_token_real_len)) {
+ set_autocomplete_string ("messages");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "messages", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x5d652a7f, .id = "Message", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "chats", cur_token_real_len)) {
+ set_autocomplete_string ("chats");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "chats", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x7bd865dc, .id = "Chat", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "users", cur_token_real_len)) {
+ set_autocomplete_string ("users");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "users", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x02e6c0c8, .id = "User", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field4) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_messages_sent_encrypted_message (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xc29c7607 && T->type->name != 0x3d6389f8)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_messages_sent_encrypted_file (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xc29c7607 && T->type->name != 0x3d6389f8)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "file", cur_token_real_len)) {
+ set_autocomplete_string ("file");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "file", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x886fd032, .id = "EncryptedFile", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_encrypted_file (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_messages_sent_message (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x799ce190 && T->type->name != 0x86631e6f)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "media", cur_token_real_len)) {
+ set_autocomplete_string ("media");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "media", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x95f2471a, .id = "MessageMedia", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_message_media (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "pts", cur_token_real_len)) {
+ set_autocomplete_string ("pts");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "pts", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "pts_count", cur_token_real_len)) {
+ set_autocomplete_string ("pts_count");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "pts_count", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field5) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_messages_sent_message_link (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x799ce190 && T->type->name != 0x86631e6f)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "media", cur_token_real_len)) {
+ set_autocomplete_string ("media");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "media", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x95f2471a, .id = "MessageMedia", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_message_media (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "pts", cur_token_real_len)) {
+ set_autocomplete_string ("pts");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "pts", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "pts_count", cur_token_real_len)) {
+ set_autocomplete_string ("pts_count");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "pts_count", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field5) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "links", cur_token_real_len)) {
+ set_autocomplete_string ("links");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "links", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x3ace484c, .id = "contacts.Link", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field6) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "seq", cur_token_real_len)) {
+ set_autocomplete_string ("seq");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "seq", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field7 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field7) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_messages_sticker_set (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xb60a24a6 && T->type->name != 0x49f5db59)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "set", cur_token_real_len)) {
+ set_autocomplete_string ("set");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "set", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xa7a43b17, .id = "StickerSet", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_sticker_set (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "packs", cur_token_real_len)) {
+ set_autocomplete_string ("packs");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "packs", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x12b299d4, .id = "StickerPack", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "documents", cur_token_real_len)) {
+ set_autocomplete_string ("documents");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "documents", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x51a73418, .id = "Document", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field3) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_messages_stickers_not_modified (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x7bfa5710 && T->type->name != 0x8405a8ef)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_messages_stickers (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x7bfa5710 && T->type->name != 0x8405a8ef)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "hash", cur_token_real_len)) {
+ set_autocomplete_string ("hash");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "stickers", cur_token_real_len)) {
+ set_autocomplete_string ("stickers");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "stickers", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x51a73418, .id = "Document", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_photos_photo (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x20212ca8 && T->type->name != 0xdfded357)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "photo", cur_token_real_len)) {
+ set_autocomplete_string ("photo");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "photo", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xc207550a, .id = "Photo", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_photo (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "users", cur_token_real_len)) {
+ set_autocomplete_string ("users");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "users", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x02e6c0c8, .id = "User", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_photos_photos (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x98cf75f1 && T->type->name != 0x67308a0e)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "photos", cur_token_real_len)) {
+ set_autocomplete_string ("photos");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "photos", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xc207550a, .id = "Photo", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "users", cur_token_real_len)) {
+ set_autocomplete_string ("users");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "users", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x02e6c0c8, .id = "User", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_photos_photos_slice (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x98cf75f1 && T->type->name != 0x67308a0e)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "count", cur_token_real_len)) {
+ set_autocomplete_string ("count");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "count", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "photos", cur_token_real_len)) {
+ set_autocomplete_string ("photos");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "photos", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xc207550a, .id = "Photo", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "users", cur_token_real_len)) {
+ set_autocomplete_string ("users");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "users", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x02e6c0c8, .id = "User", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field3) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_storage_file_unknown (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x3e2838a8 && T->type->name != 0xc1d7c757)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_storage_file_jpeg (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x3e2838a8 && T->type->name != 0xc1d7c757)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_storage_file_gif (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x3e2838a8 && T->type->name != 0xc1d7c757)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_storage_file_png (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x3e2838a8 && T->type->name != 0xc1d7c757)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_storage_file_pdf (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x3e2838a8 && T->type->name != 0xc1d7c757)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_storage_file_mp3 (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x3e2838a8 && T->type->name != 0xc1d7c757)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_storage_file_mov (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x3e2838a8 && T->type->name != 0xc1d7c757)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_storage_file_partial (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x3e2838a8 && T->type->name != 0xc1d7c757)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_storage_file_mp4 (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x3e2838a8 && T->type->name != 0xc1d7c757)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_storage_file_webp (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x3e2838a8 && T->type->name != 0xc1d7c757)) { return -1; }
+ return 0;
+}
+int autocomplete_constructor_updates_difference_empty (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xf57a2419 && T->type->name != 0x0a85dbe6)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "seq", cur_token_real_len)) {
+ set_autocomplete_string ("seq");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "seq", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_updates_difference (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xf57a2419 && T->type->name != 0x0a85dbe6)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "new_messages", cur_token_real_len)) {
+ set_autocomplete_string ("new_messages");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "new_messages", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x5d652a7f, .id = "Message", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 22 && !cur_token_quoted && !memcmp (cur_token, "new_encrypted_messages", cur_token_real_len)) {
+ set_autocomplete_string ("new_encrypted_messages");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 22 && !memcmp (cur_token, "new_encrypted_messages", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xce6b8a1e, .id = "EncryptedMessage", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 13 && !cur_token_quoted && !memcmp (cur_token, "other_updates", cur_token_real_len)) {
+ set_autocomplete_string ("other_updates");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 13 && !memcmp (cur_token, "other_updates", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x2e02b27e, .id = "Update", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "chats", cur_token_real_len)) {
+ set_autocomplete_string ("chats");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "chats", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x7bd865dc, .id = "Chat", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "users", cur_token_real_len)) {
+ set_autocomplete_string ("users");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "users", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x02e6c0c8, .id = "User", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field5) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "state", cur_token_real_len)) {
+ set_autocomplete_string ("state");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "state", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xa56c2a3e, .id = "updates.State", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_updates_state (field6) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_updates_difference_slice (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xf57a2419 && T->type->name != 0x0a85dbe6)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "new_messages", cur_token_real_len)) {
+ set_autocomplete_string ("new_messages");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "new_messages", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x5d652a7f, .id = "Message", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 22 && !cur_token_quoted && !memcmp (cur_token, "new_encrypted_messages", cur_token_real_len)) {
+ set_autocomplete_string ("new_encrypted_messages");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 22 && !memcmp (cur_token, "new_encrypted_messages", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xce6b8a1e, .id = "EncryptedMessage", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 13 && !cur_token_quoted && !memcmp (cur_token, "other_updates", cur_token_real_len)) {
+ set_autocomplete_string ("other_updates");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 13 && !memcmp (cur_token, "other_updates", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x2e02b27e, .id = "Update", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "chats", cur_token_real_len)) {
+ set_autocomplete_string ("chats");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "chats", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x7bd865dc, .id = "Chat", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "users", cur_token_real_len)) {
+ set_autocomplete_string ("users");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "users", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x02e6c0c8, .id = "User", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field5) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 18 && !cur_token_quoted && !memcmp (cur_token, "intermediate_state", cur_token_real_len)) {
+ set_autocomplete_string ("intermediate_state");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 18 && !memcmp (cur_token, "intermediate_state", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xa56c2a3e, .id = "updates.State", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_updates_state (field6) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_updates_state (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0xa56c2a3e && T->type->name != 0x5a93d5c1)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "pts", cur_token_real_len)) {
+ set_autocomplete_string ("pts");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "pts", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "qts", cur_token_real_len)) {
+ set_autocomplete_string ("qts");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "qts", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "seq", cur_token_real_len)) {
+ set_autocomplete_string ("seq");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "seq", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "unread_count", cur_token_real_len)) {
+ set_autocomplete_string ("unread_count");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "unread_count", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field5) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_constructor_upload_file (struct paramed_type *T) {
+ if (ODDP(T) || (T->type->name != 0x096a18d5 && T->type->name != 0xf695e72a)) { return -1; }
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "type", cur_token_real_len)) {
+ set_autocomplete_string ("type");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "type", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x3e2838a8, .id = "storage.FileType", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_storage_file_type (field1) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "mtime", cur_token_real_len)) {
+ set_autocomplete_string ("mtime");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "mtime", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return -1;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "bytes", cur_token_real_len)) {
+ set_autocomplete_string ("bytes");
+ return -1;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "bytes", cur_token_len)) {
+ local_next_token ();
+ expect_token_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field3) < 0) { return -1;}
+ return 0;
+}
+int autocomplete_type_account_days_t_t_l (struct paramed_type *T) {
+ if (autocomplete_constructor_account_days_t_t_l (T) < 0) { return -1; }
+ return 0;
+}
+int autocomplete_type_bare_account_days_t_t_l (struct paramed_type *T) {
+ if (autocomplete_constructor_account_days_t_t_l (T) < 0) { return -1; }
+ return 0;
+}
+int do_autocomplete_type_account_days_t_t_l (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "accountDaysTTL", text_len)) { *R = tstrdup ("accountDaysTTL"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_audio (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_audio); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 10 && !memcmp (cur_token, "audioEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_audio_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 5 && !memcmp (cur_token, "audio", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_audio (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_audio (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_audio); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 10 && !memcmp (cur_token, "audioEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_audio_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 5 && !memcmp (cur_token, "audio", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_audio (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_audio (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "audioEmpty", text_len)) { *R = tstrdup ("audioEmpty"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "audio", text_len)) { *R = tstrdup ("audio"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_authorization (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_authorization); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 13 && !memcmp (cur_token, "authorization", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_authorization (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_authorization (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_authorization); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 13 && !memcmp (cur_token, "authorization", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_authorization (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_authorization (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "authorization", text_len)) { *R = tstrdup ("authorization"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_bool (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_bool); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 9 && !memcmp (cur_token, "boolFalse", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_bool_false (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 8 && !memcmp (cur_token, "boolTrue", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_bool_true (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_bool (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_bool); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 9 && !memcmp (cur_token, "boolFalse", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_bool_false (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 8 && !memcmp (cur_token, "boolTrue", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_bool_true (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_bool (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "boolFalse", text_len)) { *R = tstrdup ("boolFalse"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "boolTrue", text_len)) { *R = tstrdup ("boolTrue"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_bot_command (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_bot_command); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 10 && !memcmp (cur_token, "botCommand", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_bot_command (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 13 && !memcmp (cur_token, "botCommandOld", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_bot_command_old (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_bot_command (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_bot_command); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 10 && !memcmp (cur_token, "botCommand", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_bot_command (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 13 && !memcmp (cur_token, "botCommandOld", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_bot_command_old (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_bot_command (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "botCommand", text_len)) { *R = tstrdup ("botCommand"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "botCommandOld", text_len)) { *R = tstrdup ("botCommandOld"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_bot_info (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_bot_info); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 12 && !memcmp (cur_token, "botInfoEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_bot_info_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 7 && !memcmp (cur_token, "botInfo", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_bot_info (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_bot_info (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_bot_info); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 12 && !memcmp (cur_token, "botInfoEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_bot_info_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 7 && !memcmp (cur_token, "botInfo", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_bot_info (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_bot_info (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "botInfoEmpty", text_len)) { *R = tstrdup ("botInfoEmpty"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "botInfo", text_len)) { *R = tstrdup ("botInfo"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_bytes (struct paramed_type *T) {
+ if (autocomplete_constructor_bytes (T) < 0) { return -1; }
+ return 0;
+}
+int autocomplete_type_bare_bytes (struct paramed_type *T) {
+ if (autocomplete_constructor_bytes (T) < 0) { return -1; }
+ return 0;
+}
+int do_autocomplete_type_bytes (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "bytes", text_len)) { *R = tstrdup ("bytes"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_chat (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_chat); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 9 && !memcmp (cur_token, "chatEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_chat_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 4 && !memcmp (cur_token, "chat", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_chat (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 13 && !memcmp (cur_token, "chatForbidden", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_chat_forbidden (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 7 && !memcmp (cur_token, "geoChat", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_geo_chat (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_chat (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_chat); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 9 && !memcmp (cur_token, "chatEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_chat_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 4 && !memcmp (cur_token, "chat", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_chat (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 13 && !memcmp (cur_token, "chatForbidden", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_chat_forbidden (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 7 && !memcmp (cur_token, "geoChat", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_geo_chat (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_chat (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "chatEmpty", text_len)) { *R = tstrdup ("chatEmpty"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "chat", text_len)) { *R = tstrdup ("chat"); return index; } else { index ++; }}
+ if (index == 2) { if (!strncmp (text, "chatForbidden", text_len)) { *R = tstrdup ("chatForbidden"); return index; } else { index ++; }}
+ if (index == 3) { if (!strncmp (text, "geoChat", text_len)) { *R = tstrdup ("geoChat"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_chat_full (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_chat_full); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 8 && !memcmp (cur_token, "chatFull", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_chat_full (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_chat_full (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_chat_full); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 8 && !memcmp (cur_token, "chatFull", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_chat_full (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_chat_full (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "chatFull", text_len)) { *R = tstrdup ("chatFull"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_chat_invite (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_chat_invite); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 17 && !memcmp (cur_token, "chatInviteAlready", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_chat_invite_already (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 10 && !memcmp (cur_token, "chatInvite", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_chat_invite (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_chat_invite (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_chat_invite); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 17 && !memcmp (cur_token, "chatInviteAlready", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_chat_invite_already (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 10 && !memcmp (cur_token, "chatInvite", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_chat_invite (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_chat_invite (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "chatInviteAlready", text_len)) { *R = tstrdup ("chatInviteAlready"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "chatInvite", text_len)) { *R = tstrdup ("chatInvite"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_chat_located (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_chat_located); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 11 && !memcmp (cur_token, "chatLocated", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_chat_located (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_chat_located (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_chat_located); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 11 && !memcmp (cur_token, "chatLocated", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_chat_located (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_chat_located (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "chatLocated", text_len)) { *R = tstrdup ("chatLocated"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_chat_participant (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_chat_participant); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 15 && !memcmp (cur_token, "chatParticipant", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_chat_participant (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_chat_participant (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_chat_participant); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 15 && !memcmp (cur_token, "chatParticipant", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_chat_participant (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_chat_participant (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "chatParticipant", text_len)) { *R = tstrdup ("chatParticipant"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_chat_participants (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_chat_participants); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 25 && !memcmp (cur_token, "chatParticipantsForbidden", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_chat_participants_forbidden (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 16 && !memcmp (cur_token, "chatParticipants", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_chat_participants (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_chat_participants (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_chat_participants); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 25 && !memcmp (cur_token, "chatParticipantsForbidden", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_chat_participants_forbidden (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 16 && !memcmp (cur_token, "chatParticipants", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_chat_participants (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_chat_participants (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "chatParticipantsForbidden", text_len)) { *R = tstrdup ("chatParticipantsForbidden"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "chatParticipants", text_len)) { *R = tstrdup ("chatParticipants"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_chat_photo (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_chat_photo); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 14 && !memcmp (cur_token, "chatPhotoEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_chat_photo_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 9 && !memcmp (cur_token, "chatPhoto", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_chat_photo (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_chat_photo (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_chat_photo); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 14 && !memcmp (cur_token, "chatPhotoEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_chat_photo_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 9 && !memcmp (cur_token, "chatPhoto", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_chat_photo (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_chat_photo (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "chatPhotoEmpty", text_len)) { *R = tstrdup ("chatPhotoEmpty"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "chatPhoto", text_len)) { *R = tstrdup ("chatPhoto"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_client_d_h_inner_data (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_client_d_h_inner_data); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 20 && !memcmp (cur_token, "client_DH_inner_data", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_client_d_h_inner_data (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_client_d_h_inner_data (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_client_d_h_inner_data); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 20 && !memcmp (cur_token, "client_DH_inner_data", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_client_d_h_inner_data (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_client_d_h_inner_data (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "client_DH_inner_data", text_len)) { *R = tstrdup ("client_DH_inner_data"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_config (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_config); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 6 && !memcmp (cur_token, "config", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_config (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_config (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_config); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 6 && !memcmp (cur_token, "config", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_config (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_config (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "config", text_len)) { *R = tstrdup ("config"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_contact (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_contact); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 7 && !memcmp (cur_token, "contact", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_contact (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_contact (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_contact); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 7 && !memcmp (cur_token, "contact", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_contact (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_contact (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "contact", text_len)) { *R = tstrdup ("contact"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_contact_blocked (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_contact_blocked); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 14 && !memcmp (cur_token, "contactBlocked", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_contact_blocked (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_contact_blocked (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_contact_blocked); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 14 && !memcmp (cur_token, "contactBlocked", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_contact_blocked (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_contact_blocked (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "contactBlocked", text_len)) { *R = tstrdup ("contactBlocked"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_contact_found (struct paramed_type *T) {
+ if (autocomplete_constructor_contact_found (T) < 0) { return -1; }
+ return 0;
+}
+int autocomplete_type_bare_contact_found (struct paramed_type *T) {
+ if (autocomplete_constructor_contact_found (T) < 0) { return -1; }
+ return 0;
+}
+int do_autocomplete_type_contact_found (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "contactFound", text_len)) { *R = tstrdup ("contactFound"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_contact_link (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_contact_link); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 18 && !memcmp (cur_token, "contactLinkUnknown", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_contact_link_unknown (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "contactLinkNone", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_contact_link_none (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 19 && !memcmp (cur_token, "contactLinkHasPhone", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_contact_link_has_phone (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 18 && !memcmp (cur_token, "contactLinkContact", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_contact_link_contact (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_contact_link (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_contact_link); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 18 && !memcmp (cur_token, "contactLinkUnknown", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_contact_link_unknown (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "contactLinkNone", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_contact_link_none (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 19 && !memcmp (cur_token, "contactLinkHasPhone", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_contact_link_has_phone (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 18 && !memcmp (cur_token, "contactLinkContact", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_contact_link_contact (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_contact_link (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "contactLinkUnknown", text_len)) { *R = tstrdup ("contactLinkUnknown"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "contactLinkNone", text_len)) { *R = tstrdup ("contactLinkNone"); return index; } else { index ++; }}
+ if (index == 2) { if (!strncmp (text, "contactLinkHasPhone", text_len)) { *R = tstrdup ("contactLinkHasPhone"); return index; } else { index ++; }}
+ if (index == 3) { if (!strncmp (text, "contactLinkContact", text_len)) { *R = tstrdup ("contactLinkContact"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_contact_status (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_contact_status); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 13 && !memcmp (cur_token, "contactStatus", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_contact_status (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_contact_status (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_contact_status); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 13 && !memcmp (cur_token, "contactStatus", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_contact_status (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_contact_status (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "contactStatus", text_len)) { *R = tstrdup ("contactStatus"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_contact_suggested (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_contact_suggested); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 16 && !memcmp (cur_token, "contactSuggested", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_contact_suggested (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_contact_suggested (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_contact_suggested); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 16 && !memcmp (cur_token, "contactSuggested", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_contact_suggested (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_contact_suggested (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "contactSuggested", text_len)) { *R = tstrdup ("contactSuggested"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_dc_option (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_dc_option); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 11 && !memcmp (cur_token, "dcOptionL28", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_dc_option_l28 (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 8 && !memcmp (cur_token, "dcOption", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_dc_option (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_dc_option (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_dc_option); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 11 && !memcmp (cur_token, "dcOptionL28", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_dc_option_l28 (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 8 && !memcmp (cur_token, "dcOption", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_dc_option (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_dc_option (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "dcOptionL28", text_len)) { *R = tstrdup ("dcOptionL28"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "dcOption", text_len)) { *R = tstrdup ("dcOption"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_decrypted_message (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_decrypted_message); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 16 && !memcmp (cur_token, "decryptedMessage", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 23 && !memcmp (cur_token, "decryptedMessageService", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_service (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_decrypted_message (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_decrypted_message); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 16 && !memcmp (cur_token, "decryptedMessage", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 23 && !memcmp (cur_token, "decryptedMessageService", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_service (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_decrypted_message (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "decryptedMessage", text_len)) { *R = tstrdup ("decryptedMessage"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "decryptedMessageService", text_len)) { *R = tstrdup ("decryptedMessageService"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_decrypted_message_action (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_decrypted_message_action); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 35 && !memcmp (cur_token, "decryptedMessageActionSetMessageTTL", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_action_set_message_t_t_l (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 34 && !memcmp (cur_token, "decryptedMessageActionReadMessages", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_action_read_messages (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 36 && !memcmp (cur_token, "decryptedMessageActionDeleteMessages", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_action_delete_messages (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 40 && !memcmp (cur_token, "decryptedMessageActionScreenshotMessages", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_action_screenshot_messages (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 34 && !memcmp (cur_token, "decryptedMessageActionFlushHistory", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_action_flush_history (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 28 && !memcmp (cur_token, "decryptedMessageActionResend", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_action_resend (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 33 && !memcmp (cur_token, "decryptedMessageActionNotifyLayer", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_action_notify_layer (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 28 && !memcmp (cur_token, "decryptedMessageActionTyping", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_action_typing (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 32 && !memcmp (cur_token, "decryptedMessageActionRequestKey", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_action_request_key (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 31 && !memcmp (cur_token, "decryptedMessageActionAcceptKey", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_action_accept_key (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 30 && !memcmp (cur_token, "decryptedMessageActionAbortKey", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_action_abort_key (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 31 && !memcmp (cur_token, "decryptedMessageActionCommitKey", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_action_commit_key (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 26 && !memcmp (cur_token, "decryptedMessageActionNoop", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_action_noop (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_decrypted_message_action (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_decrypted_message_action); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 35 && !memcmp (cur_token, "decryptedMessageActionSetMessageTTL", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_action_set_message_t_t_l (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 34 && !memcmp (cur_token, "decryptedMessageActionReadMessages", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_action_read_messages (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 36 && !memcmp (cur_token, "decryptedMessageActionDeleteMessages", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_action_delete_messages (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 40 && !memcmp (cur_token, "decryptedMessageActionScreenshotMessages", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_action_screenshot_messages (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 34 && !memcmp (cur_token, "decryptedMessageActionFlushHistory", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_action_flush_history (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 28 && !memcmp (cur_token, "decryptedMessageActionResend", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_action_resend (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 33 && !memcmp (cur_token, "decryptedMessageActionNotifyLayer", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_action_notify_layer (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 28 && !memcmp (cur_token, "decryptedMessageActionTyping", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_action_typing (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 32 && !memcmp (cur_token, "decryptedMessageActionRequestKey", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_action_request_key (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 31 && !memcmp (cur_token, "decryptedMessageActionAcceptKey", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_action_accept_key (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 30 && !memcmp (cur_token, "decryptedMessageActionAbortKey", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_action_abort_key (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 31 && !memcmp (cur_token, "decryptedMessageActionCommitKey", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_action_commit_key (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 26 && !memcmp (cur_token, "decryptedMessageActionNoop", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_action_noop (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_decrypted_message_action (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "decryptedMessageActionSetMessageTTL", text_len)) { *R = tstrdup ("decryptedMessageActionSetMessageTTL"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "decryptedMessageActionReadMessages", text_len)) { *R = tstrdup ("decryptedMessageActionReadMessages"); return index; } else { index ++; }}
+ if (index == 2) { if (!strncmp (text, "decryptedMessageActionDeleteMessages", text_len)) { *R = tstrdup ("decryptedMessageActionDeleteMessages"); return index; } else { index ++; }}
+ if (index == 3) { if (!strncmp (text, "decryptedMessageActionScreenshotMessages", text_len)) { *R = tstrdup ("decryptedMessageActionScreenshotMessages"); return index; } else { index ++; }}
+ if (index == 4) { if (!strncmp (text, "decryptedMessageActionFlushHistory", text_len)) { *R = tstrdup ("decryptedMessageActionFlushHistory"); return index; } else { index ++; }}
+ if (index == 5) { if (!strncmp (text, "decryptedMessageActionResend", text_len)) { *R = tstrdup ("decryptedMessageActionResend"); return index; } else { index ++; }}
+ if (index == 6) { if (!strncmp (text, "decryptedMessageActionNotifyLayer", text_len)) { *R = tstrdup ("decryptedMessageActionNotifyLayer"); return index; } else { index ++; }}
+ if (index == 7) { if (!strncmp (text, "decryptedMessageActionTyping", text_len)) { *R = tstrdup ("decryptedMessageActionTyping"); return index; } else { index ++; }}
+ if (index == 8) { if (!strncmp (text, "decryptedMessageActionRequestKey", text_len)) { *R = tstrdup ("decryptedMessageActionRequestKey"); return index; } else { index ++; }}
+ if (index == 9) { if (!strncmp (text, "decryptedMessageActionAcceptKey", text_len)) { *R = tstrdup ("decryptedMessageActionAcceptKey"); return index; } else { index ++; }}
+ if (index == 10) { if (!strncmp (text, "decryptedMessageActionAbortKey", text_len)) { *R = tstrdup ("decryptedMessageActionAbortKey"); return index; } else { index ++; }}
+ if (index == 11) { if (!strncmp (text, "decryptedMessageActionCommitKey", text_len)) { *R = tstrdup ("decryptedMessageActionCommitKey"); return index; } else { index ++; }}
+ if (index == 12) { if (!strncmp (text, "decryptedMessageActionNoop", text_len)) { *R = tstrdup ("decryptedMessageActionNoop"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_decrypted_message_layer (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_decrypted_message_layer); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 21 && !memcmp (cur_token, "decryptedMessageLayer", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_layer (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_decrypted_message_layer (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_decrypted_message_layer); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 21 && !memcmp (cur_token, "decryptedMessageLayer", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_layer (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_decrypted_message_layer (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "decryptedMessageLayer", text_len)) { *R = tstrdup ("decryptedMessageLayer"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_decrypted_message_media (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_decrypted_message_media); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 26 && !memcmp (cur_token, "decryptedMessageMediaEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_media_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 26 && !memcmp (cur_token, "decryptedMessageMediaPhoto", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_media_photo (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 29 && !memcmp (cur_token, "decryptedMessageMediaGeoPoint", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_media_geo_point (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 28 && !memcmp (cur_token, "decryptedMessageMediaContact", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_media_contact (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 29 && !memcmp (cur_token, "decryptedMessageMediaDocument", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_media_document (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 26 && !memcmp (cur_token, "decryptedMessageMediaVideo", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_media_video (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 26 && !memcmp (cur_token, "decryptedMessageMediaAudio", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_media_audio (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 37 && !memcmp (cur_token, "decryptedMessageMediaExternalDocument", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_media_external_document (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 29 && !memcmp (cur_token, "decryptedMessageMediaVideoL12", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_media_video_l12 (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 29 && !memcmp (cur_token, "decryptedMessageMediaAudioL12", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_media_audio_l12 (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_decrypted_message_media (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_decrypted_message_media); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 26 && !memcmp (cur_token, "decryptedMessageMediaEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_media_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 26 && !memcmp (cur_token, "decryptedMessageMediaPhoto", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_media_photo (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 29 && !memcmp (cur_token, "decryptedMessageMediaGeoPoint", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_media_geo_point (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 28 && !memcmp (cur_token, "decryptedMessageMediaContact", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_media_contact (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 29 && !memcmp (cur_token, "decryptedMessageMediaDocument", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_media_document (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 26 && !memcmp (cur_token, "decryptedMessageMediaVideo", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_media_video (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 26 && !memcmp (cur_token, "decryptedMessageMediaAudio", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_media_audio (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 37 && !memcmp (cur_token, "decryptedMessageMediaExternalDocument", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_media_external_document (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 29 && !memcmp (cur_token, "decryptedMessageMediaVideoL12", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_media_video_l12 (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 29 && !memcmp (cur_token, "decryptedMessageMediaAudioL12", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_decrypted_message_media_audio_l12 (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_decrypted_message_media (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "decryptedMessageMediaEmpty", text_len)) { *R = tstrdup ("decryptedMessageMediaEmpty"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "decryptedMessageMediaPhoto", text_len)) { *R = tstrdup ("decryptedMessageMediaPhoto"); return index; } else { index ++; }}
+ if (index == 2) { if (!strncmp (text, "decryptedMessageMediaGeoPoint", text_len)) { *R = tstrdup ("decryptedMessageMediaGeoPoint"); return index; } else { index ++; }}
+ if (index == 3) { if (!strncmp (text, "decryptedMessageMediaContact", text_len)) { *R = tstrdup ("decryptedMessageMediaContact"); return index; } else { index ++; }}
+ if (index == 4) { if (!strncmp (text, "decryptedMessageMediaDocument", text_len)) { *R = tstrdup ("decryptedMessageMediaDocument"); return index; } else { index ++; }}
+ if (index == 5) { if (!strncmp (text, "decryptedMessageMediaVideo", text_len)) { *R = tstrdup ("decryptedMessageMediaVideo"); return index; } else { index ++; }}
+ if (index == 6) { if (!strncmp (text, "decryptedMessageMediaAudio", text_len)) { *R = tstrdup ("decryptedMessageMediaAudio"); return index; } else { index ++; }}
+ if (index == 7) { if (!strncmp (text, "decryptedMessageMediaExternalDocument", text_len)) { *R = tstrdup ("decryptedMessageMediaExternalDocument"); return index; } else { index ++; }}
+ if (index == 8) { if (!strncmp (text, "decryptedMessageMediaVideoL12", text_len)) { *R = tstrdup ("decryptedMessageMediaVideoL12"); return index; } else { index ++; }}
+ if (index == 9) { if (!strncmp (text, "decryptedMessageMediaAudioL12", text_len)) { *R = tstrdup ("decryptedMessageMediaAudioL12"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_dialog (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_dialog); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 6 && !memcmp (cur_token, "dialog", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_dialog (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_dialog (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_dialog); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 6 && !memcmp (cur_token, "dialog", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_dialog (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_dialog (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "dialog", text_len)) { *R = tstrdup ("dialog"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_disabled_feature (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_disabled_feature); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 15 && !memcmp (cur_token, "disabledFeature", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_disabled_feature (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_disabled_feature (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_disabled_feature); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 15 && !memcmp (cur_token, "disabledFeature", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_disabled_feature (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_disabled_feature (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "disabledFeature", text_len)) { *R = tstrdup ("disabledFeature"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_document (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_document); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 13 && !memcmp (cur_token, "documentEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_document_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 8 && !memcmp (cur_token, "document", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_document (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 12 && !memcmp (cur_token, "document_l19", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_document_l19 (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_document (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_document); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 13 && !memcmp (cur_token, "documentEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_document_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 8 && !memcmp (cur_token, "document", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_document (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 12 && !memcmp (cur_token, "document_l19", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_document_l19 (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_document (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "documentEmpty", text_len)) { *R = tstrdup ("documentEmpty"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "document", text_len)) { *R = tstrdup ("document"); return index; } else { index ++; }}
+ if (index == 2) { if (!strncmp (text, "document_l19", text_len)) { *R = tstrdup ("document_l19"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_document_attribute (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_document_attribute); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 26 && !memcmp (cur_token, "documentAttributeImageSize", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_document_attribute_image_size (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 25 && !memcmp (cur_token, "documentAttributeAnimated", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_document_attribute_animated (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 27 && !memcmp (cur_token, "documentAttributeStickerL28", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_document_attribute_sticker_l28 (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 24 && !memcmp (cur_token, "documentAttributeSticker", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_document_attribute_sticker (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "documentAttributeVideo", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_document_attribute_video (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "documentAttributeAudio", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_document_attribute_audio (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 25 && !memcmp (cur_token, "documentAttributeFilename", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_document_attribute_filename (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_document_attribute (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_document_attribute); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 26 && !memcmp (cur_token, "documentAttributeImageSize", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_document_attribute_image_size (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 25 && !memcmp (cur_token, "documentAttributeAnimated", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_document_attribute_animated (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 27 && !memcmp (cur_token, "documentAttributeStickerL28", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_document_attribute_sticker_l28 (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 24 && !memcmp (cur_token, "documentAttributeSticker", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_document_attribute_sticker (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "documentAttributeVideo", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_document_attribute_video (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "documentAttributeAudio", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_document_attribute_audio (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 25 && !memcmp (cur_token, "documentAttributeFilename", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_document_attribute_filename (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_document_attribute (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "documentAttributeImageSize", text_len)) { *R = tstrdup ("documentAttributeImageSize"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "documentAttributeAnimated", text_len)) { *R = tstrdup ("documentAttributeAnimated"); return index; } else { index ++; }}
+ if (index == 2) { if (!strncmp (text, "documentAttributeStickerL28", text_len)) { *R = tstrdup ("documentAttributeStickerL28"); return index; } else { index ++; }}
+ if (index == 3) { if (!strncmp (text, "documentAttributeSticker", text_len)) { *R = tstrdup ("documentAttributeSticker"); return index; } else { index ++; }}
+ if (index == 4) { if (!strncmp (text, "documentAttributeVideo", text_len)) { *R = tstrdup ("documentAttributeVideo"); return index; } else { index ++; }}
+ if (index == 5) { if (!strncmp (text, "documentAttributeAudio", text_len)) { *R = tstrdup ("documentAttributeAudio"); return index; } else { index ++; }}
+ if (index == 6) { if (!strncmp (text, "documentAttributeFilename", text_len)) { *R = tstrdup ("documentAttributeFilename"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_double (struct paramed_type *T) {
+ if (autocomplete_constructor_double (T) < 0) { return -1; }
+ return 0;
+}
+int autocomplete_type_bare_double (struct paramed_type *T) {
+ if (autocomplete_constructor_double (T) < 0) { return -1; }
+ return 0;
+}
+int do_autocomplete_type_double (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "double", text_len)) { *R = tstrdup ("double"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_encrypted_chat (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_encrypted_chat); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 18 && !memcmp (cur_token, "encryptedChatEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_encrypted_chat_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 20 && !memcmp (cur_token, "encryptedChatWaiting", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_encrypted_chat_waiting (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "encryptedChatRequested", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_encrypted_chat_requested (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 13 && !memcmp (cur_token, "encryptedChat", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_encrypted_chat (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "encryptedChatDiscarded", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_encrypted_chat_discarded (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_encrypted_chat (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_encrypted_chat); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 18 && !memcmp (cur_token, "encryptedChatEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_encrypted_chat_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 20 && !memcmp (cur_token, "encryptedChatWaiting", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_encrypted_chat_waiting (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "encryptedChatRequested", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_encrypted_chat_requested (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 13 && !memcmp (cur_token, "encryptedChat", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_encrypted_chat (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "encryptedChatDiscarded", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_encrypted_chat_discarded (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_encrypted_chat (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "encryptedChatEmpty", text_len)) { *R = tstrdup ("encryptedChatEmpty"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "encryptedChatWaiting", text_len)) { *R = tstrdup ("encryptedChatWaiting"); return index; } else { index ++; }}
+ if (index == 2) { if (!strncmp (text, "encryptedChatRequested", text_len)) { *R = tstrdup ("encryptedChatRequested"); return index; } else { index ++; }}
+ if (index == 3) { if (!strncmp (text, "encryptedChat", text_len)) { *R = tstrdup ("encryptedChat"); return index; } else { index ++; }}
+ if (index == 4) { if (!strncmp (text, "encryptedChatDiscarded", text_len)) { *R = tstrdup ("encryptedChatDiscarded"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_encrypted_file (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_encrypted_file); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 18 && !memcmp (cur_token, "encryptedFileEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_encrypted_file_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 13 && !memcmp (cur_token, "encryptedFile", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_encrypted_file (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_encrypted_file (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_encrypted_file); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 18 && !memcmp (cur_token, "encryptedFileEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_encrypted_file_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 13 && !memcmp (cur_token, "encryptedFile", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_encrypted_file (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_encrypted_file (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "encryptedFileEmpty", text_len)) { *R = tstrdup ("encryptedFileEmpty"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "encryptedFile", text_len)) { *R = tstrdup ("encryptedFile"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_encrypted_message (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_encrypted_message); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 16 && !memcmp (cur_token, "encryptedMessage", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_encrypted_message (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 23 && !memcmp (cur_token, "encryptedMessageService", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_encrypted_message_service (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_encrypted_message (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_encrypted_message); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 16 && !memcmp (cur_token, "encryptedMessage", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_encrypted_message (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 23 && !memcmp (cur_token, "encryptedMessageService", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_encrypted_message_service (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_encrypted_message (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "encryptedMessage", text_len)) { *R = tstrdup ("encryptedMessage"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "encryptedMessageService", text_len)) { *R = tstrdup ("encryptedMessageService"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_error (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_error); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 5 && !memcmp (cur_token, "error", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_error (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_error (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_error); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 5 && !memcmp (cur_token, "error", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_error (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_error (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "error", text_len)) { *R = tstrdup ("error"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_exported_chat_invite (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_exported_chat_invite); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 15 && !memcmp (cur_token, "chatInviteEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_chat_invite_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 18 && !memcmp (cur_token, "chatInviteExported", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_chat_invite_exported (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_exported_chat_invite (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_exported_chat_invite); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 15 && !memcmp (cur_token, "chatInviteEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_chat_invite_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 18 && !memcmp (cur_token, "chatInviteExported", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_chat_invite_exported (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_exported_chat_invite (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "chatInviteEmpty", text_len)) { *R = tstrdup ("chatInviteEmpty"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "chatInviteExported", text_len)) { *R = tstrdup ("chatInviteExported"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_file_location (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_file_location); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 23 && !memcmp (cur_token, "fileLocationUnavailable", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_file_location_unavailable (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 12 && !memcmp (cur_token, "fileLocation", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_file_location (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_file_location (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_file_location); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 23 && !memcmp (cur_token, "fileLocationUnavailable", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_file_location_unavailable (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 12 && !memcmp (cur_token, "fileLocation", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_file_location (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_file_location (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "fileLocationUnavailable", text_len)) { *R = tstrdup ("fileLocationUnavailable"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "fileLocation", text_len)) { *R = tstrdup ("fileLocation"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_geo_chat_message (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_geo_chat_message); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 19 && !memcmp (cur_token, "geoChatMessageEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_geo_chat_message_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 14 && !memcmp (cur_token, "geoChatMessage", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_geo_chat_message (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 21 && !memcmp (cur_token, "geoChatMessageService", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_geo_chat_message_service (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_geo_chat_message (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_geo_chat_message); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 19 && !memcmp (cur_token, "geoChatMessageEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_geo_chat_message_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 14 && !memcmp (cur_token, "geoChatMessage", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_geo_chat_message (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 21 && !memcmp (cur_token, "geoChatMessageService", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_geo_chat_message_service (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_geo_chat_message (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "geoChatMessageEmpty", text_len)) { *R = tstrdup ("geoChatMessageEmpty"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "geoChatMessage", text_len)) { *R = tstrdup ("geoChatMessage"); return index; } else { index ++; }}
+ if (index == 2) { if (!strncmp (text, "geoChatMessageService", text_len)) { *R = tstrdup ("geoChatMessageService"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_geo_point (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_geo_point); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 13 && !memcmp (cur_token, "geoPointEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_geo_point_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 8 && !memcmp (cur_token, "geoPoint", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_geo_point (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_geo_point (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_geo_point); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 13 && !memcmp (cur_token, "geoPointEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_geo_point_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 8 && !memcmp (cur_token, "geoPoint", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_geo_point (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_geo_point (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "geoPointEmpty", text_len)) { *R = tstrdup ("geoPointEmpty"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "geoPoint", text_len)) { *R = tstrdup ("geoPoint"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_imported_contact (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_imported_contact); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 15 && !memcmp (cur_token, "importedContact", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_imported_contact (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_imported_contact (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_imported_contact); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 15 && !memcmp (cur_token, "importedContact", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_imported_contact (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_imported_contact (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "importedContact", text_len)) { *R = tstrdup ("importedContact"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_input_app_event (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_app_event); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 13 && !memcmp (cur_token, "inputAppEvent", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_app_event (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_input_app_event (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_app_event); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 13 && !memcmp (cur_token, "inputAppEvent", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_app_event (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_input_app_event (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "inputAppEvent", text_len)) { *R = tstrdup ("inputAppEvent"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_input_audio (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_audio); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 15 && !memcmp (cur_token, "inputAudioEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_audio_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 10 && !memcmp (cur_token, "inputAudio", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_audio (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_input_audio (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_audio); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 15 && !memcmp (cur_token, "inputAudioEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_audio_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 10 && !memcmp (cur_token, "inputAudio", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_audio (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_input_audio (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "inputAudioEmpty", text_len)) { *R = tstrdup ("inputAudioEmpty"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "inputAudio", text_len)) { *R = tstrdup ("inputAudio"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_input_chat_photo (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_chat_photo); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 19 && !memcmp (cur_token, "inputChatPhotoEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_chat_photo_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "inputChatUploadedPhoto", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_chat_uploaded_photo (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 14 && !memcmp (cur_token, "inputChatPhoto", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_chat_photo (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_input_chat_photo (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_chat_photo); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 19 && !memcmp (cur_token, "inputChatPhotoEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_chat_photo_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "inputChatUploadedPhoto", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_chat_uploaded_photo (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 14 && !memcmp (cur_token, "inputChatPhoto", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_chat_photo (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_input_chat_photo (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "inputChatPhotoEmpty", text_len)) { *R = tstrdup ("inputChatPhotoEmpty"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "inputChatUploadedPhoto", text_len)) { *R = tstrdup ("inputChatUploadedPhoto"); return index; } else { index ++; }}
+ if (index == 2) { if (!strncmp (text, "inputChatPhoto", text_len)) { *R = tstrdup ("inputChatPhoto"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_input_contact (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_contact); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 17 && !memcmp (cur_token, "inputPhoneContact", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_phone_contact (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_input_contact (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_contact); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 17 && !memcmp (cur_token, "inputPhoneContact", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_phone_contact (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_input_contact (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "inputPhoneContact", text_len)) { *R = tstrdup ("inputPhoneContact"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_input_document (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_document); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 18 && !memcmp (cur_token, "inputDocumentEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_document_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 13 && !memcmp (cur_token, "inputDocument", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_document (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_input_document (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_document); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 18 && !memcmp (cur_token, "inputDocumentEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_document_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 13 && !memcmp (cur_token, "inputDocument", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_document (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_input_document (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "inputDocumentEmpty", text_len)) { *R = tstrdup ("inputDocumentEmpty"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "inputDocument", text_len)) { *R = tstrdup ("inputDocument"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_input_encrypted_chat (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_encrypted_chat); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 18 && !memcmp (cur_token, "inputEncryptedChat", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_encrypted_chat (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_input_encrypted_chat (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_encrypted_chat); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 18 && !memcmp (cur_token, "inputEncryptedChat", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_encrypted_chat (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_input_encrypted_chat (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "inputEncryptedChat", text_len)) { *R = tstrdup ("inputEncryptedChat"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_input_encrypted_file (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_encrypted_file); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 23 && !memcmp (cur_token, "inputEncryptedFileEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_encrypted_file_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 26 && !memcmp (cur_token, "inputEncryptedFileUploaded", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_encrypted_file_uploaded (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 18 && !memcmp (cur_token, "inputEncryptedFile", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_encrypted_file (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 29 && !memcmp (cur_token, "inputEncryptedFileBigUploaded", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_encrypted_file_big_uploaded (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_input_encrypted_file (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_encrypted_file); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 23 && !memcmp (cur_token, "inputEncryptedFileEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_encrypted_file_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 26 && !memcmp (cur_token, "inputEncryptedFileUploaded", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_encrypted_file_uploaded (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 18 && !memcmp (cur_token, "inputEncryptedFile", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_encrypted_file (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 29 && !memcmp (cur_token, "inputEncryptedFileBigUploaded", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_encrypted_file_big_uploaded (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_input_encrypted_file (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "inputEncryptedFileEmpty", text_len)) { *R = tstrdup ("inputEncryptedFileEmpty"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "inputEncryptedFileUploaded", text_len)) { *R = tstrdup ("inputEncryptedFileUploaded"); return index; } else { index ++; }}
+ if (index == 2) { if (!strncmp (text, "inputEncryptedFile", text_len)) { *R = tstrdup ("inputEncryptedFile"); return index; } else { index ++; }}
+ if (index == 3) { if (!strncmp (text, "inputEncryptedFileBigUploaded", text_len)) { *R = tstrdup ("inputEncryptedFileBigUploaded"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_input_file (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_file); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 9 && !memcmp (cur_token, "inputFile", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_file (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 12 && !memcmp (cur_token, "inputFileBig", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_file_big (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_input_file (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_file); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 9 && !memcmp (cur_token, "inputFile", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_file (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 12 && !memcmp (cur_token, "inputFileBig", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_file_big (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_input_file (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "inputFile", text_len)) { *R = tstrdup ("inputFile"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "inputFileBig", text_len)) { *R = tstrdup ("inputFileBig"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_input_file_location (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_file_location); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 17 && !memcmp (cur_token, "inputFileLocation", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_file_location (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "inputVideoFileLocation", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_video_file_location (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 26 && !memcmp (cur_token, "inputEncryptedFileLocation", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_encrypted_file_location (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "inputAudioFileLocation", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_audio_file_location (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 25 && !memcmp (cur_token, "inputDocumentFileLocation", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_document_file_location (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_input_file_location (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_file_location); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 17 && !memcmp (cur_token, "inputFileLocation", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_file_location (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "inputVideoFileLocation", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_video_file_location (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 26 && !memcmp (cur_token, "inputEncryptedFileLocation", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_encrypted_file_location (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "inputAudioFileLocation", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_audio_file_location (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 25 && !memcmp (cur_token, "inputDocumentFileLocation", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_document_file_location (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_input_file_location (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "inputFileLocation", text_len)) { *R = tstrdup ("inputFileLocation"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "inputVideoFileLocation", text_len)) { *R = tstrdup ("inputVideoFileLocation"); return index; } else { index ++; }}
+ if (index == 2) { if (!strncmp (text, "inputEncryptedFileLocation", text_len)) { *R = tstrdup ("inputEncryptedFileLocation"); return index; } else { index ++; }}
+ if (index == 3) { if (!strncmp (text, "inputAudioFileLocation", text_len)) { *R = tstrdup ("inputAudioFileLocation"); return index; } else { index ++; }}
+ if (index == 4) { if (!strncmp (text, "inputDocumentFileLocation", text_len)) { *R = tstrdup ("inputDocumentFileLocation"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_input_geo_chat (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_geo_chat); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 12 && !memcmp (cur_token, "inputGeoChat", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_geo_chat (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_input_geo_chat (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_geo_chat); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 12 && !memcmp (cur_token, "inputGeoChat", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_geo_chat (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_input_geo_chat (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "inputGeoChat", text_len)) { *R = tstrdup ("inputGeoChat"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_input_geo_point (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_geo_point); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 18 && !memcmp (cur_token, "inputGeoPointEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_geo_point_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 13 && !memcmp (cur_token, "inputGeoPoint", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_geo_point (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_input_geo_point (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_geo_point); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 18 && !memcmp (cur_token, "inputGeoPointEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_geo_point_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 13 && !memcmp (cur_token, "inputGeoPoint", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_geo_point (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_input_geo_point (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "inputGeoPointEmpty", text_len)) { *R = tstrdup ("inputGeoPointEmpty"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "inputGeoPoint", text_len)) { *R = tstrdup ("inputGeoPoint"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_input_media (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_media); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 15 && !memcmp (cur_token, "inputMediaEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_media_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 23 && !memcmp (cur_token, "inputMediaUploadedPhoto", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_media_uploaded_photo (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "inputMediaPhoto", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_media_photo (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 18 && !memcmp (cur_token, "inputMediaGeoPoint", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_media_geo_point (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 17 && !memcmp (cur_token, "inputMediaContact", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_media_contact (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 23 && !memcmp (cur_token, "inputMediaUploadedVideo", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_media_uploaded_video (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 28 && !memcmp (cur_token, "inputMediaUploadedThumbVideo", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_media_uploaded_thumb_video (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "inputMediaVideo", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_media_video (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 23 && !memcmp (cur_token, "inputMediaUploadedAudio", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_media_uploaded_audio (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "inputMediaAudio", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_media_audio (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 26 && !memcmp (cur_token, "inputMediaUploadedDocument", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_media_uploaded_document (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 31 && !memcmp (cur_token, "inputMediaUploadedThumbDocument", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_media_uploaded_thumb_document (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 18 && !memcmp (cur_token, "inputMediaDocument", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_media_document (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "inputMediaVenue", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_media_venue (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_input_media (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_media); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 15 && !memcmp (cur_token, "inputMediaEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_media_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 23 && !memcmp (cur_token, "inputMediaUploadedPhoto", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_media_uploaded_photo (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "inputMediaPhoto", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_media_photo (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 18 && !memcmp (cur_token, "inputMediaGeoPoint", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_media_geo_point (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 17 && !memcmp (cur_token, "inputMediaContact", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_media_contact (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 23 && !memcmp (cur_token, "inputMediaUploadedVideo", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_media_uploaded_video (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 28 && !memcmp (cur_token, "inputMediaUploadedThumbVideo", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_media_uploaded_thumb_video (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "inputMediaVideo", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_media_video (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 23 && !memcmp (cur_token, "inputMediaUploadedAudio", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_media_uploaded_audio (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "inputMediaAudio", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_media_audio (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 26 && !memcmp (cur_token, "inputMediaUploadedDocument", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_media_uploaded_document (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 31 && !memcmp (cur_token, "inputMediaUploadedThumbDocument", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_media_uploaded_thumb_document (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 18 && !memcmp (cur_token, "inputMediaDocument", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_media_document (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "inputMediaVenue", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_media_venue (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_input_media (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "inputMediaEmpty", text_len)) { *R = tstrdup ("inputMediaEmpty"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "inputMediaUploadedPhoto", text_len)) { *R = tstrdup ("inputMediaUploadedPhoto"); return index; } else { index ++; }}
+ if (index == 2) { if (!strncmp (text, "inputMediaPhoto", text_len)) { *R = tstrdup ("inputMediaPhoto"); return index; } else { index ++; }}
+ if (index == 3) { if (!strncmp (text, "inputMediaGeoPoint", text_len)) { *R = tstrdup ("inputMediaGeoPoint"); return index; } else { index ++; }}
+ if (index == 4) { if (!strncmp (text, "inputMediaContact", text_len)) { *R = tstrdup ("inputMediaContact"); return index; } else { index ++; }}
+ if (index == 5) { if (!strncmp (text, "inputMediaUploadedVideo", text_len)) { *R = tstrdup ("inputMediaUploadedVideo"); return index; } else { index ++; }}
+ if (index == 6) { if (!strncmp (text, "inputMediaUploadedThumbVideo", text_len)) { *R = tstrdup ("inputMediaUploadedThumbVideo"); return index; } else { index ++; }}
+ if (index == 7) { if (!strncmp (text, "inputMediaVideo", text_len)) { *R = tstrdup ("inputMediaVideo"); return index; } else { index ++; }}
+ if (index == 8) { if (!strncmp (text, "inputMediaUploadedAudio", text_len)) { *R = tstrdup ("inputMediaUploadedAudio"); return index; } else { index ++; }}
+ if (index == 9) { if (!strncmp (text, "inputMediaAudio", text_len)) { *R = tstrdup ("inputMediaAudio"); return index; } else { index ++; }}
+ if (index == 10) { if (!strncmp (text, "inputMediaUploadedDocument", text_len)) { *R = tstrdup ("inputMediaUploadedDocument"); return index; } else { index ++; }}
+ if (index == 11) { if (!strncmp (text, "inputMediaUploadedThumbDocument", text_len)) { *R = tstrdup ("inputMediaUploadedThumbDocument"); return index; } else { index ++; }}
+ if (index == 12) { if (!strncmp (text, "inputMediaDocument", text_len)) { *R = tstrdup ("inputMediaDocument"); return index; } else { index ++; }}
+ if (index == 13) { if (!strncmp (text, "inputMediaVenue", text_len)) { *R = tstrdup ("inputMediaVenue"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_input_notify_peer (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_notify_peer); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 15 && !memcmp (cur_token, "inputNotifyPeer", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_notify_peer (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 16 && !memcmp (cur_token, "inputNotifyUsers", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_notify_users (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 16 && !memcmp (cur_token, "inputNotifyChats", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_notify_chats (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 14 && !memcmp (cur_token, "inputNotifyAll", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_notify_all (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "inputNotifyGeoChatPeer", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_notify_geo_chat_peer (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_input_notify_peer (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_notify_peer); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 15 && !memcmp (cur_token, "inputNotifyPeer", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_notify_peer (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 16 && !memcmp (cur_token, "inputNotifyUsers", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_notify_users (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 16 && !memcmp (cur_token, "inputNotifyChats", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_notify_chats (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 14 && !memcmp (cur_token, "inputNotifyAll", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_notify_all (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "inputNotifyGeoChatPeer", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_notify_geo_chat_peer (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_input_notify_peer (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "inputNotifyPeer", text_len)) { *R = tstrdup ("inputNotifyPeer"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "inputNotifyUsers", text_len)) { *R = tstrdup ("inputNotifyUsers"); return index; } else { index ++; }}
+ if (index == 2) { if (!strncmp (text, "inputNotifyChats", text_len)) { *R = tstrdup ("inputNotifyChats"); return index; } else { index ++; }}
+ if (index == 3) { if (!strncmp (text, "inputNotifyAll", text_len)) { *R = tstrdup ("inputNotifyAll"); return index; } else { index ++; }}
+ if (index == 4) { if (!strncmp (text, "inputNotifyGeoChatPeer", text_len)) { *R = tstrdup ("inputNotifyGeoChatPeer"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_input_peer (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_peer); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 14 && !memcmp (cur_token, "inputPeerEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_peer_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 13 && !memcmp (cur_token, "inputPeerSelf", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_peer_self (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 16 && !memcmp (cur_token, "inputPeerContact", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_peer_contact (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 16 && !memcmp (cur_token, "inputPeerForeign", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_peer_foreign (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 13 && !memcmp (cur_token, "inputPeerChat", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_peer_chat (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_input_peer (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_peer); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 14 && !memcmp (cur_token, "inputPeerEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_peer_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 13 && !memcmp (cur_token, "inputPeerSelf", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_peer_self (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 16 && !memcmp (cur_token, "inputPeerContact", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_peer_contact (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 16 && !memcmp (cur_token, "inputPeerForeign", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_peer_foreign (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 13 && !memcmp (cur_token, "inputPeerChat", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_peer_chat (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_input_peer (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "inputPeerEmpty", text_len)) { *R = tstrdup ("inputPeerEmpty"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "inputPeerSelf", text_len)) { *R = tstrdup ("inputPeerSelf"); return index; } else { index ++; }}
+ if (index == 2) { if (!strncmp (text, "inputPeerContact", text_len)) { *R = tstrdup ("inputPeerContact"); return index; } else { index ++; }}
+ if (index == 3) { if (!strncmp (text, "inputPeerForeign", text_len)) { *R = tstrdup ("inputPeerForeign"); return index; } else { index ++; }}
+ if (index == 4) { if (!strncmp (text, "inputPeerChat", text_len)) { *R = tstrdup ("inputPeerChat"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_input_peer_notify_events (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_peer_notify_events); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 26 && !memcmp (cur_token, "inputPeerNotifyEventsEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_peer_notify_events_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 24 && !memcmp (cur_token, "inputPeerNotifyEventsAll", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_peer_notify_events_all (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_input_peer_notify_events (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_peer_notify_events); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 26 && !memcmp (cur_token, "inputPeerNotifyEventsEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_peer_notify_events_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 24 && !memcmp (cur_token, "inputPeerNotifyEventsAll", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_peer_notify_events_all (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_input_peer_notify_events (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "inputPeerNotifyEventsEmpty", text_len)) { *R = tstrdup ("inputPeerNotifyEventsEmpty"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "inputPeerNotifyEventsAll", text_len)) { *R = tstrdup ("inputPeerNotifyEventsAll"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_input_peer_notify_settings (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_peer_notify_settings); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 23 && !memcmp (cur_token, "inputPeerNotifySettings", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_peer_notify_settings (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_input_peer_notify_settings (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_peer_notify_settings); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 23 && !memcmp (cur_token, "inputPeerNotifySettings", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_peer_notify_settings (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_input_peer_notify_settings (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "inputPeerNotifySettings", text_len)) { *R = tstrdup ("inputPeerNotifySettings"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_input_photo (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_photo); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 15 && !memcmp (cur_token, "inputPhotoEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_photo_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 10 && !memcmp (cur_token, "inputPhoto", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_photo (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_input_photo (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_photo); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 15 && !memcmp (cur_token, "inputPhotoEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_photo_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 10 && !memcmp (cur_token, "inputPhoto", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_photo (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_input_photo (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "inputPhotoEmpty", text_len)) { *R = tstrdup ("inputPhotoEmpty"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "inputPhoto", text_len)) { *R = tstrdup ("inputPhoto"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_input_photo_crop (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_photo_crop); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 18 && !memcmp (cur_token, "inputPhotoCropAuto", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_photo_crop_auto (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 14 && !memcmp (cur_token, "inputPhotoCrop", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_photo_crop (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_input_photo_crop (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_photo_crop); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 18 && !memcmp (cur_token, "inputPhotoCropAuto", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_photo_crop_auto (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 14 && !memcmp (cur_token, "inputPhotoCrop", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_photo_crop (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_input_photo_crop (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "inputPhotoCropAuto", text_len)) { *R = tstrdup ("inputPhotoCropAuto"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "inputPhotoCrop", text_len)) { *R = tstrdup ("inputPhotoCrop"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_input_privacy_key (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_privacy_key); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 30 && !memcmp (cur_token, "inputPrivacyKeyStatusTimestamp", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_privacy_key_status_timestamp (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_input_privacy_key (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_privacy_key); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 30 && !memcmp (cur_token, "inputPrivacyKeyStatusTimestamp", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_privacy_key_status_timestamp (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_input_privacy_key (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "inputPrivacyKeyStatusTimestamp", text_len)) { *R = tstrdup ("inputPrivacyKeyStatusTimestamp"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_input_privacy_rule (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_privacy_rule); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 30 && !memcmp (cur_token, "inputPrivacyValueAllowContacts", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_privacy_value_allow_contacts (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 25 && !memcmp (cur_token, "inputPrivacyValueAllowAll", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_privacy_value_allow_all (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 27 && !memcmp (cur_token, "inputPrivacyValueAllowUsers", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_privacy_value_allow_users (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 33 && !memcmp (cur_token, "inputPrivacyValueDisallowContacts", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_privacy_value_disallow_contacts (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 28 && !memcmp (cur_token, "inputPrivacyValueDisallowAll", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_privacy_value_disallow_all (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 30 && !memcmp (cur_token, "inputPrivacyValueDisallowUsers", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_privacy_value_disallow_users (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_input_privacy_rule (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_privacy_rule); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 30 && !memcmp (cur_token, "inputPrivacyValueAllowContacts", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_privacy_value_allow_contacts (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 25 && !memcmp (cur_token, "inputPrivacyValueAllowAll", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_privacy_value_allow_all (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 27 && !memcmp (cur_token, "inputPrivacyValueAllowUsers", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_privacy_value_allow_users (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 33 && !memcmp (cur_token, "inputPrivacyValueDisallowContacts", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_privacy_value_disallow_contacts (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 28 && !memcmp (cur_token, "inputPrivacyValueDisallowAll", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_privacy_value_disallow_all (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 30 && !memcmp (cur_token, "inputPrivacyValueDisallowUsers", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_privacy_value_disallow_users (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_input_privacy_rule (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "inputPrivacyValueAllowContacts", text_len)) { *R = tstrdup ("inputPrivacyValueAllowContacts"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "inputPrivacyValueAllowAll", text_len)) { *R = tstrdup ("inputPrivacyValueAllowAll"); return index; } else { index ++; }}
+ if (index == 2) { if (!strncmp (text, "inputPrivacyValueAllowUsers", text_len)) { *R = tstrdup ("inputPrivacyValueAllowUsers"); return index; } else { index ++; }}
+ if (index == 3) { if (!strncmp (text, "inputPrivacyValueDisallowContacts", text_len)) { *R = tstrdup ("inputPrivacyValueDisallowContacts"); return index; } else { index ++; }}
+ if (index == 4) { if (!strncmp (text, "inputPrivacyValueDisallowAll", text_len)) { *R = tstrdup ("inputPrivacyValueDisallowAll"); return index; } else { index ++; }}
+ if (index == 5) { if (!strncmp (text, "inputPrivacyValueDisallowUsers", text_len)) { *R = tstrdup ("inputPrivacyValueDisallowUsers"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_input_sticker_set (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_sticker_set); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 20 && !memcmp (cur_token, "inputStickerSetEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_sticker_set_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 17 && !memcmp (cur_token, "inputStickerSetID", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_sticker_set_i_d (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 24 && !memcmp (cur_token, "inputStickerSetShortName", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_sticker_set_short_name (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_input_sticker_set (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_sticker_set); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 20 && !memcmp (cur_token, "inputStickerSetEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_sticker_set_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 17 && !memcmp (cur_token, "inputStickerSetID", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_sticker_set_i_d (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 24 && !memcmp (cur_token, "inputStickerSetShortName", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_sticker_set_short_name (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_input_sticker_set (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "inputStickerSetEmpty", text_len)) { *R = tstrdup ("inputStickerSetEmpty"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "inputStickerSetID", text_len)) { *R = tstrdup ("inputStickerSetID"); return index; } else { index ++; }}
+ if (index == 2) { if (!strncmp (text, "inputStickerSetShortName", text_len)) { *R = tstrdup ("inputStickerSetShortName"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_input_user (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_user); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 14 && !memcmp (cur_token, "inputUserEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_user_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 13 && !memcmp (cur_token, "inputUserSelf", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_user_self (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 16 && !memcmp (cur_token, "inputUserContact", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_user_contact (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 16 && !memcmp (cur_token, "inputUserForeign", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_user_foreign (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_input_user (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_user); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 14 && !memcmp (cur_token, "inputUserEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_user_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 13 && !memcmp (cur_token, "inputUserSelf", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_user_self (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 16 && !memcmp (cur_token, "inputUserContact", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_user_contact (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 16 && !memcmp (cur_token, "inputUserForeign", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_user_foreign (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_input_user (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "inputUserEmpty", text_len)) { *R = tstrdup ("inputUserEmpty"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "inputUserSelf", text_len)) { *R = tstrdup ("inputUserSelf"); return index; } else { index ++; }}
+ if (index == 2) { if (!strncmp (text, "inputUserContact", text_len)) { *R = tstrdup ("inputUserContact"); return index; } else { index ++; }}
+ if (index == 3) { if (!strncmp (text, "inputUserForeign", text_len)) { *R = tstrdup ("inputUserForeign"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_input_video (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_video); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 15 && !memcmp (cur_token, "inputVideoEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_video_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 10 && !memcmp (cur_token, "inputVideo", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_video (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_input_video (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_input_video); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 15 && !memcmp (cur_token, "inputVideoEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_video_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 10 && !memcmp (cur_token, "inputVideo", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_video (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_input_video (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "inputVideoEmpty", text_len)) { *R = tstrdup ("inputVideoEmpty"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "inputVideo", text_len)) { *R = tstrdup ("inputVideo"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_int (struct paramed_type *T) {
+ if (autocomplete_constructor_int (T) < 0) { return -1; }
+ return 0;
+}
+int autocomplete_type_bare_int (struct paramed_type *T) {
+ if (autocomplete_constructor_int (T) < 0) { return -1; }
+ return 0;
+}
+int do_autocomplete_type_int (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "int", text_len)) { *R = tstrdup ("int"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_int128 (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_int128); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 6 && !memcmp (cur_token, "int128", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_int128 (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_int128 (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_int128); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 6 && !memcmp (cur_token, "int128", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_int128 (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_int128 (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "int128", text_len)) { *R = tstrdup ("int128"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_int256 (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_int256); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 6 && !memcmp (cur_token, "int256", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_int256 (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_int256 (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_int256); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 6 && !memcmp (cur_token, "int256", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_int256 (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_int256 (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "int256", text_len)) { *R = tstrdup ("int256"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_keyboard_button (struct paramed_type *T) {
+ if (autocomplete_constructor_keyboard_button (T) < 0) { return -1; }
+ return 0;
+}
+int autocomplete_type_bare_keyboard_button (struct paramed_type *T) {
+ if (autocomplete_constructor_keyboard_button (T) < 0) { return -1; }
+ return 0;
+}
+int do_autocomplete_type_keyboard_button (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "keyboardButton", text_len)) { *R = tstrdup ("keyboardButton"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_keyboard_button_row (struct paramed_type *T) {
+ if (autocomplete_constructor_keyboard_button_row (T) < 0) { return -1; }
+ return 0;
+}
+int autocomplete_type_bare_keyboard_button_row (struct paramed_type *T) {
+ if (autocomplete_constructor_keyboard_button_row (T) < 0) { return -1; }
+ return 0;
+}
+int do_autocomplete_type_keyboard_button_row (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "keyboardButtonRow", text_len)) { *R = tstrdup ("keyboardButtonRow"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_long (struct paramed_type *T) {
+ if (autocomplete_constructor_long (T) < 0) { return -1; }
+ return 0;
+}
+int autocomplete_type_bare_long (struct paramed_type *T) {
+ if (autocomplete_constructor_long (T) < 0) { return -1; }
+ return 0;
+}
+int do_autocomplete_type_long (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "long", text_len)) { *R = tstrdup ("long"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_message (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_message); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 12 && !memcmp (cur_token, "messageEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 7 && !memcmp (cur_token, "message", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 14 && !memcmp (cur_token, "messageService", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_service (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_message (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_message); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 12 && !memcmp (cur_token, "messageEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 7 && !memcmp (cur_token, "message", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 14 && !memcmp (cur_token, "messageService", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_service (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_message (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "messageEmpty", text_len)) { *R = tstrdup ("messageEmpty"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "message", text_len)) { *R = tstrdup ("message"); return index; } else { index ++; }}
+ if (index == 2) { if (!strncmp (text, "messageService", text_len)) { *R = tstrdup ("messageService"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_message_action (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_message_action); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 18 && !memcmp (cur_token, "messageActionEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_action_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 23 && !memcmp (cur_token, "messageActionChatCreate", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_action_chat_create (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 26 && !memcmp (cur_token, "messageActionChatEditTitle", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_action_chat_edit_title (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 26 && !memcmp (cur_token, "messageActionChatEditPhoto", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_action_chat_edit_photo (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 28 && !memcmp (cur_token, "messageActionChatDeletePhoto", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_action_chat_delete_photo (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 24 && !memcmp (cur_token, "messageActionChatAddUser", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_action_chat_add_user (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 27 && !memcmp (cur_token, "messageActionChatDeleteUser", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_action_chat_delete_user (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 26 && !memcmp (cur_token, "messageActionGeoChatCreate", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_action_geo_chat_create (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 27 && !memcmp (cur_token, "messageActionGeoChatCheckin", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_action_geo_chat_checkin (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 29 && !memcmp (cur_token, "messageActionChatJoinedByLink", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_action_chat_joined_by_link (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_message_action (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_message_action); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 18 && !memcmp (cur_token, "messageActionEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_action_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 23 && !memcmp (cur_token, "messageActionChatCreate", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_action_chat_create (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 26 && !memcmp (cur_token, "messageActionChatEditTitle", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_action_chat_edit_title (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 26 && !memcmp (cur_token, "messageActionChatEditPhoto", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_action_chat_edit_photo (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 28 && !memcmp (cur_token, "messageActionChatDeletePhoto", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_action_chat_delete_photo (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 24 && !memcmp (cur_token, "messageActionChatAddUser", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_action_chat_add_user (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 27 && !memcmp (cur_token, "messageActionChatDeleteUser", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_action_chat_delete_user (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 26 && !memcmp (cur_token, "messageActionGeoChatCreate", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_action_geo_chat_create (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 27 && !memcmp (cur_token, "messageActionGeoChatCheckin", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_action_geo_chat_checkin (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 29 && !memcmp (cur_token, "messageActionChatJoinedByLink", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_action_chat_joined_by_link (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_message_action (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "messageActionEmpty", text_len)) { *R = tstrdup ("messageActionEmpty"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "messageActionChatCreate", text_len)) { *R = tstrdup ("messageActionChatCreate"); return index; } else { index ++; }}
+ if (index == 2) { if (!strncmp (text, "messageActionChatEditTitle", text_len)) { *R = tstrdup ("messageActionChatEditTitle"); return index; } else { index ++; }}
+ if (index == 3) { if (!strncmp (text, "messageActionChatEditPhoto", text_len)) { *R = tstrdup ("messageActionChatEditPhoto"); return index; } else { index ++; }}
+ if (index == 4) { if (!strncmp (text, "messageActionChatDeletePhoto", text_len)) { *R = tstrdup ("messageActionChatDeletePhoto"); return index; } else { index ++; }}
+ if (index == 5) { if (!strncmp (text, "messageActionChatAddUser", text_len)) { *R = tstrdup ("messageActionChatAddUser"); return index; } else { index ++; }}
+ if (index == 6) { if (!strncmp (text, "messageActionChatDeleteUser", text_len)) { *R = tstrdup ("messageActionChatDeleteUser"); return index; } else { index ++; }}
+ if (index == 7) { if (!strncmp (text, "messageActionGeoChatCreate", text_len)) { *R = tstrdup ("messageActionGeoChatCreate"); return index; } else { index ++; }}
+ if (index == 8) { if (!strncmp (text, "messageActionGeoChatCheckin", text_len)) { *R = tstrdup ("messageActionGeoChatCheckin"); return index; } else { index ++; }}
+ if (index == 9) { if (!strncmp (text, "messageActionChatJoinedByLink", text_len)) { *R = tstrdup ("messageActionChatJoinedByLink"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_message_media (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_message_media); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 17 && !memcmp (cur_token, "messageMediaEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_media_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 17 && !memcmp (cur_token, "messageMediaPhoto", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_media_photo (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 17 && !memcmp (cur_token, "messageMediaVideo", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_media_video (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "messageMediaGeo", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_media_geo (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 19 && !memcmp (cur_token, "messageMediaContact", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_media_contact (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 23 && !memcmp (cur_token, "messageMediaUnsupported", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_media_unsupported (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 20 && !memcmp (cur_token, "messageMediaDocument", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_media_document (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 17 && !memcmp (cur_token, "messageMediaAudio", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_media_audio (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 19 && !memcmp (cur_token, "messageMediaWebPage", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_media_web_page (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 17 && !memcmp (cur_token, "messageMediaVenue", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_media_venue (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 20 && !memcmp (cur_token, "messageMediaPhotoL27", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_media_photo_l27 (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 20 && !memcmp (cur_token, "messageMediaVideoL27", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_media_video_l27 (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_message_media (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_message_media); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 17 && !memcmp (cur_token, "messageMediaEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_media_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 17 && !memcmp (cur_token, "messageMediaPhoto", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_media_photo (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 17 && !memcmp (cur_token, "messageMediaVideo", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_media_video (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "messageMediaGeo", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_media_geo (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 19 && !memcmp (cur_token, "messageMediaContact", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_media_contact (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 23 && !memcmp (cur_token, "messageMediaUnsupported", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_media_unsupported (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 20 && !memcmp (cur_token, "messageMediaDocument", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_media_document (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 17 && !memcmp (cur_token, "messageMediaAudio", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_media_audio (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 19 && !memcmp (cur_token, "messageMediaWebPage", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_media_web_page (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 17 && !memcmp (cur_token, "messageMediaVenue", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_media_venue (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 20 && !memcmp (cur_token, "messageMediaPhotoL27", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_media_photo_l27 (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 20 && !memcmp (cur_token, "messageMediaVideoL27", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_message_media_video_l27 (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_message_media (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "messageMediaEmpty", text_len)) { *R = tstrdup ("messageMediaEmpty"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "messageMediaPhoto", text_len)) { *R = tstrdup ("messageMediaPhoto"); return index; } else { index ++; }}
+ if (index == 2) { if (!strncmp (text, "messageMediaVideo", text_len)) { *R = tstrdup ("messageMediaVideo"); return index; } else { index ++; }}
+ if (index == 3) { if (!strncmp (text, "messageMediaGeo", text_len)) { *R = tstrdup ("messageMediaGeo"); return index; } else { index ++; }}
+ if (index == 4) { if (!strncmp (text, "messageMediaContact", text_len)) { *R = tstrdup ("messageMediaContact"); return index; } else { index ++; }}
+ if (index == 5) { if (!strncmp (text, "messageMediaUnsupported", text_len)) { *R = tstrdup ("messageMediaUnsupported"); return index; } else { index ++; }}
+ if (index == 6) { if (!strncmp (text, "messageMediaDocument", text_len)) { *R = tstrdup ("messageMediaDocument"); return index; } else { index ++; }}
+ if (index == 7) { if (!strncmp (text, "messageMediaAudio", text_len)) { *R = tstrdup ("messageMediaAudio"); return index; } else { index ++; }}
+ if (index == 8) { if (!strncmp (text, "messageMediaWebPage", text_len)) { *R = tstrdup ("messageMediaWebPage"); return index; } else { index ++; }}
+ if (index == 9) { if (!strncmp (text, "messageMediaVenue", text_len)) { *R = tstrdup ("messageMediaVenue"); return index; } else { index ++; }}
+ if (index == 10) { if (!strncmp (text, "messageMediaPhotoL27", text_len)) { *R = tstrdup ("messageMediaPhotoL27"); return index; } else { index ++; }}
+ if (index == 11) { if (!strncmp (text, "messageMediaVideoL27", text_len)) { *R = tstrdup ("messageMediaVideoL27"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_messages_filter (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_messages_filter); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 24 && !memcmp (cur_token, "inputMessagesFilterEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_messages_filter_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 25 && !memcmp (cur_token, "inputMessagesFilterPhotos", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_messages_filter_photos (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 24 && !memcmp (cur_token, "inputMessagesFilterVideo", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_messages_filter_video (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 29 && !memcmp (cur_token, "inputMessagesFilterPhotoVideo", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_messages_filter_photo_video (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 38 && !memcmp (cur_token, "inputMessagesFilterPhotoVideoDocuments", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_messages_filter_photo_video_documents (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 27 && !memcmp (cur_token, "inputMessagesFilterDocument", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_messages_filter_document (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 24 && !memcmp (cur_token, "inputMessagesFilterAudio", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_messages_filter_audio (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_messages_filter (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_messages_filter); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 24 && !memcmp (cur_token, "inputMessagesFilterEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_messages_filter_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 25 && !memcmp (cur_token, "inputMessagesFilterPhotos", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_messages_filter_photos (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 24 && !memcmp (cur_token, "inputMessagesFilterVideo", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_messages_filter_video (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 29 && !memcmp (cur_token, "inputMessagesFilterPhotoVideo", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_messages_filter_photo_video (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 38 && !memcmp (cur_token, "inputMessagesFilterPhotoVideoDocuments", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_messages_filter_photo_video_documents (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 27 && !memcmp (cur_token, "inputMessagesFilterDocument", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_messages_filter_document (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 24 && !memcmp (cur_token, "inputMessagesFilterAudio", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_input_messages_filter_audio (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_messages_filter (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "inputMessagesFilterEmpty", text_len)) { *R = tstrdup ("inputMessagesFilterEmpty"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "inputMessagesFilterPhotos", text_len)) { *R = tstrdup ("inputMessagesFilterPhotos"); return index; } else { index ++; }}
+ if (index == 2) { if (!strncmp (text, "inputMessagesFilterVideo", text_len)) { *R = tstrdup ("inputMessagesFilterVideo"); return index; } else { index ++; }}
+ if (index == 3) { if (!strncmp (text, "inputMessagesFilterPhotoVideo", text_len)) { *R = tstrdup ("inputMessagesFilterPhotoVideo"); return index; } else { index ++; }}
+ if (index == 4) { if (!strncmp (text, "inputMessagesFilterPhotoVideoDocuments", text_len)) { *R = tstrdup ("inputMessagesFilterPhotoVideoDocuments"); return index; } else { index ++; }}
+ if (index == 5) { if (!strncmp (text, "inputMessagesFilterDocument", text_len)) { *R = tstrdup ("inputMessagesFilterDocument"); return index; } else { index ++; }}
+ if (index == 6) { if (!strncmp (text, "inputMessagesFilterAudio", text_len)) { *R = tstrdup ("inputMessagesFilterAudio"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_nearest_dc (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_nearest_dc); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 9 && !memcmp (cur_token, "nearestDc", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_nearest_dc (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_nearest_dc (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_nearest_dc); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 9 && !memcmp (cur_token, "nearestDc", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_nearest_dc (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_nearest_dc (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "nearestDc", text_len)) { *R = tstrdup ("nearestDc"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_notify_peer (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_notify_peer); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 10 && !memcmp (cur_token, "notifyPeer", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_notify_peer (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 11 && !memcmp (cur_token, "notifyUsers", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_notify_users (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 11 && !memcmp (cur_token, "notifyChats", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_notify_chats (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 9 && !memcmp (cur_token, "notifyAll", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_notify_all (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_notify_peer (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_notify_peer); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 10 && !memcmp (cur_token, "notifyPeer", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_notify_peer (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 11 && !memcmp (cur_token, "notifyUsers", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_notify_users (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 11 && !memcmp (cur_token, "notifyChats", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_notify_chats (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 9 && !memcmp (cur_token, "notifyAll", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_notify_all (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_notify_peer (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "notifyPeer", text_len)) { *R = tstrdup ("notifyPeer"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "notifyUsers", text_len)) { *R = tstrdup ("notifyUsers"); return index; } else { index ++; }}
+ if (index == 2) { if (!strncmp (text, "notifyChats", text_len)) { *R = tstrdup ("notifyChats"); return index; } else { index ++; }}
+ if (index == 3) { if (!strncmp (text, "notifyAll", text_len)) { *R = tstrdup ("notifyAll"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_null (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_null); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 4 && !memcmp (cur_token, "null", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_null (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_null (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_null); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 4 && !memcmp (cur_token, "null", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_null (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_null (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "null", text_len)) { *R = tstrdup ("null"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_p_q_inner_data (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_p_q_inner_data); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 14 && !memcmp (cur_token, "p_q_inner_data", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_p_q_inner_data (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 19 && !memcmp (cur_token, "p_q_inner_data_temp", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_p_q_inner_data_temp (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_p_q_inner_data (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_p_q_inner_data); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 14 && !memcmp (cur_token, "p_q_inner_data", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_p_q_inner_data (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 19 && !memcmp (cur_token, "p_q_inner_data_temp", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_p_q_inner_data_temp (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_p_q_inner_data (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "p_q_inner_data", text_len)) { *R = tstrdup ("p_q_inner_data"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "p_q_inner_data_temp", text_len)) { *R = tstrdup ("p_q_inner_data_temp"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_peer (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_peer); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 8 && !memcmp (cur_token, "peerUser", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_peer_user (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 8 && !memcmp (cur_token, "peerChat", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_peer_chat (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_peer (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_peer); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 8 && !memcmp (cur_token, "peerUser", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_peer_user (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 8 && !memcmp (cur_token, "peerChat", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_peer_chat (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_peer (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "peerUser", text_len)) { *R = tstrdup ("peerUser"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "peerChat", text_len)) { *R = tstrdup ("peerChat"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_peer_notify_events (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_peer_notify_events); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 21 && !memcmp (cur_token, "peerNotifyEventsEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_peer_notify_events_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 19 && !memcmp (cur_token, "peerNotifyEventsAll", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_peer_notify_events_all (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_peer_notify_events (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_peer_notify_events); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 21 && !memcmp (cur_token, "peerNotifyEventsEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_peer_notify_events_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 19 && !memcmp (cur_token, "peerNotifyEventsAll", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_peer_notify_events_all (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_peer_notify_events (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "peerNotifyEventsEmpty", text_len)) { *R = tstrdup ("peerNotifyEventsEmpty"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "peerNotifyEventsAll", text_len)) { *R = tstrdup ("peerNotifyEventsAll"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_peer_notify_settings (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_peer_notify_settings); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 23 && !memcmp (cur_token, "peerNotifySettingsEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_peer_notify_settings_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 18 && !memcmp (cur_token, "peerNotifySettings", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_peer_notify_settings (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_peer_notify_settings (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_peer_notify_settings); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 23 && !memcmp (cur_token, "peerNotifySettingsEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_peer_notify_settings_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 18 && !memcmp (cur_token, "peerNotifySettings", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_peer_notify_settings (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_peer_notify_settings (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "peerNotifySettingsEmpty", text_len)) { *R = tstrdup ("peerNotifySettingsEmpty"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "peerNotifySettings", text_len)) { *R = tstrdup ("peerNotifySettings"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_photo (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_photo); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 10 && !memcmp (cur_token, "photoEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_photo_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 5 && !memcmp (cur_token, "photo", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_photo (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 8 && !memcmp (cur_token, "photoL27", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_photo_l27 (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_photo (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_photo); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 10 && !memcmp (cur_token, "photoEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_photo_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 5 && !memcmp (cur_token, "photo", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_photo (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 8 && !memcmp (cur_token, "photoL27", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_photo_l27 (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_photo (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "photoEmpty", text_len)) { *R = tstrdup ("photoEmpty"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "photo", text_len)) { *R = tstrdup ("photo"); return index; } else { index ++; }}
+ if (index == 2) { if (!strncmp (text, "photoL27", text_len)) { *R = tstrdup ("photoL27"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_photo_size (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_photo_size); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 14 && !memcmp (cur_token, "photoSizeEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_photo_size_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 9 && !memcmp (cur_token, "photoSize", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_photo_size (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "photoCachedSize", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_photo_cached_size (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_photo_size (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_photo_size); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 14 && !memcmp (cur_token, "photoSizeEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_photo_size_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 9 && !memcmp (cur_token, "photoSize", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_photo_size (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "photoCachedSize", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_photo_cached_size (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_photo_size (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "photoSizeEmpty", text_len)) { *R = tstrdup ("photoSizeEmpty"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "photoSize", text_len)) { *R = tstrdup ("photoSize"); return index; } else { index ++; }}
+ if (index == 2) { if (!strncmp (text, "photoCachedSize", text_len)) { *R = tstrdup ("photoCachedSize"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_privacy_key (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_privacy_key); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 25 && !memcmp (cur_token, "privacyKeyStatusTimestamp", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_privacy_key_status_timestamp (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_privacy_key (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_privacy_key); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 25 && !memcmp (cur_token, "privacyKeyStatusTimestamp", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_privacy_key_status_timestamp (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_privacy_key (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "privacyKeyStatusTimestamp", text_len)) { *R = tstrdup ("privacyKeyStatusTimestamp"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_privacy_rule (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_privacy_rule); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 25 && !memcmp (cur_token, "privacyValueAllowContacts", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_privacy_value_allow_contacts (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 20 && !memcmp (cur_token, "privacyValueAllowAll", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_privacy_value_allow_all (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "privacyValueAllowUsers", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_privacy_value_allow_users (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 28 && !memcmp (cur_token, "privacyValueDisallowContacts", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_privacy_value_disallow_contacts (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 23 && !memcmp (cur_token, "privacyValueDisallowAll", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_privacy_value_disallow_all (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 25 && !memcmp (cur_token, "privacyValueDisallowUsers", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_privacy_value_disallow_users (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_privacy_rule (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_privacy_rule); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 25 && !memcmp (cur_token, "privacyValueAllowContacts", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_privacy_value_allow_contacts (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 20 && !memcmp (cur_token, "privacyValueAllowAll", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_privacy_value_allow_all (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "privacyValueAllowUsers", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_privacy_value_allow_users (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 28 && !memcmp (cur_token, "privacyValueDisallowContacts", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_privacy_value_disallow_contacts (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 23 && !memcmp (cur_token, "privacyValueDisallowAll", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_privacy_value_disallow_all (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 25 && !memcmp (cur_token, "privacyValueDisallowUsers", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_privacy_value_disallow_users (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_privacy_rule (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "privacyValueAllowContacts", text_len)) { *R = tstrdup ("privacyValueAllowContacts"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "privacyValueAllowAll", text_len)) { *R = tstrdup ("privacyValueAllowAll"); return index; } else { index ++; }}
+ if (index == 2) { if (!strncmp (text, "privacyValueAllowUsers", text_len)) { *R = tstrdup ("privacyValueAllowUsers"); return index; } else { index ++; }}
+ if (index == 3) { if (!strncmp (text, "privacyValueDisallowContacts", text_len)) { *R = tstrdup ("privacyValueDisallowContacts"); return index; } else { index ++; }}
+ if (index == 4) { if (!strncmp (text, "privacyValueDisallowAll", text_len)) { *R = tstrdup ("privacyValueDisallowAll"); return index; } else { index ++; }}
+ if (index == 5) { if (!strncmp (text, "privacyValueDisallowUsers", text_len)) { *R = tstrdup ("privacyValueDisallowUsers"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_received_notify_message (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_received_notify_message); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 21 && !memcmp (cur_token, "receivedNotifyMessage", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_received_notify_message (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_received_notify_message (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_received_notify_message); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 21 && !memcmp (cur_token, "receivedNotifyMessage", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_received_notify_message (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_received_notify_message (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "receivedNotifyMessage", text_len)) { *R = tstrdup ("receivedNotifyMessage"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_reply_markup (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_reply_markup); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 17 && !memcmp (cur_token, "replyKeyboardHide", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_reply_keyboard_hide (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 23 && !memcmp (cur_token, "replyKeyboardForceReply", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_reply_keyboard_force_reply (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 19 && !memcmp (cur_token, "replyKeyboardMarkup", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_reply_keyboard_markup (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_reply_markup (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_reply_markup); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 17 && !memcmp (cur_token, "replyKeyboardHide", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_reply_keyboard_hide (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 23 && !memcmp (cur_token, "replyKeyboardForceReply", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_reply_keyboard_force_reply (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 19 && !memcmp (cur_token, "replyKeyboardMarkup", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_reply_keyboard_markup (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_reply_markup (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "replyKeyboardHide", text_len)) { *R = tstrdup ("replyKeyboardHide"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "replyKeyboardForceReply", text_len)) { *R = tstrdup ("replyKeyboardForceReply"); return index; } else { index ++; }}
+ if (index == 2) { if (!strncmp (text, "replyKeyboardMarkup", text_len)) { *R = tstrdup ("replyKeyboardMarkup"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_res_p_q (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_res_p_q); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 5 && !memcmp (cur_token, "resPQ", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_res_p_q (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_res_p_q (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_res_p_q); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 5 && !memcmp (cur_token, "resPQ", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_res_p_q (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_res_p_q (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "resPQ", text_len)) { *R = tstrdup ("resPQ"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_send_message_action (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_send_message_action); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 23 && !memcmp (cur_token, "sendMessageTypingAction", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_send_message_typing_action (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 23 && !memcmp (cur_token, "sendMessageCancelAction", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_send_message_cancel_action (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 28 && !memcmp (cur_token, "sendMessageRecordVideoAction", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_send_message_record_video_action (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 31 && !memcmp (cur_token, "sendMessageUploadVideoActionL27", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_send_message_upload_video_action_l27 (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 28 && !memcmp (cur_token, "sendMessageUploadVideoAction", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_send_message_upload_video_action (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 28 && !memcmp (cur_token, "sendMessageRecordAudioAction", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_send_message_record_audio_action (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 31 && !memcmp (cur_token, "sendMessageUploadAudioActionL27", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_send_message_upload_audio_action_l27 (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 28 && !memcmp (cur_token, "sendMessageUploadAudioAction", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_send_message_upload_audio_action (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 28 && !memcmp (cur_token, "sendMessageUploadPhotoAction", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_send_message_upload_photo_action (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 34 && !memcmp (cur_token, "sendMessageUploadDocumentActionL27", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_send_message_upload_document_action_l27 (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 31 && !memcmp (cur_token, "sendMessageUploadDocumentAction", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_send_message_upload_document_action (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 28 && !memcmp (cur_token, "sendMessageGeoLocationAction", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_send_message_geo_location_action (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 30 && !memcmp (cur_token, "sendMessageChooseContactAction", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_send_message_choose_contact_action (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_send_message_action (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_send_message_action); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 23 && !memcmp (cur_token, "sendMessageTypingAction", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_send_message_typing_action (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 23 && !memcmp (cur_token, "sendMessageCancelAction", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_send_message_cancel_action (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 28 && !memcmp (cur_token, "sendMessageRecordVideoAction", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_send_message_record_video_action (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 31 && !memcmp (cur_token, "sendMessageUploadVideoActionL27", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_send_message_upload_video_action_l27 (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 28 && !memcmp (cur_token, "sendMessageUploadVideoAction", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_send_message_upload_video_action (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 28 && !memcmp (cur_token, "sendMessageRecordAudioAction", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_send_message_record_audio_action (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 31 && !memcmp (cur_token, "sendMessageUploadAudioActionL27", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_send_message_upload_audio_action_l27 (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 28 && !memcmp (cur_token, "sendMessageUploadAudioAction", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_send_message_upload_audio_action (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 28 && !memcmp (cur_token, "sendMessageUploadPhotoAction", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_send_message_upload_photo_action (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 34 && !memcmp (cur_token, "sendMessageUploadDocumentActionL27", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_send_message_upload_document_action_l27 (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 31 && !memcmp (cur_token, "sendMessageUploadDocumentAction", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_send_message_upload_document_action (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 28 && !memcmp (cur_token, "sendMessageGeoLocationAction", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_send_message_geo_location_action (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 30 && !memcmp (cur_token, "sendMessageChooseContactAction", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_send_message_choose_contact_action (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_send_message_action (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "sendMessageTypingAction", text_len)) { *R = tstrdup ("sendMessageTypingAction"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "sendMessageCancelAction", text_len)) { *R = tstrdup ("sendMessageCancelAction"); return index; } else { index ++; }}
+ if (index == 2) { if (!strncmp (text, "sendMessageRecordVideoAction", text_len)) { *R = tstrdup ("sendMessageRecordVideoAction"); return index; } else { index ++; }}
+ if (index == 3) { if (!strncmp (text, "sendMessageUploadVideoActionL27", text_len)) { *R = tstrdup ("sendMessageUploadVideoActionL27"); return index; } else { index ++; }}
+ if (index == 4) { if (!strncmp (text, "sendMessageUploadVideoAction", text_len)) { *R = tstrdup ("sendMessageUploadVideoAction"); return index; } else { index ++; }}
+ if (index == 5) { if (!strncmp (text, "sendMessageRecordAudioAction", text_len)) { *R = tstrdup ("sendMessageRecordAudioAction"); return index; } else { index ++; }}
+ if (index == 6) { if (!strncmp (text, "sendMessageUploadAudioActionL27", text_len)) { *R = tstrdup ("sendMessageUploadAudioActionL27"); return index; } else { index ++; }}
+ if (index == 7) { if (!strncmp (text, "sendMessageUploadAudioAction", text_len)) { *R = tstrdup ("sendMessageUploadAudioAction"); return index; } else { index ++; }}
+ if (index == 8) { if (!strncmp (text, "sendMessageUploadPhotoAction", text_len)) { *R = tstrdup ("sendMessageUploadPhotoAction"); return index; } else { index ++; }}
+ if (index == 9) { if (!strncmp (text, "sendMessageUploadDocumentActionL27", text_len)) { *R = tstrdup ("sendMessageUploadDocumentActionL27"); return index; } else { index ++; }}
+ if (index == 10) { if (!strncmp (text, "sendMessageUploadDocumentAction", text_len)) { *R = tstrdup ("sendMessageUploadDocumentAction"); return index; } else { index ++; }}
+ if (index == 11) { if (!strncmp (text, "sendMessageGeoLocationAction", text_len)) { *R = tstrdup ("sendMessageGeoLocationAction"); return index; } else { index ++; }}
+ if (index == 12) { if (!strncmp (text, "sendMessageChooseContactAction", text_len)) { *R = tstrdup ("sendMessageChooseContactAction"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_server_d_h_params (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_server_d_h_params); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 21 && !memcmp (cur_token, "server_DH_params_fail", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_server_d_h_params_fail (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 19 && !memcmp (cur_token, "server_DH_params_ok", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_server_d_h_params_ok (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_server_d_h_params (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_server_d_h_params); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 21 && !memcmp (cur_token, "server_DH_params_fail", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_server_d_h_params_fail (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 19 && !memcmp (cur_token, "server_DH_params_ok", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_server_d_h_params_ok (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_server_d_h_params (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "server_DH_params_fail", text_len)) { *R = tstrdup ("server_DH_params_fail"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "server_DH_params_ok", text_len)) { *R = tstrdup ("server_DH_params_ok"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_server_d_h_inner_data (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_server_d_h_inner_data); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 20 && !memcmp (cur_token, "server_DH_inner_data", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_server_d_h_inner_data (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_server_d_h_inner_data (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_server_d_h_inner_data); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 20 && !memcmp (cur_token, "server_DH_inner_data", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_server_d_h_inner_data (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_server_d_h_inner_data (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "server_DH_inner_data", text_len)) { *R = tstrdup ("server_DH_inner_data"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_set_client_d_h_params_answer (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_set_client_d_h_params_answer); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 9 && !memcmp (cur_token, "dh_gen_ok", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_dh_gen_ok (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 12 && !memcmp (cur_token, "dh_gen_retry", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_dh_gen_retry (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 11 && !memcmp (cur_token, "dh_gen_fail", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_dh_gen_fail (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_set_client_d_h_params_answer (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_set_client_d_h_params_answer); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 9 && !memcmp (cur_token, "dh_gen_ok", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_dh_gen_ok (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 12 && !memcmp (cur_token, "dh_gen_retry", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_dh_gen_retry (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 11 && !memcmp (cur_token, "dh_gen_fail", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_dh_gen_fail (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_set_client_d_h_params_answer (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "dh_gen_ok", text_len)) { *R = tstrdup ("dh_gen_ok"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "dh_gen_retry", text_len)) { *R = tstrdup ("dh_gen_retry"); return index; } else { index ++; }}
+ if (index == 2) { if (!strncmp (text, "dh_gen_fail", text_len)) { *R = tstrdup ("dh_gen_fail"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_sticker_pack (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_sticker_pack); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 11 && !memcmp (cur_token, "stickerPack", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_sticker_pack (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_sticker_pack (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_sticker_pack); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 11 && !memcmp (cur_token, "stickerPack", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_sticker_pack (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_sticker_pack (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "stickerPack", text_len)) { *R = tstrdup ("stickerPack"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_sticker_set (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_sticker_set); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 10 && !memcmp (cur_token, "stickerSet", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_sticker_set (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_sticker_set (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_sticker_set); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 10 && !memcmp (cur_token, "stickerSet", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_sticker_set (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_sticker_set (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "stickerSet", text_len)) { *R = tstrdup ("stickerSet"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_string (struct paramed_type *T) {
+ if (autocomplete_constructor_string (T) < 0) { return -1; }
+ return 0;
+}
+int autocomplete_type_bare_string (struct paramed_type *T) {
+ if (autocomplete_constructor_string (T) < 0) { return -1; }
+ return 0;
+}
+int do_autocomplete_type_string (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "string", text_len)) { *R = tstrdup ("string"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_update (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_update); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 16 && !memcmp (cur_token, "updateNewMessage", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_new_message (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "updateMessageID", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_message_i_d (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 20 && !memcmp (cur_token, "updateDeleteMessages", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_delete_messages (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 16 && !memcmp (cur_token, "updateUserTyping", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_user_typing (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 20 && !memcmp (cur_token, "updateChatUserTyping", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_chat_user_typing (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "updateChatParticipants", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_chat_participants (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 16 && !memcmp (cur_token, "updateUserStatus", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_user_status (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 14 && !memcmp (cur_token, "updateUserName", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_user_name (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "updateUserPhoto", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_user_photo (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 23 && !memcmp (cur_token, "updateContactRegistered", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_contact_registered (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 17 && !memcmp (cur_token, "updateContactLink", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_contact_link (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "updateNewAuthorization", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_new_authorization (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 23 && !memcmp (cur_token, "updateNewGeoChatMessage", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_new_geo_chat_message (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 25 && !memcmp (cur_token, "updateNewEncryptedMessage", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_new_encrypted_message (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 25 && !memcmp (cur_token, "updateEncryptedChatTyping", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_encrypted_chat_typing (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 16 && !memcmp (cur_token, "updateEncryption", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_encryption (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 27 && !memcmp (cur_token, "updateEncryptedMessagesRead", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_encrypted_messages_read (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 24 && !memcmp (cur_token, "updateChatParticipantAdd", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_chat_participant_add (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 27 && !memcmp (cur_token, "updateChatParticipantDelete", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_chat_participant_delete (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "updateDcOptions", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_dc_options (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 17 && !memcmp (cur_token, "updateUserBlocked", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_user_blocked (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 20 && !memcmp (cur_token, "updateNotifySettings", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_notify_settings (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 25 && !memcmp (cur_token, "updateServiceNotification", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_service_notification (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 13 && !memcmp (cur_token, "updatePrivacy", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_privacy (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "updateUserPhone", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_user_phone (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "updateReadHistoryInbox", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_read_history_inbox (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 23 && !memcmp (cur_token, "updateReadHistoryOutbox", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_read_history_outbox (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 13 && !memcmp (cur_token, "updateWebPage", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_web_page (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 26 && !memcmp (cur_token, "updateReadMessagesContents", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_read_messages_contents (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "updateMsgUpdate", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_msg_update (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_update (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_update); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 16 && !memcmp (cur_token, "updateNewMessage", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_new_message (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "updateMessageID", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_message_i_d (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 20 && !memcmp (cur_token, "updateDeleteMessages", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_delete_messages (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 16 && !memcmp (cur_token, "updateUserTyping", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_user_typing (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 20 && !memcmp (cur_token, "updateChatUserTyping", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_chat_user_typing (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "updateChatParticipants", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_chat_participants (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 16 && !memcmp (cur_token, "updateUserStatus", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_user_status (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 14 && !memcmp (cur_token, "updateUserName", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_user_name (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "updateUserPhoto", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_user_photo (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 23 && !memcmp (cur_token, "updateContactRegistered", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_contact_registered (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 17 && !memcmp (cur_token, "updateContactLink", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_contact_link (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "updateNewAuthorization", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_new_authorization (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 23 && !memcmp (cur_token, "updateNewGeoChatMessage", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_new_geo_chat_message (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 25 && !memcmp (cur_token, "updateNewEncryptedMessage", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_new_encrypted_message (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 25 && !memcmp (cur_token, "updateEncryptedChatTyping", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_encrypted_chat_typing (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 16 && !memcmp (cur_token, "updateEncryption", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_encryption (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 27 && !memcmp (cur_token, "updateEncryptedMessagesRead", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_encrypted_messages_read (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 24 && !memcmp (cur_token, "updateChatParticipantAdd", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_chat_participant_add (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 27 && !memcmp (cur_token, "updateChatParticipantDelete", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_chat_participant_delete (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "updateDcOptions", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_dc_options (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 17 && !memcmp (cur_token, "updateUserBlocked", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_user_blocked (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 20 && !memcmp (cur_token, "updateNotifySettings", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_notify_settings (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 25 && !memcmp (cur_token, "updateServiceNotification", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_service_notification (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 13 && !memcmp (cur_token, "updatePrivacy", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_privacy (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "updateUserPhone", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_user_phone (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "updateReadHistoryInbox", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_read_history_inbox (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 23 && !memcmp (cur_token, "updateReadHistoryOutbox", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_read_history_outbox (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 13 && !memcmp (cur_token, "updateWebPage", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_web_page (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 26 && !memcmp (cur_token, "updateReadMessagesContents", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_read_messages_contents (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "updateMsgUpdate", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_msg_update (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_update (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "updateNewMessage", text_len)) { *R = tstrdup ("updateNewMessage"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "updateMessageID", text_len)) { *R = tstrdup ("updateMessageID"); return index; } else { index ++; }}
+ if (index == 2) { if (!strncmp (text, "updateDeleteMessages", text_len)) { *R = tstrdup ("updateDeleteMessages"); return index; } else { index ++; }}
+ if (index == 3) { if (!strncmp (text, "updateUserTyping", text_len)) { *R = tstrdup ("updateUserTyping"); return index; } else { index ++; }}
+ if (index == 4) { if (!strncmp (text, "updateChatUserTyping", text_len)) { *R = tstrdup ("updateChatUserTyping"); return index; } else { index ++; }}
+ if (index == 5) { if (!strncmp (text, "updateChatParticipants", text_len)) { *R = tstrdup ("updateChatParticipants"); return index; } else { index ++; }}
+ if (index == 6) { if (!strncmp (text, "updateUserStatus", text_len)) { *R = tstrdup ("updateUserStatus"); return index; } else { index ++; }}
+ if (index == 7) { if (!strncmp (text, "updateUserName", text_len)) { *R = tstrdup ("updateUserName"); return index; } else { index ++; }}
+ if (index == 8) { if (!strncmp (text, "updateUserPhoto", text_len)) { *R = tstrdup ("updateUserPhoto"); return index; } else { index ++; }}
+ if (index == 9) { if (!strncmp (text, "updateContactRegistered", text_len)) { *R = tstrdup ("updateContactRegistered"); return index; } else { index ++; }}
+ if (index == 10) { if (!strncmp (text, "updateContactLink", text_len)) { *R = tstrdup ("updateContactLink"); return index; } else { index ++; }}
+ if (index == 11) { if (!strncmp (text, "updateNewAuthorization", text_len)) { *R = tstrdup ("updateNewAuthorization"); return index; } else { index ++; }}
+ if (index == 12) { if (!strncmp (text, "updateNewGeoChatMessage", text_len)) { *R = tstrdup ("updateNewGeoChatMessage"); return index; } else { index ++; }}
+ if (index == 13) { if (!strncmp (text, "updateNewEncryptedMessage", text_len)) { *R = tstrdup ("updateNewEncryptedMessage"); return index; } else { index ++; }}
+ if (index == 14) { if (!strncmp (text, "updateEncryptedChatTyping", text_len)) { *R = tstrdup ("updateEncryptedChatTyping"); return index; } else { index ++; }}
+ if (index == 15) { if (!strncmp (text, "updateEncryption", text_len)) { *R = tstrdup ("updateEncryption"); return index; } else { index ++; }}
+ if (index == 16) { if (!strncmp (text, "updateEncryptedMessagesRead", text_len)) { *R = tstrdup ("updateEncryptedMessagesRead"); return index; } else { index ++; }}
+ if (index == 17) { if (!strncmp (text, "updateChatParticipantAdd", text_len)) { *R = tstrdup ("updateChatParticipantAdd"); return index; } else { index ++; }}
+ if (index == 18) { if (!strncmp (text, "updateChatParticipantDelete", text_len)) { *R = tstrdup ("updateChatParticipantDelete"); return index; } else { index ++; }}
+ if (index == 19) { if (!strncmp (text, "updateDcOptions", text_len)) { *R = tstrdup ("updateDcOptions"); return index; } else { index ++; }}
+ if (index == 20) { if (!strncmp (text, "updateUserBlocked", text_len)) { *R = tstrdup ("updateUserBlocked"); return index; } else { index ++; }}
+ if (index == 21) { if (!strncmp (text, "updateNotifySettings", text_len)) { *R = tstrdup ("updateNotifySettings"); return index; } else { index ++; }}
+ if (index == 22) { if (!strncmp (text, "updateServiceNotification", text_len)) { *R = tstrdup ("updateServiceNotification"); return index; } else { index ++; }}
+ if (index == 23) { if (!strncmp (text, "updatePrivacy", text_len)) { *R = tstrdup ("updatePrivacy"); return index; } else { index ++; }}
+ if (index == 24) { if (!strncmp (text, "updateUserPhone", text_len)) { *R = tstrdup ("updateUserPhone"); return index; } else { index ++; }}
+ if (index == 25) { if (!strncmp (text, "updateReadHistoryInbox", text_len)) { *R = tstrdup ("updateReadHistoryInbox"); return index; } else { index ++; }}
+ if (index == 26) { if (!strncmp (text, "updateReadHistoryOutbox", text_len)) { *R = tstrdup ("updateReadHistoryOutbox"); return index; } else { index ++; }}
+ if (index == 27) { if (!strncmp (text, "updateWebPage", text_len)) { *R = tstrdup ("updateWebPage"); return index; } else { index ++; }}
+ if (index == 28) { if (!strncmp (text, "updateReadMessagesContents", text_len)) { *R = tstrdup ("updateReadMessagesContents"); return index; } else { index ++; }}
+ if (index == 29) { if (!strncmp (text, "updateMsgUpdate", text_len)) { *R = tstrdup ("updateMsgUpdate"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_updates (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_updates); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 14 && !memcmp (cur_token, "updatesTooLong", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_updates_too_long (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 18 && !memcmp (cur_token, "updateShortMessage", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_short_message (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "updateShortChatMessage", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_short_chat_message (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 11 && !memcmp (cur_token, "updateShort", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_short (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "updatesCombined", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_updates_combined (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 7 && !memcmp (cur_token, "updates", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_updates (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_updates (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_updates); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 14 && !memcmp (cur_token, "updatesTooLong", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_updates_too_long (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 18 && !memcmp (cur_token, "updateShortMessage", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_short_message (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "updateShortChatMessage", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_short_chat_message (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 11 && !memcmp (cur_token, "updateShort", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_update_short (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "updatesCombined", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_updates_combined (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 7 && !memcmp (cur_token, "updates", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_updates (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_updates (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "updatesTooLong", text_len)) { *R = tstrdup ("updatesTooLong"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "updateShortMessage", text_len)) { *R = tstrdup ("updateShortMessage"); return index; } else { index ++; }}
+ if (index == 2) { if (!strncmp (text, "updateShortChatMessage", text_len)) { *R = tstrdup ("updateShortChatMessage"); return index; } else { index ++; }}
+ if (index == 3) { if (!strncmp (text, "updateShort", text_len)) { *R = tstrdup ("updateShort"); return index; } else { index ++; }}
+ if (index == 4) { if (!strncmp (text, "updatesCombined", text_len)) { *R = tstrdup ("updatesCombined"); return index; } else { index ++; }}
+ if (index == 5) { if (!strncmp (text, "updates", text_len)) { *R = tstrdup ("updates"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_user (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_user); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 9 && !memcmp (cur_token, "userEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_user_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 4 && !memcmp (cur_token, "user", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_user (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_user (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_user); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 9 && !memcmp (cur_token, "userEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_user_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 4 && !memcmp (cur_token, "user", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_user (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_user (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "userEmpty", text_len)) { *R = tstrdup ("userEmpty"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "user", text_len)) { *R = tstrdup ("user"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_user_full (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_user_full); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 8 && !memcmp (cur_token, "userFull", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_user_full (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_user_full (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_user_full); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 8 && !memcmp (cur_token, "userFull", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_user_full (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_user_full (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "userFull", text_len)) { *R = tstrdup ("userFull"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_user_profile_photo (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_user_profile_photo); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 21 && !memcmp (cur_token, "userProfilePhotoEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_user_profile_photo_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 16 && !memcmp (cur_token, "userProfilePhoto", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_user_profile_photo (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_user_profile_photo (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_user_profile_photo); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 21 && !memcmp (cur_token, "userProfilePhotoEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_user_profile_photo_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 16 && !memcmp (cur_token, "userProfilePhoto", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_user_profile_photo (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_user_profile_photo (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "userProfilePhotoEmpty", text_len)) { *R = tstrdup ("userProfilePhotoEmpty"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "userProfilePhoto", text_len)) { *R = tstrdup ("userProfilePhoto"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_user_status (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_user_status); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 15 && !memcmp (cur_token, "userStatusEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_user_status_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 16 && !memcmp (cur_token, "userStatusOnline", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_user_status_online (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 17 && !memcmp (cur_token, "userStatusOffline", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_user_status_offline (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 18 && !memcmp (cur_token, "userStatusRecently", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_user_status_recently (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 18 && !memcmp (cur_token, "userStatusLastWeek", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_user_status_last_week (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 19 && !memcmp (cur_token, "userStatusLastMonth", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_user_status_last_month (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_user_status (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_user_status); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 15 && !memcmp (cur_token, "userStatusEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_user_status_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 16 && !memcmp (cur_token, "userStatusOnline", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_user_status_online (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 17 && !memcmp (cur_token, "userStatusOffline", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_user_status_offline (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 18 && !memcmp (cur_token, "userStatusRecently", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_user_status_recently (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 18 && !memcmp (cur_token, "userStatusLastWeek", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_user_status_last_week (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 19 && !memcmp (cur_token, "userStatusLastMonth", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_user_status_last_month (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_user_status (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "userStatusEmpty", text_len)) { *R = tstrdup ("userStatusEmpty"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "userStatusOnline", text_len)) { *R = tstrdup ("userStatusOnline"); return index; } else { index ++; }}
+ if (index == 2) { if (!strncmp (text, "userStatusOffline", text_len)) { *R = tstrdup ("userStatusOffline"); return index; } else { index ++; }}
+ if (index == 3) { if (!strncmp (text, "userStatusRecently", text_len)) { *R = tstrdup ("userStatusRecently"); return index; } else { index ++; }}
+ if (index == 4) { if (!strncmp (text, "userStatusLastWeek", text_len)) { *R = tstrdup ("userStatusLastWeek"); return index; } else { index ++; }}
+ if (index == 5) { if (!strncmp (text, "userStatusLastMonth", text_len)) { *R = tstrdup ("userStatusLastMonth"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_vector (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_vector); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 6 && !memcmp (cur_token, "vector", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_vector (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_vector (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_vector); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 6 && !memcmp (cur_token, "vector", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_vector (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_vector (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "vector", text_len)) { *R = tstrdup ("vector"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_video (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_video); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 10 && !memcmp (cur_token, "videoEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_video_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 5 && !memcmp (cur_token, "video", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_video (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 8 && !memcmp (cur_token, "videoL27", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_video_l27 (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_video (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_video); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 10 && !memcmp (cur_token, "videoEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_video_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 5 && !memcmp (cur_token, "video", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_video (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 8 && !memcmp (cur_token, "videoL27", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_video_l27 (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_video (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "videoEmpty", text_len)) { *R = tstrdup ("videoEmpty"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "video", text_len)) { *R = tstrdup ("video"); return index; } else { index ++; }}
+ if (index == 2) { if (!strncmp (text, "videoL27", text_len)) { *R = tstrdup ("videoL27"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_wall_paper (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_wall_paper); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 9 && !memcmp (cur_token, "wallPaper", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_wall_paper (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 14 && !memcmp (cur_token, "wallPaperSolid", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_wall_paper_solid (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_wall_paper (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_wall_paper); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 9 && !memcmp (cur_token, "wallPaper", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_wall_paper (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 14 && !memcmp (cur_token, "wallPaperSolid", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_wall_paper_solid (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_wall_paper (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "wallPaper", text_len)) { *R = tstrdup ("wallPaper"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "wallPaperSolid", text_len)) { *R = tstrdup ("wallPaperSolid"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_web_page (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_web_page); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 12 && !memcmp (cur_token, "webPageEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_web_page_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 14 && !memcmp (cur_token, "webPagePending", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_web_page_pending (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 7 && !memcmp (cur_token, "webPage", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_web_page (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_web_page (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_web_page); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 12 && !memcmp (cur_token, "webPageEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_web_page_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 14 && !memcmp (cur_token, "webPagePending", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_web_page_pending (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 7 && !memcmp (cur_token, "webPage", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_web_page (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_web_page (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "webPageEmpty", text_len)) { *R = tstrdup ("webPageEmpty"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "webPagePending", text_len)) { *R = tstrdup ("webPagePending"); return index; } else { index ++; }}
+ if (index == 2) { if (!strncmp (text, "webPage", text_len)) { *R = tstrdup ("webPage"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_account_authorizations (struct paramed_type *T) {
+ if (autocomplete_constructor_account_authorizations (T) < 0) { return -1; }
+ return 0;
+}
+int autocomplete_type_bare_account_authorizations (struct paramed_type *T) {
+ if (autocomplete_constructor_account_authorizations (T) < 0) { return -1; }
+ return 0;
+}
+int do_autocomplete_type_account_authorizations (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "account.authorizations", text_len)) { *R = tstrdup ("account.authorizations"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_account_password (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_account_password); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 18 && !memcmp (cur_token, "account.noPassword", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_account_no_password (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 16 && !memcmp (cur_token, "account.password", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_account_password (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_account_password (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_account_password); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 18 && !memcmp (cur_token, "account.noPassword", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_account_no_password (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 16 && !memcmp (cur_token, "account.password", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_account_password (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_account_password (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "account.noPassword", text_len)) { *R = tstrdup ("account.noPassword"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "account.password", text_len)) { *R = tstrdup ("account.password"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_account_password_input_settings (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_account_password_input_settings); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 29 && !memcmp (cur_token, "account.passwordInputSettings", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_account_password_input_settings (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_account_password_input_settings (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_account_password_input_settings); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 29 && !memcmp (cur_token, "account.passwordInputSettings", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_account_password_input_settings (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_account_password_input_settings (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "account.passwordInputSettings", text_len)) { *R = tstrdup ("account.passwordInputSettings"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_account_password_settings (struct paramed_type *T) {
+ if (autocomplete_constructor_account_password_settings (T) < 0) { return -1; }
+ return 0;
+}
+int autocomplete_type_bare_account_password_settings (struct paramed_type *T) {
+ if (autocomplete_constructor_account_password_settings (T) < 0) { return -1; }
+ return 0;
+}
+int do_autocomplete_type_account_password_settings (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "account.passwordSettings", text_len)) { *R = tstrdup ("account.passwordSettings"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_account_privacy_rules (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_account_privacy_rules); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 20 && !memcmp (cur_token, "account.privacyRules", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_account_privacy_rules (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_account_privacy_rules (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_account_privacy_rules); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 20 && !memcmp (cur_token, "account.privacyRules", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_account_privacy_rules (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_account_privacy_rules (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "account.privacyRules", text_len)) { *R = tstrdup ("account.privacyRules"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_account_sent_change_phone_code (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_account_sent_change_phone_code); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 27 && !memcmp (cur_token, "account.sentChangePhoneCode", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_account_sent_change_phone_code (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_account_sent_change_phone_code (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_account_sent_change_phone_code); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 27 && !memcmp (cur_token, "account.sentChangePhoneCode", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_account_sent_change_phone_code (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_account_sent_change_phone_code (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "account.sentChangePhoneCode", text_len)) { *R = tstrdup ("account.sentChangePhoneCode"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_auth_authorization (struct paramed_type *T) {
+ if (autocomplete_constructor_auth_authorization (T) < 0) { return -1; }
+ return 0;
+}
+int autocomplete_type_bare_auth_authorization (struct paramed_type *T) {
+ if (autocomplete_constructor_auth_authorization (T) < 0) { return -1; }
+ return 0;
+}
+int do_autocomplete_type_auth_authorization (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "auth.authorization", text_len)) { *R = tstrdup ("auth.authorization"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_auth_checked_phone (struct paramed_type *T) {
+ if (autocomplete_constructor_auth_checked_phone (T) < 0) { return -1; }
+ return 0;
+}
+int autocomplete_type_bare_auth_checked_phone (struct paramed_type *T) {
+ if (autocomplete_constructor_auth_checked_phone (T) < 0) { return -1; }
+ return 0;
+}
+int do_autocomplete_type_auth_checked_phone (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "auth.checkedPhone", text_len)) { *R = tstrdup ("auth.checkedPhone"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_auth_exported_authorization (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_auth_exported_authorization); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 26 && !memcmp (cur_token, "auth.exportedAuthorization", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_auth_exported_authorization (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_auth_exported_authorization (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_auth_exported_authorization); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 26 && !memcmp (cur_token, "auth.exportedAuthorization", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_auth_exported_authorization (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_auth_exported_authorization (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "auth.exportedAuthorization", text_len)) { *R = tstrdup ("auth.exportedAuthorization"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_auth_password_recovery (struct paramed_type *T) {
+ if (autocomplete_constructor_auth_password_recovery (T) < 0) { return -1; }
+ return 0;
+}
+int autocomplete_type_bare_auth_password_recovery (struct paramed_type *T) {
+ if (autocomplete_constructor_auth_password_recovery (T) < 0) { return -1; }
+ return 0;
+}
+int do_autocomplete_type_auth_password_recovery (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "auth.passwordRecovery", text_len)) { *R = tstrdup ("auth.passwordRecovery"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_auth_sent_code (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_auth_sent_code); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 13 && !memcmp (cur_token, "auth.sentCode", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_auth_sent_code (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 16 && !memcmp (cur_token, "auth.sentAppCode", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_auth_sent_app_code (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_auth_sent_code (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_auth_sent_code); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 13 && !memcmp (cur_token, "auth.sentCode", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_auth_sent_code (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 16 && !memcmp (cur_token, "auth.sentAppCode", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_auth_sent_app_code (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_auth_sent_code (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "auth.sentCode", text_len)) { *R = tstrdup ("auth.sentCode"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "auth.sentAppCode", text_len)) { *R = tstrdup ("auth.sentAppCode"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_binlog_encr_key (struct paramed_type *T) {
+ if (autocomplete_constructor_binlog_encr_key (T) < 0) { return -1; }
+ return 0;
+}
+int autocomplete_type_bare_binlog_encr_key (struct paramed_type *T) {
+ if (autocomplete_constructor_binlog_encr_key (T) < 0) { return -1; }
+ return 0;
+}
+int do_autocomplete_type_binlog_encr_key (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "binlog.encrKey", text_len)) { *R = tstrdup ("binlog.encrKey"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_binlog_update (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_binlog_update); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 12 && !memcmp (cur_token, "binlog.start", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_start (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "binlog.dcOption", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_dc_option (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 18 && !memcmp (cur_token, "binlog.dcOptionNew", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_dc_option_new (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 14 && !memcmp (cur_token, "binlog.authKey", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_auth_key (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 16 && !memcmp (cur_token, "binlog.defaultDc", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_default_dc (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "binlog.dcSigned", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_dc_signed (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 12 && !memcmp (cur_token, "binlog.ourId", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_our_id (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 18 && !memcmp (cur_token, "binlog.setDhParams", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_set_dh_params (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 13 && !memcmp (cur_token, "binlog.setPts", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_set_pts (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 13 && !memcmp (cur_token, "binlog.setQts", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_set_qts (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 14 && !memcmp (cur_token, "binlog.setDate", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_set_date (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 13 && !memcmp (cur_token, "binlog.setSeq", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_set_seq (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 21 && !memcmp (cur_token, "binlog.encrChatDelete", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_encr_chat_delete (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 18 && !memcmp (cur_token, "binlog.encrChatNew", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_encr_chat_new (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 26 && !memcmp (cur_token, "binlog.encrChatExchangeNew", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_encr_chat_exchange_new (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 17 && !memcmp (cur_token, "binlog.userDelete", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_user_delete (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 14 && !memcmp (cur_token, "binlog.userNew", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_user_new (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 14 && !memcmp (cur_token, "binlog.chatNew", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_chat_new (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 25 && !memcmp (cur_token, "binlog.chatAddParticipant", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_chat_add_participant (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 25 && !memcmp (cur_token, "binlog.chatDelParticipant", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_chat_del_participant (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "binlog.setMsgId", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_set_msg_id (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 20 && !memcmp (cur_token, "binlog.messageDelete", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_message_delete (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 17 && !memcmp (cur_token, "binlog.messageNew", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_message_new (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 21 && !memcmp (cur_token, "binlog.messageEncrNew", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_message_encr_new (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 16 && !memcmp (cur_token, "binlog.msgUpdate", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_msg_update (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 25 && !memcmp (cur_token, "binlog.resetAuthorization", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_reset_authorization (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_binlog_update (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_binlog_update); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 12 && !memcmp (cur_token, "binlog.start", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_start (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "binlog.dcOption", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_dc_option (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 18 && !memcmp (cur_token, "binlog.dcOptionNew", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_dc_option_new (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 14 && !memcmp (cur_token, "binlog.authKey", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_auth_key (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 16 && !memcmp (cur_token, "binlog.defaultDc", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_default_dc (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "binlog.dcSigned", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_dc_signed (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 12 && !memcmp (cur_token, "binlog.ourId", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_our_id (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 18 && !memcmp (cur_token, "binlog.setDhParams", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_set_dh_params (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 13 && !memcmp (cur_token, "binlog.setPts", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_set_pts (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 13 && !memcmp (cur_token, "binlog.setQts", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_set_qts (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 14 && !memcmp (cur_token, "binlog.setDate", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_set_date (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 13 && !memcmp (cur_token, "binlog.setSeq", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_set_seq (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 21 && !memcmp (cur_token, "binlog.encrChatDelete", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_encr_chat_delete (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 18 && !memcmp (cur_token, "binlog.encrChatNew", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_encr_chat_new (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 26 && !memcmp (cur_token, "binlog.encrChatExchangeNew", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_encr_chat_exchange_new (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 17 && !memcmp (cur_token, "binlog.userDelete", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_user_delete (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 14 && !memcmp (cur_token, "binlog.userNew", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_user_new (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 14 && !memcmp (cur_token, "binlog.chatNew", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_chat_new (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 25 && !memcmp (cur_token, "binlog.chatAddParticipant", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_chat_add_participant (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 25 && !memcmp (cur_token, "binlog.chatDelParticipant", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_chat_del_participant (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "binlog.setMsgId", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_set_msg_id (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 20 && !memcmp (cur_token, "binlog.messageDelete", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_message_delete (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 17 && !memcmp (cur_token, "binlog.messageNew", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_message_new (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 21 && !memcmp (cur_token, "binlog.messageEncrNew", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_message_encr_new (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 16 && !memcmp (cur_token, "binlog.msgUpdate", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_msg_update (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 25 && !memcmp (cur_token, "binlog.resetAuthorization", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_binlog_reset_authorization (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_binlog_update (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "binlog.start", text_len)) { *R = tstrdup ("binlog.start"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "binlog.dcOption", text_len)) { *R = tstrdup ("binlog.dcOption"); return index; } else { index ++; }}
+ if (index == 2) { if (!strncmp (text, "binlog.dcOptionNew", text_len)) { *R = tstrdup ("binlog.dcOptionNew"); return index; } else { index ++; }}
+ if (index == 3) { if (!strncmp (text, "binlog.authKey", text_len)) { *R = tstrdup ("binlog.authKey"); return index; } else { index ++; }}
+ if (index == 4) { if (!strncmp (text, "binlog.defaultDc", text_len)) { *R = tstrdup ("binlog.defaultDc"); return index; } else { index ++; }}
+ if (index == 5) { if (!strncmp (text, "binlog.dcSigned", text_len)) { *R = tstrdup ("binlog.dcSigned"); return index; } else { index ++; }}
+ if (index == 6) { if (!strncmp (text, "binlog.ourId", text_len)) { *R = tstrdup ("binlog.ourId"); return index; } else { index ++; }}
+ if (index == 7) { if (!strncmp (text, "binlog.setDhParams", text_len)) { *R = tstrdup ("binlog.setDhParams"); return index; } else { index ++; }}
+ if (index == 8) { if (!strncmp (text, "binlog.setPts", text_len)) { *R = tstrdup ("binlog.setPts"); return index; } else { index ++; }}
+ if (index == 9) { if (!strncmp (text, "binlog.setQts", text_len)) { *R = tstrdup ("binlog.setQts"); return index; } else { index ++; }}
+ if (index == 10) { if (!strncmp (text, "binlog.setDate", text_len)) { *R = tstrdup ("binlog.setDate"); return index; } else { index ++; }}
+ if (index == 11) { if (!strncmp (text, "binlog.setSeq", text_len)) { *R = tstrdup ("binlog.setSeq"); return index; } else { index ++; }}
+ if (index == 12) { if (!strncmp (text, "binlog.encrChatDelete", text_len)) { *R = tstrdup ("binlog.encrChatDelete"); return index; } else { index ++; }}
+ if (index == 13) { if (!strncmp (text, "binlog.encrChatNew", text_len)) { *R = tstrdup ("binlog.encrChatNew"); return index; } else { index ++; }}
+ if (index == 14) { if (!strncmp (text, "binlog.encrChatExchangeNew", text_len)) { *R = tstrdup ("binlog.encrChatExchangeNew"); return index; } else { index ++; }}
+ if (index == 15) { if (!strncmp (text, "binlog.userDelete", text_len)) { *R = tstrdup ("binlog.userDelete"); return index; } else { index ++; }}
+ if (index == 16) { if (!strncmp (text, "binlog.userNew", text_len)) { *R = tstrdup ("binlog.userNew"); return index; } else { index ++; }}
+ if (index == 17) { if (!strncmp (text, "binlog.chatNew", text_len)) { *R = tstrdup ("binlog.chatNew"); return index; } else { index ++; }}
+ if (index == 18) { if (!strncmp (text, "binlog.chatAddParticipant", text_len)) { *R = tstrdup ("binlog.chatAddParticipant"); return index; } else { index ++; }}
+ if (index == 19) { if (!strncmp (text, "binlog.chatDelParticipant", text_len)) { *R = tstrdup ("binlog.chatDelParticipant"); return index; } else { index ++; }}
+ if (index == 20) { if (!strncmp (text, "binlog.setMsgId", text_len)) { *R = tstrdup ("binlog.setMsgId"); return index; } else { index ++; }}
+ if (index == 21) { if (!strncmp (text, "binlog.messageDelete", text_len)) { *R = tstrdup ("binlog.messageDelete"); return index; } else { index ++; }}
+ if (index == 22) { if (!strncmp (text, "binlog.messageNew", text_len)) { *R = tstrdup ("binlog.messageNew"); return index; } else { index ++; }}
+ if (index == 23) { if (!strncmp (text, "binlog.messageEncrNew", text_len)) { *R = tstrdup ("binlog.messageEncrNew"); return index; } else { index ++; }}
+ if (index == 24) { if (!strncmp (text, "binlog.msgUpdate", text_len)) { *R = tstrdup ("binlog.msgUpdate"); return index; } else { index ++; }}
+ if (index == 25) { if (!strncmp (text, "binlog.resetAuthorization", text_len)) { *R = tstrdup ("binlog.resetAuthorization"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_contacts_blocked (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_contacts_blocked); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 16 && !memcmp (cur_token, "contacts.blocked", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_contacts_blocked (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 21 && !memcmp (cur_token, "contacts.blockedSlice", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_contacts_blocked_slice (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_contacts_blocked (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_contacts_blocked); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 16 && !memcmp (cur_token, "contacts.blocked", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_contacts_blocked (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 21 && !memcmp (cur_token, "contacts.blockedSlice", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_contacts_blocked_slice (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_contacts_blocked (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "contacts.blocked", text_len)) { *R = tstrdup ("contacts.blocked"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "contacts.blockedSlice", text_len)) { *R = tstrdup ("contacts.blockedSlice"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_contacts_contacts (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_contacts_contacts); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 28 && !memcmp (cur_token, "contacts.contactsNotModified", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_contacts_contacts_not_modified (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 17 && !memcmp (cur_token, "contacts.contacts", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_contacts_contacts (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_contacts_contacts (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_contacts_contacts); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 28 && !memcmp (cur_token, "contacts.contactsNotModified", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_contacts_contacts_not_modified (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 17 && !memcmp (cur_token, "contacts.contacts", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_contacts_contacts (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_contacts_contacts (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "contacts.contactsNotModified", text_len)) { *R = tstrdup ("contacts.contactsNotModified"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "contacts.contacts", text_len)) { *R = tstrdup ("contacts.contacts"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_contacts_found (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_contacts_found); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 14 && !memcmp (cur_token, "contacts.found", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_contacts_found (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_contacts_found (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_contacts_found); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 14 && !memcmp (cur_token, "contacts.found", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_contacts_found (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_contacts_found (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "contacts.found", text_len)) { *R = tstrdup ("contacts.found"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_contacts_imported_contacts (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_contacts_imported_contacts); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 25 && !memcmp (cur_token, "contacts.importedContacts", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_contacts_imported_contacts (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_contacts_imported_contacts (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_contacts_imported_contacts); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 25 && !memcmp (cur_token, "contacts.importedContacts", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_contacts_imported_contacts (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_contacts_imported_contacts (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "contacts.importedContacts", text_len)) { *R = tstrdup ("contacts.importedContacts"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_contacts_link (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_contacts_link); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 13 && !memcmp (cur_token, "contacts.link", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_contacts_link (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_contacts_link (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_contacts_link); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 13 && !memcmp (cur_token, "contacts.link", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_contacts_link (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_contacts_link (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "contacts.link", text_len)) { *R = tstrdup ("contacts.link"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_contacts_suggested (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_contacts_suggested); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 18 && !memcmp (cur_token, "contacts.suggested", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_contacts_suggested (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_contacts_suggested (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_contacts_suggested); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 18 && !memcmp (cur_token, "contacts.suggested", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_contacts_suggested (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_contacts_suggested (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "contacts.suggested", text_len)) { *R = tstrdup ("contacts.suggested"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_geochats_located (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_geochats_located); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 16 && !memcmp (cur_token, "geochats.located", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_geochats_located (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_geochats_located (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_geochats_located); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 16 && !memcmp (cur_token, "geochats.located", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_geochats_located (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_geochats_located (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "geochats.located", text_len)) { *R = tstrdup ("geochats.located"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_geochats_messages (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_geochats_messages); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 17 && !memcmp (cur_token, "geochats.messages", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_geochats_messages (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "geochats.messagesSlice", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_geochats_messages_slice (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_geochats_messages (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_geochats_messages); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 17 && !memcmp (cur_token, "geochats.messages", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_geochats_messages (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "geochats.messagesSlice", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_geochats_messages_slice (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_geochats_messages (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "geochats.messages", text_len)) { *R = tstrdup ("geochats.messages"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "geochats.messagesSlice", text_len)) { *R = tstrdup ("geochats.messagesSlice"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_geochats_stated_message (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_geochats_stated_message); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 22 && !memcmp (cur_token, "geochats.statedMessage", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_geochats_stated_message (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_geochats_stated_message (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_geochats_stated_message); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 22 && !memcmp (cur_token, "geochats.statedMessage", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_geochats_stated_message (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_geochats_stated_message (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "geochats.statedMessage", text_len)) { *R = tstrdup ("geochats.statedMessage"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_help_app_update (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_help_app_update); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 14 && !memcmp (cur_token, "help.appUpdate", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_help_app_update (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 16 && !memcmp (cur_token, "help.noAppUpdate", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_help_no_app_update (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_help_app_update (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_help_app_update); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 14 && !memcmp (cur_token, "help.appUpdate", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_help_app_update (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 16 && !memcmp (cur_token, "help.noAppUpdate", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_help_no_app_update (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_help_app_update (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "help.appUpdate", text_len)) { *R = tstrdup ("help.appUpdate"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "help.noAppUpdate", text_len)) { *R = tstrdup ("help.noAppUpdate"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_help_invite_text (struct paramed_type *T) {
+ if (autocomplete_constructor_help_invite_text (T) < 0) { return -1; }
+ return 0;
+}
+int autocomplete_type_bare_help_invite_text (struct paramed_type *T) {
+ if (autocomplete_constructor_help_invite_text (T) < 0) { return -1; }
+ return 0;
+}
+int do_autocomplete_type_help_invite_text (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "help.inviteText", text_len)) { *R = tstrdup ("help.inviteText"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_help_support (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_help_support); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 12 && !memcmp (cur_token, "help.support", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_help_support (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_help_support (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_help_support); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 12 && !memcmp (cur_token, "help.support", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_help_support (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_help_support (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "help.support", text_len)) { *R = tstrdup ("help.support"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_messages_affected_history (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_messages_affected_history); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 24 && !memcmp (cur_token, "messages.affectedHistory", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_messages_affected_history (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_messages_affected_history (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_messages_affected_history); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 24 && !memcmp (cur_token, "messages.affectedHistory", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_messages_affected_history (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_messages_affected_history (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "messages.affectedHistory", text_len)) { *R = tstrdup ("messages.affectedHistory"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_messages_affected_messages (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_messages_affected_messages); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 25 && !memcmp (cur_token, "messages.affectedMessages", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_messages_affected_messages (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_messages_affected_messages (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_messages_affected_messages); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 25 && !memcmp (cur_token, "messages.affectedMessages", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_messages_affected_messages (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_messages_affected_messages (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "messages.affectedMessages", text_len)) { *R = tstrdup ("messages.affectedMessages"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_messages_all_stickers (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_messages_all_stickers); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 31 && !memcmp (cur_token, "messages.allStickersNotModified", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_messages_all_stickers_not_modified (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 20 && !memcmp (cur_token, "messages.allStickers", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_messages_all_stickers (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_messages_all_stickers (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_messages_all_stickers); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 31 && !memcmp (cur_token, "messages.allStickersNotModified", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_messages_all_stickers_not_modified (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 20 && !memcmp (cur_token, "messages.allStickers", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_messages_all_stickers (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_messages_all_stickers (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "messages.allStickersNotModified", text_len)) { *R = tstrdup ("messages.allStickersNotModified"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "messages.allStickers", text_len)) { *R = tstrdup ("messages.allStickers"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_messages_chat_full (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_messages_chat_full); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 17 && !memcmp (cur_token, "messages.chatFull", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_messages_chat_full (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_messages_chat_full (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_messages_chat_full); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 17 && !memcmp (cur_token, "messages.chatFull", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_messages_chat_full (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_messages_chat_full (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "messages.chatFull", text_len)) { *R = tstrdup ("messages.chatFull"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_messages_chats (struct paramed_type *T) {
+ if (autocomplete_constructor_messages_chats (T) < 0) { return -1; }
+ return 0;
+}
+int autocomplete_type_bare_messages_chats (struct paramed_type *T) {
+ if (autocomplete_constructor_messages_chats (T) < 0) { return -1; }
+ return 0;
+}
+int do_autocomplete_type_messages_chats (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "messages.chats", text_len)) { *R = tstrdup ("messages.chats"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_messages_dh_config (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_messages_dh_config); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 28 && !memcmp (cur_token, "messages.dhConfigNotModified", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_messages_dh_config_not_modified (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 17 && !memcmp (cur_token, "messages.dhConfig", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_messages_dh_config (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_messages_dh_config (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_messages_dh_config); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 28 && !memcmp (cur_token, "messages.dhConfigNotModified", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_messages_dh_config_not_modified (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 17 && !memcmp (cur_token, "messages.dhConfig", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_messages_dh_config (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_messages_dh_config (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "messages.dhConfigNotModified", text_len)) { *R = tstrdup ("messages.dhConfigNotModified"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "messages.dhConfig", text_len)) { *R = tstrdup ("messages.dhConfig"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_messages_dialogs (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_messages_dialogs); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 16 && !memcmp (cur_token, "messages.dialogs", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_messages_dialogs (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 21 && !memcmp (cur_token, "messages.dialogsSlice", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_messages_dialogs_slice (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_messages_dialogs (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_messages_dialogs); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 16 && !memcmp (cur_token, "messages.dialogs", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_messages_dialogs (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 21 && !memcmp (cur_token, "messages.dialogsSlice", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_messages_dialogs_slice (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_messages_dialogs (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "messages.dialogs", text_len)) { *R = tstrdup ("messages.dialogs"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "messages.dialogsSlice", text_len)) { *R = tstrdup ("messages.dialogsSlice"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_messages_message (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_messages_message); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 21 && !memcmp (cur_token, "messages.messageEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_messages_message_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_messages_message (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_messages_message); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 21 && !memcmp (cur_token, "messages.messageEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_messages_message_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_messages_message (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "messages.messageEmpty", text_len)) { *R = tstrdup ("messages.messageEmpty"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_messages_messages (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_messages_messages); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 17 && !memcmp (cur_token, "messages.messages", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_messages_messages (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "messages.messagesSlice", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_messages_messages_slice (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_messages_messages (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_messages_messages); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 17 && !memcmp (cur_token, "messages.messages", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_messages_messages (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "messages.messagesSlice", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_messages_messages_slice (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_messages_messages (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "messages.messages", text_len)) { *R = tstrdup ("messages.messages"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "messages.messagesSlice", text_len)) { *R = tstrdup ("messages.messagesSlice"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_messages_sent_encrypted_message (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_messages_sent_encrypted_message); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 29 && !memcmp (cur_token, "messages.sentEncryptedMessage", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_messages_sent_encrypted_message (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 26 && !memcmp (cur_token, "messages.sentEncryptedFile", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_messages_sent_encrypted_file (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_messages_sent_encrypted_message (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_messages_sent_encrypted_message); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 29 && !memcmp (cur_token, "messages.sentEncryptedMessage", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_messages_sent_encrypted_message (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 26 && !memcmp (cur_token, "messages.sentEncryptedFile", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_messages_sent_encrypted_file (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_messages_sent_encrypted_message (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "messages.sentEncryptedMessage", text_len)) { *R = tstrdup ("messages.sentEncryptedMessage"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "messages.sentEncryptedFile", text_len)) { *R = tstrdup ("messages.sentEncryptedFile"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_messages_sent_message (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_messages_sent_message); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 20 && !memcmp (cur_token, "messages.sentMessage", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_messages_sent_message (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 24 && !memcmp (cur_token, "messages.sentMessageLink", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_messages_sent_message_link (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_messages_sent_message (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_messages_sent_message); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 20 && !memcmp (cur_token, "messages.sentMessage", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_messages_sent_message (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 24 && !memcmp (cur_token, "messages.sentMessageLink", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_messages_sent_message_link (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_messages_sent_message (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "messages.sentMessage", text_len)) { *R = tstrdup ("messages.sentMessage"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "messages.sentMessageLink", text_len)) { *R = tstrdup ("messages.sentMessageLink"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_messages_sticker_set (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_messages_sticker_set); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 19 && !memcmp (cur_token, "messages.stickerSet", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_messages_sticker_set (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_messages_sticker_set (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_messages_sticker_set); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 19 && !memcmp (cur_token, "messages.stickerSet", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_messages_sticker_set (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_messages_sticker_set (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "messages.stickerSet", text_len)) { *R = tstrdup ("messages.stickerSet"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_messages_stickers (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_messages_stickers); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 28 && !memcmp (cur_token, "messages.stickersNotModified", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_messages_stickers_not_modified (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 17 && !memcmp (cur_token, "messages.stickers", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_messages_stickers (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_messages_stickers (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_messages_stickers); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 28 && !memcmp (cur_token, "messages.stickersNotModified", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_messages_stickers_not_modified (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 17 && !memcmp (cur_token, "messages.stickers", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_messages_stickers (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_messages_stickers (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "messages.stickersNotModified", text_len)) { *R = tstrdup ("messages.stickersNotModified"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "messages.stickers", text_len)) { *R = tstrdup ("messages.stickers"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_photos_photo (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_photos_photo); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 12 && !memcmp (cur_token, "photos.photo", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_photos_photo (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_photos_photo (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_photos_photo); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 12 && !memcmp (cur_token, "photos.photo", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_photos_photo (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_photos_photo (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "photos.photo", text_len)) { *R = tstrdup ("photos.photo"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_photos_photos (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_photos_photos); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 13 && !memcmp (cur_token, "photos.photos", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_photos_photos (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 18 && !memcmp (cur_token, "photos.photosSlice", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_photos_photos_slice (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_photos_photos (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_photos_photos); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 13 && !memcmp (cur_token, "photos.photos", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_photos_photos (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 18 && !memcmp (cur_token, "photos.photosSlice", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_photos_photos_slice (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_photos_photos (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "photos.photos", text_len)) { *R = tstrdup ("photos.photos"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "photos.photosSlice", text_len)) { *R = tstrdup ("photos.photosSlice"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_storage_file_type (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_storage_file_type); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 19 && !memcmp (cur_token, "storage.fileUnknown", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_storage_file_unknown (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 16 && !memcmp (cur_token, "storage.fileJpeg", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_storage_file_jpeg (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "storage.fileGif", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_storage_file_gif (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "storage.filePng", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_storage_file_png (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "storage.filePdf", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_storage_file_pdf (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "storage.fileMp3", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_storage_file_mp3 (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "storage.fileMov", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_storage_file_mov (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 19 && !memcmp (cur_token, "storage.filePartial", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_storage_file_partial (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "storage.fileMp4", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_storage_file_mp4 (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 16 && !memcmp (cur_token, "storage.fileWebp", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_storage_file_webp (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_storage_file_type (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_storage_file_type); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 19 && !memcmp (cur_token, "storage.fileUnknown", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_storage_file_unknown (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 16 && !memcmp (cur_token, "storage.fileJpeg", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_storage_file_jpeg (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "storage.fileGif", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_storage_file_gif (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "storage.filePng", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_storage_file_png (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "storage.filePdf", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_storage_file_pdf (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "storage.fileMp3", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_storage_file_mp3 (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "storage.fileMov", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_storage_file_mov (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 19 && !memcmp (cur_token, "storage.filePartial", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_storage_file_partial (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "storage.fileMp4", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_storage_file_mp4 (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 16 && !memcmp (cur_token, "storage.fileWebp", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_storage_file_webp (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_storage_file_type (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "storage.fileUnknown", text_len)) { *R = tstrdup ("storage.fileUnknown"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "storage.fileJpeg", text_len)) { *R = tstrdup ("storage.fileJpeg"); return index; } else { index ++; }}
+ if (index == 2) { if (!strncmp (text, "storage.fileGif", text_len)) { *R = tstrdup ("storage.fileGif"); return index; } else { index ++; }}
+ if (index == 3) { if (!strncmp (text, "storage.filePng", text_len)) { *R = tstrdup ("storage.filePng"); return index; } else { index ++; }}
+ if (index == 4) { if (!strncmp (text, "storage.filePdf", text_len)) { *R = tstrdup ("storage.filePdf"); return index; } else { index ++; }}
+ if (index == 5) { if (!strncmp (text, "storage.fileMp3", text_len)) { *R = tstrdup ("storage.fileMp3"); return index; } else { index ++; }}
+ if (index == 6) { if (!strncmp (text, "storage.fileMov", text_len)) { *R = tstrdup ("storage.fileMov"); return index; } else { index ++; }}
+ if (index == 7) { if (!strncmp (text, "storage.filePartial", text_len)) { *R = tstrdup ("storage.filePartial"); return index; } else { index ++; }}
+ if (index == 8) { if (!strncmp (text, "storage.fileMp4", text_len)) { *R = tstrdup ("storage.fileMp4"); return index; } else { index ++; }}
+ if (index == 9) { if (!strncmp (text, "storage.fileWebp", text_len)) { *R = tstrdup ("storage.fileWebp"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_updates_difference (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_updates_difference); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 23 && !memcmp (cur_token, "updates.differenceEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_updates_difference_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 18 && !memcmp (cur_token, "updates.difference", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_updates_difference (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 23 && !memcmp (cur_token, "updates.differenceSlice", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_updates_difference_slice (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_updates_difference (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_updates_difference); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 23 && !memcmp (cur_token, "updates.differenceEmpty", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_updates_difference_empty (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 18 && !memcmp (cur_token, "updates.difference", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_updates_difference (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ if (cur_token_len == 23 && !memcmp (cur_token, "updates.differenceSlice", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_updates_difference_slice (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_updates_difference (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "updates.differenceEmpty", text_len)) { *R = tstrdup ("updates.differenceEmpty"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "updates.difference", text_len)) { *R = tstrdup ("updates.difference"); return index; } else { index ++; }}
+ if (index == 2) { if (!strncmp (text, "updates.differenceSlice", text_len)) { *R = tstrdup ("updates.differenceSlice"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_updates_state (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_updates_state); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 13 && !memcmp (cur_token, "updates.state", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_updates_state (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_updates_state (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_updates_state); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 13 && !memcmp (cur_token, "updates.state", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_updates_state (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_updates_state (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "updates.state", text_len)) { *R = tstrdup ("updates.state"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+int autocomplete_type_upload_file (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_upload_file); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 11 && !memcmp (cur_token, "upload.file", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_upload_file (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int autocomplete_type_bare_upload_file (struct paramed_type *T) {
+ expect_token_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_type_upload_file); return -1; }
+ if (cur_token_len < 0) { return -1; }
+ if (cur_token_len == 11 && !memcmp (cur_token, "upload.file", cur_token_len)) {
+ local_next_token ();
+ if (autocomplete_constructor_upload_file (T) < 0) { return -1; }
+ expect_token_autocomplete (")", 1);
+ return 0;
+ }
+ return -1;
+}
+int do_autocomplete_type_upload_file (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "upload.file", text_len)) { *R = tstrdup ("upload.file"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+struct paramed_type *autocomplete_function_account_change_phone (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "phone_number", cur_token_real_len)) {
+ set_autocomplete_string ("phone_number");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "phone_number", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 15 && !cur_token_quoted && !memcmp (cur_token, "phone_code_hash", cur_token_real_len)) {
+ set_autocomplete_string ("phone_code_hash");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 15 && !memcmp (cur_token, "phone_code_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "phone_code", cur_token_real_len)) {
+ set_autocomplete_string ("phone_code");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "phone_code", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x02e6c0c8, .id = "User", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_account_check_username (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "username", cur_token_real_len)) {
+ set_autocomplete_string ("username");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "username", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_account_delete_account (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "reason", cur_token_real_len)) {
+ set_autocomplete_string ("reason");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "reason", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_account_get_account_t_t_l (void) {
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xb8d0afdf, .id = "AccountDaysTTL", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_account_get_authorizations (void) {
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1250abde, .id = "account.Authorizations", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_account_get_notify_settings (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "peer", cur_token_real_len)) {
+ set_autocomplete_string ("peer");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "peer", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x02b6911b, .id = "InputNotifyPeer", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_notify_peer (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xfdf894fc, .id = "PeerNotifySettings", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_account_get_password (void) {
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xeac2a804, .id = "account.Password", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_account_get_password_settings (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 21 && !cur_token_quoted && !memcmp (cur_token, "current_password_hash", cur_token_real_len)) {
+ set_autocomplete_string ("current_password_hash");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 21 && !memcmp (cur_token, "current_password_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xb7b72ab3, .id = "account.PasswordSettings", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_account_get_privacy (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "key", cur_token_real_len)) {
+ set_autocomplete_string ("key");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "key", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4f96cb18, .id = "InputPrivacyKey", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_privacy_key (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x554abb6f, .id = "account.PrivacyRules", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_account_get_wall_papers (void) {
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xafa14973, .id = "WallPaper", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_account_register_device (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "token_type", cur_token_real_len)) {
+ set_autocomplete_string ("token_type");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "token_type", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "token", cur_token_real_len)) {
+ set_autocomplete_string ("token");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "token", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "device_model", cur_token_real_len)) {
+ set_autocomplete_string ("device_model");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "device_model", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 14 && !cur_token_quoted && !memcmp (cur_token, "system_version", cur_token_real_len)) {
+ set_autocomplete_string ("system_version");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 14 && !memcmp (cur_token, "system_version", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field4) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "app_version", cur_token_real_len)) {
+ set_autocomplete_string ("app_version");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "app_version", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field5) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "app_sandbox", cur_token_real_len)) {
+ set_autocomplete_string ("app_sandbox");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "app_sandbox", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bool (field6) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "lang_code", cur_token_real_len)) {
+ set_autocomplete_string ("lang_code");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "lang_code", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field7 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field7) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_account_reset_authorization (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "hash", cur_token_real_len)) {
+ set_autocomplete_string ("hash");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_account_reset_notify_settings (void) {
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_account_send_change_phone_code (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "phone_number", cur_token_real_len)) {
+ set_autocomplete_string ("phone_number");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "phone_number", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xa4f58c4c, .id = "account.SentChangePhoneCode", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_account_set_account_t_t_l (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "ttl", cur_token_real_len)) {
+ set_autocomplete_string ("ttl");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "ttl", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xb8d0afdf, .id = "AccountDaysTTL", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_account_days_t_t_l (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_account_set_privacy (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "key", cur_token_real_len)) {
+ set_autocomplete_string ("key");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "key", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4f96cb18, .id = "InputPrivacyKey", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_privacy_key (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "rules", cur_token_real_len)) {
+ set_autocomplete_string ("rules");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "rules", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4b815163, .id = "InputPrivacyRule", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field2) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x554abb6f, .id = "account.PrivacyRules", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_account_unregister_device (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "token_type", cur_token_real_len)) {
+ set_autocomplete_string ("token_type");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "token_type", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "token", cur_token_real_len)) {
+ set_autocomplete_string ("token");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "token", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_account_update_device_locked (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "period", cur_token_real_len)) {
+ set_autocomplete_string ("period");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "period", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_account_update_notify_settings (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "peer", cur_token_real_len)) {
+ set_autocomplete_string ("peer");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "peer", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x02b6911b, .id = "InputNotifyPeer", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_notify_peer (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "settings", cur_token_real_len)) {
+ set_autocomplete_string ("settings");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "settings", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x46a2ce98, .id = "InputPeerNotifySettings", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_peer_notify_settings (field2) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_account_update_password_settings (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 21 && !cur_token_quoted && !memcmp (cur_token, "current_password_hash", cur_token_real_len)) {
+ set_autocomplete_string ("current_password_hash");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 21 && !memcmp (cur_token, "current_password_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "new_settings", cur_token_real_len)) {
+ set_autocomplete_string ("new_settings");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "new_settings", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xbcfc532c, .id = "account.PasswordInputSettings", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_account_password_input_settings (field2) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_account_update_profile (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "first_name", cur_token_real_len)) {
+ set_autocomplete_string ("first_name");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "first_name", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "last_name", cur_token_real_len)) {
+ set_autocomplete_string ("last_name");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "last_name", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x02e6c0c8, .id = "User", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_account_update_status (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "offline", cur_token_real_len)) {
+ set_autocomplete_string ("offline");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "offline", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bool (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_account_update_username (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "username", cur_token_real_len)) {
+ set_autocomplete_string ("username");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "username", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x02e6c0c8, .id = "User", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_auth_bind_temp_auth_key (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 16 && !cur_token_quoted && !memcmp (cur_token, "perm_auth_key_id", cur_token_real_len)) {
+ set_autocomplete_string ("perm_auth_key_id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 16 && !memcmp (cur_token, "perm_auth_key_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "nonce", cur_token_real_len)) {
+ set_autocomplete_string ("nonce");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "nonce", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field2) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "expires_at", cur_token_real_len)) {
+ set_autocomplete_string ("expires_at");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "expires_at", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 17 && !cur_token_quoted && !memcmp (cur_token, "encrypted_message", cur_token_real_len)) {
+ set_autocomplete_string ("encrypted_message");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 17 && !memcmp (cur_token, "encrypted_message", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field4) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_auth_check_password (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 13 && !cur_token_quoted && !memcmp (cur_token, "password_hash", cur_token_real_len)) {
+ set_autocomplete_string ("password_hash");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 13 && !memcmp (cur_token, "password_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xff036af1, .id = "auth.Authorization", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_auth_check_phone (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "phone_number", cur_token_real_len)) {
+ set_autocomplete_string ("phone_number");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "phone_number", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x811ea28e, .id = "auth.CheckedPhone", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_auth_export_authorization (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "dc_id", cur_token_real_len)) {
+ set_autocomplete_string ("dc_id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "dc_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xdf969c2d, .id = "auth.ExportedAuthorization", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_auth_import_authorization (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "bytes", cur_token_real_len)) {
+ set_autocomplete_string ("bytes");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "bytes", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field2) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xff036af1, .id = "auth.Authorization", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_auth_import_bot_authorization (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "flags", cur_token_real_len)) {
+ set_autocomplete_string ("flags");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "flags", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "api_id", cur_token_real_len)) {
+ set_autocomplete_string ("api_id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "api_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "api_hash", cur_token_real_len)) {
+ set_autocomplete_string ("api_hash");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "api_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 14 && !cur_token_quoted && !memcmp (cur_token, "bot_auth_token", cur_token_real_len)) {
+ set_autocomplete_string ("bot_auth_token");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 14 && !memcmp (cur_token, "bot_auth_token", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field4) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xff036af1, .id = "auth.Authorization", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_auth_log_out (void) {
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_auth_recover_password (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "code", cur_token_real_len)) {
+ set_autocomplete_string ("code");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "code", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xff036af1, .id = "auth.Authorization", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_auth_request_password_recovery (void) {
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x137948a5, .id = "auth.PasswordRecovery", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_auth_reset_authorizations (void) {
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_auth_send_call (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "phone_number", cur_token_real_len)) {
+ set_autocomplete_string ("phone_number");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "phone_number", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 15 && !cur_token_quoted && !memcmp (cur_token, "phone_code_hash", cur_token_real_len)) {
+ set_autocomplete_string ("phone_code_hash");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 15 && !memcmp (cur_token, "phone_code_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_auth_send_code (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "phone_number", cur_token_real_len)) {
+ set_autocomplete_string ("phone_number");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "phone_number", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "sms_type", cur_token_real_len)) {
+ set_autocomplete_string ("sms_type");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "sms_type", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "api_id", cur_token_real_len)) {
+ set_autocomplete_string ("api_id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "api_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "api_hash", cur_token_real_len)) {
+ set_autocomplete_string ("api_hash");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "api_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field4) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "lang_code", cur_token_real_len)) {
+ set_autocomplete_string ("lang_code");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "lang_code", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field5) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x0cc8bc16, .id = "auth.SentCode", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_auth_send_invites (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 13 && !cur_token_quoted && !memcmp (cur_token, "phone_numbers", cur_token_real_len)) {
+ set_autocomplete_string ("phone_numbers");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 13 && !memcmp (cur_token, "phone_numbers", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "message", cur_token_real_len)) {
+ set_autocomplete_string ("message");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "message", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_auth_send_sms (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "phone_number", cur_token_real_len)) {
+ set_autocomplete_string ("phone_number");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "phone_number", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 15 && !cur_token_quoted && !memcmp (cur_token, "phone_code_hash", cur_token_real_len)) {
+ set_autocomplete_string ("phone_code_hash");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 15 && !memcmp (cur_token, "phone_code_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_auth_sign_in (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "phone_number", cur_token_real_len)) {
+ set_autocomplete_string ("phone_number");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "phone_number", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 15 && !cur_token_quoted && !memcmp (cur_token, "phone_code_hash", cur_token_real_len)) {
+ set_autocomplete_string ("phone_code_hash");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 15 && !memcmp (cur_token, "phone_code_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "phone_code", cur_token_real_len)) {
+ set_autocomplete_string ("phone_code");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "phone_code", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xff036af1, .id = "auth.Authorization", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_auth_sign_up (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "phone_number", cur_token_real_len)) {
+ set_autocomplete_string ("phone_number");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "phone_number", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 15 && !cur_token_quoted && !memcmp (cur_token, "phone_code_hash", cur_token_real_len)) {
+ set_autocomplete_string ("phone_code_hash");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 15 && !memcmp (cur_token, "phone_code_hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "phone_code", cur_token_real_len)) {
+ set_autocomplete_string ("phone_code");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "phone_code", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "first_name", cur_token_real_len)) {
+ set_autocomplete_string ("first_name");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "first_name", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field4) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "last_name", cur_token_real_len)) {
+ set_autocomplete_string ("last_name");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "last_name", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field5) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xff036af1, .id = "auth.Authorization", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_contacts_block (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xadfe0c6a, .id = "InputUser", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_user (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_contacts_delete_contact (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xadfe0c6a, .id = "InputUser", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_user (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x3ace484c, .id = "contacts.Link", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_contacts_delete_contacts (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xadfe0c6a, .id = "InputUser", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_contacts_export_card (void) {
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_contacts_get_blocked (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "offset", cur_token_real_len)) {
+ set_autocomplete_string ("offset");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "offset", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "limit", cur_token_real_len)) {
+ set_autocomplete_string ("limit");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "limit", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x8c1b8fb4, .id = "contacts.Blocked", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_contacts_get_contacts (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "hash", cur_token_real_len)) {
+ set_autocomplete_string ("hash");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xd8c02560, .id = "contacts.Contacts", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_contacts_get_statuses (void) {
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xd3680c61, .id = "ContactStatus", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_contacts_get_suggested (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "limit", cur_token_real_len)) {
+ set_autocomplete_string ("limit");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "limit", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x5649dcc5, .id = "contacts.Suggested", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_contacts_import_card (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "export_card", cur_token_real_len)) {
+ set_autocomplete_string ("export_card");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "export_card", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x02e6c0c8, .id = "User", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_contacts_import_contacts (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "contacts", cur_token_real_len)) {
+ set_autocomplete_string ("contacts");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "contacts", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf392b7f4, .id = "InputContact", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "replace", cur_token_real_len)) {
+ set_autocomplete_string ("replace");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "replace", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bool (field2) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xad524315, .id = "contacts.ImportedContacts", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_contacts_resolve_username (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "username", cur_token_real_len)) {
+ set_autocomplete_string ("username");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "username", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x02e6c0c8, .id = "User", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_contacts_search (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 1 && !cur_token_quoted && !memcmp (cur_token, "q", cur_token_real_len)) {
+ set_autocomplete_string ("q");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 1 && !memcmp (cur_token, "q", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "limit", cur_token_real_len)) {
+ set_autocomplete_string ("limit");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "limit", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x0566000e, .id = "contacts.Found", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_contacts_unblock (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xadfe0c6a, .id = "InputUser", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_user (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_geochats_checkin (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "peer", cur_token_real_len)) {
+ set_autocomplete_string ("peer");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "peer", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x74d456fa, .id = "InputGeoChat", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_geo_chat (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x17b1578b, .id = "geochats.StatedMessage", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_geochats_create_geo_chat (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "title", cur_token_real_len)) {
+ set_autocomplete_string ("title");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "title", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "geo_point", cur_token_real_len)) {
+ set_autocomplete_string ("geo_point");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "geo_point", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x17768f1f, .id = "InputGeoPoint", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_geo_point (field2) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "address", cur_token_real_len)) {
+ set_autocomplete_string ("address");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "address", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "venue", cur_token_real_len)) {
+ set_autocomplete_string ("venue");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "venue", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field4) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x17b1578b, .id = "geochats.StatedMessage", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_geochats_edit_chat_photo (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "peer", cur_token_real_len)) {
+ set_autocomplete_string ("peer");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "peer", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x74d456fa, .id = "InputGeoChat", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_geo_chat (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "photo", cur_token_real_len)) {
+ set_autocomplete_string ("photo");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "photo", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x3a60776d, .id = "InputChatPhoto", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_chat_photo (field2) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x17b1578b, .id = "geochats.StatedMessage", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_geochats_edit_chat_title (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "peer", cur_token_real_len)) {
+ set_autocomplete_string ("peer");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "peer", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x74d456fa, .id = "InputGeoChat", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_geo_chat (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "title", cur_token_real_len)) {
+ set_autocomplete_string ("title");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "title", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "address", cur_token_real_len)) {
+ set_autocomplete_string ("address");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "address", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x17b1578b, .id = "geochats.StatedMessage", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_geochats_get_full_chat (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "peer", cur_token_real_len)) {
+ set_autocomplete_string ("peer");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "peer", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x74d456fa, .id = "InputGeoChat", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_geo_chat (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xe5d7d19c, .id = "messages.ChatFull", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_geochats_get_history (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "peer", cur_token_real_len)) {
+ set_autocomplete_string ("peer");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "peer", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x74d456fa, .id = "InputGeoChat", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_geo_chat (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "offset", cur_token_real_len)) {
+ set_autocomplete_string ("offset");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "offset", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "max_id", cur_token_real_len)) {
+ set_autocomplete_string ("max_id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "max_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "limit", cur_token_real_len)) {
+ set_autocomplete_string ("limit");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "limit", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x6d0a0e59, .id = "geochats.Messages", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_geochats_get_located (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "geo_point", cur_token_real_len)) {
+ set_autocomplete_string ("geo_point");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "geo_point", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x17768f1f, .id = "InputGeoPoint", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_geo_point (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "radius", cur_token_real_len)) {
+ set_autocomplete_string ("radius");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "radius", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "limit", cur_token_real_len)) {
+ set_autocomplete_string ("limit");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "limit", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x48feb267, .id = "geochats.Located", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_geochats_get_recents (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "offset", cur_token_real_len)) {
+ set_autocomplete_string ("offset");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "offset", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "limit", cur_token_real_len)) {
+ set_autocomplete_string ("limit");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "limit", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x6d0a0e59, .id = "geochats.Messages", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_geochats_search (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "peer", cur_token_real_len)) {
+ set_autocomplete_string ("peer");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "peer", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x74d456fa, .id = "InputGeoChat", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_geo_chat (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 1 && !cur_token_quoted && !memcmp (cur_token, "q", cur_token_real_len)) {
+ set_autocomplete_string ("q");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 1 && !memcmp (cur_token, "q", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "filter", cur_token_real_len)) {
+ set_autocomplete_string ("filter");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "filter", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x80895ae0, .id = "MessagesFilter", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_messages_filter (field3) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "min_date", cur_token_real_len)) {
+ set_autocomplete_string ("min_date");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "min_date", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "max_date", cur_token_real_len)) {
+ set_autocomplete_string ("max_date");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "max_date", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field5) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "offset", cur_token_real_len)) {
+ set_autocomplete_string ("offset");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "offset", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field6) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "max_id", cur_token_real_len)) {
+ set_autocomplete_string ("max_id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "max_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field7 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field7) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "limit", cur_token_real_len)) {
+ set_autocomplete_string ("limit");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "limit", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field8 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field8) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x6d0a0e59, .id = "geochats.Messages", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_geochats_send_media (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "peer", cur_token_real_len)) {
+ set_autocomplete_string ("peer");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "peer", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x74d456fa, .id = "InputGeoChat", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_geo_chat (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "media", cur_token_real_len)) {
+ set_autocomplete_string ("media");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "media", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xb32c91dd, .id = "InputMedia", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_media (field2) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "random_id", cur_token_real_len)) {
+ set_autocomplete_string ("random_id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "random_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field3) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x17b1578b, .id = "geochats.StatedMessage", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_geochats_send_message (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "peer", cur_token_real_len)) {
+ set_autocomplete_string ("peer");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "peer", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x74d456fa, .id = "InputGeoChat", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_geo_chat (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "message", cur_token_real_len)) {
+ set_autocomplete_string ("message");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "message", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "random_id", cur_token_real_len)) {
+ set_autocomplete_string ("random_id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "random_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field3) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x17b1578b, .id = "geochats.StatedMessage", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_geochats_set_typing (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "peer", cur_token_real_len)) {
+ set_autocomplete_string ("peer");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "peer", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x74d456fa, .id = "InputGeoChat", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_geo_chat (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "typing", cur_token_real_len)) {
+ set_autocomplete_string ("typing");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "typing", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bool (field2) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_help_get_app_update (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "device_model", cur_token_real_len)) {
+ set_autocomplete_string ("device_model");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "device_model", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 14 && !cur_token_quoted && !memcmp (cur_token, "system_version", cur_token_real_len)) {
+ set_autocomplete_string ("system_version");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 14 && !memcmp (cur_token, "system_version", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "app_version", cur_token_real_len)) {
+ set_autocomplete_string ("app_version");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "app_version", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "lang_code", cur_token_real_len)) {
+ set_autocomplete_string ("lang_code");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "lang_code", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field4) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ddd9627, .id = "help.AppUpdate", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_help_get_config (void) {
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4e32b894, .id = "Config", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_help_get_invite_text (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "lang_code", cur_token_real_len)) {
+ set_autocomplete_string ("lang_code");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "lang_code", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x18cb9f78, .id = "help.InviteText", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_help_get_nearest_dc (void) {
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x8e1a1775, .id = "NearestDc", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_help_get_support (void) {
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x17c6b5f6, .id = "help.Support", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_help_save_app_log (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "events", cur_token_real_len)) {
+ set_autocomplete_string ("events");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "events", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x770656a8, .id = "InputAppEvent", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_init_connection (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "api_id", cur_token_real_len)) {
+ set_autocomplete_string ("api_id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "api_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "device_model", cur_token_real_len)) {
+ set_autocomplete_string ("device_model");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "device_model", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 14 && !cur_token_quoted && !memcmp (cur_token, "system_version", cur_token_real_len)) {
+ set_autocomplete_string ("system_version");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 14 && !memcmp (cur_token, "system_version", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field4) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "app_version", cur_token_real_len)) {
+ set_autocomplete_string ("app_version");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "app_version", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field5) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "lang_code", cur_token_real_len)) {
+ set_autocomplete_string ("lang_code");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "lang_code", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field6) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "query", cur_token_real_len)) {
+ set_autocomplete_string ("query");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "query", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field7 = autocomplete_function_any ();
+ if (!field7) { return 0; }
+ add_var_to_be_freed (field7);
+ if (ODDP(field7)) { return 0; }
+ struct paramed_type *var0 = field7; assert (var0);
+ struct paramed_type *R =
+ var0;
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_invoke_after_msg (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "msg_id", cur_token_real_len)) {
+ set_autocomplete_string ("msg_id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "msg_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field2) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "query", cur_token_real_len)) {
+ set_autocomplete_string ("query");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "query", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 = autocomplete_function_any ();
+ if (!field3) { return 0; }
+ add_var_to_be_freed (field3);
+ if (ODDP(field3)) { return 0; }
+ struct paramed_type *var0 = field3; assert (var0);
+ struct paramed_type *R =
+ var0;
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_invoke_after_msgs (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "msg_ids", cur_token_real_len)) {
+ set_autocomplete_string ("msg_ids");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "msg_ids", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field2) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "query", cur_token_real_len)) {
+ set_autocomplete_string ("query");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "query", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 = autocomplete_function_any ();
+ if (!field3) { return 0; }
+ add_var_to_be_freed (field3);
+ if (ODDP(field3)) { return 0; }
+ struct paramed_type *var0 = field3; assert (var0);
+ struct paramed_type *R =
+ var0;
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_invoke_with_layer (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "layer", cur_token_real_len)) {
+ set_autocomplete_string ("layer");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "layer", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "query", cur_token_real_len)) {
+ set_autocomplete_string ("query");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "query", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 = autocomplete_function_any ();
+ if (!field3) { return 0; }
+ add_var_to_be_freed (field3);
+ if (ODDP(field3)) { return 0; }
+ struct paramed_type *var0 = field3; assert (var0);
+ struct paramed_type *R =
+ var0;
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_invoke_without_updates (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "query", cur_token_real_len)) {
+ set_autocomplete_string ("query");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "query", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 = autocomplete_function_any ();
+ if (!field2) { return 0; }
+ add_var_to_be_freed (field2);
+ if (ODDP(field2)) { return 0; }
+ struct paramed_type *var0 = field2; assert (var0);
+ struct paramed_type *R =
+ var0;
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_messages_accept_encryption (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "peer", cur_token_real_len)) {
+ set_autocomplete_string ("peer");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "peer", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf141b5e1, .id = "InputEncryptedChat", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_encrypted_chat (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "g_b", cur_token_real_len)) {
+ set_autocomplete_string ("g_b");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "g_b", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field2) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 15 && !cur_token_quoted && !memcmp (cur_token, "key_fingerprint", cur_token_real_len)) {
+ set_autocomplete_string ("key_fingerprint");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 15 && !memcmp (cur_token, "key_fingerprint", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field3) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xb1718213, .id = "EncryptedChat", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_messages_add_chat_user (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "chat_id", cur_token_real_len)) {
+ set_autocomplete_string ("chat_id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "chat_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "user_id", cur_token_real_len)) {
+ set_autocomplete_string ("user_id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "user_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xadfe0c6a, .id = "InputUser", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_user (field2) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "fwd_limit", cur_token_real_len)) {
+ set_autocomplete_string ("fwd_limit");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "fwd_limit", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x22499d27, .id = "Updates", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_messages_check_chat_invite (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "hash", cur_token_real_len)) {
+ set_autocomplete_string ("hash");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x94f910b1, .id = "ChatInvite", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_messages_create_chat (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "users", cur_token_real_len)) {
+ set_autocomplete_string ("users");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "users", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xadfe0c6a, .id = "InputUser", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "title", cur_token_real_len)) {
+ set_autocomplete_string ("title");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "title", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x22499d27, .id = "Updates", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_messages_delete_chat_user (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "chat_id", cur_token_real_len)) {
+ set_autocomplete_string ("chat_id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "chat_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "user_id", cur_token_real_len)) {
+ set_autocomplete_string ("user_id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "user_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xadfe0c6a, .id = "InputUser", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_user (field2) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x22499d27, .id = "Updates", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_messages_delete_history (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "peer", cur_token_real_len)) {
+ set_autocomplete_string ("peer");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "peer", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x9e67268d, .id = "InputPeer", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_peer (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "offset", cur_token_real_len)) {
+ set_autocomplete_string ("offset");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "offset", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xb45c69d1, .id = "messages.AffectedHistory", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_messages_delete_messages (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x84d19185, .id = "messages.AffectedMessages", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_messages_discard_encryption (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "chat_id", cur_token_real_len)) {
+ set_autocomplete_string ("chat_id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "chat_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_messages_edit_chat_photo (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "chat_id", cur_token_real_len)) {
+ set_autocomplete_string ("chat_id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "chat_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "photo", cur_token_real_len)) {
+ set_autocomplete_string ("photo");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "photo", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x3a60776d, .id = "InputChatPhoto", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_chat_photo (field2) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x22499d27, .id = "Updates", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_messages_edit_chat_title (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "chat_id", cur_token_real_len)) {
+ set_autocomplete_string ("chat_id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "chat_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "title", cur_token_real_len)) {
+ set_autocomplete_string ("title");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "title", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x22499d27, .id = "Updates", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_messages_export_chat_invite (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "chat_id", cur_token_real_len)) {
+ set_autocomplete_string ("chat_id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "chat_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x95f132d5, .id = "ExportedChatInvite", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_messages_forward_message (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "peer", cur_token_real_len)) {
+ set_autocomplete_string ("peer");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "peer", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x9e67268d, .id = "InputPeer", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_peer (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "random_id", cur_token_real_len)) {
+ set_autocomplete_string ("random_id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "random_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field3) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x22499d27, .id = "Updates", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_messages_forward_messages (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "peer", cur_token_real_len)) {
+ set_autocomplete_string ("peer");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "peer", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x9e67268d, .id = "InputPeer", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_peer (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field2) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "random_id", cur_token_real_len)) {
+ set_autocomplete_string ("random_id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "random_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field3) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x22499d27, .id = "Updates", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_messages_get_all_stickers (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "hash", cur_token_real_len)) {
+ set_autocomplete_string ("hash");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xb485502f, .id = "messages.AllStickers", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_messages_get_chats (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x64ff9fd5, .id = "messages.Chats", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_messages_get_dh_config (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "version", cur_token_real_len)) {
+ set_autocomplete_string ("version");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "version", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 13 && !cur_token_quoted && !memcmp (cur_token, "random_length", cur_token_real_len)) {
+ set_autocomplete_string ("random_length");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 13 && !memcmp (cur_token, "random_length", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xecc058e8, .id = "messages.DhConfig", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_messages_get_dialogs (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "offset", cur_token_real_len)) {
+ set_autocomplete_string ("offset");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "offset", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "max_id", cur_token_real_len)) {
+ set_autocomplete_string ("max_id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "max_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "limit", cur_token_real_len)) {
+ set_autocomplete_string ("limit");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "limit", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x645af8b3, .id = "messages.Dialogs", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_messages_get_full_chat (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "chat_id", cur_token_real_len)) {
+ set_autocomplete_string ("chat_id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "chat_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xe5d7d19c, .id = "messages.ChatFull", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_messages_get_history (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "peer", cur_token_real_len)) {
+ set_autocomplete_string ("peer");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "peer", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x9e67268d, .id = "InputPeer", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_peer (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "offset", cur_token_real_len)) {
+ set_autocomplete_string ("offset");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "offset", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "max_id", cur_token_real_len)) {
+ set_autocomplete_string ("max_id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "max_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "limit", cur_token_real_len)) {
+ set_autocomplete_string ("limit");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "limit", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x8735e464, .id = "messages.Messages", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_messages_get_messages (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x8735e464, .id = "messages.Messages", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_messages_get_sticker_set (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "stickerset", cur_token_real_len)) {
+ set_autocomplete_string ("stickerset");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "stickerset", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xe44d415c, .id = "InputStickerSet", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_sticker_set (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xb60a24a6, .id = "messages.StickerSet", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_messages_get_stickers (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "emoticon", cur_token_real_len)) {
+ set_autocomplete_string ("emoticon");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "emoticon", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "hash", cur_token_real_len)) {
+ set_autocomplete_string ("hash");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x7bfa5710, .id = "messages.Stickers", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_messages_get_web_page_preview (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "message", cur_token_real_len)) {
+ set_autocomplete_string ("message");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "message", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x95f2471a, .id = "MessageMedia", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_messages_import_chat_invite (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "hash", cur_token_real_len)) {
+ set_autocomplete_string ("hash");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "hash", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x22499d27, .id = "Updates", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_messages_install_sticker_set (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "stickerset", cur_token_real_len)) {
+ set_autocomplete_string ("stickerset");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "stickerset", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xe44d415c, .id = "InputStickerSet", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_sticker_set (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_messages_read_encrypted_history (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "peer", cur_token_real_len)) {
+ set_autocomplete_string ("peer");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "peer", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf141b5e1, .id = "InputEncryptedChat", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_encrypted_chat (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "max_date", cur_token_real_len)) {
+ set_autocomplete_string ("max_date");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "max_date", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_messages_read_history (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "peer", cur_token_real_len)) {
+ set_autocomplete_string ("peer");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "peer", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x9e67268d, .id = "InputPeer", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_peer (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "max_id", cur_token_real_len)) {
+ set_autocomplete_string ("max_id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "max_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "offset", cur_token_real_len)) {
+ set_autocomplete_string ("offset");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "offset", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xb45c69d1, .id = "messages.AffectedHistory", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_messages_read_message_contents (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x84d19185, .id = "messages.AffectedMessages", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_messages_received_messages (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "max_id", cur_token_real_len)) {
+ set_autocomplete_string ("max_id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "max_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xa384b779, .id = "ReceivedNotifyMessage", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_messages_received_queue (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "max_qts", cur_token_real_len)) {
+ set_autocomplete_string ("max_qts");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "max_qts", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_messages_request_encryption (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "user_id", cur_token_real_len)) {
+ set_autocomplete_string ("user_id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "user_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xadfe0c6a, .id = "InputUser", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_user (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "random_id", cur_token_real_len)) {
+ set_autocomplete_string ("random_id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "random_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "g_a", cur_token_real_len)) {
+ set_autocomplete_string ("g_a");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "g_a", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field3) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xb1718213, .id = "EncryptedChat", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_messages_search (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "peer", cur_token_real_len)) {
+ set_autocomplete_string ("peer");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "peer", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x9e67268d, .id = "InputPeer", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_peer (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 1 && !cur_token_quoted && !memcmp (cur_token, "q", cur_token_real_len)) {
+ set_autocomplete_string ("q");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 1 && !memcmp (cur_token, "q", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "filter", cur_token_real_len)) {
+ set_autocomplete_string ("filter");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "filter", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x80895ae0, .id = "MessagesFilter", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_messages_filter (field3) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "min_date", cur_token_real_len)) {
+ set_autocomplete_string ("min_date");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "min_date", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "max_date", cur_token_real_len)) {
+ set_autocomplete_string ("max_date");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "max_date", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field5) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "offset", cur_token_real_len)) {
+ set_autocomplete_string ("offset");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "offset", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field6) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "max_id", cur_token_real_len)) {
+ set_autocomplete_string ("max_id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "max_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field7 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field7) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "limit", cur_token_real_len)) {
+ set_autocomplete_string ("limit");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "limit", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field8 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field8) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x8735e464, .id = "messages.Messages", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_messages_send_broadcast (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "contacts", cur_token_real_len)) {
+ set_autocomplete_string ("contacts");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "contacts", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xadfe0c6a, .id = "InputUser", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "random_id", cur_token_real_len)) {
+ set_autocomplete_string ("random_id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "random_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field2) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "message", cur_token_real_len)) {
+ set_autocomplete_string ("message");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "message", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "media", cur_token_real_len)) {
+ set_autocomplete_string ("media");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "media", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xb32c91dd, .id = "InputMedia", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_media (field4) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x22499d27, .id = "Updates", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_messages_send_encrypted (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "peer", cur_token_real_len)) {
+ set_autocomplete_string ("peer");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "peer", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf141b5e1, .id = "InputEncryptedChat", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_encrypted_chat (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "random_id", cur_token_real_len)) {
+ set_autocomplete_string ("random_id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "random_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field2) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "data", cur_token_real_len)) {
+ set_autocomplete_string ("data");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "data", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field3) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xc29c7607, .id = "messages.SentEncryptedMessage", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_messages_send_encrypted_file (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "peer", cur_token_real_len)) {
+ set_autocomplete_string ("peer");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "peer", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf141b5e1, .id = "InputEncryptedChat", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_encrypted_chat (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "random_id", cur_token_real_len)) {
+ set_autocomplete_string ("random_id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "random_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field2) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "data", cur_token_real_len)) {
+ set_autocomplete_string ("data");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "data", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field3) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "file", cur_token_real_len)) {
+ set_autocomplete_string ("file");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "file", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x0b5c064f, .id = "InputEncryptedFile", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_encrypted_file (field4) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xc29c7607, .id = "messages.SentEncryptedMessage", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_messages_send_encrypted_service (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "peer", cur_token_real_len)) {
+ set_autocomplete_string ("peer");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "peer", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf141b5e1, .id = "InputEncryptedChat", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_encrypted_chat (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "random_id", cur_token_real_len)) {
+ set_autocomplete_string ("random_id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "random_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field2) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "data", cur_token_real_len)) {
+ set_autocomplete_string ("data");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "data", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field3) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xc29c7607, .id = "messages.SentEncryptedMessage", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_messages_send_media (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "flags", cur_token_real_len)) {
+ set_autocomplete_string ("flags");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "flags", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ if (cur_token_len < 0) { return 0; }
+ if (!is_int ()) { return 0;}
+ struct paramed_type *var0 = INT2PTR (get_int ());
+ assert (var0);
+ local_next_token ();
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "peer", cur_token_real_len)) {
+ set_autocomplete_string ("peer");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "peer", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x9e67268d, .id = "InputPeer", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_peer (field2) < 0) { return 0;}
+ if (PTR2INT (var0) & (1 << 0)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 15 && !cur_token_quoted && !memcmp (cur_token, "reply_to_msg_id", cur_token_real_len)) {
+ set_autocomplete_string ("reply_to_msg_id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 15 && !memcmp (cur_token, "reply_to_msg_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return 0;}
+ }
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "media", cur_token_real_len)) {
+ set_autocomplete_string ("media");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "media", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xb32c91dd, .id = "InputMedia", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_media (field4) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "random_id", cur_token_real_len)) {
+ set_autocomplete_string ("random_id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "random_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field5) < 0) { return 0;}
+ if (PTR2INT (var0) & (1 << 2)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "reply_markup", cur_token_real_len)) {
+ set_autocomplete_string ("reply_markup");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "reply_markup", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x612ca4a9, .id = "ReplyMarkup", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_reply_markup (field6) < 0) { return 0;}
+ }
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x22499d27, .id = "Updates", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_messages_send_message (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "flags", cur_token_real_len)) {
+ set_autocomplete_string ("flags");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "flags", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ if (cur_token_len < 0) { return 0; }
+ if (!is_int ()) { return 0;}
+ struct paramed_type *var0 = INT2PTR (get_int ());
+ assert (var0);
+ local_next_token ();
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "peer", cur_token_real_len)) {
+ set_autocomplete_string ("peer");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "peer", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x9e67268d, .id = "InputPeer", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_peer (field2) < 0) { return 0;}
+ if (PTR2INT (var0) & (1 << 0)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 15 && !cur_token_quoted && !memcmp (cur_token, "reply_to_msg_id", cur_token_real_len)) {
+ set_autocomplete_string ("reply_to_msg_id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 15 && !memcmp (cur_token, "reply_to_msg_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return 0;}
+ }
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "message", cur_token_real_len)) {
+ set_autocomplete_string ("message");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "message", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field4) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "random_id", cur_token_real_len)) {
+ set_autocomplete_string ("random_id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "random_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field5) < 0) { return 0;}
+ if (PTR2INT (var0) & (1 << 2)) {
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "reply_markup", cur_token_real_len)) {
+ set_autocomplete_string ("reply_markup");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "reply_markup", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x612ca4a9, .id = "ReplyMarkup", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_reply_markup (field6) < 0) { return 0;}
+ }
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x799ce190, .id = "messages.SentMessage", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_messages_set_encrypted_typing (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "peer", cur_token_real_len)) {
+ set_autocomplete_string ("peer");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "peer", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf141b5e1, .id = "InputEncryptedChat", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_encrypted_chat (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "typing", cur_token_real_len)) {
+ set_autocomplete_string ("typing");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "typing", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bool (field2) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_messages_set_typing (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "peer", cur_token_real_len)) {
+ set_autocomplete_string ("peer");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "peer", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x9e67268d, .id = "InputPeer", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_peer (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "action", cur_token_real_len)) {
+ set_autocomplete_string ("action");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "action", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x70541c7e, .id = "SendMessageAction", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_send_message_action (field2) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_messages_start_bot (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "bot", cur_token_real_len)) {
+ set_autocomplete_string ("bot");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "bot", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xadfe0c6a, .id = "InputUser", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_user (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "chat_id", cur_token_real_len)) {
+ set_autocomplete_string ("chat_id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "chat_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "random_id", cur_token_real_len)) {
+ set_autocomplete_string ("random_id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "random_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field3) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 11 && !cur_token_quoted && !memcmp (cur_token, "start_param", cur_token_real_len)) {
+ set_autocomplete_string ("start_param");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 11 && !memcmp (cur_token, "start_param", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field4) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x22499d27, .id = "Updates", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_messages_uninstall_sticker_set (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 10 && !cur_token_quoted && !memcmp (cur_token, "stickerset", cur_token_real_len)) {
+ set_autocomplete_string ("stickerset");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 10 && !memcmp (cur_token, "stickerset", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xe44d415c, .id = "InputStickerSet", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_sticker_set (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_photos_delete_photos (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xe74279c9, .id = "InputPhoto", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_photos_get_user_photos (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "user_id", cur_token_real_len)) {
+ set_autocomplete_string ("user_id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "user_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xadfe0c6a, .id = "InputUser", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_user (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "offset", cur_token_real_len)) {
+ set_autocomplete_string ("offset");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "offset", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "max_id", cur_token_real_len)) {
+ set_autocomplete_string ("max_id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "max_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "limit", cur_token_real_len)) {
+ set_autocomplete_string ("limit");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "limit", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field4) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x98cf75f1, .id = "photos.Photos", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_photos_update_profile_photo (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xe74279c9, .id = "InputPhoto", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_photo (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "crop", cur_token_real_len)) {
+ set_autocomplete_string ("crop");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "crop", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x7477e321, .id = "InputPhotoCrop", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_photo_crop (field2) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x9a486229, .id = "UserProfilePhoto", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_photos_upload_profile_photo (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "file", cur_token_real_len)) {
+ set_autocomplete_string ("file");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "file", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x0f60f9ca, .id = "InputFile", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_file (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "caption", cur_token_real_len)) {
+ set_autocomplete_string ("caption");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "caption", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field2) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "geo_point", cur_token_real_len)) {
+ set_autocomplete_string ("geo_point");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "geo_point", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x17768f1f, .id = "InputGeoPoint", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_geo_point (field3) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "crop", cur_token_real_len)) {
+ set_autocomplete_string ("crop");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "crop", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x7477e321, .id = "InputPhotoCrop", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_photo_crop (field4) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x20212ca8, .id = "photos.Photo", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_req_d_h_params (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "nonce", cur_token_real_len)) {
+ set_autocomplete_string ("nonce");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "nonce", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x82c93bc6, .id = "Bare_Int128", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int128 (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "server_nonce", cur_token_real_len)) {
+ set_autocomplete_string ("server_nonce");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "server_nonce", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x82c93bc6, .id = "Bare_Int128", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int128 (field2) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 1 && !cur_token_quoted && !memcmp (cur_token, "p", cur_token_real_len)) {
+ set_autocomplete_string ("p");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 1 && !memcmp (cur_token, "p", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 1 && !cur_token_quoted && !memcmp (cur_token, "q", cur_token_real_len)) {
+ set_autocomplete_string ("q");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 1 && !memcmp (cur_token, "q", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field4) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 22 && !cur_token_quoted && !memcmp (cur_token, "public_key_fingerprint", cur_token_real_len)) {
+ set_autocomplete_string ("public_key_fingerprint");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 22 && !memcmp (cur_token, "public_key_fingerprint", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field5 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field5) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 14 && !cur_token_quoted && !memcmp (cur_token, "encrypted_data", cur_token_real_len)) {
+ set_autocomplete_string ("encrypted_data");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 14 && !memcmp (cur_token, "encrypted_data", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field6 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field6) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xa9230301, .id = "Server_DH_Params", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_req_pq (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "nonce", cur_token_real_len)) {
+ set_autocomplete_string ("nonce");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "nonce", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x82c93bc6, .id = "Bare_Int128", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int128 (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x05162463, .id = "ResPQ", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_set_client_d_h_params (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "nonce", cur_token_real_len)) {
+ set_autocomplete_string ("nonce");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "nonce", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x82c93bc6, .id = "Bare_Int128", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int128 (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 12 && !cur_token_quoted && !memcmp (cur_token, "server_nonce", cur_token_real_len)) {
+ set_autocomplete_string ("server_nonce");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 12 && !memcmp (cur_token, "server_nonce", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x82c93bc6, .id = "Bare_Int128", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int128 (field2) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 14 && !cur_token_quoted && !memcmp (cur_token, "encrypted_data", cur_token_real_len)) {
+ set_autocomplete_string ("encrypted_data");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 14 && !memcmp (cur_token, "encrypted_data", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x4ad791db, .id = "Bare_String", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_string (field3) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xdb8a468f, .id = "Set_client_DH_params_answer", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_updates_get_difference (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "pts", cur_token_real_len)) {
+ set_autocomplete_string ("pts");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "pts", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 4 && !cur_token_quoted && !memcmp (cur_token, "date", cur_token_real_len)) {
+ set_autocomplete_string ("date");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 4 && !memcmp (cur_token, "date", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 3 && !cur_token_quoted && !memcmp (cur_token, "qts", cur_token_real_len)) {
+ set_autocomplete_string ("qts");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 3 && !memcmp (cur_token, "qts", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf57a2419, .id = "updates.Difference", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_updates_get_state (void) {
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xa56c2a3e, .id = "updates.State", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_upload_get_file (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 8 && !cur_token_quoted && !memcmp (cur_token, "location", cur_token_real_len)) {
+ set_autocomplete_string ("location");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 8 && !memcmp (cur_token, "location", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xe6daa38b, .id = "InputFileLocation", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_file_location (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 6 && !cur_token_quoted && !memcmp (cur_token, "offset", cur_token_real_len)) {
+ set_autocomplete_string ("offset");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 6 && !memcmp (cur_token, "offset", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "limit", cur_token_real_len)) {
+ set_autocomplete_string ("limit");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "limit", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x096a18d5, .id = "upload.File", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_upload_save_big_file_part (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "file_id", cur_token_real_len)) {
+ set_autocomplete_string ("file_id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "file_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "file_part", cur_token_real_len)) {
+ set_autocomplete_string ("file_part");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "file_part", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 16 && !cur_token_quoted && !memcmp (cur_token, "file_total_parts", cur_token_real_len)) {
+ set_autocomplete_string ("file_total_parts");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 16 && !memcmp (cur_token, "file_total_parts", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field3) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "bytes", cur_token_real_len)) {
+ set_autocomplete_string ("bytes");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "bytes", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field4 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field4) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_upload_save_file_part (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 7 && !cur_token_quoted && !memcmp (cur_token, "file_id", cur_token_real_len)) {
+ set_autocomplete_string ("file_id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 7 && !memcmp (cur_token, "file_id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xddf89345, .id = "Bare_Long", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_long (field1) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 9 && !cur_token_quoted && !memcmp (cur_token, "file_part", cur_token_real_len)) {
+ set_autocomplete_string ("file_part");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 9 && !memcmp (cur_token, "file_part", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field2 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x57af6425, .id = "Bare_Int", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_int (field2) < 0) { return 0;}
+ if (cur_token_len == -3 && cur_token_real_len <= 5 && !cur_token_quoted && !memcmp (cur_token, "bytes", cur_token_real_len)) {
+ set_autocomplete_string ("bytes");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 5 && !memcmp (cur_token, "bytes", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field3 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xf11ec860, .id = "Bare_Bytes", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_bare_bytes (field3) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x250be282, .id = "Bool", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_users_get_full_user (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xadfe0c6a, .id = "InputUser", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ if (autocomplete_type_input_user (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x5a89ac5b, .id = "UserFull", .params_num = 0, .params_types = 0},
+ .params = 0,
+ };
+ return paramed_type_dup (R);
+}
+struct paramed_type *autocomplete_function_users_get_users (void) {
+ if (cur_token_len == -3 && cur_token_real_len <= 2 && !cur_token_quoted && !memcmp (cur_token, "id", cur_token_real_len)) {
+ set_autocomplete_string ("id");
+ return 0;
+ }
+ if (cur_token_len >= 0 && cur_token_len == 2 && !memcmp (cur_token, "id", cur_token_len)) {
+ local_next_token ();
+ expect_token_ptr_autocomplete (":", 1);
+ }
+ struct paramed_type *field1 =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0xadfe0c6a, .id = "InputUser", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ if (autocomplete_type_vector (field1) < 0) { return 0;}
+ struct paramed_type *R =
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x1cb5c415, .id = "Vector", .params_num = 1, .params_types = 0},
+ .params = (struct paramed_type *[]){
+ &(struct paramed_type){
+ .type = &(struct tl_type_descr) {.name = 0x02e6c0c8, .id = "User", .params_num = 0, .params_types = 0},
+ .params = 0,
+ },
+ }
+ };
+ return paramed_type_dup (R);
+}
+int autocomplete_type_any (struct paramed_type *T) {
+ switch (T->type->name) {
+ case 0xb8d0afdf: return autocomplete_type_account_days_t_t_l (T);
+ case 0x472f5020: return autocomplete_type_bare_account_days_t_t_l (T);
+ case 0x9fc5ec4e: return autocomplete_type_audio (T);
+ case 0x603a13b1: return autocomplete_type_bare_audio (T);
+ case 0x7bf2e6f6: return autocomplete_type_authorization (T);
+ case 0x840d1909: return autocomplete_type_bare_authorization (T);
+ case 0x250be282: return autocomplete_type_bool (T);
+ case 0xdaf41d7d: return autocomplete_type_bare_bool (T);
+ case 0x75e7ea6c: return autocomplete_type_bot_command (T);
+ case 0x8a181593: return autocomplete_type_bare_bot_command (T);
+ case 0xb2e16f93: return autocomplete_type_bot_info (T);
+ case 0x4d1e906c: return autocomplete_type_bare_bot_info (T);
+ case 0x0ee1379f: return autocomplete_type_bytes (T);
+ case 0xf11ec860: return autocomplete_type_bare_bytes (T);
+ case 0x7bd865dc: return autocomplete_type_chat (T);
+ case 0x84279a23: return autocomplete_type_bare_chat (T);
+ case 0x2e02a614: return autocomplete_type_chat_full (T);
+ case 0xd1fd59eb: return autocomplete_type_bare_chat_full (T);
+ case 0x94f910b1: return autocomplete_type_chat_invite (T);
+ case 0x6b06ef4e: return autocomplete_type_bare_chat_invite (T);
+ case 0x3631cf4c: return autocomplete_type_chat_located (T);
+ case 0xc9ce30b3: return autocomplete_type_bare_chat_located (T);
+ case 0xc8d7493e: return autocomplete_type_chat_participant (T);
+ case 0x3728b6c1: return autocomplete_type_bare_chat_participant (T);
+ case 0x77930f9f: return autocomplete_type_chat_participants (T);
+ case 0x886cf060: return autocomplete_type_bare_chat_participants (T);
+ case 0x56922676: return autocomplete_type_chat_photo (T);
+ case 0xa96dd989: return autocomplete_type_bare_chat_photo (T);
+ case 0x6643b654: return autocomplete_type_client_d_h_inner_data (T);
+ case 0x99bc49ab: return autocomplete_type_bare_client_d_h_inner_data (T);
+ case 0x4e32b894: return autocomplete_type_config (T);
+ case 0xb1cd476b: return autocomplete_type_bare_config (T);
+ case 0xf911c994: return autocomplete_type_contact (T);
+ case 0x06ee366b: return autocomplete_type_bare_contact (T);
+ case 0x561bc879: return autocomplete_type_contact_blocked (T);
+ case 0xa9e43786: return autocomplete_type_bare_contact_blocked (T);
+ case 0xea879f95: return autocomplete_type_contact_found (T);
+ case 0x1578606a: return autocomplete_type_bare_contact_found (T);
+ case 0x522fbc63: return autocomplete_type_contact_link (T);
+ case 0xadd0439c: return autocomplete_type_bare_contact_link (T);
+ case 0xd3680c61: return autocomplete_type_contact_status (T);
+ case 0x2c97f39e: return autocomplete_type_bare_contact_status (T);
+ case 0x3de191a1: return autocomplete_type_contact_suggested (T);
+ case 0xc21e6e5e: return autocomplete_type_bare_contact_suggested (T);
+ case 0x2b1a62f0: return autocomplete_type_dc_option (T);
+ case 0xd4e59d0f: return autocomplete_type_bare_dc_option (T);
+ case 0x535b7918: return autocomplete_type_decrypted_message (T);
+ case 0xaca486e7: return autocomplete_type_bare_decrypted_message (T);
+ case 0x4e0eefde: return autocomplete_type_decrypted_message_action (T);
+ case 0xb1f11021: return autocomplete_type_bare_decrypted_message_action (T);
+ case 0x1be31789: return autocomplete_type_decrypted_message_layer (T);
+ case 0xe41ce876: return autocomplete_type_bare_decrypted_message_layer (T);
+ case 0x34e0d674: return autocomplete_type_decrypted_message_media (T);
+ case 0xcb1f298b: return autocomplete_type_bare_decrypted_message_media (T);
+ case 0xc1dd804a: return autocomplete_type_dialog (T);
+ case 0x3e227fb5: return autocomplete_type_bare_dialog (T);
+ case 0xae636f24: return autocomplete_type_disabled_feature (T);
+ case 0x519c90db: return autocomplete_type_bare_disabled_feature (T);
+ case 0x51a73418: return autocomplete_type_document (T);
+ case 0xae58cbe7: return autocomplete_type_bare_document (T);
+ case 0x97c637a3: return autocomplete_type_document_attribute (T);
+ case 0x6839c85c: return autocomplete_type_bare_document_attribute (T);
+ case 0x2210c154: return autocomplete_type_double (T);
+ case 0xddef3eab: return autocomplete_type_bare_double (T);
+ case 0xb1718213: return autocomplete_type_encrypted_chat (T);
+ case 0x4e8e7dec: return autocomplete_type_bare_encrypted_chat (T);
+ case 0x886fd032: return autocomplete_type_encrypted_file (T);
+ case 0x77902fcd: return autocomplete_type_bare_encrypted_file (T);
+ case 0xce6b8a1e: return autocomplete_type_encrypted_message (T);
+ case 0x319475e1: return autocomplete_type_bare_encrypted_message (T);
+ case 0xc4b9f9bb: return autocomplete_type_error (T);
+ case 0x3b460644: return autocomplete_type_bare_error (T);
+ case 0x95f132d5: return autocomplete_type_exported_chat_invite (T);
+ case 0x6a0ecd2a: return autocomplete_type_bare_exported_chat_invite (T);
+ case 0x2f8ffb30: return autocomplete_type_file_location (T);
+ case 0xd07004cf: return autocomplete_type_bare_file_location (T);
+ case 0xf67b4034: return autocomplete_type_geo_chat_message (T);
+ case 0x0984bfcb: return autocomplete_type_bare_geo_chat_message (T);
+ case 0x315e0a53: return autocomplete_type_geo_point (T);
+ case 0xcea1f5ac: return autocomplete_type_bare_geo_point (T);
+ case 0xd0028438: return autocomplete_type_imported_contact (T);
+ case 0x2ffd7bc7: return autocomplete_type_bare_imported_contact (T);
+ case 0x770656a8: return autocomplete_type_input_app_event (T);
+ case 0x88f9a957: return autocomplete_type_bare_input_app_event (T);
+ case 0xae8e9c7b: return autocomplete_type_input_audio (T);
+ case 0x51716384: return autocomplete_type_bare_input_audio (T);
+ case 0x3a60776d: return autocomplete_type_input_chat_photo (T);
+ case 0xc59f8892: return autocomplete_type_bare_input_chat_photo (T);
+ case 0xf392b7f4: return autocomplete_type_input_contact (T);
+ case 0x0c6d480b: return autocomplete_type_bare_input_contact (T);
+ case 0x6a8963fc: return autocomplete_type_input_document (T);
+ case 0x95769c03: return autocomplete_type_bare_input_document (T);
+ case 0xf141b5e1: return autocomplete_type_input_encrypted_chat (T);
+ case 0x0ebe4a1e: return autocomplete_type_bare_input_encrypted_chat (T);
+ case 0x0b5c064f: return autocomplete_type_input_encrypted_file (T);
+ case 0xf4a3f9b0: return autocomplete_type_bare_input_encrypted_file (T);
+ case 0x0f60f9ca: return autocomplete_type_input_file (T);
+ case 0xf09f0635: return autocomplete_type_bare_input_file (T);
+ case 0xe6daa38b: return autocomplete_type_input_file_location (T);
+ case 0x19255c74: return autocomplete_type_bare_input_file_location (T);
+ case 0x74d456fa: return autocomplete_type_input_geo_chat (T);
+ case 0x8b2ba905: return autocomplete_type_bare_input_geo_chat (T);
+ case 0x17768f1f: return autocomplete_type_input_geo_point (T);
+ case 0xe88970e0: return autocomplete_type_bare_input_geo_point (T);
+ case 0xb32c91dd: return autocomplete_type_input_media (T);
+ case 0x4cd36e22: return autocomplete_type_bare_input_media (T);
+ case 0x02b6911b: return autocomplete_type_input_notify_peer (T);
+ case 0xfd496ee4: return autocomplete_type_bare_input_notify_peer (T);
+ case 0x9e67268d: return autocomplete_type_input_peer (T);
+ case 0x6198d972: return autocomplete_type_bare_input_peer (T);
+ case 0x185a48ac: return autocomplete_type_input_peer_notify_events (T);
+ case 0xe7a5b753: return autocomplete_type_bare_input_peer_notify_events (T);
+ case 0x46a2ce98: return autocomplete_type_input_peer_notify_settings (T);
+ case 0xb95d3167: return autocomplete_type_bare_input_peer_notify_settings (T);
+ case 0xe74279c9: return autocomplete_type_input_photo (T);
+ case 0x18bd8636: return autocomplete_type_bare_input_photo (T);
+ case 0x7477e321: return autocomplete_type_input_photo_crop (T);
+ case 0x8b881cde: return autocomplete_type_bare_input_photo_crop (T);
+ case 0x4f96cb18: return autocomplete_type_input_privacy_key (T);
+ case 0xb06934e7: return autocomplete_type_bare_input_privacy_key (T);
+ case 0x4b815163: return autocomplete_type_input_privacy_rule (T);
+ case 0xb47eae9c: return autocomplete_type_bare_input_privacy_rule (T);
+ case 0xe44d415c: return autocomplete_type_input_sticker_set (T);
+ case 0x1bb2bea3: return autocomplete_type_bare_input_sticker_set (T);
+ case 0xadfe0c6a: return autocomplete_type_input_user (T);
+ case 0x5201f395: return autocomplete_type_bare_input_user (T);
+ case 0xbb5f7a27: return autocomplete_type_input_video (T);
+ case 0x44a085d8: return autocomplete_type_bare_input_video (T);
+ case 0xa8509bda: return autocomplete_type_int (T);
+ case 0x57af6425: return autocomplete_type_bare_int (T);
+ case 0x7d36c439: return autocomplete_type_int128 (T);
+ case 0x82c93bc6: return autocomplete_type_bare_int128 (T);
+ case 0xf2c798b3: return autocomplete_type_int256 (T);
+ case 0x0d38674c: return autocomplete_type_bare_int256 (T);
+ case 0xa2fa4880: return autocomplete_type_keyboard_button (T);
+ case 0x5d05b77f: return autocomplete_type_bare_keyboard_button (T);
+ case 0x77608b83: return autocomplete_type_keyboard_button_row (T);
+ case 0x889f747c: return autocomplete_type_bare_keyboard_button_row (T);
+ case 0x22076cba: return autocomplete_type_long (T);
+ case 0xddf89345: return autocomplete_type_bare_long (T);
+ case 0x5d652a7f: return autocomplete_type_message (T);
+ case 0xa29ad580: return autocomplete_type_bare_message (T);
+ case 0x383415fa: return autocomplete_type_message_action (T);
+ case 0xc7cbea05: return autocomplete_type_bare_message_action (T);
+ case 0x95f2471a: return autocomplete_type_message_media (T);
+ case 0x6a0db8e5: return autocomplete_type_bare_message_media (T);
+ case 0x80895ae0: return autocomplete_type_messages_filter (T);
+ case 0x7f76a51f: return autocomplete_type_bare_messages_filter (T);
+ case 0x8e1a1775: return autocomplete_type_nearest_dc (T);
+ case 0x71e5e88a: return autocomplete_type_bare_nearest_dc (T);
+ case 0x9fcb8237: return autocomplete_type_notify_peer (T);
+ case 0x60347dc8: return autocomplete_type_bare_notify_peer (T);
+ case 0x56730bcc: return autocomplete_type_null (T);
+ case 0xa98cf433: return autocomplete_type_bare_null (T);
+ case 0xbfa3de38: return autocomplete_type_p_q_inner_data (T);
+ case 0x405c21c7: return autocomplete_type_bare_p_q_inner_data (T);
+ case 0x276159d6: return autocomplete_type_peer (T);
+ case 0xd89ea629: return autocomplete_type_bare_peer (T);
+ case 0xc0c8d13b: return autocomplete_type_peer_notify_events (T);
+ case 0x3f372ec4: return autocomplete_type_bare_peer_notify_events (T);
+ case 0xfdf894fc: return autocomplete_type_peer_notify_settings (T);
+ case 0x02076b03: return autocomplete_type_bare_peer_notify_settings (T);
+ case 0xc207550a: return autocomplete_type_photo (T);
+ case 0x3df8aaf5: return autocomplete_type_bare_photo (T);
+ case 0x900f60dd: return autocomplete_type_photo_size (T);
+ case 0x6ff09f22: return autocomplete_type_bare_photo_size (T);
+ case 0xbc2eab30: return autocomplete_type_privacy_key (T);
+ case 0x43d154cf: return autocomplete_type_bare_privacy_key (T);
+ case 0xa8638aec: return autocomplete_type_privacy_rule (T);
+ case 0x579c7513: return autocomplete_type_bare_privacy_rule (T);
+ case 0xa384b779: return autocomplete_type_received_notify_message (T);
+ case 0x5c7b4886: return autocomplete_type_bare_received_notify_message (T);
+ case 0x612ca4a9: return autocomplete_type_reply_markup (T);
+ case 0x9ed35b56: return autocomplete_type_bare_reply_markup (T);
+ case 0x05162463: return autocomplete_type_res_p_q (T);
+ case 0xfae9db9c: return autocomplete_type_bare_res_p_q (T);
+ case 0x70541c7e: return autocomplete_type_send_message_action (T);
+ case 0x8fabe381: return autocomplete_type_bare_send_message_action (T);
+ case 0xa9230301: return autocomplete_type_server_d_h_params (T);
+ case 0x56dcfcfe: return autocomplete_type_bare_server_d_h_params (T);
+ case 0xb5890dba: return autocomplete_type_server_d_h_inner_data (T);
+ case 0x4a76f245: return autocomplete_type_bare_server_d_h_inner_data (T);
+ case 0xdb8a468f: return autocomplete_type_set_client_d_h_params_answer (T);
+ case 0x2475b970: return autocomplete_type_bare_set_client_d_h_params_answer (T);
+ case 0x12b299d4: return autocomplete_type_sticker_pack (T);
+ case 0xed4d662b: return autocomplete_type_bare_sticker_pack (T);
+ case 0xa7a43b17: return autocomplete_type_sticker_set (T);
+ case 0x585bc4e8: return autocomplete_type_bare_sticker_set (T);
+ case 0xb5286e24: return autocomplete_type_string (T);
+ case 0x4ad791db: return autocomplete_type_bare_string (T);
+ case 0x2e02b27e: return autocomplete_type_update (T);
+ case 0xd1fd4d81: return autocomplete_type_bare_update (T);
+ case 0x22499d27: return autocomplete_type_updates (T);
+ case 0xddb662d8: return autocomplete_type_bare_updates (T);
+ case 0x02e6c0c8: return autocomplete_type_user (T);
+ case 0xfd193f37: return autocomplete_type_bare_user (T);
+ case 0x5a89ac5b: return autocomplete_type_user_full (T);
+ case 0xa57653a4: return autocomplete_type_bare_user_full (T);
+ case 0x9a486229: return autocomplete_type_user_profile_photo (T);
+ case 0x65b79dd6: return autocomplete_type_bare_user_profile_photo (T);
+ case 0x76de9570: return autocomplete_type_user_status (T);
+ case 0x89216a8f: return autocomplete_type_bare_user_status (T);
+ case 0x1cb5c415: return autocomplete_type_vector (T);
+ case 0xe34a3bea: return autocomplete_type_bare_vector (T);
+ case 0x1716b174: return autocomplete_type_video (T);
+ case 0xe8e94e8b: return autocomplete_type_bare_video (T);
+ case 0xafa14973: return autocomplete_type_wall_paper (T);
+ case 0x505eb68c: return autocomplete_type_bare_wall_paper (T);
+ case 0x8d8c0d41: return autocomplete_type_web_page (T);
+ case 0x7273f2be: return autocomplete_type_bare_web_page (T);
+ case 0x1250abde: return autocomplete_type_account_authorizations (T);
+ case 0xedaf5421: return autocomplete_type_bare_account_authorizations (T);
+ case 0xeac2a804: return autocomplete_type_account_password (T);
+ case 0x153d57fb: return autocomplete_type_bare_account_password (T);
+ case 0xbcfc532c: return autocomplete_type_account_password_input_settings (T);
+ case 0x4303acd3: return autocomplete_type_bare_account_password_input_settings (T);
+ case 0xb7b72ab3: return autocomplete_type_account_password_settings (T);
+ case 0x4848d54c: return autocomplete_type_bare_account_password_settings (T);
+ case 0x554abb6f: return autocomplete_type_account_privacy_rules (T);
+ case 0xaab54490: return autocomplete_type_bare_account_privacy_rules (T);
+ case 0xa4f58c4c: return autocomplete_type_account_sent_change_phone_code (T);
+ case 0x5b0a73b3: return autocomplete_type_bare_account_sent_change_phone_code (T);
+ case 0xff036af1: return autocomplete_type_auth_authorization (T);
+ case 0x00fc950e: return autocomplete_type_bare_auth_authorization (T);
+ case 0x811ea28e: return autocomplete_type_auth_checked_phone (T);
+ case 0x7ee15d71: return autocomplete_type_bare_auth_checked_phone (T);
+ case 0xdf969c2d: return autocomplete_type_auth_exported_authorization (T);
+ case 0x206963d2: return autocomplete_type_bare_auth_exported_authorization (T);
+ case 0x137948a5: return autocomplete_type_auth_password_recovery (T);
+ case 0xec86b75a: return autocomplete_type_bare_auth_password_recovery (T);
+ case 0x0cc8bc16: return autocomplete_type_auth_sent_code (T);
+ case 0xf33743e9: return autocomplete_type_bare_auth_sent_code (T);
+ case 0x0377168f: return autocomplete_type_binlog_encr_key (T);
+ case 0xfc88e970: return autocomplete_type_bare_binlog_encr_key (T);
+ case 0x66ff03a6: return autocomplete_type_binlog_update (T);
+ case 0x9900fc59: return autocomplete_type_bare_binlog_update (T);
+ case 0x8c1b8fb4: return autocomplete_type_contacts_blocked (T);
+ case 0x73e4704b: return autocomplete_type_bare_contacts_blocked (T);
+ case 0xd8c02560: return autocomplete_type_contacts_contacts (T);
+ case 0x273fda9f: return autocomplete_type_bare_contacts_contacts (T);
+ case 0x0566000e: return autocomplete_type_contacts_found (T);
+ case 0xfa99fff1: return autocomplete_type_bare_contacts_found (T);
+ case 0xad524315: return autocomplete_type_contacts_imported_contacts (T);
+ case 0x52adbcea: return autocomplete_type_bare_contacts_imported_contacts (T);
+ case 0x3ace484c: return autocomplete_type_contacts_link (T);
+ case 0xc531b7b3: return autocomplete_type_bare_contacts_link (T);
+ case 0x5649dcc5: return autocomplete_type_contacts_suggested (T);
+ case 0xa9b6233a: return autocomplete_type_bare_contacts_suggested (T);
+ case 0x48feb267: return autocomplete_type_geochats_located (T);
+ case 0xb7014d98: return autocomplete_type_bare_geochats_located (T);
+ case 0x6d0a0e59: return autocomplete_type_geochats_messages (T);
+ case 0x92f5f1a6: return autocomplete_type_bare_geochats_messages (T);
+ case 0x17b1578b: return autocomplete_type_geochats_stated_message (T);
+ case 0xe84ea874: return autocomplete_type_bare_geochats_stated_message (T);
+ case 0x4ddd9627: return autocomplete_type_help_app_update (T);
+ case 0xb22269d8: return autocomplete_type_bare_help_app_update (T);
+ case 0x18cb9f78: return autocomplete_type_help_invite_text (T);
+ case 0xe7346087: return autocomplete_type_bare_help_invite_text (T);
+ case 0x17c6b5f6: return autocomplete_type_help_support (T);
+ case 0xe8394a09: return autocomplete_type_bare_help_support (T);
+ case 0xb45c69d1: return autocomplete_type_messages_affected_history (T);
+ case 0x4ba3962e: return autocomplete_type_bare_messages_affected_history (T);
+ case 0x84d19185: return autocomplete_type_messages_affected_messages (T);
+ case 0x7b2e6e7a: return autocomplete_type_bare_messages_affected_messages (T);
+ case 0xb485502f: return autocomplete_type_messages_all_stickers (T);
+ case 0x4b7aafd0: return autocomplete_type_bare_messages_all_stickers (T);
+ case 0xe5d7d19c: return autocomplete_type_messages_chat_full (T);
+ case 0x1a282e63: return autocomplete_type_bare_messages_chat_full (T);
+ case 0x64ff9fd5: return autocomplete_type_messages_chats (T);
+ case 0x9b00602a: return autocomplete_type_bare_messages_chats (T);
+ case 0xecc058e8: return autocomplete_type_messages_dh_config (T);
+ case 0x133fa717: return autocomplete_type_bare_messages_dh_config (T);
+ case 0x645af8b3: return autocomplete_type_messages_dialogs (T);
+ case 0x9ba5074c: return autocomplete_type_bare_messages_dialogs (T);
+ case 0x3f4e0648: return autocomplete_type_messages_message (T);
+ case 0xc0b1f9b7: return autocomplete_type_bare_messages_message (T);
+ case 0x8735e464: return autocomplete_type_messages_messages (T);
+ case 0x78ca1b9b: return autocomplete_type_bare_messages_messages (T);
+ case 0xc29c7607: return autocomplete_type_messages_sent_encrypted_message (T);
+ case 0x3d6389f8: return autocomplete_type_bare_messages_sent_encrypted_message (T);
+ case 0x799ce190: return autocomplete_type_messages_sent_message (T);
+ case 0x86631e6f: return autocomplete_type_bare_messages_sent_message (T);
+ case 0xb60a24a6: return autocomplete_type_messages_sticker_set (T);
+ case 0x49f5db59: return autocomplete_type_bare_messages_sticker_set (T);
+ case 0x7bfa5710: return autocomplete_type_messages_stickers (T);
+ case 0x8405a8ef: return autocomplete_type_bare_messages_stickers (T);
+ case 0x20212ca8: return autocomplete_type_photos_photo (T);
+ case 0xdfded357: return autocomplete_type_bare_photos_photo (T);
+ case 0x98cf75f1: return autocomplete_type_photos_photos (T);
+ case 0x67308a0e: return autocomplete_type_bare_photos_photos (T);
+ case 0x3e2838a8: return autocomplete_type_storage_file_type (T);
+ case 0xc1d7c757: return autocomplete_type_bare_storage_file_type (T);
+ case 0xf57a2419: return autocomplete_type_updates_difference (T);
+ case 0x0a85dbe6: return autocomplete_type_bare_updates_difference (T);
+ case 0xa56c2a3e: return autocomplete_type_updates_state (T);
+ case 0x5a93d5c1: return autocomplete_type_bare_updates_state (T);
+ case 0x096a18d5: return autocomplete_type_upload_file (T);
+ case 0xf695e72a: return autocomplete_type_bare_upload_file (T);
+ default: return -1; }
+}
+int do_autocomplete_function (const char *text, int text_len, int index, char **R) {
+ index ++;
+ if (index == 0) { if (!strncmp (text, "account.changePhone", text_len)) { *R = tstrdup ("account.changePhone"); return index; } else { index ++; }}
+ if (index == 1) { if (!strncmp (text, "account.checkUsername", text_len)) { *R = tstrdup ("account.checkUsername"); return index; } else { index ++; }}
+ if (index == 2) { if (!strncmp (text, "account.deleteAccount", text_len)) { *R = tstrdup ("account.deleteAccount"); return index; } else { index ++; }}
+ if (index == 3) { if (!strncmp (text, "account.getAccountTTL", text_len)) { *R = tstrdup ("account.getAccountTTL"); return index; } else { index ++; }}
+ if (index == 4) { if (!strncmp (text, "account.getAuthorizations", text_len)) { *R = tstrdup ("account.getAuthorizations"); return index; } else { index ++; }}
+ if (index == 5) { if (!strncmp (text, "account.getNotifySettings", text_len)) { *R = tstrdup ("account.getNotifySettings"); return index; } else { index ++; }}
+ if (index == 6) { if (!strncmp (text, "account.getPassword", text_len)) { *R = tstrdup ("account.getPassword"); return index; } else { index ++; }}
+ if (index == 7) { if (!strncmp (text, "account.getPasswordSettings", text_len)) { *R = tstrdup ("account.getPasswordSettings"); return index; } else { index ++; }}
+ if (index == 8) { if (!strncmp (text, "account.getPrivacy", text_len)) { *R = tstrdup ("account.getPrivacy"); return index; } else { index ++; }}
+ if (index == 9) { if (!strncmp (text, "account.getWallPapers", text_len)) { *R = tstrdup ("account.getWallPapers"); return index; } else { index ++; }}
+ if (index == 10) { if (!strncmp (text, "account.registerDevice", text_len)) { *R = tstrdup ("account.registerDevice"); return index; } else { index ++; }}
+ if (index == 11) { if (!strncmp (text, "account.resetAuthorization", text_len)) { *R = tstrdup ("account.resetAuthorization"); return index; } else { index ++; }}
+ if (index == 12) { if (!strncmp (text, "account.resetNotifySettings", text_len)) { *R = tstrdup ("account.resetNotifySettings"); return index; } else { index ++; }}
+ if (index == 13) { if (!strncmp (text, "account.sendChangePhoneCode", text_len)) { *R = tstrdup ("account.sendChangePhoneCode"); return index; } else { index ++; }}
+ if (index == 14) { if (!strncmp (text, "account.setAccountTTL", text_len)) { *R = tstrdup ("account.setAccountTTL"); return index; } else { index ++; }}
+ if (index == 15) { if (!strncmp (text, "account.setPrivacy", text_len)) { *R = tstrdup ("account.setPrivacy"); return index; } else { index ++; }}
+ if (index == 16) { if (!strncmp (text, "account.unregisterDevice", text_len)) { *R = tstrdup ("account.unregisterDevice"); return index; } else { index ++; }}
+ if (index == 17) { if (!strncmp (text, "account.updateDeviceLocked", text_len)) { *R = tstrdup ("account.updateDeviceLocked"); return index; } else { index ++; }}
+ if (index == 18) { if (!strncmp (text, "account.updateNotifySettings", text_len)) { *R = tstrdup ("account.updateNotifySettings"); return index; } else { index ++; }}
+ if (index == 19) { if (!strncmp (text, "account.updatePasswordSettings", text_len)) { *R = tstrdup ("account.updatePasswordSettings"); return index; } else { index ++; }}
+ if (index == 20) { if (!strncmp (text, "account.updateProfile", text_len)) { *R = tstrdup ("account.updateProfile"); return index; } else { index ++; }}
+ if (index == 21) { if (!strncmp (text, "account.updateStatus", text_len)) { *R = tstrdup ("account.updateStatus"); return index; } else { index ++; }}
+ if (index == 22) { if (!strncmp (text, "account.updateUsername", text_len)) { *R = tstrdup ("account.updateUsername"); return index; } else { index ++; }}
+ if (index == 23) { if (!strncmp (text, "auth.bindTempAuthKey", text_len)) { *R = tstrdup ("auth.bindTempAuthKey"); return index; } else { index ++; }}
+ if (index == 24) { if (!strncmp (text, "auth.checkPassword", text_len)) { *R = tstrdup ("auth.checkPassword"); return index; } else { index ++; }}
+ if (index == 25) { if (!strncmp (text, "auth.checkPhone", text_len)) { *R = tstrdup ("auth.checkPhone"); return index; } else { index ++; }}
+ if (index == 26) { if (!strncmp (text, "auth.exportAuthorization", text_len)) { *R = tstrdup ("auth.exportAuthorization"); return index; } else { index ++; }}
+ if (index == 27) { if (!strncmp (text, "auth.importAuthorization", text_len)) { *R = tstrdup ("auth.importAuthorization"); return index; } else { index ++; }}
+ if (index == 28) { if (!strncmp (text, "auth.importBotAuthorization", text_len)) { *R = tstrdup ("auth.importBotAuthorization"); return index; } else { index ++; }}
+ if (index == 29) { if (!strncmp (text, "auth.logOut", text_len)) { *R = tstrdup ("auth.logOut"); return index; } else { index ++; }}
+ if (index == 30) { if (!strncmp (text, "auth.recoverPassword", text_len)) { *R = tstrdup ("auth.recoverPassword"); return index; } else { index ++; }}
+ if (index == 31) { if (!strncmp (text, "auth.requestPasswordRecovery", text_len)) { *R = tstrdup ("auth.requestPasswordRecovery"); return index; } else { index ++; }}
+ if (index == 32) { if (!strncmp (text, "auth.resetAuthorizations", text_len)) { *R = tstrdup ("auth.resetAuthorizations"); return index; } else { index ++; }}
+ if (index == 33) { if (!strncmp (text, "auth.sendCall", text_len)) { *R = tstrdup ("auth.sendCall"); return index; } else { index ++; }}
+ if (index == 34) { if (!strncmp (text, "auth.sendCode", text_len)) { *R = tstrdup ("auth.sendCode"); return index; } else { index ++; }}
+ if (index == 35) { if (!strncmp (text, "auth.sendInvites", text_len)) { *R = tstrdup ("auth.sendInvites"); return index; } else { index ++; }}
+ if (index == 36) { if (!strncmp (text, "auth.sendSms", text_len)) { *R = tstrdup ("auth.sendSms"); return index; } else { index ++; }}
+ if (index == 37) { if (!strncmp (text, "auth.signIn", text_len)) { *R = tstrdup ("auth.signIn"); return index; } else { index ++; }}
+ if (index == 38) { if (!strncmp (text, "auth.signUp", text_len)) { *R = tstrdup ("auth.signUp"); return index; } else { index ++; }}
+ if (index == 39) { if (!strncmp (text, "contacts.block", text_len)) { *R = tstrdup ("contacts.block"); return index; } else { index ++; }}
+ if (index == 40) { if (!strncmp (text, "contacts.deleteContact", text_len)) { *R = tstrdup ("contacts.deleteContact"); return index; } else { index ++; }}
+ if (index == 41) { if (!strncmp (text, "contacts.deleteContacts", text_len)) { *R = tstrdup ("contacts.deleteContacts"); return index; } else { index ++; }}
+ if (index == 42) { if (!strncmp (text, "contacts.exportCard", text_len)) { *R = tstrdup ("contacts.exportCard"); return index; } else { index ++; }}
+ if (index == 43) { if (!strncmp (text, "contacts.getBlocked", text_len)) { *R = tstrdup ("contacts.getBlocked"); return index; } else { index ++; }}
+ if (index == 44) { if (!strncmp (text, "contacts.getContacts", text_len)) { *R = tstrdup ("contacts.getContacts"); return index; } else { index ++; }}
+ if (index == 45) { if (!strncmp (text, "contacts.getStatuses", text_len)) { *R = tstrdup ("contacts.getStatuses"); return index; } else { index ++; }}
+ if (index == 46) { if (!strncmp (text, "contacts.getSuggested", text_len)) { *R = tstrdup ("contacts.getSuggested"); return index; } else { index ++; }}
+ if (index == 47) { if (!strncmp (text, "contacts.importCard", text_len)) { *R = tstrdup ("contacts.importCard"); return index; } else { index ++; }}
+ if (index == 48) { if (!strncmp (text, "contacts.importContacts", text_len)) { *R = tstrdup ("contacts.importContacts"); return index; } else { index ++; }}
+ if (index == 49) { if (!strncmp (text, "contacts.resolveUsername", text_len)) { *R = tstrdup ("contacts.resolveUsername"); return index; } else { index ++; }}
+ if (index == 50) { if (!strncmp (text, "contacts.search", text_len)) { *R = tstrdup ("contacts.search"); return index; } else { index ++; }}
+ if (index == 51) { if (!strncmp (text, "contacts.unblock", text_len)) { *R = tstrdup ("contacts.unblock"); return index; } else { index ++; }}
+ if (index == 52) { if (!strncmp (text, "geochats.checkin", text_len)) { *R = tstrdup ("geochats.checkin"); return index; } else { index ++; }}
+ if (index == 53) { if (!strncmp (text, "geochats.createGeoChat", text_len)) { *R = tstrdup ("geochats.createGeoChat"); return index; } else { index ++; }}
+ if (index == 54) { if (!strncmp (text, "geochats.editChatPhoto", text_len)) { *R = tstrdup ("geochats.editChatPhoto"); return index; } else { index ++; }}
+ if (index == 55) { if (!strncmp (text, "geochats.editChatTitle", text_len)) { *R = tstrdup ("geochats.editChatTitle"); return index; } else { index ++; }}
+ if (index == 56) { if (!strncmp (text, "geochats.getFullChat", text_len)) { *R = tstrdup ("geochats.getFullChat"); return index; } else { index ++; }}
+ if (index == 57) { if (!strncmp (text, "geochats.getHistory", text_len)) { *R = tstrdup ("geochats.getHistory"); return index; } else { index ++; }}
+ if (index == 58) { if (!strncmp (text, "geochats.getLocated", text_len)) { *R = tstrdup ("geochats.getLocated"); return index; } else { index ++; }}
+ if (index == 59) { if (!strncmp (text, "geochats.getRecents", text_len)) { *R = tstrdup ("geochats.getRecents"); return index; } else { index ++; }}
+ if (index == 60) { if (!strncmp (text, "geochats.search", text_len)) { *R = tstrdup ("geochats.search"); return index; } else { index ++; }}
+ if (index == 61) { if (!strncmp (text, "geochats.sendMedia", text_len)) { *R = tstrdup ("geochats.sendMedia"); return index; } else { index ++; }}
+ if (index == 62) { if (!strncmp (text, "geochats.sendMessage", text_len)) { *R = tstrdup ("geochats.sendMessage"); return index; } else { index ++; }}
+ if (index == 63) { if (!strncmp (text, "geochats.setTyping", text_len)) { *R = tstrdup ("geochats.setTyping"); return index; } else { index ++; }}
+ if (index == 64) { if (!strncmp (text, "help.getAppUpdate", text_len)) { *R = tstrdup ("help.getAppUpdate"); return index; } else { index ++; }}
+ if (index == 65) { if (!strncmp (text, "help.getConfig", text_len)) { *R = tstrdup ("help.getConfig"); return index; } else { index ++; }}
+ if (index == 66) { if (!strncmp (text, "help.getInviteText", text_len)) { *R = tstrdup ("help.getInviteText"); return index; } else { index ++; }}
+ if (index == 67) { if (!strncmp (text, "help.getNearestDc", text_len)) { *R = tstrdup ("help.getNearestDc"); return index; } else { index ++; }}
+ if (index == 68) { if (!strncmp (text, "help.getSupport", text_len)) { *R = tstrdup ("help.getSupport"); return index; } else { index ++; }}
+ if (index == 69) { if (!strncmp (text, "help.saveAppLog", text_len)) { *R = tstrdup ("help.saveAppLog"); return index; } else { index ++; }}
+ if (index == 70) { if (!strncmp (text, "initConnection", text_len)) { *R = tstrdup ("initConnection"); return index; } else { index ++; }}
+ if (index == 71) { if (!strncmp (text, "invokeAfterMsg", text_len)) { *R = tstrdup ("invokeAfterMsg"); return index; } else { index ++; }}
+ if (index == 72) { if (!strncmp (text, "invokeAfterMsgs", text_len)) { *R = tstrdup ("invokeAfterMsgs"); return index; } else { index ++; }}
+ if (index == 73) { if (!strncmp (text, "invokeWithLayer", text_len)) { *R = tstrdup ("invokeWithLayer"); return index; } else { index ++; }}
+ if (index == 74) { if (!strncmp (text, "invokeWithoutUpdates", text_len)) { *R = tstrdup ("invokeWithoutUpdates"); return index; } else { index ++; }}
+ if (index == 75) { if (!strncmp (text, "messages.acceptEncryption", text_len)) { *R = tstrdup ("messages.acceptEncryption"); return index; } else { index ++; }}
+ if (index == 76) { if (!strncmp (text, "messages.addChatUser", text_len)) { *R = tstrdup ("messages.addChatUser"); return index; } else { index ++; }}
+ if (index == 77) { if (!strncmp (text, "messages.checkChatInvite", text_len)) { *R = tstrdup ("messages.checkChatInvite"); return index; } else { index ++; }}
+ if (index == 78) { if (!strncmp (text, "messages.createChat", text_len)) { *R = tstrdup ("messages.createChat"); return index; } else { index ++; }}
+ if (index == 79) { if (!strncmp (text, "messages.deleteChatUser", text_len)) { *R = tstrdup ("messages.deleteChatUser"); return index; } else { index ++; }}
+ if (index == 80) { if (!strncmp (text, "messages.deleteHistory", text_len)) { *R = tstrdup ("messages.deleteHistory"); return index; } else { index ++; }}
+ if (index == 81) { if (!strncmp (text, "messages.deleteMessages", text_len)) { *R = tstrdup ("messages.deleteMessages"); return index; } else { index ++; }}
+ if (index == 82) { if (!strncmp (text, "messages.discardEncryption", text_len)) { *R = tstrdup ("messages.discardEncryption"); return index; } else { index ++; }}
+ if (index == 83) { if (!strncmp (text, "messages.editChatPhoto", text_len)) { *R = tstrdup ("messages.editChatPhoto"); return index; } else { index ++; }}
+ if (index == 84) { if (!strncmp (text, "messages.editChatTitle", text_len)) { *R = tstrdup ("messages.editChatTitle"); return index; } else { index ++; }}
+ if (index == 85) { if (!strncmp (text, "messages.exportChatInvite", text_len)) { *R = tstrdup ("messages.exportChatInvite"); return index; } else { index ++; }}
+ if (index == 86) { if (!strncmp (text, "messages.forwardMessage", text_len)) { *R = tstrdup ("messages.forwardMessage"); return index; } else { index ++; }}
+ if (index == 87) { if (!strncmp (text, "messages.forwardMessages", text_len)) { *R = tstrdup ("messages.forwardMessages"); return index; } else { index ++; }}
+ if (index == 88) { if (!strncmp (text, "messages.getAllStickers", text_len)) { *R = tstrdup ("messages.getAllStickers"); return index; } else { index ++; }}
+ if (index == 89) { if (!strncmp (text, "messages.getChats", text_len)) { *R = tstrdup ("messages.getChats"); return index; } else { index ++; }}
+ if (index == 90) { if (!strncmp (text, "messages.getDhConfig", text_len)) { *R = tstrdup ("messages.getDhConfig"); return index; } else { index ++; }}
+ if (index == 91) { if (!strncmp (text, "messages.getDialogs", text_len)) { *R = tstrdup ("messages.getDialogs"); return index; } else { index ++; }}
+ if (index == 92) { if (!strncmp (text, "messages.getFullChat", text_len)) { *R = tstrdup ("messages.getFullChat"); return index; } else { index ++; }}
+ if (index == 93) { if (!strncmp (text, "messages.getHistory", text_len)) { *R = tstrdup ("messages.getHistory"); return index; } else { index ++; }}
+ if (index == 94) { if (!strncmp (text, "messages.getMessages", text_len)) { *R = tstrdup ("messages.getMessages"); return index; } else { index ++; }}
+ if (index == 95) { if (!strncmp (text, "messages.getStickerSet", text_len)) { *R = tstrdup ("messages.getStickerSet"); return index; } else { index ++; }}
+ if (index == 96) { if (!strncmp (text, "messages.getStickers", text_len)) { *R = tstrdup ("messages.getStickers"); return index; } else { index ++; }}
+ if (index == 97) { if (!strncmp (text, "messages.getWebPagePreview", text_len)) { *R = tstrdup ("messages.getWebPagePreview"); return index; } else { index ++; }}
+ if (index == 98) { if (!strncmp (text, "messages.importChatInvite", text_len)) { *R = tstrdup ("messages.importChatInvite"); return index; } else { index ++; }}
+ if (index == 99) { if (!strncmp (text, "messages.installStickerSet", text_len)) { *R = tstrdup ("messages.installStickerSet"); return index; } else { index ++; }}
+ if (index == 100) { if (!strncmp (text, "messages.readEncryptedHistory", text_len)) { *R = tstrdup ("messages.readEncryptedHistory"); return index; } else { index ++; }}
+ if (index == 101) { if (!strncmp (text, "messages.readHistory", text_len)) { *R = tstrdup ("messages.readHistory"); return index; } else { index ++; }}
+ if (index == 102) { if (!strncmp (text, "messages.readMessageContents", text_len)) { *R = tstrdup ("messages.readMessageContents"); return index; } else { index ++; }}
+ if (index == 103) { if (!strncmp (text, "messages.receivedMessages", text_len)) { *R = tstrdup ("messages.receivedMessages"); return index; } else { index ++; }}
+ if (index == 104) { if (!strncmp (text, "messages.receivedQueue", text_len)) { *R = tstrdup ("messages.receivedQueue"); return index; } else { index ++; }}
+ if (index == 105) { if (!strncmp (text, "messages.requestEncryption", text_len)) { *R = tstrdup ("messages.requestEncryption"); return index; } else { index ++; }}
+ if (index == 106) { if (!strncmp (text, "messages.search", text_len)) { *R = tstrdup ("messages.search"); return index; } else { index ++; }}
+ if (index == 107) { if (!strncmp (text, "messages.sendBroadcast", text_len)) { *R = tstrdup ("messages.sendBroadcast"); return index; } else { index ++; }}
+ if (index == 108) { if (!strncmp (text, "messages.sendEncrypted", text_len)) { *R = tstrdup ("messages.sendEncrypted"); return index; } else { index ++; }}
+ if (index == 109) { if (!strncmp (text, "messages.sendEncryptedFile", text_len)) { *R = tstrdup ("messages.sendEncryptedFile"); return index; } else { index ++; }}
+ if (index == 110) { if (!strncmp (text, "messages.sendEncryptedService", text_len)) { *R = tstrdup ("messages.sendEncryptedService"); return index; } else { index ++; }}
+ if (index == 111) { if (!strncmp (text, "messages.sendMedia", text_len)) { *R = tstrdup ("messages.sendMedia"); return index; } else { index ++; }}
+ if (index == 112) { if (!strncmp (text, "messages.sendMessage", text_len)) { *R = tstrdup ("messages.sendMessage"); return index; } else { index ++; }}
+ if (index == 113) { if (!strncmp (text, "messages.setEncryptedTyping", text_len)) { *R = tstrdup ("messages.setEncryptedTyping"); return index; } else { index ++; }}
+ if (index == 114) { if (!strncmp (text, "messages.setTyping", text_len)) { *R = tstrdup ("messages.setTyping"); return index; } else { index ++; }}
+ if (index == 115) { if (!strncmp (text, "messages.startBot", text_len)) { *R = tstrdup ("messages.startBot"); return index; } else { index ++; }}
+ if (index == 116) { if (!strncmp (text, "messages.uninstallStickerSet", text_len)) { *R = tstrdup ("messages.uninstallStickerSet"); return index; } else { index ++; }}
+ if (index == 117) { if (!strncmp (text, "photos.deletePhotos", text_len)) { *R = tstrdup ("photos.deletePhotos"); return index; } else { index ++; }}
+ if (index == 118) { if (!strncmp (text, "photos.getUserPhotos", text_len)) { *R = tstrdup ("photos.getUserPhotos"); return index; } else { index ++; }}
+ if (index == 119) { if (!strncmp (text, "photos.updateProfilePhoto", text_len)) { *R = tstrdup ("photos.updateProfilePhoto"); return index; } else { index ++; }}
+ if (index == 120) { if (!strncmp (text, "photos.uploadProfilePhoto", text_len)) { *R = tstrdup ("photos.uploadProfilePhoto"); return index; } else { index ++; }}
+ if (index == 121) { if (!strncmp (text, "req_DH_params", text_len)) { *R = tstrdup ("req_DH_params"); return index; } else { index ++; }}
+ if (index == 122) { if (!strncmp (text, "req_pq", text_len)) { *R = tstrdup ("req_pq"); return index; } else { index ++; }}
+ if (index == 123) { if (!strncmp (text, "set_client_DH_params", text_len)) { *R = tstrdup ("set_client_DH_params"); return index; } else { index ++; }}
+ if (index == 124) { if (!strncmp (text, "updates.getDifference", text_len)) { *R = tstrdup ("updates.getDifference"); return index; } else { index ++; }}
+ if (index == 125) { if (!strncmp (text, "updates.getState", text_len)) { *R = tstrdup ("updates.getState"); return index; } else { index ++; }}
+ if (index == 126) { if (!strncmp (text, "upload.getFile", text_len)) { *R = tstrdup ("upload.getFile"); return index; } else { index ++; }}
+ if (index == 127) { if (!strncmp (text, "upload.saveBigFilePart", text_len)) { *R = tstrdup ("upload.saveBigFilePart"); return index; } else { index ++; }}
+ if (index == 128) { if (!strncmp (text, "upload.saveFilePart", text_len)) { *R = tstrdup ("upload.saveFilePart"); return index; } else { index ++; }}
+ if (index == 129) { if (!strncmp (text, "users.getFullUser", text_len)) { *R = tstrdup ("users.getFullUser"); return index; } else { index ++; }}
+ if (index == 130) { if (!strncmp (text, "users.getUsers", text_len)) { *R = tstrdup ("users.getUsers"); return index; } else { index ++; }}
+ *R = 0;
+ return 0;
+}
+struct paramed_type *autocomplete_function_any (void) {
+ expect_token_ptr_autocomplete ("(", 1);
+ if (cur_token_len == -3) { set_autocomplete_type (do_autocomplete_function); }
+ if (cur_token_len < 0) { return 0; }
+ if (cur_token_len == 19 && !memcmp (cur_token, "account.changePhone", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_account_change_phone ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 21 && !memcmp (cur_token, "account.checkUsername", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_account_check_username ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 21 && !memcmp (cur_token, "account.deleteAccount", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_account_delete_account ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 21 && !memcmp (cur_token, "account.getAccountTTL", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_account_get_account_t_t_l ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 25 && !memcmp (cur_token, "account.getAuthorizations", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_account_get_authorizations ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 25 && !memcmp (cur_token, "account.getNotifySettings", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_account_get_notify_settings ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 19 && !memcmp (cur_token, "account.getPassword", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_account_get_password ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 27 && !memcmp (cur_token, "account.getPasswordSettings", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_account_get_password_settings ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 18 && !memcmp (cur_token, "account.getPrivacy", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_account_get_privacy ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 21 && !memcmp (cur_token, "account.getWallPapers", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_account_get_wall_papers ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "account.registerDevice", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_account_register_device ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 26 && !memcmp (cur_token, "account.resetAuthorization", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_account_reset_authorization ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 27 && !memcmp (cur_token, "account.resetNotifySettings", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_account_reset_notify_settings ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 27 && !memcmp (cur_token, "account.sendChangePhoneCode", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_account_send_change_phone_code ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 21 && !memcmp (cur_token, "account.setAccountTTL", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_account_set_account_t_t_l ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 18 && !memcmp (cur_token, "account.setPrivacy", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_account_set_privacy ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 24 && !memcmp (cur_token, "account.unregisterDevice", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_account_unregister_device ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 26 && !memcmp (cur_token, "account.updateDeviceLocked", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_account_update_device_locked ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 28 && !memcmp (cur_token, "account.updateNotifySettings", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_account_update_notify_settings ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 30 && !memcmp (cur_token, "account.updatePasswordSettings", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_account_update_password_settings ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 21 && !memcmp (cur_token, "account.updateProfile", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_account_update_profile ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 20 && !memcmp (cur_token, "account.updateStatus", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_account_update_status ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "account.updateUsername", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_account_update_username ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 20 && !memcmp (cur_token, "auth.bindTempAuthKey", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_auth_bind_temp_auth_key ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 18 && !memcmp (cur_token, "auth.checkPassword", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_auth_check_password ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "auth.checkPhone", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_auth_check_phone ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 24 && !memcmp (cur_token, "auth.exportAuthorization", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_auth_export_authorization ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 24 && !memcmp (cur_token, "auth.importAuthorization", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_auth_import_authorization ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 27 && !memcmp (cur_token, "auth.importBotAuthorization", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_auth_import_bot_authorization ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 11 && !memcmp (cur_token, "auth.logOut", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_auth_log_out ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 20 && !memcmp (cur_token, "auth.recoverPassword", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_auth_recover_password ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 28 && !memcmp (cur_token, "auth.requestPasswordRecovery", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_auth_request_password_recovery ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 24 && !memcmp (cur_token, "auth.resetAuthorizations", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_auth_reset_authorizations ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 13 && !memcmp (cur_token, "auth.sendCall", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_auth_send_call ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 13 && !memcmp (cur_token, "auth.sendCode", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_auth_send_code ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 16 && !memcmp (cur_token, "auth.sendInvites", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_auth_send_invites ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 12 && !memcmp (cur_token, "auth.sendSms", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_auth_send_sms ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 11 && !memcmp (cur_token, "auth.signIn", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_auth_sign_in ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 11 && !memcmp (cur_token, "auth.signUp", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_auth_sign_up ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 14 && !memcmp (cur_token, "contacts.block", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_contacts_block ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "contacts.deleteContact", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_contacts_delete_contact ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 23 && !memcmp (cur_token, "contacts.deleteContacts", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_contacts_delete_contacts ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 19 && !memcmp (cur_token, "contacts.exportCard", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_contacts_export_card ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 19 && !memcmp (cur_token, "contacts.getBlocked", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_contacts_get_blocked ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 20 && !memcmp (cur_token, "contacts.getContacts", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_contacts_get_contacts ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 20 && !memcmp (cur_token, "contacts.getStatuses", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_contacts_get_statuses ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 21 && !memcmp (cur_token, "contacts.getSuggested", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_contacts_get_suggested ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 19 && !memcmp (cur_token, "contacts.importCard", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_contacts_import_card ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 23 && !memcmp (cur_token, "contacts.importContacts", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_contacts_import_contacts ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 24 && !memcmp (cur_token, "contacts.resolveUsername", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_contacts_resolve_username ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "contacts.search", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_contacts_search ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 16 && !memcmp (cur_token, "contacts.unblock", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_contacts_unblock ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 16 && !memcmp (cur_token, "geochats.checkin", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_geochats_checkin ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "geochats.createGeoChat", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_geochats_create_geo_chat ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "geochats.editChatPhoto", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_geochats_edit_chat_photo ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "geochats.editChatTitle", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_geochats_edit_chat_title ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 20 && !memcmp (cur_token, "geochats.getFullChat", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_geochats_get_full_chat ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 19 && !memcmp (cur_token, "geochats.getHistory", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_geochats_get_history ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 19 && !memcmp (cur_token, "geochats.getLocated", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_geochats_get_located ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 19 && !memcmp (cur_token, "geochats.getRecents", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_geochats_get_recents ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "geochats.search", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_geochats_search ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 18 && !memcmp (cur_token, "geochats.sendMedia", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_geochats_send_media ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 20 && !memcmp (cur_token, "geochats.sendMessage", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_geochats_send_message ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 18 && !memcmp (cur_token, "geochats.setTyping", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_geochats_set_typing ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 17 && !memcmp (cur_token, "help.getAppUpdate", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_help_get_app_update ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 14 && !memcmp (cur_token, "help.getConfig", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_help_get_config ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 18 && !memcmp (cur_token, "help.getInviteText", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_help_get_invite_text ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 17 && !memcmp (cur_token, "help.getNearestDc", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_help_get_nearest_dc ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "help.getSupport", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_help_get_support ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "help.saveAppLog", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_help_save_app_log ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 14 && !memcmp (cur_token, "initConnection", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_init_connection ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 14 && !memcmp (cur_token, "invokeAfterMsg", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_invoke_after_msg ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "invokeAfterMsgs", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_invoke_after_msgs ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "invokeWithLayer", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_invoke_with_layer ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 20 && !memcmp (cur_token, "invokeWithoutUpdates", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_invoke_without_updates ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 25 && !memcmp (cur_token, "messages.acceptEncryption", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_messages_accept_encryption ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 20 && !memcmp (cur_token, "messages.addChatUser", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_messages_add_chat_user ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 24 && !memcmp (cur_token, "messages.checkChatInvite", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_messages_check_chat_invite ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 19 && !memcmp (cur_token, "messages.createChat", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_messages_create_chat ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 23 && !memcmp (cur_token, "messages.deleteChatUser", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_messages_delete_chat_user ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "messages.deleteHistory", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_messages_delete_history ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 23 && !memcmp (cur_token, "messages.deleteMessages", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_messages_delete_messages ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 26 && !memcmp (cur_token, "messages.discardEncryption", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_messages_discard_encryption ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "messages.editChatPhoto", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_messages_edit_chat_photo ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "messages.editChatTitle", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_messages_edit_chat_title ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 25 && !memcmp (cur_token, "messages.exportChatInvite", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_messages_export_chat_invite ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 23 && !memcmp (cur_token, "messages.forwardMessage", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_messages_forward_message ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 24 && !memcmp (cur_token, "messages.forwardMessages", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_messages_forward_messages ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 23 && !memcmp (cur_token, "messages.getAllStickers", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_messages_get_all_stickers ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 17 && !memcmp (cur_token, "messages.getChats", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_messages_get_chats ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 20 && !memcmp (cur_token, "messages.getDhConfig", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_messages_get_dh_config ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 19 && !memcmp (cur_token, "messages.getDialogs", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_messages_get_dialogs ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 20 && !memcmp (cur_token, "messages.getFullChat", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_messages_get_full_chat ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 19 && !memcmp (cur_token, "messages.getHistory", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_messages_get_history ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 20 && !memcmp (cur_token, "messages.getMessages", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_messages_get_messages ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "messages.getStickerSet", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_messages_get_sticker_set ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 20 && !memcmp (cur_token, "messages.getStickers", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_messages_get_stickers ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 26 && !memcmp (cur_token, "messages.getWebPagePreview", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_messages_get_web_page_preview ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 25 && !memcmp (cur_token, "messages.importChatInvite", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_messages_import_chat_invite ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 26 && !memcmp (cur_token, "messages.installStickerSet", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_messages_install_sticker_set ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 29 && !memcmp (cur_token, "messages.readEncryptedHistory", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_messages_read_encrypted_history ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 20 && !memcmp (cur_token, "messages.readHistory", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_messages_read_history ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 28 && !memcmp (cur_token, "messages.readMessageContents", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_messages_read_message_contents ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 25 && !memcmp (cur_token, "messages.receivedMessages", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_messages_received_messages ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "messages.receivedQueue", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_messages_received_queue ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 26 && !memcmp (cur_token, "messages.requestEncryption", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_messages_request_encryption ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 15 && !memcmp (cur_token, "messages.search", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_messages_search ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "messages.sendBroadcast", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_messages_send_broadcast ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "messages.sendEncrypted", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_messages_send_encrypted ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 26 && !memcmp (cur_token, "messages.sendEncryptedFile", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_messages_send_encrypted_file ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 29 && !memcmp (cur_token, "messages.sendEncryptedService", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_messages_send_encrypted_service ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 18 && !memcmp (cur_token, "messages.sendMedia", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_messages_send_media ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 20 && !memcmp (cur_token, "messages.sendMessage", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_messages_send_message ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 27 && !memcmp (cur_token, "messages.setEncryptedTyping", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_messages_set_encrypted_typing ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 18 && !memcmp (cur_token, "messages.setTyping", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_messages_set_typing ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 17 && !memcmp (cur_token, "messages.startBot", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_messages_start_bot ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 28 && !memcmp (cur_token, "messages.uninstallStickerSet", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_messages_uninstall_sticker_set ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 19 && !memcmp (cur_token, "photos.deletePhotos", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_photos_delete_photos ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 20 && !memcmp (cur_token, "photos.getUserPhotos", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_photos_get_user_photos ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 25 && !memcmp (cur_token, "photos.updateProfilePhoto", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_photos_update_profile_photo ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 25 && !memcmp (cur_token, "photos.uploadProfilePhoto", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_photos_upload_profile_photo ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 13 && !memcmp (cur_token, "req_DH_params", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_req_d_h_params ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 6 && !memcmp (cur_token, "req_pq", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_req_pq ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 20 && !memcmp (cur_token, "set_client_DH_params", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_set_client_d_h_params ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 21 && !memcmp (cur_token, "updates.getDifference", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_updates_get_difference ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 16 && !memcmp (cur_token, "updates.getState", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_updates_get_state ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 14 && !memcmp (cur_token, "upload.getFile", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_upload_get_file ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 22 && !memcmp (cur_token, "upload.saveBigFilePart", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_upload_save_big_file_part ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 19 && !memcmp (cur_token, "upload.saveFilePart", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_upload_save_file_part ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 17 && !memcmp (cur_token, "users.getFullUser", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_users_get_full_user ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ if (cur_token_len == 14 && !memcmp (cur_token, "users.getUsers", cur_token_len)) {
+ local_next_token ();
+ struct paramed_type *P = autocomplete_function_users_get_users ();
+ if (!P) { return 0; }
+ expect_token_ptr_autocomplete (")", 1);
+ return P;
+ }
+ return 0;
+}