@inline-chat/protocol 0.0.3 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/core.d.ts +1159 -31
  2. package/dist/core.js +4338 -2128
  3. package/package.json +1 -1
package/dist/core.d.ts CHANGED
@@ -413,6 +413,10 @@ export interface Dialog {
413
413
  * @generated from protobuf field: optional DialogNotificationSettings notification_settings = 9;
414
414
  */
415
415
  notificationSettings?: DialogNotificationSettings;
416
+ /**
417
+ * @generated from protobuf field: optional bool sidebar_visible = 10;
418
+ */
419
+ sidebarVisible?: boolean;
416
420
  }
417
421
  /**
418
422
  * A thread
@@ -478,6 +482,148 @@ export interface Chat {
478
482
  * @generated from protobuf field: optional int64 created_by = 10;
479
483
  */
480
484
  createdBy?: bigint;
485
+ /**
486
+ * Structural parent chat for linked subthreads.
487
+ *
488
+ * @generated from protobuf field: optional int64 parent_chat_id = 11;
489
+ */
490
+ parentChatId?: bigint;
491
+ /**
492
+ * Parent message anchor when this subthread is a reply thread.
493
+ *
494
+ * @generated from protobuf field: optional int64 parent_message_id = 12;
495
+ */
496
+ parentMessageId?: bigint;
497
+ }
498
+ /**
499
+ * @generated from protobuf message MessageReplies
500
+ */
501
+ export interface MessageReplies {
502
+ /**
503
+ * Child chat ID for the reply thread.
504
+ *
505
+ * @generated from protobuf field: int64 chat_id = 1;
506
+ */
507
+ chatId: bigint;
508
+ /**
509
+ * Number of messages currently in the reply thread.
510
+ *
511
+ * @generated from protobuf field: int32 reply_count = 2;
512
+ */
513
+ replyCount: number;
514
+ /**
515
+ * True when the viewer has durable unread state in the reply thread.
516
+ *
517
+ * @generated from protobuf field: bool has_unread = 3;
518
+ */
519
+ hasUnread: boolean;
520
+ /**
521
+ * Recent distinct repliers in newest-first order. Limited server-side.
522
+ *
523
+ * @generated from protobuf field: repeated int64 recent_replier_user_ids = 4;
524
+ */
525
+ recentReplierUserIds: bigint[];
526
+ }
527
+ /**
528
+ * @generated from protobuf message MessageActions
529
+ */
530
+ export interface MessageActions {
531
+ /**
532
+ * @generated from protobuf field: repeated MessageActionRow rows = 1;
533
+ */
534
+ rows: MessageActionRow[];
535
+ }
536
+ /**
537
+ * @generated from protobuf message MessageActionRow
538
+ */
539
+ export interface MessageActionRow {
540
+ /**
541
+ * @generated from protobuf field: repeated MessageAction actions = 1;
542
+ */
543
+ actions: MessageAction[];
544
+ }
545
+ /**
546
+ * @generated from protobuf message MessageAction
547
+ */
548
+ export interface MessageAction {
549
+ /**
550
+ * Bot-defined stable identifier for this button/action.
551
+ *
552
+ * @generated from protobuf field: string action_id = 1;
553
+ */
554
+ actionId: string;
555
+ /**
556
+ * Display label.
557
+ *
558
+ * @generated from protobuf field: string text = 2;
559
+ */
560
+ text: string;
561
+ /**
562
+ * @generated from protobuf oneof: action
563
+ */
564
+ action: {
565
+ oneofKind: "callback";
566
+ /**
567
+ * @generated from protobuf field: MessageActionCallback callback = 3;
568
+ */
569
+ callback: MessageActionCallback;
570
+ } | {
571
+ oneofKind: "copyText";
572
+ /**
573
+ * @generated from protobuf field: MessageActionCopyText copy_text = 4;
574
+ */
575
+ copyText: MessageActionCopyText;
576
+ } | {
577
+ oneofKind: undefined;
578
+ };
579
+ }
580
+ /**
581
+ * @generated from protobuf message MessageActionCallback
582
+ */
583
+ export interface MessageActionCallback {
584
+ /**
585
+ * Opaque payload parsed by bot.
586
+ *
587
+ * @generated from protobuf field: bytes data = 1;
588
+ */
589
+ data: Uint8Array;
590
+ }
591
+ /**
592
+ * @generated from protobuf message MessageActionCopyText
593
+ */
594
+ export interface MessageActionCopyText {
595
+ /**
596
+ * Text copied client-side without notifying the bot.
597
+ *
598
+ * @generated from protobuf field: string text = 1;
599
+ */
600
+ text: string;
601
+ }
602
+ /**
603
+ * @generated from protobuf message MessageActionResponseUi
604
+ */
605
+ export interface MessageActionResponseUi {
606
+ /**
607
+ * @generated from protobuf oneof: kind
608
+ */
609
+ kind: {
610
+ oneofKind: "toast";
611
+ /**
612
+ * @generated from protobuf field: MessageActionToast toast = 1;
613
+ */
614
+ toast: MessageActionToast;
615
+ } | {
616
+ oneofKind: undefined;
617
+ };
618
+ }
619
+ /**
620
+ * @generated from protobuf message MessageActionToast
621
+ */
622
+ export interface MessageActionToast {
623
+ /**
624
+ * @generated from protobuf field: string text = 1;
625
+ */
626
+ text: string;
481
627
  }
482
628
  /**
483
629
  * @generated from protobuf message Message
@@ -593,6 +739,19 @@ export interface Message {
593
739
  * @generated from protobuf field: optional MessageFwdHeader fwd_from = 18;
594
740
  */
595
741
  fwdFrom?: MessageFwdHeader;
742
+ /**
743
+ * Replies shown under the parent message row when this message has an
744
+ * anchored child thread.
745
+ *
746
+ * @generated from protobuf field: optional MessageReplies replies = 19;
747
+ */
748
+ replies?: MessageReplies;
749
+ /**
750
+ * Optional interactive actions (bot messages only).
751
+ *
752
+ * @generated from protobuf field: optional MessageActions actions = 20;
753
+ */
754
+ actions?: MessageActions;
596
755
  }
597
756
  /**
598
757
  * @generated from protobuf message MessageFwdHeader
@@ -1106,7 +1265,7 @@ export declare enum MessageAttachmentExternalTask_Status {
1106
1265
  CANCELLED = 5
1107
1266
  }
1108
1267
  /**
1109
- * WIP: add document, audio, video.
1268
+ * WIP: add richer media/filtering metadata.
1110
1269
  *
1111
1270
  * @generated from protobuf message MessageMedia
1112
1271
  */
@@ -1138,6 +1297,12 @@ export interface MessageMedia {
1138
1297
  * @generated from protobuf field: MessageNudge nudge = 4;
1139
1298
  */
1140
1299
  nudge: MessageNudge;
1300
+ } | {
1301
+ oneofKind: "voice";
1302
+ /**
1303
+ * @generated from protobuf field: MessageVoice voice = 5;
1304
+ */
1305
+ voice: MessageVoice;
1141
1306
  } | {
1142
1307
  oneofKind: undefined;
1143
1308
  };
@@ -1169,6 +1334,15 @@ export interface MessageDocument {
1169
1334
  */
1170
1335
  document?: Document;
1171
1336
  }
1337
+ /**
1338
+ * @generated from protobuf message MessageVoice
1339
+ */
1340
+ export interface MessageVoice {
1341
+ /**
1342
+ * @generated from protobuf field: Voice voice = 1;
1343
+ */
1344
+ voice?: Voice;
1345
+ }
1172
1346
  /**
1173
1347
  * Nudge message (empty payload)
1174
1348
  *
@@ -1265,6 +1439,57 @@ export interface Document {
1265
1439
  * @generated from protobuf field: int64 date = 6;
1266
1440
  */
1267
1441
  date: bigint;
1442
+ /**
1443
+ * Thumbnail of the document
1444
+ *
1445
+ * @generated from protobuf field: optional Photo photo = 7;
1446
+ */
1447
+ photo?: Photo;
1448
+ }
1449
+ /**
1450
+ * @generated from protobuf message Voice
1451
+ */
1452
+ export interface Voice {
1453
+ /**
1454
+ * @generated from protobuf field: int64 id = 1;
1455
+ */
1456
+ id: bigint;
1457
+ /**
1458
+ * Date of upload
1459
+ *
1460
+ * @generated from protobuf field: int64 date = 2;
1461
+ */
1462
+ date: bigint;
1463
+ /**
1464
+ * Duration of the voice message in seconds
1465
+ *
1466
+ * @generated from protobuf field: int32 duration = 3;
1467
+ */
1468
+ duration: number;
1469
+ /**
1470
+ * File size
1471
+ *
1472
+ * @generated from protobuf field: int32 size = 4;
1473
+ */
1474
+ size: number;
1475
+ /**
1476
+ * MIME type of the file
1477
+ *
1478
+ * @generated from protobuf field: string mime_type = 5;
1479
+ */
1480
+ mimeType: string;
1481
+ /**
1482
+ * CDN URL
1483
+ *
1484
+ * @generated from protobuf field: optional string cdn_url = 6;
1485
+ */
1486
+ cdnUrl?: string;
1487
+ /**
1488
+ * Waveform bytes for rendering
1489
+ *
1490
+ * @generated from protobuf field: bytes waveform = 7;
1491
+ */
1492
+ waveform: Uint8Array;
1268
1493
  }
1269
1494
  /**
1270
1495
  * Photo for message media, profile photo, space photo, or chat photo
@@ -1714,6 +1939,54 @@ export interface RpcCall {
1714
1939
  * @generated from protobuf field: UpdatePushNotificationDetailsInput updatePushNotificationDetails = 42;
1715
1940
  */
1716
1941
  updatePushNotificationDetails: UpdatePushNotificationDetailsInput;
1942
+ } | {
1943
+ oneofKind: "createSubthread";
1944
+ /**
1945
+ * @generated from protobuf field: CreateSubthreadInput createSubthread = 43;
1946
+ */
1947
+ createSubthread: CreateSubthreadInput;
1948
+ } | {
1949
+ oneofKind: "getBotCommands";
1950
+ /**
1951
+ * @generated from protobuf field: GetBotCommandsInput getBotCommands = 44;
1952
+ */
1953
+ getBotCommands: GetBotCommandsInput;
1954
+ } | {
1955
+ oneofKind: "setBotCommands";
1956
+ /**
1957
+ * @generated from protobuf field: SetBotCommandsInput setBotCommands = 45;
1958
+ */
1959
+ setBotCommands: SetBotCommandsInput;
1960
+ } | {
1961
+ oneofKind: "getPeerBotCommands";
1962
+ /**
1963
+ * @generated from protobuf field: GetPeerBotCommandsInput getPeerBotCommands = 46;
1964
+ */
1965
+ getPeerBotCommands: GetPeerBotCommandsInput;
1966
+ } | {
1967
+ oneofKind: "showChatInSidebar";
1968
+ /**
1969
+ * @generated from protobuf field: ShowChatInSidebarInput showChatInSidebar = 47;
1970
+ */
1971
+ showChatInSidebar: ShowChatInSidebarInput;
1972
+ } | {
1973
+ oneofKind: "reserveChatIds";
1974
+ /**
1975
+ * @generated from protobuf field: ReserveChatIdsInput reserveChatIds = 48;
1976
+ */
1977
+ reserveChatIds: ReserveChatIdsInput;
1978
+ } | {
1979
+ oneofKind: "invokeMessageAction";
1980
+ /**
1981
+ * @generated from protobuf field: InvokeMessageActionInput invokeMessageAction = 49;
1982
+ */
1983
+ invokeMessageAction: InvokeMessageActionInput;
1984
+ } | {
1985
+ oneofKind: "answerMessageAction";
1986
+ /**
1987
+ * @generated from protobuf field: AnswerMessageActionInput answerMessageAction = 50;
1988
+ */
1989
+ answerMessageAction: AnswerMessageActionInput;
1717
1990
  } | {
1718
1991
  oneofKind: undefined;
1719
1992
  };
@@ -1975,6 +2248,54 @@ export interface RpcResult {
1975
2248
  * @generated from protobuf field: UpdatePushNotificationDetailsResult updatePushNotificationDetails = 42;
1976
2249
  */
1977
2250
  updatePushNotificationDetails: UpdatePushNotificationDetailsResult;
2251
+ } | {
2252
+ oneofKind: "createSubthread";
2253
+ /**
2254
+ * @generated from protobuf field: CreateSubthreadResult createSubthread = 43;
2255
+ */
2256
+ createSubthread: CreateSubthreadResult;
2257
+ } | {
2258
+ oneofKind: "getBotCommands";
2259
+ /**
2260
+ * @generated from protobuf field: GetBotCommandsResult getBotCommands = 44;
2261
+ */
2262
+ getBotCommands: GetBotCommandsResult;
2263
+ } | {
2264
+ oneofKind: "setBotCommands";
2265
+ /**
2266
+ * @generated from protobuf field: SetBotCommandsResult setBotCommands = 45;
2267
+ */
2268
+ setBotCommands: SetBotCommandsResult;
2269
+ } | {
2270
+ oneofKind: "getPeerBotCommands";
2271
+ /**
2272
+ * @generated from protobuf field: GetPeerBotCommandsResult getPeerBotCommands = 46;
2273
+ */
2274
+ getPeerBotCommands: GetPeerBotCommandsResult;
2275
+ } | {
2276
+ oneofKind: "showChatInSidebar";
2277
+ /**
2278
+ * @generated from protobuf field: ShowChatInSidebarResult showChatInSidebar = 47;
2279
+ */
2280
+ showChatInSidebar: ShowChatInSidebarResult;
2281
+ } | {
2282
+ oneofKind: "reserveChatIds";
2283
+ /**
2284
+ * @generated from protobuf field: ReserveChatIdsResult reserveChatIds = 48;
2285
+ */
2286
+ reserveChatIds: ReserveChatIdsResult;
2287
+ } | {
2288
+ oneofKind: "invokeMessageAction";
2289
+ /**
2290
+ * @generated from protobuf field: InvokeMessageActionResult invokeMessageAction = 49;
2291
+ */
2292
+ invokeMessageAction: InvokeMessageActionResult;
2293
+ } | {
2294
+ oneofKind: "answerMessageAction";
2295
+ /**
2296
+ * @generated from protobuf field: AnswerMessageActionResult answerMessageAction = 50;
2297
+ */
2298
+ answerMessageAction: AnswerMessageActionResult;
1978
2299
  } | {
1979
2300
  oneofKind: undefined;
1980
2301
  };
@@ -2224,6 +2545,34 @@ export interface GetChatResult {
2224
2545
  * @generated from protobuf field: repeated int64 pinned_message_ids = 3;
2225
2546
  */
2226
2547
  pinnedMessageIds: bigint[];
2548
+ /**
2549
+ * @generated from protobuf field: Message anchor_message = 4;
2550
+ */
2551
+ anchorMessage?: Message;
2552
+ }
2553
+ /**
2554
+ * @generated from protobuf message ShowChatInSidebarInput
2555
+ */
2556
+ export interface ShowChatInSidebarInput {
2557
+ /**
2558
+ * Peer ID to surface in the sidebar.
2559
+ *
2560
+ * @generated from protobuf field: InputPeer peer_id = 1;
2561
+ */
2562
+ peerId?: InputPeer;
2563
+ }
2564
+ /**
2565
+ * @generated from protobuf message ShowChatInSidebarResult
2566
+ */
2567
+ export interface ShowChatInSidebarResult {
2568
+ /**
2569
+ * @generated from protobuf field: Chat chat = 1;
2570
+ */
2571
+ chat?: Chat;
2572
+ /**
2573
+ * @generated from protobuf field: Dialog dialog = 2;
2574
+ */
2575
+ dialog?: Dialog;
2227
2576
  }
2228
2577
  /**
2229
2578
  * Mark dialog as unread
@@ -2329,6 +2678,94 @@ export interface ListBotsResult {
2329
2678
  */
2330
2679
  bots: User[];
2331
2680
  }
2681
+ /**
2682
+ * @generated from protobuf message BotCommand
2683
+ */
2684
+ export interface BotCommand {
2685
+ /**
2686
+ * @generated from protobuf field: string command = 1;
2687
+ */
2688
+ command: string;
2689
+ /**
2690
+ * @generated from protobuf field: string description = 2;
2691
+ */
2692
+ description: string;
2693
+ /**
2694
+ * @generated from protobuf field: optional int32 sort_order = 3;
2695
+ */
2696
+ sortOrder?: number;
2697
+ }
2698
+ /**
2699
+ * @generated from protobuf message PeerBotCommands
2700
+ */
2701
+ export interface PeerBotCommands {
2702
+ /**
2703
+ * @generated from protobuf field: User bot = 1;
2704
+ */
2705
+ bot?: User;
2706
+ /**
2707
+ * @generated from protobuf field: repeated BotCommand commands = 2;
2708
+ */
2709
+ commands: BotCommand[];
2710
+ }
2711
+ /**
2712
+ * @generated from protobuf message GetBotCommandsInput
2713
+ */
2714
+ export interface GetBotCommandsInput {
2715
+ /**
2716
+ * @generated from protobuf field: int64 bot_user_id = 1;
2717
+ */
2718
+ botUserId: bigint;
2719
+ }
2720
+ /**
2721
+ * @generated from protobuf message GetBotCommandsResult
2722
+ */
2723
+ export interface GetBotCommandsResult {
2724
+ /**
2725
+ * @generated from protobuf field: repeated BotCommand commands = 1;
2726
+ */
2727
+ commands: BotCommand[];
2728
+ }
2729
+ /**
2730
+ * @generated from protobuf message SetBotCommandsInput
2731
+ */
2732
+ export interface SetBotCommandsInput {
2733
+ /**
2734
+ * @generated from protobuf field: int64 bot_user_id = 1;
2735
+ */
2736
+ botUserId: bigint;
2737
+ /**
2738
+ * @generated from protobuf field: repeated BotCommand commands = 2;
2739
+ */
2740
+ commands: BotCommand[];
2741
+ }
2742
+ /**
2743
+ * @generated from protobuf message SetBotCommandsResult
2744
+ */
2745
+ export interface SetBotCommandsResult {
2746
+ /**
2747
+ * @generated from protobuf field: repeated BotCommand commands = 1;
2748
+ */
2749
+ commands: BotCommand[];
2750
+ }
2751
+ /**
2752
+ * @generated from protobuf message GetPeerBotCommandsInput
2753
+ */
2754
+ export interface GetPeerBotCommandsInput {
2755
+ /**
2756
+ * @generated from protobuf field: InputPeer peer_id = 1;
2757
+ */
2758
+ peerId?: InputPeer;
2759
+ }
2760
+ /**
2761
+ * @generated from protobuf message GetPeerBotCommandsResult
2762
+ */
2763
+ export interface GetPeerBotCommandsResult {
2764
+ /**
2765
+ * @generated from protobuf field: repeated PeerBotCommands bots = 1;
2766
+ */
2767
+ bots: PeerBotCommands[];
2768
+ }
2332
2769
  /**
2333
2770
  * @generated from protobuf message RevealBotTokenInput
2334
2771
  */
@@ -2896,6 +3333,19 @@ export interface EditMessageInput {
2896
3333
  * @generated from protobuf field: optional MessageEntities entities = 7;
2897
3334
  */
2898
3335
  entities?: MessageEntities;
3336
+ /**
3337
+ * @generated from protobuf field: optional bool parse_markdown = 8;
3338
+ */
3339
+ parseMarkdown?: boolean;
3340
+ /**
3341
+ * Optional action replacement:
3342
+ * - absent: keep current actions
3343
+ * - present + empty rows: clear actions
3344
+ * - present + non-empty rows: replace actions
3345
+ *
3346
+ * @generated from protobuf field: optional MessageActions actions = 9;
3347
+ */
3348
+ actions?: MessageActions;
2899
3349
  }
2900
3350
  /**
2901
3351
  * @generated from protobuf message EditMessageResult
@@ -2937,6 +3387,12 @@ export interface InputMedia {
2937
3387
  * @generated from protobuf field: InputMediaNudge nudge = 4;
2938
3388
  */
2939
3389
  nudge: InputMediaNudge;
3390
+ } | {
3391
+ oneofKind: "voice";
3392
+ /**
3393
+ * @generated from protobuf field: InputMediaVoice voice = 5;
3394
+ */
3395
+ voice: InputMediaVoice;
2940
3396
  } | {
2941
3397
  oneofKind: undefined;
2942
3398
  };
@@ -2974,6 +3430,17 @@ export interface InputMediaDocument {
2974
3430
  */
2975
3431
  documentId: bigint;
2976
3432
  }
3433
+ /**
3434
+ * @generated from protobuf message InputMediaVoice
3435
+ */
3436
+ export interface InputMediaVoice {
3437
+ /**
3438
+ * ID of the voice message that we have uploaded
3439
+ *
3440
+ * @generated from protobuf field: int64 voice_id = 1;
3441
+ */
3442
+ voiceId: bigint;
3443
+ }
2977
3444
  /**
2978
3445
  * Nudge message (empty payload)
2979
3446
  *
@@ -3047,6 +3514,12 @@ export interface SendMessageInput {
3047
3514
  * @generated from protobuf field: optional MessageSendMode send_mode = 9;
3048
3515
  */
3049
3516
  sendMode?: MessageSendMode;
3517
+ /**
3518
+ * Optional interactive actions (bot messages only).
3519
+ *
3520
+ * @generated from protobuf field: optional MessageActions actions = 10;
3521
+ */
3522
+ actions?: MessageActions;
3050
3523
  }
3051
3524
  /**
3052
3525
  * @generated from protobuf message SendMessageResult
@@ -3057,6 +3530,52 @@ export interface SendMessageResult {
3057
3530
  */
3058
3531
  updates: Update[];
3059
3532
  }
3533
+ /**
3534
+ * @generated from protobuf message InvokeMessageActionInput
3535
+ */
3536
+ export interface InvokeMessageActionInput {
3537
+ /**
3538
+ * @generated from protobuf field: InputPeer peer_id = 1;
3539
+ */
3540
+ peerId?: InputPeer;
3541
+ /**
3542
+ * @generated from protobuf field: int64 message_id = 2;
3543
+ */
3544
+ messageId: bigint;
3545
+ /**
3546
+ * @generated from protobuf field: string action_id = 3;
3547
+ */
3548
+ actionId: string;
3549
+ }
3550
+ /**
3551
+ * @generated from protobuf message InvokeMessageActionResult
3552
+ */
3553
+ export interface InvokeMessageActionResult {
3554
+ /**
3555
+ * Scoped to the target bot (its user bucket seq).
3556
+ *
3557
+ * @generated from protobuf field: int64 interaction_id = 1;
3558
+ */
3559
+ interactionId: bigint;
3560
+ }
3561
+ /**
3562
+ * @generated from protobuf message AnswerMessageActionInput
3563
+ */
3564
+ export interface AnswerMessageActionInput {
3565
+ /**
3566
+ * @generated from protobuf field: int64 interaction_id = 1;
3567
+ */
3568
+ interactionId: bigint;
3569
+ /**
3570
+ * @generated from protobuf field: optional MessageActionResponseUi ui = 2;
3571
+ */
3572
+ ui?: MessageActionResponseUi;
3573
+ }
3574
+ /**
3575
+ * @generated from protobuf message AnswerMessageActionResult
3576
+ */
3577
+ export interface AnswerMessageActionResult {
3578
+ }
3060
3579
  /**
3061
3580
  * @generated from protobuf message ForwardMessagesInput
3062
3581
  */
@@ -3104,17 +3623,61 @@ export interface GetChatHistoryInput {
3104
3623
  */
3105
3624
  peerId?: InputPeer;
3106
3625
  /**
3107
- * ID of the message to start from
3626
+ * Legacy older-history cursor.
3627
+ * When `mode` is not provided, this preserves old behavior and fetches messages with ID < offset_id.
3108
3628
  *
3109
3629
  * @generated from protobuf field: optional int64 offset_id = 2;
3110
3630
  */
3111
3631
  offsetId?: bigint;
3112
3632
  /**
3113
- * Number of messages to return
3633
+ * Number of messages to return.
3634
+ * For `mode = HISTORY_MODE_AROUND`, this acts as a fallback split if before/after limits are not provided.
3114
3635
  *
3115
3636
  * @generated from protobuf field: optional int32 limit = 3;
3116
3637
  */
3117
3638
  limit?: number;
3639
+ /**
3640
+ * Explicit fetch mode for history pagination/windowing.
3641
+ *
3642
+ * @generated from protobuf field: optional GetChatHistoryMode mode = 4;
3643
+ */
3644
+ mode?: GetChatHistoryMode;
3645
+ /**
3646
+ * Around mode anchor message ID.
3647
+ *
3648
+ * @generated from protobuf field: optional int64 anchor_id = 5;
3649
+ */
3650
+ anchorId?: bigint;
3651
+ /**
3652
+ * Older mode cursor (messages with ID < before_id).
3653
+ *
3654
+ * @generated from protobuf field: optional int64 before_id = 6;
3655
+ */
3656
+ beforeId?: bigint;
3657
+ /**
3658
+ * Newer mode cursor (messages with ID > after_id).
3659
+ *
3660
+ * @generated from protobuf field: optional int64 after_id = 7;
3661
+ */
3662
+ afterId?: bigint;
3663
+ /**
3664
+ * Around mode count for messages older than anchor.
3665
+ *
3666
+ * @generated from protobuf field: optional int32 before_limit = 8;
3667
+ */
3668
+ beforeLimit?: number;
3669
+ /**
3670
+ * Around mode count for messages newer than anchor.
3671
+ *
3672
+ * @generated from protobuf field: optional int32 after_limit = 9;
3673
+ */
3674
+ afterLimit?: number;
3675
+ /**
3676
+ * Around mode include anchor row in response.
3677
+ *
3678
+ * @generated from protobuf field: optional bool include_anchor = 10;
3679
+ */
3680
+ includeAnchor?: boolean;
3118
3681
  }
3119
3682
  /**
3120
3683
  * @generated from protobuf message GetChatHistoryResult
@@ -3188,64 +3751,155 @@ export interface SearchMessagesInput {
3188
3751
  */
3189
3752
  export interface SearchMessagesResult {
3190
3753
  /**
3191
- * @generated from protobuf field: repeated Message messages = 1;
3754
+ * @generated from protobuf field: repeated Message messages = 1;
3755
+ */
3756
+ messages: Message[];
3757
+ }
3758
+ /**
3759
+ * @generated from protobuf message InputChatParticipant
3760
+ */
3761
+ export interface InputChatParticipant {
3762
+ /**
3763
+ * @generated from protobuf field: int64 user_id = 1;
3764
+ */
3765
+ userId: bigint;
3766
+ }
3767
+ /**
3768
+ * @generated from protobuf message ReserveChatIdsInput
3769
+ */
3770
+ export interface ReserveChatIdsInput {
3771
+ /**
3772
+ * @generated from protobuf field: int32 count = 1;
3773
+ */
3774
+ count: number;
3775
+ }
3776
+ /**
3777
+ * @generated from protobuf message ReservedChatId
3778
+ */
3779
+ export interface ReservedChatId {
3780
+ /**
3781
+ * @generated from protobuf field: int64 chat_id = 1;
3782
+ */
3783
+ chatId: bigint;
3784
+ /**
3785
+ * @generated from protobuf field: int64 expires_at = 2;
3786
+ */
3787
+ expiresAt: bigint;
3788
+ }
3789
+ /**
3790
+ * @generated from protobuf message ReserveChatIdsResult
3791
+ */
3792
+ export interface ReserveChatIdsResult {
3793
+ /**
3794
+ * @generated from protobuf field: repeated ReservedChatId reservations = 1;
3795
+ */
3796
+ reservations: ReservedChatId[];
3797
+ }
3798
+ /**
3799
+ * @generated from protobuf message CreateChatInput
3800
+ */
3801
+ export interface CreateChatInput {
3802
+ /**
3803
+ * Required title
3804
+ *
3805
+ * @generated from protobuf field: string title = 1;
3806
+ */
3807
+ title: string;
3808
+ /**
3809
+ * Parent space ID
3810
+ *
3811
+ * @generated from protobuf field: optional int64 space_id = 2;
3812
+ */
3813
+ spaceId?: bigint;
3814
+ /**
3815
+ * Optional description of the thread
3816
+ *
3817
+ * @generated from protobuf field: optional string description = 3;
3818
+ */
3819
+ description?: string;
3820
+ /**
3821
+ * Emoji to show as the icon, can be null
3822
+ *
3823
+ * @generated from protobuf field: optional string emoji = 4;
3824
+ */
3825
+ emoji?: string;
3826
+ /**
3827
+ * If true, everyone in parent space can accces it
3828
+ *
3829
+ * @generated from protobuf field: bool is_public = 5;
3830
+ */
3831
+ isPublic: boolean;
3832
+ /**
3833
+ * For public threads, it must be an empty list
3834
+ *
3835
+ * @generated from protobuf field: repeated InputChatParticipant participants = 6;
3836
+ */
3837
+ participants: InputChatParticipant[];
3838
+ /**
3839
+ * Optional previously reserved chat id to claim during creation.
3840
+ *
3841
+ * @generated from protobuf field: optional int64 reserved_chat_id = 7;
3192
3842
  */
3193
- messages: Message[];
3843
+ reservedChatId?: bigint;
3194
3844
  }
3195
3845
  /**
3196
- * @generated from protobuf message InputChatParticipant
3846
+ * @generated from protobuf message CreateChatResult
3197
3847
  */
3198
- export interface InputChatParticipant {
3848
+ export interface CreateChatResult {
3199
3849
  /**
3200
- * @generated from protobuf field: int64 user_id = 1;
3850
+ * @generated from protobuf field: Chat chat = 1;
3201
3851
  */
3202
- userId: bigint;
3852
+ chat?: Chat;
3853
+ /**
3854
+ * @generated from protobuf field: Dialog dialog = 2;
3855
+ */
3856
+ dialog?: Dialog;
3203
3857
  }
3204
3858
  /**
3205
- * @generated from protobuf message CreateChatInput
3859
+ * @generated from protobuf message CreateSubthreadInput
3206
3860
  */
3207
- export interface CreateChatInput {
3861
+ export interface CreateSubthreadInput {
3208
3862
  /**
3209
- * Required title
3863
+ * Required parent chat for inherited access and navigation.
3210
3864
  *
3211
- * @generated from protobuf field: string title = 1;
3865
+ * @generated from protobuf field: int64 parent_chat_id = 1;
3212
3866
  */
3213
- title: string;
3867
+ parentChatId: bigint;
3214
3868
  /**
3215
- * Parent space ID
3869
+ * Optional parent message anchor. When set, this subthread is also a reply thread.
3216
3870
  *
3217
- * @generated from protobuf field: optional int64 space_id = 2;
3871
+ * @generated from protobuf field: optional int64 parent_message_id = 2;
3218
3872
  */
3219
- spaceId?: bigint;
3873
+ parentMessageId?: bigint;
3220
3874
  /**
3221
- * Optional description of the thread
3875
+ * Optional explicit title. Defaults to a reply-derived title when omitted.
3222
3876
  *
3223
- * @generated from protobuf field: optional string description = 3;
3877
+ * @generated from protobuf field: optional string title = 3;
3224
3878
  */
3225
- description?: string;
3879
+ title?: string;
3226
3880
  /**
3227
- * Emoji to show as the icon, can be null
3881
+ * Optional explicit description.
3228
3882
  *
3229
- * @generated from protobuf field: optional string emoji = 4;
3883
+ * @generated from protobuf field: optional string description = 4;
3230
3884
  */
3231
- emoji?: string;
3885
+ description?: string;
3232
3886
  /**
3233
- * If true, everyone in parent space can accces it
3887
+ * Optional explicit emoji.
3234
3888
  *
3235
- * @generated from protobuf field: bool is_public = 5;
3889
+ * @generated from protobuf field: optional string emoji = 5;
3236
3890
  */
3237
- isPublic: boolean;
3891
+ emoji?: string;
3238
3892
  /**
3239
- * For public threads, it must be an empty list
3893
+ * Optional direct child participants.
3240
3894
  *
3241
3895
  * @generated from protobuf field: repeated InputChatParticipant participants = 6;
3242
3896
  */
3243
3897
  participants: InputChatParticipant[];
3244
3898
  }
3245
3899
  /**
3246
- * @generated from protobuf message CreateChatResult
3900
+ * @generated from protobuf message CreateSubthreadResult
3247
3901
  */
3248
- export interface CreateChatResult {
3902
+ export interface CreateSubthreadResult {
3249
3903
  /**
3250
3904
  * @generated from protobuf field: Chat chat = 1;
3251
3905
  */
@@ -3254,6 +3908,10 @@ export interface CreateChatResult {
3254
3908
  * @generated from protobuf field: Dialog dialog = 2;
3255
3909
  */
3256
3910
  dialog?: Dialog;
3911
+ /**
3912
+ * @generated from protobuf field: Message anchor_message = 3;
3913
+ */
3914
+ anchorMessage?: Message;
3257
3915
  }
3258
3916
  /**
3259
3917
  * @generated from protobuf message GetSpaceMembersInput
@@ -3475,6 +4133,24 @@ export interface Update {
3475
4133
  * @generated from protobuf field: UpdateDialogNotificationSettings dialog_notification_settings = 33;
3476
4134
  */
3477
4135
  dialogNotificationSettings: UpdateDialogNotificationSettings;
4136
+ } | {
4137
+ oneofKind: "chatOpen";
4138
+ /**
4139
+ * @generated from protobuf field: UpdateChatOpen chat_open = 34;
4140
+ */
4141
+ chatOpen: UpdateChatOpen;
4142
+ } | {
4143
+ oneofKind: "messageActionInvoked";
4144
+ /**
4145
+ * @generated from protobuf field: UpdateMessageActionInvoked message_action_invoked = 35;
4146
+ */
4147
+ messageActionInvoked: UpdateMessageActionInvoked;
4148
+ } | {
4149
+ oneofKind: "messageActionAnswered";
4150
+ /**
4151
+ * @generated from protobuf field: UpdateMessageActionAnswered message_action_answered = 36;
4152
+ */
4153
+ messageActionAnswered: UpdateMessageActionAnswered;
3478
4154
  } | {
3479
4155
  oneofKind: undefined;
3480
4156
  };
@@ -3816,6 +4492,67 @@ export interface UpdateNewChat {
3816
4492
  */
3817
4493
  user?: User;
3818
4494
  }
4495
+ /**
4496
+ * Update when a chat becomes sidebar-visible for a specific user.
4497
+ *
4498
+ * @generated from protobuf message UpdateChatOpen
4499
+ */
4500
+ export interface UpdateChatOpen {
4501
+ /**
4502
+ * @generated from protobuf field: Chat chat = 1;
4503
+ */
4504
+ chat?: Chat;
4505
+ /**
4506
+ * @generated from protobuf field: Dialog dialog = 2;
4507
+ */
4508
+ dialog?: Dialog;
4509
+ /**
4510
+ * @generated from protobuf field: optional User user = 3;
4511
+ */
4512
+ user?: User;
4513
+ }
4514
+ /**
4515
+ * @generated from protobuf message UpdateMessageActionInvoked
4516
+ */
4517
+ export interface UpdateMessageActionInvoked {
4518
+ /**
4519
+ * @generated from protobuf field: int64 interaction_id = 1;
4520
+ */
4521
+ interactionId: bigint;
4522
+ /**
4523
+ * @generated from protobuf field: int64 chat_id = 2;
4524
+ */
4525
+ chatId: bigint;
4526
+ /**
4527
+ * @generated from protobuf field: int64 message_id = 3;
4528
+ */
4529
+ messageId: bigint;
4530
+ /**
4531
+ * @generated from protobuf field: int64 actor_user_id = 4;
4532
+ */
4533
+ actorUserId: bigint;
4534
+ /**
4535
+ * @generated from protobuf field: string action_id = 5;
4536
+ */
4537
+ actionId: string;
4538
+ /**
4539
+ * @generated from protobuf field: bytes data = 6;
4540
+ */
4541
+ data: Uint8Array;
4542
+ }
4543
+ /**
4544
+ * @generated from protobuf message UpdateMessageActionAnswered
4545
+ */
4546
+ export interface UpdateMessageActionAnswered {
4547
+ /**
4548
+ * @generated from protobuf field: int64 interaction_id = 1;
4549
+ */
4550
+ interactionId: bigint;
4551
+ /**
4552
+ * @generated from protobuf field: optional MessageActionResponseUi ui = 2;
4553
+ */
4554
+ ui?: MessageActionResponseUi;
4555
+ }
3819
4556
  /**
3820
4557
  * Update when a chat is deleted
3821
4558
  *
@@ -3934,7 +4671,11 @@ export declare enum UpdateComposeAction_ComposeAction {
3934
4671
  /**
3935
4672
  * @generated from protobuf enum value: UPLOADING_VIDEO = 4;
3936
4673
  */
3937
- UPLOADING_VIDEO = 4
4674
+ UPLOADING_VIDEO = 4,
4675
+ /**
4676
+ * @generated from protobuf enum value: RECORDING_VOICE = 5;
4677
+ */
4678
+ RECORDING_VOICE = 5
3938
4679
  }
3939
4680
  /**
3940
4681
  * @generated from protobuf message UpdateMessageAttachment
@@ -4565,7 +5306,39 @@ export declare enum Method {
4565
5306
  /**
4566
5307
  * @generated from protobuf enum value: UPDATE_PUSH_NOTIFICATION_DETAILS = 41;
4567
5308
  */
4568
- UPDATE_PUSH_NOTIFICATION_DETAILS = 41
5309
+ UPDATE_PUSH_NOTIFICATION_DETAILS = 41,
5310
+ /**
5311
+ * @generated from protobuf enum value: CREATE_SUBTHREAD = 42;
5312
+ */
5313
+ CREATE_SUBTHREAD = 42,
5314
+ /**
5315
+ * @generated from protobuf enum value: GET_BOT_COMMANDS = 43;
5316
+ */
5317
+ GET_BOT_COMMANDS = 43,
5318
+ /**
5319
+ * @generated from protobuf enum value: SET_BOT_COMMANDS = 44;
5320
+ */
5321
+ SET_BOT_COMMANDS = 44,
5322
+ /**
5323
+ * @generated from protobuf enum value: GET_PEER_BOT_COMMANDS = 45;
5324
+ */
5325
+ GET_PEER_BOT_COMMANDS = 45,
5326
+ /**
5327
+ * @generated from protobuf enum value: SHOW_CHAT_IN_SIDEBAR = 46;
5328
+ */
5329
+ SHOW_CHAT_IN_SIDEBAR = 46,
5330
+ /**
5331
+ * @generated from protobuf enum value: RESERVE_CHAT_IDS = 47;
5332
+ */
5333
+ RESERVE_CHAT_IDS = 47,
5334
+ /**
5335
+ * @generated from protobuf enum value: INVOKE_MESSAGE_ACTION = 48;
5336
+ */
5337
+ INVOKE_MESSAGE_ACTION = 48,
5338
+ /**
5339
+ * @generated from protobuf enum value: ANSWER_MESSAGE_ACTION = 49;
5340
+ */
5341
+ ANSWER_MESSAGE_ACTION = 49
4569
5342
  }
4570
5343
  /**
4571
5344
  * @generated from protobuf enum PushNotificationProvider
@@ -4584,6 +5357,31 @@ export declare enum PushNotificationProvider {
4584
5357
  */
4585
5358
  EXPO_ANDROID = 2
4586
5359
  }
5360
+ /**
5361
+ * @generated from protobuf enum GetChatHistoryMode
5362
+ */
5363
+ export declare enum GetChatHistoryMode {
5364
+ /**
5365
+ * @generated from protobuf enum value: HISTORY_MODE_UNSPECIFIED = 0;
5366
+ */
5367
+ HISTORY_MODE_UNSPECIFIED = 0,
5368
+ /**
5369
+ * @generated from protobuf enum value: HISTORY_MODE_LATEST = 1;
5370
+ */
5371
+ HISTORY_MODE_LATEST = 1,
5372
+ /**
5373
+ * @generated from protobuf enum value: HISTORY_MODE_OLDER = 2;
5374
+ */
5375
+ HISTORY_MODE_OLDER = 2,
5376
+ /**
5377
+ * @generated from protobuf enum value: HISTORY_MODE_NEWER = 3;
5378
+ */
5379
+ HISTORY_MODE_NEWER = 3,
5380
+ /**
5381
+ * @generated from protobuf enum value: HISTORY_MODE_AROUND = 4;
5382
+ */
5383
+ HISTORY_MODE_AROUND = 4
5384
+ }
4587
5385
  /**
4588
5386
  * @generated from protobuf enum SearchMessagesFilter
4589
5387
  */
@@ -4823,6 +5621,86 @@ declare class Chat$Type extends MessageType<Chat> {
4823
5621
  * @generated MessageType for protobuf message Chat
4824
5622
  */
4825
5623
  export declare const Chat: Chat$Type;
5624
+ declare class MessageReplies$Type extends MessageType<MessageReplies> {
5625
+ constructor();
5626
+ create(value?: PartialMessage<MessageReplies>): MessageReplies;
5627
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MessageReplies): MessageReplies;
5628
+ internalBinaryWrite(message: MessageReplies, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
5629
+ }
5630
+ /**
5631
+ * @generated MessageType for protobuf message MessageReplies
5632
+ */
5633
+ export declare const MessageReplies: MessageReplies$Type;
5634
+ declare class MessageActions$Type extends MessageType<MessageActions> {
5635
+ constructor();
5636
+ create(value?: PartialMessage<MessageActions>): MessageActions;
5637
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MessageActions): MessageActions;
5638
+ internalBinaryWrite(message: MessageActions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
5639
+ }
5640
+ /**
5641
+ * @generated MessageType for protobuf message MessageActions
5642
+ */
5643
+ export declare const MessageActions: MessageActions$Type;
5644
+ declare class MessageActionRow$Type extends MessageType<MessageActionRow> {
5645
+ constructor();
5646
+ create(value?: PartialMessage<MessageActionRow>): MessageActionRow;
5647
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MessageActionRow): MessageActionRow;
5648
+ internalBinaryWrite(message: MessageActionRow, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
5649
+ }
5650
+ /**
5651
+ * @generated MessageType for protobuf message MessageActionRow
5652
+ */
5653
+ export declare const MessageActionRow: MessageActionRow$Type;
5654
+ declare class MessageAction$Type extends MessageType<MessageAction> {
5655
+ constructor();
5656
+ create(value?: PartialMessage<MessageAction>): MessageAction;
5657
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MessageAction): MessageAction;
5658
+ internalBinaryWrite(message: MessageAction, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
5659
+ }
5660
+ /**
5661
+ * @generated MessageType for protobuf message MessageAction
5662
+ */
5663
+ export declare const MessageAction: MessageAction$Type;
5664
+ declare class MessageActionCallback$Type extends MessageType<MessageActionCallback> {
5665
+ constructor();
5666
+ create(value?: PartialMessage<MessageActionCallback>): MessageActionCallback;
5667
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MessageActionCallback): MessageActionCallback;
5668
+ internalBinaryWrite(message: MessageActionCallback, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
5669
+ }
5670
+ /**
5671
+ * @generated MessageType for protobuf message MessageActionCallback
5672
+ */
5673
+ export declare const MessageActionCallback: MessageActionCallback$Type;
5674
+ declare class MessageActionCopyText$Type extends MessageType<MessageActionCopyText> {
5675
+ constructor();
5676
+ create(value?: PartialMessage<MessageActionCopyText>): MessageActionCopyText;
5677
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MessageActionCopyText): MessageActionCopyText;
5678
+ internalBinaryWrite(message: MessageActionCopyText, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
5679
+ }
5680
+ /**
5681
+ * @generated MessageType for protobuf message MessageActionCopyText
5682
+ */
5683
+ export declare const MessageActionCopyText: MessageActionCopyText$Type;
5684
+ declare class MessageActionResponseUi$Type extends MessageType<MessageActionResponseUi> {
5685
+ constructor();
5686
+ create(value?: PartialMessage<MessageActionResponseUi>): MessageActionResponseUi;
5687
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MessageActionResponseUi): MessageActionResponseUi;
5688
+ internalBinaryWrite(message: MessageActionResponseUi, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
5689
+ }
5690
+ /**
5691
+ * @generated MessageType for protobuf message MessageActionResponseUi
5692
+ */
5693
+ export declare const MessageActionResponseUi: MessageActionResponseUi$Type;
5694
+ declare class MessageActionToast$Type extends MessageType<MessageActionToast> {
5695
+ constructor();
5696
+ create(value?: PartialMessage<MessageActionToast>): MessageActionToast;
5697
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MessageActionToast): MessageActionToast;
5698
+ internalBinaryWrite(message: MessageActionToast, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
5699
+ }
5700
+ /**
5701
+ * @generated MessageType for protobuf message MessageActionToast
5702
+ */
5703
+ export declare const MessageActionToast: MessageActionToast$Type;
4826
5704
  declare class Message$Type extends MessageType<Message> {
4827
5705
  constructor();
4828
5706
  create(value?: PartialMessage<Message>): Message;
@@ -5053,6 +5931,16 @@ declare class MessageDocument$Type extends MessageType<MessageDocument> {
5053
5931
  * @generated MessageType for protobuf message MessageDocument
5054
5932
  */
5055
5933
  export declare const MessageDocument: MessageDocument$Type;
5934
+ declare class MessageVoice$Type extends MessageType<MessageVoice> {
5935
+ constructor();
5936
+ create(value?: PartialMessage<MessageVoice>): MessageVoice;
5937
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MessageVoice): MessageVoice;
5938
+ internalBinaryWrite(message: MessageVoice, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
5939
+ }
5940
+ /**
5941
+ * @generated MessageType for protobuf message MessageVoice
5942
+ */
5943
+ export declare const MessageVoice: MessageVoice$Type;
5056
5944
  declare class MessageNudge$Type extends MessageType<MessageNudge> {
5057
5945
  constructor();
5058
5946
  create(value?: PartialMessage<MessageNudge>): MessageNudge;
@@ -5083,6 +5971,16 @@ declare class Document$Type extends MessageType<Document> {
5083
5971
  * @generated MessageType for protobuf message Document
5084
5972
  */
5085
5973
  export declare const Document: Document$Type;
5974
+ declare class Voice$Type extends MessageType<Voice> {
5975
+ constructor();
5976
+ create(value?: PartialMessage<Voice>): Voice;
5977
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Voice): Voice;
5978
+ internalBinaryWrite(message: Voice, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
5979
+ }
5980
+ /**
5981
+ * @generated MessageType for protobuf message Voice
5982
+ */
5983
+ export declare const Voice: Voice$Type;
5086
5984
  declare class Photo$Type extends MessageType<Photo> {
5087
5985
  constructor();
5088
5986
  create(value?: PartialMessage<Photo>): Photo;
@@ -5273,6 +6171,26 @@ declare class GetChatResult$Type extends MessageType<GetChatResult> {
5273
6171
  * @generated MessageType for protobuf message GetChatResult
5274
6172
  */
5275
6173
  export declare const GetChatResult: GetChatResult$Type;
6174
+ declare class ShowChatInSidebarInput$Type extends MessageType<ShowChatInSidebarInput> {
6175
+ constructor();
6176
+ create(value?: PartialMessage<ShowChatInSidebarInput>): ShowChatInSidebarInput;
6177
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ShowChatInSidebarInput): ShowChatInSidebarInput;
6178
+ internalBinaryWrite(message: ShowChatInSidebarInput, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
6179
+ }
6180
+ /**
6181
+ * @generated MessageType for protobuf message ShowChatInSidebarInput
6182
+ */
6183
+ export declare const ShowChatInSidebarInput: ShowChatInSidebarInput$Type;
6184
+ declare class ShowChatInSidebarResult$Type extends MessageType<ShowChatInSidebarResult> {
6185
+ constructor();
6186
+ create(value?: PartialMessage<ShowChatInSidebarResult>): ShowChatInSidebarResult;
6187
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ShowChatInSidebarResult): ShowChatInSidebarResult;
6188
+ internalBinaryWrite(message: ShowChatInSidebarResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
6189
+ }
6190
+ /**
6191
+ * @generated MessageType for protobuf message ShowChatInSidebarResult
6192
+ */
6193
+ export declare const ShowChatInSidebarResult: ShowChatInSidebarResult$Type;
5276
6194
  declare class MarkAsUnreadInput$Type extends MessageType<MarkAsUnreadInput> {
5277
6195
  constructor();
5278
6196
  create(value?: PartialMessage<MarkAsUnreadInput>): MarkAsUnreadInput;
@@ -5353,6 +6271,86 @@ declare class ListBotsResult$Type extends MessageType<ListBotsResult> {
5353
6271
  * @generated MessageType for protobuf message ListBotsResult
5354
6272
  */
5355
6273
  export declare const ListBotsResult: ListBotsResult$Type;
6274
+ declare class BotCommand$Type extends MessageType<BotCommand> {
6275
+ constructor();
6276
+ create(value?: PartialMessage<BotCommand>): BotCommand;
6277
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BotCommand): BotCommand;
6278
+ internalBinaryWrite(message: BotCommand, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
6279
+ }
6280
+ /**
6281
+ * @generated MessageType for protobuf message BotCommand
6282
+ */
6283
+ export declare const BotCommand: BotCommand$Type;
6284
+ declare class PeerBotCommands$Type extends MessageType<PeerBotCommands> {
6285
+ constructor();
6286
+ create(value?: PartialMessage<PeerBotCommands>): PeerBotCommands;
6287
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PeerBotCommands): PeerBotCommands;
6288
+ internalBinaryWrite(message: PeerBotCommands, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
6289
+ }
6290
+ /**
6291
+ * @generated MessageType for protobuf message PeerBotCommands
6292
+ */
6293
+ export declare const PeerBotCommands: PeerBotCommands$Type;
6294
+ declare class GetBotCommandsInput$Type extends MessageType<GetBotCommandsInput> {
6295
+ constructor();
6296
+ create(value?: PartialMessage<GetBotCommandsInput>): GetBotCommandsInput;
6297
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetBotCommandsInput): GetBotCommandsInput;
6298
+ internalBinaryWrite(message: GetBotCommandsInput, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
6299
+ }
6300
+ /**
6301
+ * @generated MessageType for protobuf message GetBotCommandsInput
6302
+ */
6303
+ export declare const GetBotCommandsInput: GetBotCommandsInput$Type;
6304
+ declare class GetBotCommandsResult$Type extends MessageType<GetBotCommandsResult> {
6305
+ constructor();
6306
+ create(value?: PartialMessage<GetBotCommandsResult>): GetBotCommandsResult;
6307
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetBotCommandsResult): GetBotCommandsResult;
6308
+ internalBinaryWrite(message: GetBotCommandsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
6309
+ }
6310
+ /**
6311
+ * @generated MessageType for protobuf message GetBotCommandsResult
6312
+ */
6313
+ export declare const GetBotCommandsResult: GetBotCommandsResult$Type;
6314
+ declare class SetBotCommandsInput$Type extends MessageType<SetBotCommandsInput> {
6315
+ constructor();
6316
+ create(value?: PartialMessage<SetBotCommandsInput>): SetBotCommandsInput;
6317
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SetBotCommandsInput): SetBotCommandsInput;
6318
+ internalBinaryWrite(message: SetBotCommandsInput, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
6319
+ }
6320
+ /**
6321
+ * @generated MessageType for protobuf message SetBotCommandsInput
6322
+ */
6323
+ export declare const SetBotCommandsInput: SetBotCommandsInput$Type;
6324
+ declare class SetBotCommandsResult$Type extends MessageType<SetBotCommandsResult> {
6325
+ constructor();
6326
+ create(value?: PartialMessage<SetBotCommandsResult>): SetBotCommandsResult;
6327
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SetBotCommandsResult): SetBotCommandsResult;
6328
+ internalBinaryWrite(message: SetBotCommandsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
6329
+ }
6330
+ /**
6331
+ * @generated MessageType for protobuf message SetBotCommandsResult
6332
+ */
6333
+ export declare const SetBotCommandsResult: SetBotCommandsResult$Type;
6334
+ declare class GetPeerBotCommandsInput$Type extends MessageType<GetPeerBotCommandsInput> {
6335
+ constructor();
6336
+ create(value?: PartialMessage<GetPeerBotCommandsInput>): GetPeerBotCommandsInput;
6337
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetPeerBotCommandsInput): GetPeerBotCommandsInput;
6338
+ internalBinaryWrite(message: GetPeerBotCommandsInput, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
6339
+ }
6340
+ /**
6341
+ * @generated MessageType for protobuf message GetPeerBotCommandsInput
6342
+ */
6343
+ export declare const GetPeerBotCommandsInput: GetPeerBotCommandsInput$Type;
6344
+ declare class GetPeerBotCommandsResult$Type extends MessageType<GetPeerBotCommandsResult> {
6345
+ constructor();
6346
+ create(value?: PartialMessage<GetPeerBotCommandsResult>): GetPeerBotCommandsResult;
6347
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetPeerBotCommandsResult): GetPeerBotCommandsResult;
6348
+ internalBinaryWrite(message: GetPeerBotCommandsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
6349
+ }
6350
+ /**
6351
+ * @generated MessageType for protobuf message GetPeerBotCommandsResult
6352
+ */
6353
+ export declare const GetPeerBotCommandsResult: GetPeerBotCommandsResult$Type;
5356
6354
  declare class RevealBotTokenInput$Type extends MessageType<RevealBotTokenInput> {
5357
6355
  constructor();
5358
6356
  create(value?: PartialMessage<RevealBotTokenInput>): RevealBotTokenInput;
@@ -5753,6 +6751,16 @@ declare class InputMediaDocument$Type extends MessageType<InputMediaDocument> {
5753
6751
  * @generated MessageType for protobuf message InputMediaDocument
5754
6752
  */
5755
6753
  export declare const InputMediaDocument: InputMediaDocument$Type;
6754
+ declare class InputMediaVoice$Type extends MessageType<InputMediaVoice> {
6755
+ constructor();
6756
+ create(value?: PartialMessage<InputMediaVoice>): InputMediaVoice;
6757
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: InputMediaVoice): InputMediaVoice;
6758
+ internalBinaryWrite(message: InputMediaVoice, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
6759
+ }
6760
+ /**
6761
+ * @generated MessageType for protobuf message InputMediaVoice
6762
+ */
6763
+ export declare const InputMediaVoice: InputMediaVoice$Type;
5756
6764
  declare class InputMediaNudge$Type extends MessageType<InputMediaNudge> {
5757
6765
  constructor();
5758
6766
  create(value?: PartialMessage<InputMediaNudge>): InputMediaNudge;
@@ -5783,6 +6791,46 @@ declare class SendMessageResult$Type extends MessageType<SendMessageResult> {
5783
6791
  * @generated MessageType for protobuf message SendMessageResult
5784
6792
  */
5785
6793
  export declare const SendMessageResult: SendMessageResult$Type;
6794
+ declare class InvokeMessageActionInput$Type extends MessageType<InvokeMessageActionInput> {
6795
+ constructor();
6796
+ create(value?: PartialMessage<InvokeMessageActionInput>): InvokeMessageActionInput;
6797
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: InvokeMessageActionInput): InvokeMessageActionInput;
6798
+ internalBinaryWrite(message: InvokeMessageActionInput, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
6799
+ }
6800
+ /**
6801
+ * @generated MessageType for protobuf message InvokeMessageActionInput
6802
+ */
6803
+ export declare const InvokeMessageActionInput: InvokeMessageActionInput$Type;
6804
+ declare class InvokeMessageActionResult$Type extends MessageType<InvokeMessageActionResult> {
6805
+ constructor();
6806
+ create(value?: PartialMessage<InvokeMessageActionResult>): InvokeMessageActionResult;
6807
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: InvokeMessageActionResult): InvokeMessageActionResult;
6808
+ internalBinaryWrite(message: InvokeMessageActionResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
6809
+ }
6810
+ /**
6811
+ * @generated MessageType for protobuf message InvokeMessageActionResult
6812
+ */
6813
+ export declare const InvokeMessageActionResult: InvokeMessageActionResult$Type;
6814
+ declare class AnswerMessageActionInput$Type extends MessageType<AnswerMessageActionInput> {
6815
+ constructor();
6816
+ create(value?: PartialMessage<AnswerMessageActionInput>): AnswerMessageActionInput;
6817
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AnswerMessageActionInput): AnswerMessageActionInput;
6818
+ internalBinaryWrite(message: AnswerMessageActionInput, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
6819
+ }
6820
+ /**
6821
+ * @generated MessageType for protobuf message AnswerMessageActionInput
6822
+ */
6823
+ export declare const AnswerMessageActionInput: AnswerMessageActionInput$Type;
6824
+ declare class AnswerMessageActionResult$Type extends MessageType<AnswerMessageActionResult> {
6825
+ constructor();
6826
+ create(value?: PartialMessage<AnswerMessageActionResult>): AnswerMessageActionResult;
6827
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AnswerMessageActionResult): AnswerMessageActionResult;
6828
+ internalBinaryWrite(message: AnswerMessageActionResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
6829
+ }
6830
+ /**
6831
+ * @generated MessageType for protobuf message AnswerMessageActionResult
6832
+ */
6833
+ export declare const AnswerMessageActionResult: AnswerMessageActionResult$Type;
5786
6834
  declare class ForwardMessagesInput$Type extends MessageType<ForwardMessagesInput> {
5787
6835
  constructor();
5788
6836
  create(value?: PartialMessage<ForwardMessagesInput>): ForwardMessagesInput;
@@ -5873,6 +6921,36 @@ declare class InputChatParticipant$Type extends MessageType<InputChatParticipant
5873
6921
  * @generated MessageType for protobuf message InputChatParticipant
5874
6922
  */
5875
6923
  export declare const InputChatParticipant: InputChatParticipant$Type;
6924
+ declare class ReserveChatIdsInput$Type extends MessageType<ReserveChatIdsInput> {
6925
+ constructor();
6926
+ create(value?: PartialMessage<ReserveChatIdsInput>): ReserveChatIdsInput;
6927
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ReserveChatIdsInput): ReserveChatIdsInput;
6928
+ internalBinaryWrite(message: ReserveChatIdsInput, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
6929
+ }
6930
+ /**
6931
+ * @generated MessageType for protobuf message ReserveChatIdsInput
6932
+ */
6933
+ export declare const ReserveChatIdsInput: ReserveChatIdsInput$Type;
6934
+ declare class ReservedChatId$Type extends MessageType<ReservedChatId> {
6935
+ constructor();
6936
+ create(value?: PartialMessage<ReservedChatId>): ReservedChatId;
6937
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ReservedChatId): ReservedChatId;
6938
+ internalBinaryWrite(message: ReservedChatId, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
6939
+ }
6940
+ /**
6941
+ * @generated MessageType for protobuf message ReservedChatId
6942
+ */
6943
+ export declare const ReservedChatId: ReservedChatId$Type;
6944
+ declare class ReserveChatIdsResult$Type extends MessageType<ReserveChatIdsResult> {
6945
+ constructor();
6946
+ create(value?: PartialMessage<ReserveChatIdsResult>): ReserveChatIdsResult;
6947
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ReserveChatIdsResult): ReserveChatIdsResult;
6948
+ internalBinaryWrite(message: ReserveChatIdsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
6949
+ }
6950
+ /**
6951
+ * @generated MessageType for protobuf message ReserveChatIdsResult
6952
+ */
6953
+ export declare const ReserveChatIdsResult: ReserveChatIdsResult$Type;
5876
6954
  declare class CreateChatInput$Type extends MessageType<CreateChatInput> {
5877
6955
  constructor();
5878
6956
  create(value?: PartialMessage<CreateChatInput>): CreateChatInput;
@@ -5893,6 +6971,26 @@ declare class CreateChatResult$Type extends MessageType<CreateChatResult> {
5893
6971
  * @generated MessageType for protobuf message CreateChatResult
5894
6972
  */
5895
6973
  export declare const CreateChatResult: CreateChatResult$Type;
6974
+ declare class CreateSubthreadInput$Type extends MessageType<CreateSubthreadInput> {
6975
+ constructor();
6976
+ create(value?: PartialMessage<CreateSubthreadInput>): CreateSubthreadInput;
6977
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateSubthreadInput): CreateSubthreadInput;
6978
+ internalBinaryWrite(message: CreateSubthreadInput, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
6979
+ }
6980
+ /**
6981
+ * @generated MessageType for protobuf message CreateSubthreadInput
6982
+ */
6983
+ export declare const CreateSubthreadInput: CreateSubthreadInput$Type;
6984
+ declare class CreateSubthreadResult$Type extends MessageType<CreateSubthreadResult> {
6985
+ constructor();
6986
+ create(value?: PartialMessage<CreateSubthreadResult>): CreateSubthreadResult;
6987
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateSubthreadResult): CreateSubthreadResult;
6988
+ internalBinaryWrite(message: CreateSubthreadResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
6989
+ }
6990
+ /**
6991
+ * @generated MessageType for protobuf message CreateSubthreadResult
6992
+ */
6993
+ export declare const CreateSubthreadResult: CreateSubthreadResult$Type;
5896
6994
  declare class GetSpaceMembersInput$Type extends MessageType<GetSpaceMembersInput> {
5897
6995
  constructor();
5898
6996
  create(value?: PartialMessage<GetSpaceMembersInput>): GetSpaceMembersInput;
@@ -6103,6 +7201,36 @@ declare class UpdateNewChat$Type extends MessageType<UpdateNewChat> {
6103
7201
  * @generated MessageType for protobuf message UpdateNewChat
6104
7202
  */
6105
7203
  export declare const UpdateNewChat: UpdateNewChat$Type;
7204
+ declare class UpdateChatOpen$Type extends MessageType<UpdateChatOpen> {
7205
+ constructor();
7206
+ create(value?: PartialMessage<UpdateChatOpen>): UpdateChatOpen;
7207
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateChatOpen): UpdateChatOpen;
7208
+ internalBinaryWrite(message: UpdateChatOpen, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
7209
+ }
7210
+ /**
7211
+ * @generated MessageType for protobuf message UpdateChatOpen
7212
+ */
7213
+ export declare const UpdateChatOpen: UpdateChatOpen$Type;
7214
+ declare class UpdateMessageActionInvoked$Type extends MessageType<UpdateMessageActionInvoked> {
7215
+ constructor();
7216
+ create(value?: PartialMessage<UpdateMessageActionInvoked>): UpdateMessageActionInvoked;
7217
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateMessageActionInvoked): UpdateMessageActionInvoked;
7218
+ internalBinaryWrite(message: UpdateMessageActionInvoked, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
7219
+ }
7220
+ /**
7221
+ * @generated MessageType for protobuf message UpdateMessageActionInvoked
7222
+ */
7223
+ export declare const UpdateMessageActionInvoked: UpdateMessageActionInvoked$Type;
7224
+ declare class UpdateMessageActionAnswered$Type extends MessageType<UpdateMessageActionAnswered> {
7225
+ constructor();
7226
+ create(value?: PartialMessage<UpdateMessageActionAnswered>): UpdateMessageActionAnswered;
7227
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateMessageActionAnswered): UpdateMessageActionAnswered;
7228
+ internalBinaryWrite(message: UpdateMessageActionAnswered, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
7229
+ }
7230
+ /**
7231
+ * @generated MessageType for protobuf message UpdateMessageActionAnswered
7232
+ */
7233
+ export declare const UpdateMessageActionAnswered: UpdateMessageActionAnswered$Type;
6106
7234
  declare class UpdateDeleteChat$Type extends MessageType<UpdateDeleteChat> {
6107
7235
  constructor();
6108
7236
  create(value?: PartialMessage<UpdateDeleteChat>): UpdateDeleteChat;