@inline-chat/protocol 0.0.2 → 0.0.4
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 +677 -5
- package/dist/core.js +1293 -101
- package/package.json +1 -1
package/dist/core.d.ts
CHANGED
|
@@ -409,6 +409,10 @@ export interface Dialog {
|
|
|
409
409
|
* @generated from protobuf field: optional bool unread_mark = 8;
|
|
410
410
|
*/
|
|
411
411
|
unreadMark?: boolean;
|
|
412
|
+
/**
|
|
413
|
+
* @generated from protobuf field: optional DialogNotificationSettings notification_settings = 9;
|
|
414
|
+
*/
|
|
415
|
+
notificationSettings?: DialogNotificationSettings;
|
|
412
416
|
}
|
|
413
417
|
/**
|
|
414
418
|
* A thread
|
|
@@ -1102,7 +1106,7 @@ export declare enum MessageAttachmentExternalTask_Status {
|
|
|
1102
1106
|
CANCELLED = 5
|
|
1103
1107
|
}
|
|
1104
1108
|
/**
|
|
1105
|
-
* WIP: add
|
|
1109
|
+
* WIP: add richer media/filtering metadata.
|
|
1106
1110
|
*
|
|
1107
1111
|
* @generated from protobuf message MessageMedia
|
|
1108
1112
|
*/
|
|
@@ -1134,6 +1138,12 @@ export interface MessageMedia {
|
|
|
1134
1138
|
* @generated from protobuf field: MessageNudge nudge = 4;
|
|
1135
1139
|
*/
|
|
1136
1140
|
nudge: MessageNudge;
|
|
1141
|
+
} | {
|
|
1142
|
+
oneofKind: "voice";
|
|
1143
|
+
/**
|
|
1144
|
+
* @generated from protobuf field: MessageVoice voice = 5;
|
|
1145
|
+
*/
|
|
1146
|
+
voice: MessageVoice;
|
|
1137
1147
|
} | {
|
|
1138
1148
|
oneofKind: undefined;
|
|
1139
1149
|
};
|
|
@@ -1165,6 +1175,15 @@ export interface MessageDocument {
|
|
|
1165
1175
|
*/
|
|
1166
1176
|
document?: Document;
|
|
1167
1177
|
}
|
|
1178
|
+
/**
|
|
1179
|
+
* @generated from protobuf message MessageVoice
|
|
1180
|
+
*/
|
|
1181
|
+
export interface MessageVoice {
|
|
1182
|
+
/**
|
|
1183
|
+
* @generated from protobuf field: Voice voice = 1;
|
|
1184
|
+
*/
|
|
1185
|
+
voice?: Voice;
|
|
1186
|
+
}
|
|
1168
1187
|
/**
|
|
1169
1188
|
* Nudge message (empty payload)
|
|
1170
1189
|
*
|
|
@@ -1261,6 +1280,57 @@ export interface Document {
|
|
|
1261
1280
|
* @generated from protobuf field: int64 date = 6;
|
|
1262
1281
|
*/
|
|
1263
1282
|
date: bigint;
|
|
1283
|
+
/**
|
|
1284
|
+
* Thumbnail of the document
|
|
1285
|
+
*
|
|
1286
|
+
* @generated from protobuf field: optional Photo photo = 7;
|
|
1287
|
+
*/
|
|
1288
|
+
photo?: Photo;
|
|
1289
|
+
}
|
|
1290
|
+
/**
|
|
1291
|
+
* @generated from protobuf message Voice
|
|
1292
|
+
*/
|
|
1293
|
+
export interface Voice {
|
|
1294
|
+
/**
|
|
1295
|
+
* @generated from protobuf field: int64 id = 1;
|
|
1296
|
+
*/
|
|
1297
|
+
id: bigint;
|
|
1298
|
+
/**
|
|
1299
|
+
* Date of upload
|
|
1300
|
+
*
|
|
1301
|
+
* @generated from protobuf field: int64 date = 2;
|
|
1302
|
+
*/
|
|
1303
|
+
date: bigint;
|
|
1304
|
+
/**
|
|
1305
|
+
* Duration of the voice message in seconds
|
|
1306
|
+
*
|
|
1307
|
+
* @generated from protobuf field: int32 duration = 3;
|
|
1308
|
+
*/
|
|
1309
|
+
duration: number;
|
|
1310
|
+
/**
|
|
1311
|
+
* File size
|
|
1312
|
+
*
|
|
1313
|
+
* @generated from protobuf field: int32 size = 4;
|
|
1314
|
+
*/
|
|
1315
|
+
size: number;
|
|
1316
|
+
/**
|
|
1317
|
+
* MIME type of the file
|
|
1318
|
+
*
|
|
1319
|
+
* @generated from protobuf field: string mime_type = 5;
|
|
1320
|
+
*/
|
|
1321
|
+
mimeType: string;
|
|
1322
|
+
/**
|
|
1323
|
+
* CDN URL
|
|
1324
|
+
*
|
|
1325
|
+
* @generated from protobuf field: optional string cdn_url = 6;
|
|
1326
|
+
*/
|
|
1327
|
+
cdnUrl?: string;
|
|
1328
|
+
/**
|
|
1329
|
+
* Waveform bytes for rendering
|
|
1330
|
+
*
|
|
1331
|
+
* @generated from protobuf field: bytes waveform = 7;
|
|
1332
|
+
*/
|
|
1333
|
+
waveform: Uint8Array;
|
|
1264
1334
|
}
|
|
1265
1335
|
/**
|
|
1266
1336
|
* Photo for message media, profile photo, space photo, or chat photo
|
|
@@ -1686,6 +1756,30 @@ export interface RpcCall {
|
|
|
1686
1756
|
* @generated from protobuf field: UpdateBotProfileInput updateBotProfile = 38;
|
|
1687
1757
|
*/
|
|
1688
1758
|
updateBotProfile: UpdateBotProfileInput;
|
|
1759
|
+
} | {
|
|
1760
|
+
oneofKind: "getMessages";
|
|
1761
|
+
/**
|
|
1762
|
+
* @generated from protobuf field: GetMessagesInput getMessages = 39;
|
|
1763
|
+
*/
|
|
1764
|
+
getMessages: GetMessagesInput;
|
|
1765
|
+
} | {
|
|
1766
|
+
oneofKind: "updateDialogNotificationSettings";
|
|
1767
|
+
/**
|
|
1768
|
+
* @generated from protobuf field: UpdateDialogNotificationSettingsInput updateDialogNotificationSettings = 40;
|
|
1769
|
+
*/
|
|
1770
|
+
updateDialogNotificationSettings: UpdateDialogNotificationSettingsInput;
|
|
1771
|
+
} | {
|
|
1772
|
+
oneofKind: "readMessages";
|
|
1773
|
+
/**
|
|
1774
|
+
* @generated from protobuf field: ReadMessagesInput readMessages = 41;
|
|
1775
|
+
*/
|
|
1776
|
+
readMessages: ReadMessagesInput;
|
|
1777
|
+
} | {
|
|
1778
|
+
oneofKind: "updatePushNotificationDetails";
|
|
1779
|
+
/**
|
|
1780
|
+
* @generated from protobuf field: UpdatePushNotificationDetailsInput updatePushNotificationDetails = 42;
|
|
1781
|
+
*/
|
|
1782
|
+
updatePushNotificationDetails: UpdatePushNotificationDetailsInput;
|
|
1689
1783
|
} | {
|
|
1690
1784
|
oneofKind: undefined;
|
|
1691
1785
|
};
|
|
@@ -1923,6 +2017,30 @@ export interface RpcResult {
|
|
|
1923
2017
|
* @generated from protobuf field: UpdateBotProfileResult updateBotProfile = 38;
|
|
1924
2018
|
*/
|
|
1925
2019
|
updateBotProfile: UpdateBotProfileResult;
|
|
2020
|
+
} | {
|
|
2021
|
+
oneofKind: "getMessages";
|
|
2022
|
+
/**
|
|
2023
|
+
* @generated from protobuf field: GetMessagesResult getMessages = 39;
|
|
2024
|
+
*/
|
|
2025
|
+
getMessages: GetMessagesResult;
|
|
2026
|
+
} | {
|
|
2027
|
+
oneofKind: "updateDialogNotificationSettings";
|
|
2028
|
+
/**
|
|
2029
|
+
* @generated from protobuf field: UpdateDialogNotificationSettingsResult updateDialogNotificationSettings = 40;
|
|
2030
|
+
*/
|
|
2031
|
+
updateDialogNotificationSettings: UpdateDialogNotificationSettingsResult;
|
|
2032
|
+
} | {
|
|
2033
|
+
oneofKind: "readMessages";
|
|
2034
|
+
/**
|
|
2035
|
+
* @generated from protobuf field: ReadMessagesResult readMessages = 41;
|
|
2036
|
+
*/
|
|
2037
|
+
readMessages: ReadMessagesResult;
|
|
2038
|
+
} | {
|
|
2039
|
+
oneofKind: "updatePushNotificationDetails";
|
|
2040
|
+
/**
|
|
2041
|
+
* @generated from protobuf field: UpdatePushNotificationDetailsResult updatePushNotificationDetails = 42;
|
|
2042
|
+
*/
|
|
2043
|
+
updatePushNotificationDetails: UpdatePushNotificationDetailsResult;
|
|
1926
2044
|
} | {
|
|
1927
2045
|
oneofKind: undefined;
|
|
1928
2046
|
};
|
|
@@ -2197,6 +2315,34 @@ export interface MarkAsUnreadResult {
|
|
|
2197
2315
|
*/
|
|
2198
2316
|
updates: Update[];
|
|
2199
2317
|
}
|
|
2318
|
+
/**
|
|
2319
|
+
* Read dialog history up to max_id (Telegram-style: peer + optional max_id).
|
|
2320
|
+
*
|
|
2321
|
+
* @generated from protobuf message ReadMessagesInput
|
|
2322
|
+
*/
|
|
2323
|
+
export interface ReadMessagesInput {
|
|
2324
|
+
/**
|
|
2325
|
+
* Peer ID to mark as read
|
|
2326
|
+
*
|
|
2327
|
+
* @generated from protobuf field: InputPeer peer_id = 1;
|
|
2328
|
+
*/
|
|
2329
|
+
peerId?: InputPeer;
|
|
2330
|
+
/**
|
|
2331
|
+
* If unset, server resolves to the latest message id for the peer.
|
|
2332
|
+
*
|
|
2333
|
+
* @generated from protobuf field: optional int64 max_id = 2;
|
|
2334
|
+
*/
|
|
2335
|
+
maxId?: bigint;
|
|
2336
|
+
}
|
|
2337
|
+
/**
|
|
2338
|
+
* @generated from protobuf message ReadMessagesResult
|
|
2339
|
+
*/
|
|
2340
|
+
export interface ReadMessagesResult {
|
|
2341
|
+
/**
|
|
2342
|
+
* @generated from protobuf field: repeated Update updates = 1;
|
|
2343
|
+
*/
|
|
2344
|
+
updates: Update[];
|
|
2345
|
+
}
|
|
2200
2346
|
/**
|
|
2201
2347
|
* @generated from protobuf message CreateBotInput
|
|
2202
2348
|
*/
|
|
@@ -2408,6 +2554,36 @@ export declare enum NotificationSettings_Mode {
|
|
|
2408
2554
|
*/
|
|
2409
2555
|
ONLY_MENTIONS = 5
|
|
2410
2556
|
}
|
|
2557
|
+
/**
|
|
2558
|
+
* @generated from protobuf message DialogNotificationSettings
|
|
2559
|
+
*/
|
|
2560
|
+
export interface DialogNotificationSettings {
|
|
2561
|
+
/**
|
|
2562
|
+
* @generated from protobuf field: optional DialogNotificationSettings.Mode mode = 1;
|
|
2563
|
+
*/
|
|
2564
|
+
mode?: DialogNotificationSettings_Mode;
|
|
2565
|
+
}
|
|
2566
|
+
/**
|
|
2567
|
+
* @generated from protobuf enum DialogNotificationSettings.Mode
|
|
2568
|
+
*/
|
|
2569
|
+
export declare enum DialogNotificationSettings_Mode {
|
|
2570
|
+
/**
|
|
2571
|
+
* @generated from protobuf enum value: MODE_UNSPECIFIED = 0;
|
|
2572
|
+
*/
|
|
2573
|
+
UNSPECIFIED = 0,
|
|
2574
|
+
/**
|
|
2575
|
+
* @generated from protobuf enum value: MODE_ALL = 1;
|
|
2576
|
+
*/
|
|
2577
|
+
ALL = 1,
|
|
2578
|
+
/**
|
|
2579
|
+
* @generated from protobuf enum value: MODE_MENTIONS = 2;
|
|
2580
|
+
*/
|
|
2581
|
+
MENTIONS = 2,
|
|
2582
|
+
/**
|
|
2583
|
+
* @generated from protobuf enum value: MODE_NONE = 3;
|
|
2584
|
+
*/
|
|
2585
|
+
NONE = 3
|
|
2586
|
+
}
|
|
2411
2587
|
/**
|
|
2412
2588
|
* @generated from protobuf message UpdateUserSettingsInput
|
|
2413
2589
|
*/
|
|
@@ -2426,6 +2602,32 @@ export interface UpdateUserSettingsResult {
|
|
|
2426
2602
|
*/
|
|
2427
2603
|
updates: Update[];
|
|
2428
2604
|
}
|
|
2605
|
+
/**
|
|
2606
|
+
* @generated from protobuf message UpdateDialogNotificationSettingsInput
|
|
2607
|
+
*/
|
|
2608
|
+
export interface UpdateDialogNotificationSettingsInput {
|
|
2609
|
+
/**
|
|
2610
|
+
* Peer to update settings for
|
|
2611
|
+
*
|
|
2612
|
+
* @generated from protobuf field: InputPeer peer_id = 1;
|
|
2613
|
+
*/
|
|
2614
|
+
peerId?: InputPeer;
|
|
2615
|
+
/**
|
|
2616
|
+
* If unset, chat follows global notification settings
|
|
2617
|
+
*
|
|
2618
|
+
* @generated from protobuf field: optional DialogNotificationSettings notification_settings = 2;
|
|
2619
|
+
*/
|
|
2620
|
+
notificationSettings?: DialogNotificationSettings;
|
|
2621
|
+
}
|
|
2622
|
+
/**
|
|
2623
|
+
* @generated from protobuf message UpdateDialogNotificationSettingsResult
|
|
2624
|
+
*/
|
|
2625
|
+
export interface UpdateDialogNotificationSettingsResult {
|
|
2626
|
+
/**
|
|
2627
|
+
* @generated from protobuf field: repeated Update updates = 1;
|
|
2628
|
+
*/
|
|
2629
|
+
updates: Update[];
|
|
2630
|
+
}
|
|
2429
2631
|
/**
|
|
2430
2632
|
* @generated from protobuf message SendComposeActionInput
|
|
2431
2633
|
*/
|
|
@@ -2448,6 +2650,130 @@ export interface SendComposeActionInput {
|
|
|
2448
2650
|
*/
|
|
2449
2651
|
export interface SendComposeActionResult {
|
|
2450
2652
|
}
|
|
2653
|
+
/**
|
|
2654
|
+
* @generated from protobuf message PushContentEncryptionKey
|
|
2655
|
+
*/
|
|
2656
|
+
export interface PushContentEncryptionKey {
|
|
2657
|
+
/**
|
|
2658
|
+
* Raw public key bytes for the receiving device/session.
|
|
2659
|
+
*
|
|
2660
|
+
* @generated from protobuf field: bytes public_key = 1;
|
|
2661
|
+
*/
|
|
2662
|
+
publicKey: Uint8Array;
|
|
2663
|
+
/**
|
|
2664
|
+
* Optional key identifier to support rotation and debugging.
|
|
2665
|
+
*
|
|
2666
|
+
* @generated from protobuf field: optional string key_id = 2;
|
|
2667
|
+
*/
|
|
2668
|
+
keyId?: string;
|
|
2669
|
+
/**
|
|
2670
|
+
* Public-key algorithm/cipher-suite descriptor.
|
|
2671
|
+
*
|
|
2672
|
+
* @generated from protobuf field: PushContentEncryptionKey.Algorithm algorithm = 3;
|
|
2673
|
+
*/
|
|
2674
|
+
algorithm: PushContentEncryptionKey_Algorithm;
|
|
2675
|
+
}
|
|
2676
|
+
/**
|
|
2677
|
+
* @generated from protobuf enum PushContentEncryptionKey.Algorithm
|
|
2678
|
+
*/
|
|
2679
|
+
export declare enum PushContentEncryptionKey_Algorithm {
|
|
2680
|
+
/**
|
|
2681
|
+
* @generated from protobuf enum value: ALGORITHM_UNSPECIFIED = 0;
|
|
2682
|
+
*/
|
|
2683
|
+
UNSPECIFIED = 0,
|
|
2684
|
+
/**
|
|
2685
|
+
* @generated from protobuf enum value: ALGORITHM_X25519_HKDF_SHA256_AES256_GCM = 1;
|
|
2686
|
+
*/
|
|
2687
|
+
X25519_HKDF_SHA256_AES256_GCM = 1
|
|
2688
|
+
}
|
|
2689
|
+
/**
|
|
2690
|
+
* @generated from protobuf message ApnsNotificationMethod
|
|
2691
|
+
*/
|
|
2692
|
+
export interface ApnsNotificationMethod {
|
|
2693
|
+
/**
|
|
2694
|
+
* APNs device token.
|
|
2695
|
+
*
|
|
2696
|
+
* @generated from protobuf field: string device_token = 1;
|
|
2697
|
+
*/
|
|
2698
|
+
deviceToken: string;
|
|
2699
|
+
}
|
|
2700
|
+
/**
|
|
2701
|
+
* @generated from protobuf message ExpoAndroidNotificationMethod
|
|
2702
|
+
*/
|
|
2703
|
+
export interface ExpoAndroidNotificationMethod {
|
|
2704
|
+
/**
|
|
2705
|
+
* Expo push token (ExponentPushToken[...] format).
|
|
2706
|
+
*
|
|
2707
|
+
* @generated from protobuf field: string expo_push_token = 1;
|
|
2708
|
+
*/
|
|
2709
|
+
expoPushToken: string;
|
|
2710
|
+
}
|
|
2711
|
+
/**
|
|
2712
|
+
* @generated from protobuf message PushNotificationMethod
|
|
2713
|
+
*/
|
|
2714
|
+
export interface PushNotificationMethod {
|
|
2715
|
+
/**
|
|
2716
|
+
* Selected push transport/provider for the session.
|
|
2717
|
+
*
|
|
2718
|
+
* @generated from protobuf field: PushNotificationProvider provider = 1;
|
|
2719
|
+
*/
|
|
2720
|
+
provider: PushNotificationProvider;
|
|
2721
|
+
/**
|
|
2722
|
+
* @generated from protobuf oneof: method
|
|
2723
|
+
*/
|
|
2724
|
+
method: {
|
|
2725
|
+
oneofKind: "apns";
|
|
2726
|
+
/**
|
|
2727
|
+
* @generated from protobuf field: ApnsNotificationMethod apns = 2;
|
|
2728
|
+
*/
|
|
2729
|
+
apns: ApnsNotificationMethod;
|
|
2730
|
+
} | {
|
|
2731
|
+
oneofKind: "expoAndroid";
|
|
2732
|
+
/**
|
|
2733
|
+
* @generated from protobuf field: ExpoAndroidNotificationMethod expo_android = 3;
|
|
2734
|
+
*/
|
|
2735
|
+
expoAndroid: ExpoAndroidNotificationMethod;
|
|
2736
|
+
} | {
|
|
2737
|
+
oneofKind: undefined;
|
|
2738
|
+
};
|
|
2739
|
+
}
|
|
2740
|
+
/**
|
|
2741
|
+
* Register/update push notification details for the current session.
|
|
2742
|
+
*
|
|
2743
|
+
* @generated from protobuf message UpdatePushNotificationDetailsInput
|
|
2744
|
+
*/
|
|
2745
|
+
export interface UpdatePushNotificationDetailsInput {
|
|
2746
|
+
/**
|
|
2747
|
+
* Legacy APNs token for old clients. Kept for gradual migration/fallback.
|
|
2748
|
+
*
|
|
2749
|
+
* @deprecated
|
|
2750
|
+
* @generated from protobuf field: string apple_push_token = 1 [deprecated = true];
|
|
2751
|
+
*/
|
|
2752
|
+
applePushToken: string;
|
|
2753
|
+
/**
|
|
2754
|
+
* Optional metadata for encrypted push content rollout.
|
|
2755
|
+
*
|
|
2756
|
+
* @generated from protobuf field: optional PushContentEncryptionKey push_content_encryption_key = 2;
|
|
2757
|
+
*/
|
|
2758
|
+
pushContentEncryptionKey?: PushContentEncryptionKey;
|
|
2759
|
+
/**
|
|
2760
|
+
* Optional encrypted payload schema version/capability marker.
|
|
2761
|
+
*
|
|
2762
|
+
* @generated from protobuf field: optional uint32 push_content_version = 3;
|
|
2763
|
+
*/
|
|
2764
|
+
pushContentVersion?: number;
|
|
2765
|
+
/**
|
|
2766
|
+
* New provider-specific method payload.
|
|
2767
|
+
*
|
|
2768
|
+
* @generated from protobuf field: optional PushNotificationMethod notification_method = 4;
|
|
2769
|
+
*/
|
|
2770
|
+
notificationMethod?: PushNotificationMethod;
|
|
2771
|
+
}
|
|
2772
|
+
/**
|
|
2773
|
+
* @generated from protobuf message UpdatePushNotificationDetailsResult
|
|
2774
|
+
*/
|
|
2775
|
+
export interface UpdatePushNotificationDetailsResult {
|
|
2776
|
+
}
|
|
2451
2777
|
/**
|
|
2452
2778
|
* @generated from protobuf message GetChatsInput
|
|
2453
2779
|
*/
|
|
@@ -2636,6 +2962,10 @@ export interface EditMessageInput {
|
|
|
2636
2962
|
* @generated from protobuf field: optional MessageEntities entities = 7;
|
|
2637
2963
|
*/
|
|
2638
2964
|
entities?: MessageEntities;
|
|
2965
|
+
/**
|
|
2966
|
+
* @generated from protobuf field: optional bool parse_markdown = 8;
|
|
2967
|
+
*/
|
|
2968
|
+
parseMarkdown?: boolean;
|
|
2639
2969
|
}
|
|
2640
2970
|
/**
|
|
2641
2971
|
* @generated from protobuf message EditMessageResult
|
|
@@ -2677,6 +3007,12 @@ export interface InputMedia {
|
|
|
2677
3007
|
* @generated from protobuf field: InputMediaNudge nudge = 4;
|
|
2678
3008
|
*/
|
|
2679
3009
|
nudge: InputMediaNudge;
|
|
3010
|
+
} | {
|
|
3011
|
+
oneofKind: "voice";
|
|
3012
|
+
/**
|
|
3013
|
+
* @generated from protobuf field: InputMediaVoice voice = 5;
|
|
3014
|
+
*/
|
|
3015
|
+
voice: InputMediaVoice;
|
|
2680
3016
|
} | {
|
|
2681
3017
|
oneofKind: undefined;
|
|
2682
3018
|
};
|
|
@@ -2714,6 +3050,17 @@ export interface InputMediaDocument {
|
|
|
2714
3050
|
*/
|
|
2715
3051
|
documentId: bigint;
|
|
2716
3052
|
}
|
|
3053
|
+
/**
|
|
3054
|
+
* @generated from protobuf message InputMediaVoice
|
|
3055
|
+
*/
|
|
3056
|
+
export interface InputMediaVoice {
|
|
3057
|
+
/**
|
|
3058
|
+
* ID of the voice message that we have uploaded
|
|
3059
|
+
*
|
|
3060
|
+
* @generated from protobuf field: int64 voice_id = 1;
|
|
3061
|
+
*/
|
|
3062
|
+
voiceId: bigint;
|
|
3063
|
+
}
|
|
2717
3064
|
/**
|
|
2718
3065
|
* Nudge message (empty payload)
|
|
2719
3066
|
*
|
|
@@ -2844,17 +3191,61 @@ export interface GetChatHistoryInput {
|
|
|
2844
3191
|
*/
|
|
2845
3192
|
peerId?: InputPeer;
|
|
2846
3193
|
/**
|
|
2847
|
-
*
|
|
3194
|
+
* Legacy older-history cursor.
|
|
3195
|
+
* When `mode` is not provided, this preserves old behavior and fetches messages with ID < offset_id.
|
|
2848
3196
|
*
|
|
2849
3197
|
* @generated from protobuf field: optional int64 offset_id = 2;
|
|
2850
3198
|
*/
|
|
2851
3199
|
offsetId?: bigint;
|
|
2852
3200
|
/**
|
|
2853
|
-
* Number of messages to return
|
|
3201
|
+
* Number of messages to return.
|
|
3202
|
+
* For `mode = HISTORY_MODE_AROUND`, this acts as a fallback split if before/after limits are not provided.
|
|
2854
3203
|
*
|
|
2855
3204
|
* @generated from protobuf field: optional int32 limit = 3;
|
|
2856
3205
|
*/
|
|
2857
3206
|
limit?: number;
|
|
3207
|
+
/**
|
|
3208
|
+
* Explicit fetch mode for history pagination/windowing.
|
|
3209
|
+
*
|
|
3210
|
+
* @generated from protobuf field: optional GetChatHistoryMode mode = 4;
|
|
3211
|
+
*/
|
|
3212
|
+
mode?: GetChatHistoryMode;
|
|
3213
|
+
/**
|
|
3214
|
+
* Around mode anchor message ID.
|
|
3215
|
+
*
|
|
3216
|
+
* @generated from protobuf field: optional int64 anchor_id = 5;
|
|
3217
|
+
*/
|
|
3218
|
+
anchorId?: bigint;
|
|
3219
|
+
/**
|
|
3220
|
+
* Older mode cursor (messages with ID < before_id).
|
|
3221
|
+
*
|
|
3222
|
+
* @generated from protobuf field: optional int64 before_id = 6;
|
|
3223
|
+
*/
|
|
3224
|
+
beforeId?: bigint;
|
|
3225
|
+
/**
|
|
3226
|
+
* Newer mode cursor (messages with ID > after_id).
|
|
3227
|
+
*
|
|
3228
|
+
* @generated from protobuf field: optional int64 after_id = 7;
|
|
3229
|
+
*/
|
|
3230
|
+
afterId?: bigint;
|
|
3231
|
+
/**
|
|
3232
|
+
* Around mode count for messages older than anchor.
|
|
3233
|
+
*
|
|
3234
|
+
* @generated from protobuf field: optional int32 before_limit = 8;
|
|
3235
|
+
*/
|
|
3236
|
+
beforeLimit?: number;
|
|
3237
|
+
/**
|
|
3238
|
+
* Around mode count for messages newer than anchor.
|
|
3239
|
+
*
|
|
3240
|
+
* @generated from protobuf field: optional int32 after_limit = 9;
|
|
3241
|
+
*/
|
|
3242
|
+
afterLimit?: number;
|
|
3243
|
+
/**
|
|
3244
|
+
* Around mode include anchor row in response.
|
|
3245
|
+
*
|
|
3246
|
+
* @generated from protobuf field: optional bool include_anchor = 10;
|
|
3247
|
+
*/
|
|
3248
|
+
includeAnchor?: boolean;
|
|
2858
3249
|
}
|
|
2859
3250
|
/**
|
|
2860
3251
|
* @generated from protobuf message GetChatHistoryResult
|
|
@@ -2865,6 +3256,30 @@ export interface GetChatHistoryResult {
|
|
|
2865
3256
|
*/
|
|
2866
3257
|
messages: Message[];
|
|
2867
3258
|
}
|
|
3259
|
+
/**
|
|
3260
|
+
* @generated from protobuf message GetMessagesInput
|
|
3261
|
+
*/
|
|
3262
|
+
export interface GetMessagesInput {
|
|
3263
|
+
/**
|
|
3264
|
+
* @generated from protobuf field: InputPeer peer_id = 1;
|
|
3265
|
+
*/
|
|
3266
|
+
peerId?: InputPeer;
|
|
3267
|
+
/**
|
|
3268
|
+
* Message IDs to fetch from the given peer/chat.
|
|
3269
|
+
*
|
|
3270
|
+
* @generated from protobuf field: repeated int64 message_ids = 2;
|
|
3271
|
+
*/
|
|
3272
|
+
messageIds: bigint[];
|
|
3273
|
+
}
|
|
3274
|
+
/**
|
|
3275
|
+
* @generated from protobuf message GetMessagesResult
|
|
3276
|
+
*/
|
|
3277
|
+
export interface GetMessagesResult {
|
|
3278
|
+
/**
|
|
3279
|
+
* @generated from protobuf field: repeated Message messages = 1;
|
|
3280
|
+
*/
|
|
3281
|
+
messages: Message[];
|
|
3282
|
+
}
|
|
2868
3283
|
/**
|
|
2869
3284
|
* @generated from protobuf message SearchMessagesInput
|
|
2870
3285
|
*/
|
|
@@ -3185,6 +3600,12 @@ export interface Update {
|
|
|
3185
3600
|
* @generated from protobuf field: UpdateChatMoved chat_moved = 32;
|
|
3186
3601
|
*/
|
|
3187
3602
|
chatMoved: UpdateChatMoved;
|
|
3603
|
+
} | {
|
|
3604
|
+
oneofKind: "dialogNotificationSettings";
|
|
3605
|
+
/**
|
|
3606
|
+
* @generated from protobuf field: UpdateDialogNotificationSettings dialog_notification_settings = 33;
|
|
3607
|
+
*/
|
|
3608
|
+
dialogNotificationSettings: UpdateDialogNotificationSettings;
|
|
3188
3609
|
} | {
|
|
3189
3610
|
oneofKind: undefined;
|
|
3190
3611
|
};
|
|
@@ -3488,6 +3909,25 @@ export interface UpdateDialogArchived {
|
|
|
3488
3909
|
*/
|
|
3489
3910
|
archived: boolean;
|
|
3490
3911
|
}
|
|
3912
|
+
/**
|
|
3913
|
+
* Update when per-chat notification settings change
|
|
3914
|
+
*
|
|
3915
|
+
* @generated from protobuf message UpdateDialogNotificationSettings
|
|
3916
|
+
*/
|
|
3917
|
+
export interface UpdateDialogNotificationSettings {
|
|
3918
|
+
/**
|
|
3919
|
+
* Peer ID of the dialog that changed
|
|
3920
|
+
*
|
|
3921
|
+
* @generated from protobuf field: Peer peer_id = 1;
|
|
3922
|
+
*/
|
|
3923
|
+
peerId?: Peer;
|
|
3924
|
+
/**
|
|
3925
|
+
* If unset, chat follows global notification settings
|
|
3926
|
+
*
|
|
3927
|
+
* @generated from protobuf field: optional DialogNotificationSettings notification_settings = 2;
|
|
3928
|
+
*/
|
|
3929
|
+
notificationSettings?: DialogNotificationSettings;
|
|
3930
|
+
}
|
|
3491
3931
|
/**
|
|
3492
3932
|
* Update when a new chat is created either in space or a private chat
|
|
3493
3933
|
*
|
|
@@ -3625,7 +4065,11 @@ export declare enum UpdateComposeAction_ComposeAction {
|
|
|
3625
4065
|
/**
|
|
3626
4066
|
* @generated from protobuf enum value: UPLOADING_VIDEO = 4;
|
|
3627
4067
|
*/
|
|
3628
|
-
UPLOADING_VIDEO = 4
|
|
4068
|
+
UPLOADING_VIDEO = 4,
|
|
4069
|
+
/**
|
|
4070
|
+
* @generated from protobuf enum value: RECORDING_VOICE = 5;
|
|
4071
|
+
*/
|
|
4072
|
+
RECORDING_VOICE = 5
|
|
3629
4073
|
}
|
|
3630
4074
|
/**
|
|
3631
4075
|
* @generated from protobuf message UpdateMessageAttachment
|
|
@@ -4240,7 +4684,65 @@ export declare enum Method {
|
|
|
4240
4684
|
/**
|
|
4241
4685
|
* @generated from protobuf enum value: UPDATE_BOT_PROFILE = 37;
|
|
4242
4686
|
*/
|
|
4243
|
-
UPDATE_BOT_PROFILE = 37
|
|
4687
|
+
UPDATE_BOT_PROFILE = 37,
|
|
4688
|
+
/**
|
|
4689
|
+
* @generated from protobuf enum value: GET_MESSAGES = 38;
|
|
4690
|
+
*/
|
|
4691
|
+
GET_MESSAGES = 38,
|
|
4692
|
+
/**
|
|
4693
|
+
* @generated from protobuf enum value: UPDATE_DIALOG_NOTIFICATION_SETTINGS = 39;
|
|
4694
|
+
*/
|
|
4695
|
+
UPDATE_DIALOG_NOTIFICATION_SETTINGS = 39,
|
|
4696
|
+
/**
|
|
4697
|
+
* @generated from protobuf enum value: READ_MESSAGES = 40;
|
|
4698
|
+
*/
|
|
4699
|
+
READ_MESSAGES = 40,
|
|
4700
|
+
/**
|
|
4701
|
+
* @generated from protobuf enum value: UPDATE_PUSH_NOTIFICATION_DETAILS = 41;
|
|
4702
|
+
*/
|
|
4703
|
+
UPDATE_PUSH_NOTIFICATION_DETAILS = 41
|
|
4704
|
+
}
|
|
4705
|
+
/**
|
|
4706
|
+
* @generated from protobuf enum PushNotificationProvider
|
|
4707
|
+
*/
|
|
4708
|
+
export declare enum PushNotificationProvider {
|
|
4709
|
+
/**
|
|
4710
|
+
* @generated from protobuf enum value: PUSH_NOTIFICATION_PROVIDER_UNSPECIFIED = 0;
|
|
4711
|
+
*/
|
|
4712
|
+
UNSPECIFIED = 0,
|
|
4713
|
+
/**
|
|
4714
|
+
* @generated from protobuf enum value: PUSH_NOTIFICATION_PROVIDER_APNS = 1;
|
|
4715
|
+
*/
|
|
4716
|
+
APNS = 1,
|
|
4717
|
+
/**
|
|
4718
|
+
* @generated from protobuf enum value: PUSH_NOTIFICATION_PROVIDER_EXPO_ANDROID = 2;
|
|
4719
|
+
*/
|
|
4720
|
+
EXPO_ANDROID = 2
|
|
4721
|
+
}
|
|
4722
|
+
/**
|
|
4723
|
+
* @generated from protobuf enum GetChatHistoryMode
|
|
4724
|
+
*/
|
|
4725
|
+
export declare enum GetChatHistoryMode {
|
|
4726
|
+
/**
|
|
4727
|
+
* @generated from protobuf enum value: HISTORY_MODE_UNSPECIFIED = 0;
|
|
4728
|
+
*/
|
|
4729
|
+
HISTORY_MODE_UNSPECIFIED = 0,
|
|
4730
|
+
/**
|
|
4731
|
+
* @generated from protobuf enum value: HISTORY_MODE_LATEST = 1;
|
|
4732
|
+
*/
|
|
4733
|
+
HISTORY_MODE_LATEST = 1,
|
|
4734
|
+
/**
|
|
4735
|
+
* @generated from protobuf enum value: HISTORY_MODE_OLDER = 2;
|
|
4736
|
+
*/
|
|
4737
|
+
HISTORY_MODE_OLDER = 2,
|
|
4738
|
+
/**
|
|
4739
|
+
* @generated from protobuf enum value: HISTORY_MODE_NEWER = 3;
|
|
4740
|
+
*/
|
|
4741
|
+
HISTORY_MODE_NEWER = 3,
|
|
4742
|
+
/**
|
|
4743
|
+
* @generated from protobuf enum value: HISTORY_MODE_AROUND = 4;
|
|
4744
|
+
*/
|
|
4745
|
+
HISTORY_MODE_AROUND = 4
|
|
4244
4746
|
}
|
|
4245
4747
|
/**
|
|
4246
4748
|
* @generated from protobuf enum SearchMessagesFilter
|
|
@@ -4711,6 +5213,16 @@ declare class MessageDocument$Type extends MessageType<MessageDocument> {
|
|
|
4711
5213
|
* @generated MessageType for protobuf message MessageDocument
|
|
4712
5214
|
*/
|
|
4713
5215
|
export declare const MessageDocument: MessageDocument$Type;
|
|
5216
|
+
declare class MessageVoice$Type extends MessageType<MessageVoice> {
|
|
5217
|
+
constructor();
|
|
5218
|
+
create(value?: PartialMessage<MessageVoice>): MessageVoice;
|
|
5219
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MessageVoice): MessageVoice;
|
|
5220
|
+
internalBinaryWrite(message: MessageVoice, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
5221
|
+
}
|
|
5222
|
+
/**
|
|
5223
|
+
* @generated MessageType for protobuf message MessageVoice
|
|
5224
|
+
*/
|
|
5225
|
+
export declare const MessageVoice: MessageVoice$Type;
|
|
4714
5226
|
declare class MessageNudge$Type extends MessageType<MessageNudge> {
|
|
4715
5227
|
constructor();
|
|
4716
5228
|
create(value?: PartialMessage<MessageNudge>): MessageNudge;
|
|
@@ -4741,6 +5253,16 @@ declare class Document$Type extends MessageType<Document> {
|
|
|
4741
5253
|
* @generated MessageType for protobuf message Document
|
|
4742
5254
|
*/
|
|
4743
5255
|
export declare const Document: Document$Type;
|
|
5256
|
+
declare class Voice$Type extends MessageType<Voice> {
|
|
5257
|
+
constructor();
|
|
5258
|
+
create(value?: PartialMessage<Voice>): Voice;
|
|
5259
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Voice): Voice;
|
|
5260
|
+
internalBinaryWrite(message: Voice, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
5261
|
+
}
|
|
5262
|
+
/**
|
|
5263
|
+
* @generated MessageType for protobuf message Voice
|
|
5264
|
+
*/
|
|
5265
|
+
export declare const Voice: Voice$Type;
|
|
4744
5266
|
declare class Photo$Type extends MessageType<Photo> {
|
|
4745
5267
|
constructor();
|
|
4746
5268
|
create(value?: PartialMessage<Photo>): Photo;
|
|
@@ -4951,6 +5473,26 @@ declare class MarkAsUnreadResult$Type extends MessageType<MarkAsUnreadResult> {
|
|
|
4951
5473
|
* @generated MessageType for protobuf message MarkAsUnreadResult
|
|
4952
5474
|
*/
|
|
4953
5475
|
export declare const MarkAsUnreadResult: MarkAsUnreadResult$Type;
|
|
5476
|
+
declare class ReadMessagesInput$Type extends MessageType<ReadMessagesInput> {
|
|
5477
|
+
constructor();
|
|
5478
|
+
create(value?: PartialMessage<ReadMessagesInput>): ReadMessagesInput;
|
|
5479
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ReadMessagesInput): ReadMessagesInput;
|
|
5480
|
+
internalBinaryWrite(message: ReadMessagesInput, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
5481
|
+
}
|
|
5482
|
+
/**
|
|
5483
|
+
* @generated MessageType for protobuf message ReadMessagesInput
|
|
5484
|
+
*/
|
|
5485
|
+
export declare const ReadMessagesInput: ReadMessagesInput$Type;
|
|
5486
|
+
declare class ReadMessagesResult$Type extends MessageType<ReadMessagesResult> {
|
|
5487
|
+
constructor();
|
|
5488
|
+
create(value?: PartialMessage<ReadMessagesResult>): ReadMessagesResult;
|
|
5489
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ReadMessagesResult): ReadMessagesResult;
|
|
5490
|
+
internalBinaryWrite(message: ReadMessagesResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
5491
|
+
}
|
|
5492
|
+
/**
|
|
5493
|
+
* @generated MessageType for protobuf message ReadMessagesResult
|
|
5494
|
+
*/
|
|
5495
|
+
export declare const ReadMessagesResult: ReadMessagesResult$Type;
|
|
4954
5496
|
declare class CreateBotInput$Type extends MessageType<CreateBotInput> {
|
|
4955
5497
|
constructor();
|
|
4956
5498
|
create(value?: PartialMessage<CreateBotInput>): CreateBotInput;
|
|
@@ -5091,6 +5633,16 @@ declare class NotificationSettings$Type extends MessageType<NotificationSettings
|
|
|
5091
5633
|
* @generated MessageType for protobuf message NotificationSettings
|
|
5092
5634
|
*/
|
|
5093
5635
|
export declare const NotificationSettings: NotificationSettings$Type;
|
|
5636
|
+
declare class DialogNotificationSettings$Type extends MessageType<DialogNotificationSettings> {
|
|
5637
|
+
constructor();
|
|
5638
|
+
create(value?: PartialMessage<DialogNotificationSettings>): DialogNotificationSettings;
|
|
5639
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DialogNotificationSettings): DialogNotificationSettings;
|
|
5640
|
+
internalBinaryWrite(message: DialogNotificationSettings, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
5641
|
+
}
|
|
5642
|
+
/**
|
|
5643
|
+
* @generated MessageType for protobuf message DialogNotificationSettings
|
|
5644
|
+
*/
|
|
5645
|
+
export declare const DialogNotificationSettings: DialogNotificationSettings$Type;
|
|
5094
5646
|
declare class UpdateUserSettingsInput$Type extends MessageType<UpdateUserSettingsInput> {
|
|
5095
5647
|
constructor();
|
|
5096
5648
|
create(value?: PartialMessage<UpdateUserSettingsInput>): UpdateUserSettingsInput;
|
|
@@ -5111,6 +5663,26 @@ declare class UpdateUserSettingsResult$Type extends MessageType<UpdateUserSettin
|
|
|
5111
5663
|
* @generated MessageType for protobuf message UpdateUserSettingsResult
|
|
5112
5664
|
*/
|
|
5113
5665
|
export declare const UpdateUserSettingsResult: UpdateUserSettingsResult$Type;
|
|
5666
|
+
declare class UpdateDialogNotificationSettingsInput$Type extends MessageType<UpdateDialogNotificationSettingsInput> {
|
|
5667
|
+
constructor();
|
|
5668
|
+
create(value?: PartialMessage<UpdateDialogNotificationSettingsInput>): UpdateDialogNotificationSettingsInput;
|
|
5669
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateDialogNotificationSettingsInput): UpdateDialogNotificationSettingsInput;
|
|
5670
|
+
internalBinaryWrite(message: UpdateDialogNotificationSettingsInput, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
5671
|
+
}
|
|
5672
|
+
/**
|
|
5673
|
+
* @generated MessageType for protobuf message UpdateDialogNotificationSettingsInput
|
|
5674
|
+
*/
|
|
5675
|
+
export declare const UpdateDialogNotificationSettingsInput: UpdateDialogNotificationSettingsInput$Type;
|
|
5676
|
+
declare class UpdateDialogNotificationSettingsResult$Type extends MessageType<UpdateDialogNotificationSettingsResult> {
|
|
5677
|
+
constructor();
|
|
5678
|
+
create(value?: PartialMessage<UpdateDialogNotificationSettingsResult>): UpdateDialogNotificationSettingsResult;
|
|
5679
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateDialogNotificationSettingsResult): UpdateDialogNotificationSettingsResult;
|
|
5680
|
+
internalBinaryWrite(message: UpdateDialogNotificationSettingsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
5681
|
+
}
|
|
5682
|
+
/**
|
|
5683
|
+
* @generated MessageType for protobuf message UpdateDialogNotificationSettingsResult
|
|
5684
|
+
*/
|
|
5685
|
+
export declare const UpdateDialogNotificationSettingsResult: UpdateDialogNotificationSettingsResult$Type;
|
|
5114
5686
|
declare class SendComposeActionInput$Type extends MessageType<SendComposeActionInput> {
|
|
5115
5687
|
constructor();
|
|
5116
5688
|
create(value?: PartialMessage<SendComposeActionInput>): SendComposeActionInput;
|
|
@@ -5131,6 +5703,66 @@ declare class SendComposeActionResult$Type extends MessageType<SendComposeAction
|
|
|
5131
5703
|
* @generated MessageType for protobuf message SendComposeActionResult
|
|
5132
5704
|
*/
|
|
5133
5705
|
export declare const SendComposeActionResult: SendComposeActionResult$Type;
|
|
5706
|
+
declare class PushContentEncryptionKey$Type extends MessageType<PushContentEncryptionKey> {
|
|
5707
|
+
constructor();
|
|
5708
|
+
create(value?: PartialMessage<PushContentEncryptionKey>): PushContentEncryptionKey;
|
|
5709
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PushContentEncryptionKey): PushContentEncryptionKey;
|
|
5710
|
+
internalBinaryWrite(message: PushContentEncryptionKey, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
5711
|
+
}
|
|
5712
|
+
/**
|
|
5713
|
+
* @generated MessageType for protobuf message PushContentEncryptionKey
|
|
5714
|
+
*/
|
|
5715
|
+
export declare const PushContentEncryptionKey: PushContentEncryptionKey$Type;
|
|
5716
|
+
declare class ApnsNotificationMethod$Type extends MessageType<ApnsNotificationMethod> {
|
|
5717
|
+
constructor();
|
|
5718
|
+
create(value?: PartialMessage<ApnsNotificationMethod>): ApnsNotificationMethod;
|
|
5719
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ApnsNotificationMethod): ApnsNotificationMethod;
|
|
5720
|
+
internalBinaryWrite(message: ApnsNotificationMethod, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
5721
|
+
}
|
|
5722
|
+
/**
|
|
5723
|
+
* @generated MessageType for protobuf message ApnsNotificationMethod
|
|
5724
|
+
*/
|
|
5725
|
+
export declare const ApnsNotificationMethod: ApnsNotificationMethod$Type;
|
|
5726
|
+
declare class ExpoAndroidNotificationMethod$Type extends MessageType<ExpoAndroidNotificationMethod> {
|
|
5727
|
+
constructor();
|
|
5728
|
+
create(value?: PartialMessage<ExpoAndroidNotificationMethod>): ExpoAndroidNotificationMethod;
|
|
5729
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExpoAndroidNotificationMethod): ExpoAndroidNotificationMethod;
|
|
5730
|
+
internalBinaryWrite(message: ExpoAndroidNotificationMethod, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
5731
|
+
}
|
|
5732
|
+
/**
|
|
5733
|
+
* @generated MessageType for protobuf message ExpoAndroidNotificationMethod
|
|
5734
|
+
*/
|
|
5735
|
+
export declare const ExpoAndroidNotificationMethod: ExpoAndroidNotificationMethod$Type;
|
|
5736
|
+
declare class PushNotificationMethod$Type extends MessageType<PushNotificationMethod> {
|
|
5737
|
+
constructor();
|
|
5738
|
+
create(value?: PartialMessage<PushNotificationMethod>): PushNotificationMethod;
|
|
5739
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PushNotificationMethod): PushNotificationMethod;
|
|
5740
|
+
internalBinaryWrite(message: PushNotificationMethod, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
5741
|
+
}
|
|
5742
|
+
/**
|
|
5743
|
+
* @generated MessageType for protobuf message PushNotificationMethod
|
|
5744
|
+
*/
|
|
5745
|
+
export declare const PushNotificationMethod: PushNotificationMethod$Type;
|
|
5746
|
+
declare class UpdatePushNotificationDetailsInput$Type extends MessageType<UpdatePushNotificationDetailsInput> {
|
|
5747
|
+
constructor();
|
|
5748
|
+
create(value?: PartialMessage<UpdatePushNotificationDetailsInput>): UpdatePushNotificationDetailsInput;
|
|
5749
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdatePushNotificationDetailsInput): UpdatePushNotificationDetailsInput;
|
|
5750
|
+
internalBinaryWrite(message: UpdatePushNotificationDetailsInput, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
5751
|
+
}
|
|
5752
|
+
/**
|
|
5753
|
+
* @generated MessageType for protobuf message UpdatePushNotificationDetailsInput
|
|
5754
|
+
*/
|
|
5755
|
+
export declare const UpdatePushNotificationDetailsInput: UpdatePushNotificationDetailsInput$Type;
|
|
5756
|
+
declare class UpdatePushNotificationDetailsResult$Type extends MessageType<UpdatePushNotificationDetailsResult> {
|
|
5757
|
+
constructor();
|
|
5758
|
+
create(value?: PartialMessage<UpdatePushNotificationDetailsResult>): UpdatePushNotificationDetailsResult;
|
|
5759
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdatePushNotificationDetailsResult): UpdatePushNotificationDetailsResult;
|
|
5760
|
+
internalBinaryWrite(message: UpdatePushNotificationDetailsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
5761
|
+
}
|
|
5762
|
+
/**
|
|
5763
|
+
* @generated MessageType for protobuf message UpdatePushNotificationDetailsResult
|
|
5764
|
+
*/
|
|
5765
|
+
export declare const UpdatePushNotificationDetailsResult: UpdatePushNotificationDetailsResult$Type;
|
|
5134
5766
|
declare class GetChatsInput$Type extends MessageType<GetChatsInput> {
|
|
5135
5767
|
constructor();
|
|
5136
5768
|
create(value?: PartialMessage<GetChatsInput>): GetChatsInput;
|
|
@@ -5301,6 +5933,16 @@ declare class InputMediaDocument$Type extends MessageType<InputMediaDocument> {
|
|
|
5301
5933
|
* @generated MessageType for protobuf message InputMediaDocument
|
|
5302
5934
|
*/
|
|
5303
5935
|
export declare const InputMediaDocument: InputMediaDocument$Type;
|
|
5936
|
+
declare class InputMediaVoice$Type extends MessageType<InputMediaVoice> {
|
|
5937
|
+
constructor();
|
|
5938
|
+
create(value?: PartialMessage<InputMediaVoice>): InputMediaVoice;
|
|
5939
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: InputMediaVoice): InputMediaVoice;
|
|
5940
|
+
internalBinaryWrite(message: InputMediaVoice, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
5941
|
+
}
|
|
5942
|
+
/**
|
|
5943
|
+
* @generated MessageType for protobuf message InputMediaVoice
|
|
5944
|
+
*/
|
|
5945
|
+
export declare const InputMediaVoice: InputMediaVoice$Type;
|
|
5304
5946
|
declare class InputMediaNudge$Type extends MessageType<InputMediaNudge> {
|
|
5305
5947
|
constructor();
|
|
5306
5948
|
create(value?: PartialMessage<InputMediaNudge>): InputMediaNudge;
|
|
@@ -5371,6 +6013,26 @@ declare class GetChatHistoryResult$Type extends MessageType<GetChatHistoryResult
|
|
|
5371
6013
|
* @generated MessageType for protobuf message GetChatHistoryResult
|
|
5372
6014
|
*/
|
|
5373
6015
|
export declare const GetChatHistoryResult: GetChatHistoryResult$Type;
|
|
6016
|
+
declare class GetMessagesInput$Type extends MessageType<GetMessagesInput> {
|
|
6017
|
+
constructor();
|
|
6018
|
+
create(value?: PartialMessage<GetMessagesInput>): GetMessagesInput;
|
|
6019
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetMessagesInput): GetMessagesInput;
|
|
6020
|
+
internalBinaryWrite(message: GetMessagesInput, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
6021
|
+
}
|
|
6022
|
+
/**
|
|
6023
|
+
* @generated MessageType for protobuf message GetMessagesInput
|
|
6024
|
+
*/
|
|
6025
|
+
export declare const GetMessagesInput: GetMessagesInput$Type;
|
|
6026
|
+
declare class GetMessagesResult$Type extends MessageType<GetMessagesResult> {
|
|
6027
|
+
constructor();
|
|
6028
|
+
create(value?: PartialMessage<GetMessagesResult>): GetMessagesResult;
|
|
6029
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetMessagesResult): GetMessagesResult;
|
|
6030
|
+
internalBinaryWrite(message: GetMessagesResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
6031
|
+
}
|
|
6032
|
+
/**
|
|
6033
|
+
* @generated MessageType for protobuf message GetMessagesResult
|
|
6034
|
+
*/
|
|
6035
|
+
export declare const GetMessagesResult: GetMessagesResult$Type;
|
|
5374
6036
|
declare class SearchMessagesInput$Type extends MessageType<SearchMessagesInput> {
|
|
5375
6037
|
constructor();
|
|
5376
6038
|
create(value?: PartialMessage<SearchMessagesInput>): SearchMessagesInput;
|
|
@@ -5611,6 +6273,16 @@ declare class UpdateDialogArchived$Type extends MessageType<UpdateDialogArchived
|
|
|
5611
6273
|
* @generated MessageType for protobuf message UpdateDialogArchived
|
|
5612
6274
|
*/
|
|
5613
6275
|
export declare const UpdateDialogArchived: UpdateDialogArchived$Type;
|
|
6276
|
+
declare class UpdateDialogNotificationSettings$Type extends MessageType<UpdateDialogNotificationSettings> {
|
|
6277
|
+
constructor();
|
|
6278
|
+
create(value?: PartialMessage<UpdateDialogNotificationSettings>): UpdateDialogNotificationSettings;
|
|
6279
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateDialogNotificationSettings): UpdateDialogNotificationSettings;
|
|
6280
|
+
internalBinaryWrite(message: UpdateDialogNotificationSettings, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
6281
|
+
}
|
|
6282
|
+
/**
|
|
6283
|
+
* @generated MessageType for protobuf message UpdateDialogNotificationSettings
|
|
6284
|
+
*/
|
|
6285
|
+
export declare const UpdateDialogNotificationSettings: UpdateDialogNotificationSettings$Type;
|
|
5614
6286
|
declare class UpdateNewChat$Type extends MessageType<UpdateNewChat> {
|
|
5615
6287
|
constructor();
|
|
5616
6288
|
create(value?: PartialMessage<UpdateNewChat>): UpdateNewChat;
|