@inline-chat/protocol 0.0.4 → 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.
- package/dist/core.d.ts +939 -1
- package/dist/core.js +4138 -2228
- 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
|
|
@@ -1780,6 +1939,54 @@ export interface RpcCall {
|
|
|
1780
1939
|
* @generated from protobuf field: UpdatePushNotificationDetailsInput updatePushNotificationDetails = 42;
|
|
1781
1940
|
*/
|
|
1782
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;
|
|
1783
1990
|
} | {
|
|
1784
1991
|
oneofKind: undefined;
|
|
1785
1992
|
};
|
|
@@ -2041,6 +2248,54 @@ export interface RpcResult {
|
|
|
2041
2248
|
* @generated from protobuf field: UpdatePushNotificationDetailsResult updatePushNotificationDetails = 42;
|
|
2042
2249
|
*/
|
|
2043
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;
|
|
2044
2299
|
} | {
|
|
2045
2300
|
oneofKind: undefined;
|
|
2046
2301
|
};
|
|
@@ -2290,6 +2545,34 @@ export interface GetChatResult {
|
|
|
2290
2545
|
* @generated from protobuf field: repeated int64 pinned_message_ids = 3;
|
|
2291
2546
|
*/
|
|
2292
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;
|
|
2293
2576
|
}
|
|
2294
2577
|
/**
|
|
2295
2578
|
* Mark dialog as unread
|
|
@@ -2395,6 +2678,94 @@ export interface ListBotsResult {
|
|
|
2395
2678
|
*/
|
|
2396
2679
|
bots: User[];
|
|
2397
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
|
+
}
|
|
2398
2769
|
/**
|
|
2399
2770
|
* @generated from protobuf message RevealBotTokenInput
|
|
2400
2771
|
*/
|
|
@@ -2966,6 +3337,15 @@ export interface EditMessageInput {
|
|
|
2966
3337
|
* @generated from protobuf field: optional bool parse_markdown = 8;
|
|
2967
3338
|
*/
|
|
2968
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;
|
|
2969
3349
|
}
|
|
2970
3350
|
/**
|
|
2971
3351
|
* @generated from protobuf message EditMessageResult
|
|
@@ -3134,6 +3514,12 @@ export interface SendMessageInput {
|
|
|
3134
3514
|
* @generated from protobuf field: optional MessageSendMode send_mode = 9;
|
|
3135
3515
|
*/
|
|
3136
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;
|
|
3137
3523
|
}
|
|
3138
3524
|
/**
|
|
3139
3525
|
* @generated from protobuf message SendMessageResult
|
|
@@ -3144,6 +3530,52 @@ export interface SendMessageResult {
|
|
|
3144
3530
|
*/
|
|
3145
3531
|
updates: Update[];
|
|
3146
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
|
+
}
|
|
3147
3579
|
/**
|
|
3148
3580
|
* @generated from protobuf message ForwardMessagesInput
|
|
3149
3581
|
*/
|
|
@@ -3332,6 +3764,37 @@ export interface InputChatParticipant {
|
|
|
3332
3764
|
*/
|
|
3333
3765
|
userId: bigint;
|
|
3334
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
|
+
}
|
|
3335
3798
|
/**
|
|
3336
3799
|
* @generated from protobuf message CreateChatInput
|
|
3337
3800
|
*/
|
|
@@ -3372,6 +3835,12 @@ export interface CreateChatInput {
|
|
|
3372
3835
|
* @generated from protobuf field: repeated InputChatParticipant participants = 6;
|
|
3373
3836
|
*/
|
|
3374
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;
|
|
3842
|
+
*/
|
|
3843
|
+
reservedChatId?: bigint;
|
|
3375
3844
|
}
|
|
3376
3845
|
/**
|
|
3377
3846
|
* @generated from protobuf message CreateChatResult
|
|
@@ -3386,6 +3855,64 @@ export interface CreateChatResult {
|
|
|
3386
3855
|
*/
|
|
3387
3856
|
dialog?: Dialog;
|
|
3388
3857
|
}
|
|
3858
|
+
/**
|
|
3859
|
+
* @generated from protobuf message CreateSubthreadInput
|
|
3860
|
+
*/
|
|
3861
|
+
export interface CreateSubthreadInput {
|
|
3862
|
+
/**
|
|
3863
|
+
* Required parent chat for inherited access and navigation.
|
|
3864
|
+
*
|
|
3865
|
+
* @generated from protobuf field: int64 parent_chat_id = 1;
|
|
3866
|
+
*/
|
|
3867
|
+
parentChatId: bigint;
|
|
3868
|
+
/**
|
|
3869
|
+
* Optional parent message anchor. When set, this subthread is also a reply thread.
|
|
3870
|
+
*
|
|
3871
|
+
* @generated from protobuf field: optional int64 parent_message_id = 2;
|
|
3872
|
+
*/
|
|
3873
|
+
parentMessageId?: bigint;
|
|
3874
|
+
/**
|
|
3875
|
+
* Optional explicit title. Defaults to a reply-derived title when omitted.
|
|
3876
|
+
*
|
|
3877
|
+
* @generated from protobuf field: optional string title = 3;
|
|
3878
|
+
*/
|
|
3879
|
+
title?: string;
|
|
3880
|
+
/**
|
|
3881
|
+
* Optional explicit description.
|
|
3882
|
+
*
|
|
3883
|
+
* @generated from protobuf field: optional string description = 4;
|
|
3884
|
+
*/
|
|
3885
|
+
description?: string;
|
|
3886
|
+
/**
|
|
3887
|
+
* Optional explicit emoji.
|
|
3888
|
+
*
|
|
3889
|
+
* @generated from protobuf field: optional string emoji = 5;
|
|
3890
|
+
*/
|
|
3891
|
+
emoji?: string;
|
|
3892
|
+
/**
|
|
3893
|
+
* Optional direct child participants.
|
|
3894
|
+
*
|
|
3895
|
+
* @generated from protobuf field: repeated InputChatParticipant participants = 6;
|
|
3896
|
+
*/
|
|
3897
|
+
participants: InputChatParticipant[];
|
|
3898
|
+
}
|
|
3899
|
+
/**
|
|
3900
|
+
* @generated from protobuf message CreateSubthreadResult
|
|
3901
|
+
*/
|
|
3902
|
+
export interface CreateSubthreadResult {
|
|
3903
|
+
/**
|
|
3904
|
+
* @generated from protobuf field: Chat chat = 1;
|
|
3905
|
+
*/
|
|
3906
|
+
chat?: Chat;
|
|
3907
|
+
/**
|
|
3908
|
+
* @generated from protobuf field: Dialog dialog = 2;
|
|
3909
|
+
*/
|
|
3910
|
+
dialog?: Dialog;
|
|
3911
|
+
/**
|
|
3912
|
+
* @generated from protobuf field: Message anchor_message = 3;
|
|
3913
|
+
*/
|
|
3914
|
+
anchorMessage?: Message;
|
|
3915
|
+
}
|
|
3389
3916
|
/**
|
|
3390
3917
|
* @generated from protobuf message GetSpaceMembersInput
|
|
3391
3918
|
*/
|
|
@@ -3606,6 +4133,24 @@ export interface Update {
|
|
|
3606
4133
|
* @generated from protobuf field: UpdateDialogNotificationSettings dialog_notification_settings = 33;
|
|
3607
4134
|
*/
|
|
3608
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;
|
|
3609
4154
|
} | {
|
|
3610
4155
|
oneofKind: undefined;
|
|
3611
4156
|
};
|
|
@@ -3947,6 +4492,67 @@ export interface UpdateNewChat {
|
|
|
3947
4492
|
*/
|
|
3948
4493
|
user?: User;
|
|
3949
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
|
+
}
|
|
3950
4556
|
/**
|
|
3951
4557
|
* Update when a chat is deleted
|
|
3952
4558
|
*
|
|
@@ -4700,7 +5306,39 @@ export declare enum Method {
|
|
|
4700
5306
|
/**
|
|
4701
5307
|
* @generated from protobuf enum value: UPDATE_PUSH_NOTIFICATION_DETAILS = 41;
|
|
4702
5308
|
*/
|
|
4703
|
-
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
|
|
4704
5342
|
}
|
|
4705
5343
|
/**
|
|
4706
5344
|
* @generated from protobuf enum PushNotificationProvider
|
|
@@ -4983,6 +5621,86 @@ declare class Chat$Type extends MessageType<Chat> {
|
|
|
4983
5621
|
* @generated MessageType for protobuf message Chat
|
|
4984
5622
|
*/
|
|
4985
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;
|
|
4986
5704
|
declare class Message$Type extends MessageType<Message> {
|
|
4987
5705
|
constructor();
|
|
4988
5706
|
create(value?: PartialMessage<Message>): Message;
|
|
@@ -5453,6 +6171,26 @@ declare class GetChatResult$Type extends MessageType<GetChatResult> {
|
|
|
5453
6171
|
* @generated MessageType for protobuf message GetChatResult
|
|
5454
6172
|
*/
|
|
5455
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;
|
|
5456
6194
|
declare class MarkAsUnreadInput$Type extends MessageType<MarkAsUnreadInput> {
|
|
5457
6195
|
constructor();
|
|
5458
6196
|
create(value?: PartialMessage<MarkAsUnreadInput>): MarkAsUnreadInput;
|
|
@@ -5533,6 +6271,86 @@ declare class ListBotsResult$Type extends MessageType<ListBotsResult> {
|
|
|
5533
6271
|
* @generated MessageType for protobuf message ListBotsResult
|
|
5534
6272
|
*/
|
|
5535
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;
|
|
5536
6354
|
declare class RevealBotTokenInput$Type extends MessageType<RevealBotTokenInput> {
|
|
5537
6355
|
constructor();
|
|
5538
6356
|
create(value?: PartialMessage<RevealBotTokenInput>): RevealBotTokenInput;
|
|
@@ -5973,6 +6791,46 @@ declare class SendMessageResult$Type extends MessageType<SendMessageResult> {
|
|
|
5973
6791
|
* @generated MessageType for protobuf message SendMessageResult
|
|
5974
6792
|
*/
|
|
5975
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;
|
|
5976
6834
|
declare class ForwardMessagesInput$Type extends MessageType<ForwardMessagesInput> {
|
|
5977
6835
|
constructor();
|
|
5978
6836
|
create(value?: PartialMessage<ForwardMessagesInput>): ForwardMessagesInput;
|
|
@@ -6063,6 +6921,36 @@ declare class InputChatParticipant$Type extends MessageType<InputChatParticipant
|
|
|
6063
6921
|
* @generated MessageType for protobuf message InputChatParticipant
|
|
6064
6922
|
*/
|
|
6065
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;
|
|
6066
6954
|
declare class CreateChatInput$Type extends MessageType<CreateChatInput> {
|
|
6067
6955
|
constructor();
|
|
6068
6956
|
create(value?: PartialMessage<CreateChatInput>): CreateChatInput;
|
|
@@ -6083,6 +6971,26 @@ declare class CreateChatResult$Type extends MessageType<CreateChatResult> {
|
|
|
6083
6971
|
* @generated MessageType for protobuf message CreateChatResult
|
|
6084
6972
|
*/
|
|
6085
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;
|
|
6086
6994
|
declare class GetSpaceMembersInput$Type extends MessageType<GetSpaceMembersInput> {
|
|
6087
6995
|
constructor();
|
|
6088
6996
|
create(value?: PartialMessage<GetSpaceMembersInput>): GetSpaceMembersInput;
|
|
@@ -6293,6 +7201,36 @@ declare class UpdateNewChat$Type extends MessageType<UpdateNewChat> {
|
|
|
6293
7201
|
* @generated MessageType for protobuf message UpdateNewChat
|
|
6294
7202
|
*/
|
|
6295
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;
|
|
6296
7234
|
declare class UpdateDeleteChat$Type extends MessageType<UpdateDeleteChat> {
|
|
6297
7235
|
constructor();
|
|
6298
7236
|
create(value?: PartialMessage<UpdateDeleteChat>): UpdateDeleteChat;
|