@mtcute/tl 169.0.0 → 176.0.0
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/README.md +1 -1
- package/api-schema.json +1 -1
- package/binary/reader.js +75 -37
- package/binary/writer.js +160 -65
- package/index.d.ts +1612 -279
- package/index.js +31 -4
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import _Long from 'long';
|
|
3
3
|
|
|
4
4
|
export declare namespace tl {
|
|
5
|
-
const LAYER =
|
|
5
|
+
const LAYER = 176;
|
|
6
6
|
|
|
7
7
|
function $extendTypes(types: Record<string, string>): void
|
|
8
8
|
|
|
@@ -1735,6 +1735,7 @@ export class RpcError extends Error {
|
|
|
1735
1735
|
* No stories from this user are visible.
|
|
1736
1736
|
*/
|
|
1737
1737
|
storiesUnavailable?: boolean;
|
|
1738
|
+
contactRequirePremium?: boolean;
|
|
1738
1739
|
/**
|
|
1739
1740
|
* ID of the user
|
|
1740
1741
|
*/
|
|
@@ -1880,18 +1881,21 @@ export class RpcError extends Error {
|
|
|
1880
1881
|
*/
|
|
1881
1882
|
interface RawUserStatusRecently {
|
|
1882
1883
|
_: 'userStatusRecently';
|
|
1884
|
+
byMe?: boolean;
|
|
1883
1885
|
}
|
|
1884
1886
|
/**
|
|
1885
1887
|
* Online status: last seen last week
|
|
1886
1888
|
*/
|
|
1887
1889
|
interface RawUserStatusLastWeek {
|
|
1888
1890
|
_: 'userStatusLastWeek';
|
|
1891
|
+
byMe?: boolean;
|
|
1889
1892
|
}
|
|
1890
1893
|
/**
|
|
1891
1894
|
* Online status: last seen last month
|
|
1892
1895
|
*/
|
|
1893
1896
|
interface RawUserStatusLastMonth {
|
|
1894
1897
|
_: 'userStatusLastMonth';
|
|
1898
|
+
byMe?: boolean;
|
|
1895
1899
|
}
|
|
1896
1900
|
/**
|
|
1897
1901
|
* Empty constructor, group doesn't exist
|
|
@@ -2177,8 +2181,21 @@ export class RpcError extends Error {
|
|
|
2177
2181
|
* color</a>.
|
|
2178
2182
|
*/
|
|
2179
2183
|
color?: tl.TypePeerColor;
|
|
2184
|
+
/**
|
|
2185
|
+
* The channel's
|
|
2186
|
+
* <a href="https://corefork.telegram.org/api/colors">profile
|
|
2187
|
+
* color</a>.
|
|
2188
|
+
*/
|
|
2180
2189
|
profileColor?: tl.TypePeerColor;
|
|
2190
|
+
/**
|
|
2191
|
+
* <a href="https://corefork.telegram.org/api/emoji-status">Emoji
|
|
2192
|
+
* status</a>
|
|
2193
|
+
*/
|
|
2181
2194
|
emojiStatus?: tl.TypeEmojiStatus;
|
|
2195
|
+
/**
|
|
2196
|
+
* <a href="https://corefork.telegram.org/api/boost">Boost
|
|
2197
|
+
* level</a>
|
|
2198
|
+
*/
|
|
2182
2199
|
level?: number;
|
|
2183
2200
|
}
|
|
2184
2201
|
/**
|
|
@@ -2569,7 +2586,13 @@ export class RpcError extends Error {
|
|
|
2569
2586
|
* <a href="https://corefork.telegram.org/api/stories">stories</a>
|
|
2570
2587
|
*/
|
|
2571
2588
|
stories?: tl.TypePeerStories;
|
|
2589
|
+
/**
|
|
2590
|
+
* <a href="https://corefork.telegram.org/api/wallpapers">Wallpaper</a>
|
|
2591
|
+
*/
|
|
2572
2592
|
wallpaper?: tl.TypeWallPaper;
|
|
2593
|
+
boostsApplied?: number;
|
|
2594
|
+
boostsUnrestrict?: number;
|
|
2595
|
+
emojiset?: tl.TypeStickerSet;
|
|
2573
2596
|
}
|
|
2574
2597
|
/**
|
|
2575
2598
|
* Group member.
|
|
@@ -2761,10 +2784,22 @@ export class RpcError extends Error {
|
|
|
2761
2784
|
* ID of the sender of the message
|
|
2762
2785
|
*/
|
|
2763
2786
|
fromId?: tl.TypePeer;
|
|
2787
|
+
fromBoostsApplied?: number;
|
|
2764
2788
|
/**
|
|
2765
2789
|
* Peer ID, the chat where this message was sent
|
|
2766
2790
|
*/
|
|
2767
2791
|
peerId: tl.TypePeer;
|
|
2792
|
+
/**
|
|
2793
|
+
* Messages fetched from a
|
|
2794
|
+
* <a href="https://corefork.telegram.org/api/saved-messages">saved
|
|
2795
|
+
* messages dialog »</a> will have
|
|
2796
|
+
* <code>peer</code>={@link RawInputPeerSelf} and the
|
|
2797
|
+
* <code>saved_peer_id</code> flag set to the ID of the saved
|
|
2798
|
+
* dialog.
|
|
2799
|
+
*
|
|
2800
|
+
*
|
|
2801
|
+
*/
|
|
2802
|
+
savedPeerId?: tl.TypePeer;
|
|
2768
2803
|
/**
|
|
2769
2804
|
* Info about forwarded messages
|
|
2770
2805
|
*/
|
|
@@ -2846,6 +2881,7 @@ export class RpcError extends Error {
|
|
|
2846
2881
|
* well.
|
|
2847
2882
|
*/
|
|
2848
2883
|
ttlPeriod?: number;
|
|
2884
|
+
quickReplyShortcutId?: number;
|
|
2849
2885
|
}
|
|
2850
2886
|
/**
|
|
2851
2887
|
* Indicates a service message
|
|
@@ -2993,6 +3029,18 @@ export class RpcError extends Error {
|
|
|
2993
3029
|
* Whether this media should be hidden behind a spoiler warning
|
|
2994
3030
|
*/
|
|
2995
3031
|
spoiler?: boolean;
|
|
3032
|
+
/**
|
|
3033
|
+
* Whether this is a video.
|
|
3034
|
+
*/
|
|
3035
|
+
video?: boolean;
|
|
3036
|
+
/**
|
|
3037
|
+
* Whether this is a round video.
|
|
3038
|
+
*/
|
|
3039
|
+
round?: boolean;
|
|
3040
|
+
/**
|
|
3041
|
+
* Whether this is a voice message.
|
|
3042
|
+
*/
|
|
3043
|
+
voice?: boolean;
|
|
2996
3044
|
/**
|
|
2997
3045
|
* Attached document
|
|
2998
3046
|
*/
|
|
@@ -3249,6 +3297,11 @@ export class RpcError extends Error {
|
|
|
3249
3297
|
* creation date will be able to participate to the giveaway.
|
|
3250
3298
|
*/
|
|
3251
3299
|
onlyNewSubscribers?: boolean;
|
|
3300
|
+
/**
|
|
3301
|
+
* If set, giveaway winners are public and will be listed in a
|
|
3302
|
+
* {@link RawMessageMediaGiveawayResults} message that will be
|
|
3303
|
+
* automatically sent to the channel once the giveaway ends.
|
|
3304
|
+
*/
|
|
3252
3305
|
winnersAreVisible?: boolean;
|
|
3253
3306
|
/**
|
|
3254
3307
|
* The channels that the user must join to participate in the
|
|
@@ -3262,6 +3315,10 @@ export class RpcError extends Error {
|
|
|
3262
3315
|
* there are no country-based limitations.
|
|
3263
3316
|
*/
|
|
3264
3317
|
countriesIso2?: string[];
|
|
3318
|
+
/**
|
|
3319
|
+
* Can contain a textual description of additional giveaway
|
|
3320
|
+
* prizes.
|
|
3321
|
+
*/
|
|
3265
3322
|
prizeDescription?: string;
|
|
3266
3323
|
/**
|
|
3267
3324
|
* Number of
|
|
@@ -3280,6 +3337,69 @@ export class RpcError extends Error {
|
|
|
3280
3337
|
*/
|
|
3281
3338
|
untilDate: number;
|
|
3282
3339
|
}
|
|
3340
|
+
/**
|
|
3341
|
+
* A
|
|
3342
|
+
* <a href="https://corefork.telegram.org/api/giveaways">giveaway</a>
|
|
3343
|
+
* with public winners has finished, this constructor contains
|
|
3344
|
+
* info about the winners.
|
|
3345
|
+
*/
|
|
3346
|
+
interface RawMessageMediaGiveawayResults {
|
|
3347
|
+
_: 'messageMediaGiveawayResults';
|
|
3348
|
+
/**
|
|
3349
|
+
* If set, only new subscribers starting from the giveaway
|
|
3350
|
+
* creation date participated in the giveaway.
|
|
3351
|
+
*/
|
|
3352
|
+
onlyNewSubscribers?: boolean;
|
|
3353
|
+
/**
|
|
3354
|
+
* If set, the giveaway was canceled and was fully refunded.
|
|
3355
|
+
*/
|
|
3356
|
+
refunded?: boolean;
|
|
3357
|
+
/**
|
|
3358
|
+
* ID of the channel that was automatically
|
|
3359
|
+
* <a href="https://corefork.telegram.org/api/boost">boosted</a>
|
|
3360
|
+
* by the winners of the giveaway for duration of the Premium
|
|
3361
|
+
* subscription.
|
|
3362
|
+
*/
|
|
3363
|
+
channelId: Long;
|
|
3364
|
+
/**
|
|
3365
|
+
* Number of other channels that participated in the giveaway.
|
|
3366
|
+
*/
|
|
3367
|
+
additionalPeersCount?: number;
|
|
3368
|
+
/**
|
|
3369
|
+
* Identifier of the message with the giveaway in
|
|
3370
|
+
* <code>channel_id</code>.
|
|
3371
|
+
*/
|
|
3372
|
+
launchMsgId: number;
|
|
3373
|
+
/**
|
|
3374
|
+
* Total number of winners in the giveaway.
|
|
3375
|
+
*/
|
|
3376
|
+
winnersCount: number;
|
|
3377
|
+
/**
|
|
3378
|
+
* Number of not-yet-claimed prizes.
|
|
3379
|
+
*/
|
|
3380
|
+
unclaimedCount: number;
|
|
3381
|
+
/**
|
|
3382
|
+
* Up to 100 user identifiers of the winners of the giveaway.
|
|
3383
|
+
*/
|
|
3384
|
+
winners: Long[];
|
|
3385
|
+
/**
|
|
3386
|
+
* Duration in months of each
|
|
3387
|
+
* <a href="https://corefork.telegram.org/api/premium">Telegram
|
|
3388
|
+
* Premium</a> subscription in the giveaway.
|
|
3389
|
+
*/
|
|
3390
|
+
months: number;
|
|
3391
|
+
/**
|
|
3392
|
+
* Can contain a textual description of additional giveaway
|
|
3393
|
+
* prizes.
|
|
3394
|
+
*/
|
|
3395
|
+
prizeDescription?: string;
|
|
3396
|
+
/**
|
|
3397
|
+
* Point in time (UNIX timestamp in seconds) when the winners
|
|
3398
|
+
* were selected. May be bigger than winners selection date
|
|
3399
|
+
* specified in initial parameters of the giveaway.
|
|
3400
|
+
*/
|
|
3401
|
+
untilDate: number;
|
|
3402
|
+
}
|
|
3283
3403
|
/**
|
|
3284
3404
|
* Empty constructor.
|
|
3285
3405
|
*/
|
|
@@ -3853,9 +3973,9 @@ export class RpcError extends Error {
|
|
|
3853
3973
|
photo: tl.TypePhoto;
|
|
3854
3974
|
}
|
|
3855
3975
|
/**
|
|
3856
|
-
* Contains info about
|
|
3857
|
-
* after clicking on a
|
|
3858
|
-
* button.
|
|
3976
|
+
* Contains info about one or more peers that the user shared
|
|
3977
|
+
* with the bot after clicking on a
|
|
3978
|
+
* {@link RawKeyboardButtonRequestPeer} button.
|
|
3859
3979
|
*/
|
|
3860
3980
|
interface RawMessageActionRequestedPeer {
|
|
3861
3981
|
_: 'messageActionRequestedPeer';
|
|
@@ -3864,6 +3984,9 @@ export class RpcError extends Error {
|
|
|
3864
3984
|
* {@link RawKeyboardButtonRequestPeer}
|
|
3865
3985
|
*/
|
|
3866
3986
|
buttonId: number;
|
|
3987
|
+
/**
|
|
3988
|
+
* The shared peers
|
|
3989
|
+
*/
|
|
3867
3990
|
peers: tl.TypePeer[];
|
|
3868
3991
|
}
|
|
3869
3992
|
/**
|
|
@@ -3939,9 +4062,31 @@ export class RpcError extends Error {
|
|
|
3939
4062
|
* Premium giftcode link</a>
|
|
3940
4063
|
*/
|
|
3941
4064
|
slug: string;
|
|
4065
|
+
/**
|
|
4066
|
+
* Three-letter ISO 4217
|
|
4067
|
+
* <a href="https://corefork.telegram.org/bots/payments#supported-currencies">currency</a>
|
|
4068
|
+
* code
|
|
4069
|
+
*/
|
|
3942
4070
|
currency?: string;
|
|
4071
|
+
/**
|
|
4072
|
+
* Total price in the smallest units of the currency (integer,
|
|
4073
|
+
* not float/double). For example, for a price of <code>US$
|
|
4074
|
+
* 1.45</code> pass <code>amount = 145</code>. See the exp
|
|
4075
|
+
* parameter in
|
|
4076
|
+
* <a href="https://corefork.telegram.org/bots/payments/currencies.json">currencies.json</a>,
|
|
4077
|
+
* it shows the number of digits past the decimal point for
|
|
4078
|
+
* each currency (2 for the majority of currencies).
|
|
4079
|
+
*/
|
|
3943
4080
|
amount?: Long;
|
|
4081
|
+
/**
|
|
4082
|
+
* If set, the gift was made using the specified
|
|
4083
|
+
* cryptocurrency.
|
|
4084
|
+
*/
|
|
3944
4085
|
cryptoCurrency?: string;
|
|
4086
|
+
/**
|
|
4087
|
+
* If <code>crypto_currency</code> is set, contains the paid
|
|
4088
|
+
* amount, in the smallest units of the cryptocurrency.
|
|
4089
|
+
*/
|
|
3945
4090
|
cryptoAmount?: Long;
|
|
3946
4091
|
}
|
|
3947
4092
|
/**
|
|
@@ -3968,6 +4113,10 @@ export class RpcError extends Error {
|
|
|
3968
4113
|
*/
|
|
3969
4114
|
unclaimedCount: number;
|
|
3970
4115
|
}
|
|
4116
|
+
interface RawMessageActionBoostApply {
|
|
4117
|
+
_: 'messageActionBoostApply';
|
|
4118
|
+
boosts: number;
|
|
4119
|
+
}
|
|
3971
4120
|
/**
|
|
3972
4121
|
* Chat
|
|
3973
4122
|
*/
|
|
@@ -4686,10 +4835,12 @@ export class RpcError extends Error {
|
|
|
4686
4835
|
* Whether the other user has chosen a custom wallpaper for us
|
|
4687
4836
|
* using {@link messages.RawSetChatWallPaperRequest} and the
|
|
4688
4837
|
* <code>for_both</code> flag, see
|
|
4689
|
-
* <a href="https://corefork.telegram.org/api/wallpapers#installing-wallpapers-in-a-specific-chat">here
|
|
4838
|
+
* <a href="https://corefork.telegram.org/api/wallpapers#installing-wallpapers-in-a-specific-chat-or-channel">here
|
|
4690
4839
|
* »</a> for more info.
|
|
4691
4840
|
*/
|
|
4692
4841
|
wallpaperOverridden?: boolean;
|
|
4842
|
+
contactRequirePremium?: boolean;
|
|
4843
|
+
readDatesPrivate?: boolean;
|
|
4693
4844
|
/**
|
|
4694
4845
|
* User ID
|
|
4695
4846
|
*/
|
|
@@ -4787,6 +4938,10 @@ export class RpcError extends Error {
|
|
|
4787
4938
|
* »</a>
|
|
4788
4939
|
*/
|
|
4789
4940
|
stories?: tl.TypePeerStories;
|
|
4941
|
+
businessWorkHours?: tl.TypeBusinessWorkHours;
|
|
4942
|
+
businessLocation?: tl.TypeBusinessLocation;
|
|
4943
|
+
businessGreetingMessage?: tl.TypeBusinessGreetingMessage;
|
|
4944
|
+
businessAwayMessage?: tl.TypeBusinessAwayMessage;
|
|
4790
4945
|
}
|
|
4791
4946
|
/**
|
|
4792
4947
|
* A contact of the current user that is registered in the
|
|
@@ -7214,7 +7369,7 @@ export class RpcError extends Error {
|
|
|
7214
7369
|
* Whether the other user has chosen a custom wallpaper for us
|
|
7215
7370
|
* using {@link messages.RawSetChatWallPaperRequest} and the
|
|
7216
7371
|
* <code>for_both</code> flag, see
|
|
7217
|
-
* <a href="https://corefork.telegram.org/api/wallpapers#installing-wallpapers-in-a-specific-chat">here
|
|
7372
|
+
* <a href="https://corefork.telegram.org/api/wallpapers#installing-wallpapers-in-a-specific-chat-or-channel">here
|
|
7218
7373
|
* »</a> for more info.
|
|
7219
7374
|
*/
|
|
7220
7375
|
wallpaperOverridden?: boolean;
|
|
@@ -7228,6 +7383,125 @@ export class RpcError extends Error {
|
|
|
7228
7383
|
*/
|
|
7229
7384
|
wallpaper?: tl.TypeWallPaper;
|
|
7230
7385
|
}
|
|
7386
|
+
/**
|
|
7387
|
+
* Bots only: a user has changed their reactions on a message
|
|
7388
|
+
* with public reactions.
|
|
7389
|
+
*/
|
|
7390
|
+
interface RawUpdateBotMessageReaction {
|
|
7391
|
+
_: 'updateBotMessageReaction';
|
|
7392
|
+
/**
|
|
7393
|
+
* Peer of the reacted-to message.
|
|
7394
|
+
*/
|
|
7395
|
+
peer: tl.TypePeer;
|
|
7396
|
+
/**
|
|
7397
|
+
* ID of the reacted-to message.
|
|
7398
|
+
*/
|
|
7399
|
+
msgId: number;
|
|
7400
|
+
/**
|
|
7401
|
+
* Date of the change.
|
|
7402
|
+
*/
|
|
7403
|
+
date: number;
|
|
7404
|
+
/**
|
|
7405
|
+
* The user that (un)reacted to the message.
|
|
7406
|
+
*/
|
|
7407
|
+
actor: tl.TypePeer;
|
|
7408
|
+
/**
|
|
7409
|
+
* Old reactions
|
|
7410
|
+
*/
|
|
7411
|
+
oldReactions: tl.TypeReaction[];
|
|
7412
|
+
/**
|
|
7413
|
+
* New reactions
|
|
7414
|
+
*/
|
|
7415
|
+
newReactions: tl.TypeReaction[];
|
|
7416
|
+
/**
|
|
7417
|
+
* <a href="https://corefork.telegram.org/api/updates">QTS</a>
|
|
7418
|
+
* event sequence identifier
|
|
7419
|
+
*/
|
|
7420
|
+
qts: number;
|
|
7421
|
+
}
|
|
7422
|
+
/**
|
|
7423
|
+
* Bots only: the number of reactions on a message with
|
|
7424
|
+
* anonymous reactions has changed.
|
|
7425
|
+
*/
|
|
7426
|
+
interface RawUpdateBotMessageReactions {
|
|
7427
|
+
_: 'updateBotMessageReactions';
|
|
7428
|
+
/**
|
|
7429
|
+
* Peer of the reacted-to message.
|
|
7430
|
+
*/
|
|
7431
|
+
peer: tl.TypePeer;
|
|
7432
|
+
/**
|
|
7433
|
+
* ID of the reacted-to message.
|
|
7434
|
+
*/
|
|
7435
|
+
msgId: number;
|
|
7436
|
+
/**
|
|
7437
|
+
* Date of the change.
|
|
7438
|
+
*/
|
|
7439
|
+
date: number;
|
|
7440
|
+
/**
|
|
7441
|
+
* New reaction counters.
|
|
7442
|
+
*/
|
|
7443
|
+
reactions: tl.TypeReactionCount[];
|
|
7444
|
+
/**
|
|
7445
|
+
* <a href="https://corefork.telegram.org/api/updates">QTS</a>
|
|
7446
|
+
* event sequence identifier
|
|
7447
|
+
*/
|
|
7448
|
+
qts: number;
|
|
7449
|
+
}
|
|
7450
|
+
/**
|
|
7451
|
+
* A
|
|
7452
|
+
* <a href="https://corefork.telegram.org/api/saved-messages">saved
|
|
7453
|
+
* message dialog</a> was pinned/unpinned
|
|
7454
|
+
*/
|
|
7455
|
+
interface RawUpdateSavedDialogPinned {
|
|
7456
|
+
_: 'updateSavedDialogPinned';
|
|
7457
|
+
/**
|
|
7458
|
+
* Whether the dialog was pinned
|
|
7459
|
+
*/
|
|
7460
|
+
pinned?: boolean;
|
|
7461
|
+
/**
|
|
7462
|
+
* The dialog
|
|
7463
|
+
*/
|
|
7464
|
+
peer: tl.TypeDialogPeer;
|
|
7465
|
+
}
|
|
7466
|
+
/**
|
|
7467
|
+
* <a href="https://corefork.telegram.org/api/saved-messages">Pinned
|
|
7468
|
+
* saved dialogs »</a> were updated
|
|
7469
|
+
*/
|
|
7470
|
+
interface RawUpdatePinnedSavedDialogs {
|
|
7471
|
+
_: 'updatePinnedSavedDialogs';
|
|
7472
|
+
/**
|
|
7473
|
+
* New order of pinned saved dialogs
|
|
7474
|
+
*/
|
|
7475
|
+
order?: tl.TypeDialogPeer[];
|
|
7476
|
+
}
|
|
7477
|
+
interface RawUpdateSavedReactionTags {
|
|
7478
|
+
_: 'updateSavedReactionTags';
|
|
7479
|
+
}
|
|
7480
|
+
interface RawUpdateSmsJob {
|
|
7481
|
+
_: 'updateSmsJob';
|
|
7482
|
+
jobId: string;
|
|
7483
|
+
}
|
|
7484
|
+
interface RawUpdateQuickReplies {
|
|
7485
|
+
_: 'updateQuickReplies';
|
|
7486
|
+
quickReplies: tl.TypeQuickReply[];
|
|
7487
|
+
}
|
|
7488
|
+
interface RawUpdateNewQuickReply {
|
|
7489
|
+
_: 'updateNewQuickReply';
|
|
7490
|
+
quickReply: tl.TypeQuickReply;
|
|
7491
|
+
}
|
|
7492
|
+
interface RawUpdateDeleteQuickReply {
|
|
7493
|
+
_: 'updateDeleteQuickReply';
|
|
7494
|
+
shortcutId: number;
|
|
7495
|
+
}
|
|
7496
|
+
interface RawUpdateQuickReplyMessage {
|
|
7497
|
+
_: 'updateQuickReplyMessage';
|
|
7498
|
+
message: tl.TypeMessage;
|
|
7499
|
+
}
|
|
7500
|
+
interface RawUpdateDeleteQuickReplyMessages {
|
|
7501
|
+
_: 'updateDeleteQuickReplyMessages';
|
|
7502
|
+
shortcutId: number;
|
|
7503
|
+
messages: number[];
|
|
7504
|
+
}
|
|
7231
7505
|
/**
|
|
7232
7506
|
* Too many updates, it is necessary to execute
|
|
7233
7507
|
* {@link updates.RawGetDifferenceRequest}.
|
|
@@ -9339,6 +9613,14 @@ export class RpcError extends Error {
|
|
|
9339
9613
|
interface RawInputStickerSetEmojiDefaultTopicIcons {
|
|
9340
9614
|
_: 'inputStickerSetEmojiDefaultTopicIcons';
|
|
9341
9615
|
}
|
|
9616
|
+
/**
|
|
9617
|
+
* Default
|
|
9618
|
+
* <a href="https://corefork.telegram.org/api/emoji-status">custom
|
|
9619
|
+
* emoji status</a> stickerset for channel statuses
|
|
9620
|
+
*/
|
|
9621
|
+
interface RawInputStickerSetEmojiChannelDefaultStatuses {
|
|
9622
|
+
_: 'inputStickerSetEmojiChannelDefaultStatuses';
|
|
9623
|
+
}
|
|
9342
9624
|
/**
|
|
9343
9625
|
* Represents a stickerset (stickerpack)
|
|
9344
9626
|
*/
|
|
@@ -9376,6 +9658,12 @@ export class RpcError extends Error {
|
|
|
9376
9658
|
* or another appropriate color based on context.
|
|
9377
9659
|
*/
|
|
9378
9660
|
textColor?: boolean;
|
|
9661
|
+
/**
|
|
9662
|
+
* If set, this custom emoji stickerset can be used in
|
|
9663
|
+
* <a href="https://corefork.telegram.org/api/emoji-status">channel
|
|
9664
|
+
* emoji statuses</a>.
|
|
9665
|
+
*/
|
|
9666
|
+
channelEmojiStatus?: boolean;
|
|
9379
9667
|
/**
|
|
9380
9668
|
* When was this stickerset installed
|
|
9381
9669
|
*/
|
|
@@ -9415,7 +9703,6 @@ export class RpcError extends Error {
|
|
|
9415
9703
|
* using {@link messages.RawGetCustomEmojiDocumentsRequest}
|
|
9416
9704
|
*/
|
|
9417
9705
|
thumbDocumentId?: Long;
|
|
9418
|
-
channelEmojiStatus?: boolean;
|
|
9419
9706
|
/**
|
|
9420
9707
|
* Number of stickers in pack
|
|
9421
9708
|
*/
|
|
@@ -9783,8 +10070,9 @@ export class RpcError extends Error {
|
|
|
9783
10070
|
url: string;
|
|
9784
10071
|
}
|
|
9785
10072
|
/**
|
|
9786
|
-
* Prompts the user to select and share
|
|
9787
|
-
*
|
|
10073
|
+
* Prompts the user to select and share one or more peers with
|
|
10074
|
+
* the bot using
|
|
10075
|
+
* {@link messages.RawSendBotRequestedPeerRequest}
|
|
9788
10076
|
*/
|
|
9789
10077
|
interface RawKeyboardButtonRequestPeer {
|
|
9790
10078
|
_: 'keyboardButtonRequestPeer';
|
|
@@ -9803,9 +10091,14 @@ export class RpcError extends Error {
|
|
|
9803
10091
|
*
|
|
9804
10092
|
* The list should display all existing peers of the specified
|
|
9805
10093
|
* type, and should also offer an option for the user to create
|
|
9806
|
-
* and immediately use
|
|
10094
|
+
* and immediately use one or more (up to
|
|
10095
|
+
* <code>max_quantity</code>) peers of the specified type, if
|
|
10096
|
+
* needed.
|
|
9807
10097
|
*/
|
|
9808
10098
|
peerType: tl.TypeRequestPeerType;
|
|
10099
|
+
/**
|
|
10100
|
+
* Maximum number of peers that can be chosne.
|
|
10101
|
+
*/
|
|
9809
10102
|
maxQuantity: number;
|
|
9810
10103
|
}
|
|
9811
10104
|
/**
|
|
@@ -11361,6 +11654,15 @@ export class RpcError extends Error {
|
|
|
11361
11654
|
* from a foreign chat service, click here for more info »</a>
|
|
11362
11655
|
*/
|
|
11363
11656
|
imported?: boolean;
|
|
11657
|
+
/**
|
|
11658
|
+
* Only for messages forwarded to
|
|
11659
|
+
* <a href="https://corefork.telegram.org/api/saved-messages">saved
|
|
11660
|
+
* messages »</a>, set if the original message was outgoing
|
|
11661
|
+
* (though the message may have been originally outgoing even
|
|
11662
|
+
* if this flag is not set, if <code>from_id</code> points to
|
|
11663
|
+
* the current user).
|
|
11664
|
+
*/
|
|
11665
|
+
savedOut?: boolean;
|
|
11364
11666
|
/**
|
|
11365
11667
|
* The ID of the user that originally sent the message
|
|
11366
11668
|
*/
|
|
@@ -11383,17 +11685,51 @@ export class RpcError extends Error {
|
|
|
11383
11685
|
*/
|
|
11384
11686
|
postAuthor?: string;
|
|
11385
11687
|
/**
|
|
11386
|
-
* Only for messages forwarded to
|
|
11387
|
-
*
|
|
11388
|
-
*
|
|
11688
|
+
* Only for messages forwarded to
|
|
11689
|
+
* <a href="https://corefork.telegram.org/api/saved-messages">saved
|
|
11690
|
+
* messages »</a>, contains the dialog where the message was
|
|
11691
|
+
* originally sent.
|
|
11389
11692
|
*/
|
|
11390
11693
|
savedFromPeer?: tl.TypePeer;
|
|
11391
11694
|
/**
|
|
11392
|
-
* Only for messages forwarded to
|
|
11393
|
-
*
|
|
11394
|
-
* the original
|
|
11695
|
+
* Only for messages forwarded to
|
|
11696
|
+
* <a href="https://corefork.telegram.org/api/saved-messages">saved
|
|
11697
|
+
* messages »</a>, contains the original ID of the message in
|
|
11698
|
+
* <code>saved_from_peer</code>.
|
|
11395
11699
|
*/
|
|
11396
11700
|
savedFromMsgId?: number;
|
|
11701
|
+
/**
|
|
11702
|
+
* Only for forwarded messages reforwarded to
|
|
11703
|
+
* <a href="https://corefork.telegram.org/api/saved-messages">saved
|
|
11704
|
+
* messages »</a>, contains the sender of the original message
|
|
11705
|
+
* (i.e. if user A sends a message, then user B forwards it
|
|
11706
|
+
* somewhere, then user C saves it to saved messages, this
|
|
11707
|
+
* field will contain the ID of user A and <code>from_id</code>
|
|
11708
|
+
* will contain the ID of user B).
|
|
11709
|
+
*/
|
|
11710
|
+
savedFromId?: tl.TypePeer;
|
|
11711
|
+
/**
|
|
11712
|
+
* Only for forwarded messages from users with forward privacy
|
|
11713
|
+
* enabled reforwarded to
|
|
11714
|
+
* <a href="https://corefork.telegram.org/api/saved-messages">saved
|
|
11715
|
+
* messages »</a>, contains the sender of the original message
|
|
11716
|
+
* (i.e. if user A (fwd privacy enabled) sends a message, then
|
|
11717
|
+
* user B forwards it somewhere, then user C saves it to saved
|
|
11718
|
+
* messages, this field will contain the name of user A and
|
|
11719
|
+
* <code>from_id</code> will contain the ID of user B).
|
|
11720
|
+
*/
|
|
11721
|
+
savedFromName?: string;
|
|
11722
|
+
/**
|
|
11723
|
+
* Only for forwarded messages reforwarded to
|
|
11724
|
+
* <a href="https://corefork.telegram.org/api/saved-messages">saved
|
|
11725
|
+
* messages »</a>, indicates when was the original message sent
|
|
11726
|
+
* (i.e. if user A sends a message @ unixtime 1, then user B
|
|
11727
|
+
* forwards it somewhere @ unixtime 2, then user C saves it to
|
|
11728
|
+
* saved messages @ unixtime 3, this field will contain 1,
|
|
11729
|
+
* <code>date</code> will contain 2 and the <code>date</code>
|
|
11730
|
+
* of the containing {@link RawMessage} will contain 3).
|
|
11731
|
+
*/
|
|
11732
|
+
savedDate?: number;
|
|
11397
11733
|
/**
|
|
11398
11734
|
* PSA type
|
|
11399
11735
|
*/
|
|
@@ -13912,45 +14248,72 @@ export class RpcError extends Error {
|
|
|
13912
14248
|
}
|
|
13913
14249
|
/**
|
|
13914
14250
|
* The
|
|
13915
|
-
* <a href="https://corefork.telegram.org/api/colors">
|
|
13916
|
-
*
|
|
14251
|
+
* <a href="https://corefork.telegram.org/api/colors">message
|
|
14252
|
+
* accent color</a> was changed
|
|
13917
14253
|
*/
|
|
13918
|
-
interface
|
|
13919
|
-
_: '
|
|
14254
|
+
interface RawChannelAdminLogEventActionChangePeerColor {
|
|
14255
|
+
_: 'channelAdminLogEventActionChangePeerColor';
|
|
13920
14256
|
/**
|
|
13921
|
-
*
|
|
13922
|
-
* <a href="https://corefork.telegram.org/api/colors">color
|
|
13923
|
-
* palette ID</a>.
|
|
14257
|
+
* Previous accent palette
|
|
13924
14258
|
*/
|
|
13925
|
-
prevValue:
|
|
14259
|
+
prevValue: tl.TypePeerColor;
|
|
13926
14260
|
/**
|
|
13927
|
-
*
|
|
13928
|
-
* <a href="https://corefork.telegram.org/api/colors">color
|
|
13929
|
-
* palette ID</a>.
|
|
14261
|
+
* New accent palette
|
|
13930
14262
|
*/
|
|
13931
|
-
newValue:
|
|
14263
|
+
newValue: tl.TypePeerColor;
|
|
13932
14264
|
}
|
|
13933
14265
|
/**
|
|
13934
14266
|
* The
|
|
13935
|
-
* <a href="https://corefork.telegram.org/api/
|
|
13936
|
-
*
|
|
13937
|
-
* <a href="https://corefork.telegram.org/api/colors">background
|
|
13938
|
-
* profile color »</a> of a channel was changed.
|
|
14267
|
+
* <a href="https://corefork.telegram.org/api/colors">profile
|
|
14268
|
+
* accent color</a> was changed
|
|
13939
14269
|
*/
|
|
13940
|
-
interface
|
|
13941
|
-
_: '
|
|
14270
|
+
interface RawChannelAdminLogEventActionChangeProfilePeerColor {
|
|
14271
|
+
_: 'channelAdminLogEventActionChangeProfilePeerColor';
|
|
13942
14272
|
/**
|
|
13943
|
-
*
|
|
13944
|
-
* <a href="https://corefork.telegram.org/api/custom-emoji">custom
|
|
13945
|
-
* emoji ID</a> (or 0 if none)
|
|
14273
|
+
* Previous accent palette
|
|
13946
14274
|
*/
|
|
13947
|
-
prevValue:
|
|
14275
|
+
prevValue: tl.TypePeerColor;
|
|
13948
14276
|
/**
|
|
13949
|
-
* New
|
|
13950
|
-
* <a href="https://corefork.telegram.org/api/custom-emoji">custom
|
|
13951
|
-
* emoji ID</a> (or 0 if none)
|
|
14277
|
+
* New accent palette
|
|
13952
14278
|
*/
|
|
13953
|
-
newValue:
|
|
14279
|
+
newValue: tl.TypePeerColor;
|
|
14280
|
+
}
|
|
14281
|
+
/**
|
|
14282
|
+
* The
|
|
14283
|
+
* <a href="https://corefork.telegram.org/api/wallpapers">wallpaper</a>
|
|
14284
|
+
* was changed
|
|
14285
|
+
*/
|
|
14286
|
+
interface RawChannelAdminLogEventActionChangeWallpaper {
|
|
14287
|
+
_: 'channelAdminLogEventActionChangeWallpaper';
|
|
14288
|
+
/**
|
|
14289
|
+
* Previous wallpaper
|
|
14290
|
+
*/
|
|
14291
|
+
prevValue: tl.TypeWallPaper;
|
|
14292
|
+
/**
|
|
14293
|
+
* New wallpaper
|
|
14294
|
+
*/
|
|
14295
|
+
newValue: tl.TypeWallPaper;
|
|
14296
|
+
}
|
|
14297
|
+
/**
|
|
14298
|
+
* The
|
|
14299
|
+
* <a href="https://corefork.telegram.org/api/emoji-status">emoji
|
|
14300
|
+
* status</a> was changed
|
|
14301
|
+
*/
|
|
14302
|
+
interface RawChannelAdminLogEventActionChangeEmojiStatus {
|
|
14303
|
+
_: 'channelAdminLogEventActionChangeEmojiStatus';
|
|
14304
|
+
/**
|
|
14305
|
+
* Previous emoji status
|
|
14306
|
+
*/
|
|
14307
|
+
prevValue: tl.TypeEmojiStatus;
|
|
14308
|
+
/**
|
|
14309
|
+
* New emoji status
|
|
14310
|
+
*/
|
|
14311
|
+
newValue: tl.TypeEmojiStatus;
|
|
14312
|
+
}
|
|
14313
|
+
interface RawChannelAdminLogEventActionChangeEmojiStickerSet {
|
|
14314
|
+
_: 'channelAdminLogEventActionChangeEmojiStickerSet';
|
|
14315
|
+
prevStickerset: tl.TypeInputStickerSet;
|
|
14316
|
+
newStickerset: tl.TypeInputStickerSet;
|
|
13954
14317
|
}
|
|
13955
14318
|
/**
|
|
13956
14319
|
* Admin log event
|
|
@@ -15912,6 +16275,10 @@ export class RpcError extends Error {
|
|
|
15912
16275
|
* Should be always divisible by 45.
|
|
15913
16276
|
*/
|
|
15914
16277
|
rotation?: number;
|
|
16278
|
+
/**
|
|
16279
|
+
* If set, this wallpaper can be used as a channel wallpaper
|
|
16280
|
+
* and is represented by the specified UTF-8 emoji.
|
|
16281
|
+
*/
|
|
15915
16282
|
emoticon?: string;
|
|
15916
16283
|
}
|
|
15917
16284
|
/**
|
|
@@ -15962,7 +16329,17 @@ export class RpcError extends Error {
|
|
|
15962
16329
|
* videos
|
|
15963
16330
|
*/
|
|
15964
16331
|
videoUploadMaxbitrate: number;
|
|
16332
|
+
/**
|
|
16333
|
+
* A limit, specifying the maximum number of files that should
|
|
16334
|
+
* be downloaded in parallel from the same DC, for files
|
|
16335
|
+
* smaller than 20MB.
|
|
16336
|
+
*/
|
|
15965
16337
|
smallQueueActiveOperationsMax: number;
|
|
16338
|
+
/**
|
|
16339
|
+
* A limit, specifying the maximum number of files that should
|
|
16340
|
+
* be downloaded in parallel from the same DC, for files bigger
|
|
16341
|
+
* than 20MB.
|
|
16342
|
+
*/
|
|
15966
16343
|
largeQueueActiveOperationsMax: number;
|
|
15967
16344
|
}
|
|
15968
16345
|
/**
|
|
@@ -16538,6 +16915,7 @@ export class RpcError extends Error {
|
|
|
16538
16915
|
* Emoji to use as icon for the folder.
|
|
16539
16916
|
*/
|
|
16540
16917
|
emoticon?: string;
|
|
16918
|
+
color?: number;
|
|
16541
16919
|
/**
|
|
16542
16920
|
* Pinned chats,
|
|
16543
16921
|
* <a href="https://corefork.telegram.org/api/folders">folders</a>
|
|
@@ -16587,6 +16965,7 @@ export class RpcError extends Error {
|
|
|
16587
16965
|
* Emoji to use as icon for the folder.
|
|
16588
16966
|
*/
|
|
16589
16967
|
emoticon?: string;
|
|
16968
|
+
color?: number;
|
|
16590
16969
|
/**
|
|
16591
16970
|
* Pinned chats,
|
|
16592
16971
|
* <a href="https://corefork.telegram.org/api/folders">folders</a>
|
|
@@ -16873,6 +17252,8 @@ export class RpcError extends Error {
|
|
|
16873
17252
|
* set.
|
|
16874
17253
|
*/
|
|
16875
17254
|
keepArchivedFolders?: boolean;
|
|
17255
|
+
hideReadMarks?: boolean;
|
|
17256
|
+
newNoncontactPeersRequirePremium?: boolean;
|
|
16876
17257
|
}
|
|
16877
17258
|
/**
|
|
16878
17259
|
* View, forward counter + info about replies of a specific
|
|
@@ -16969,10 +17350,7 @@ export class RpcError extends Error {
|
|
|
16969
17350
|
*/
|
|
16970
17351
|
interface RawMessageReplyStoryHeader {
|
|
16971
17352
|
_: 'messageReplyStoryHeader';
|
|
16972
|
-
|
|
16973
|
-
* ID of the user that posted a story
|
|
16974
|
-
*/
|
|
16975
|
-
userId: number;
|
|
17353
|
+
peer: tl.TypePeer;
|
|
16976
17354
|
/**
|
|
16977
17355
|
* Story ID
|
|
16978
17356
|
*/
|
|
@@ -17628,6 +18006,7 @@ export class RpcError extends Error {
|
|
|
17628
18006
|
* message
|
|
17629
18007
|
*/
|
|
17630
18008
|
canSeeList?: boolean;
|
|
18009
|
+
reactionsAsTags?: boolean;
|
|
17631
18010
|
/**
|
|
17632
18011
|
* Reactions
|
|
17633
18012
|
*/
|
|
@@ -18262,6 +18641,11 @@ export class RpcError extends Error {
|
|
|
18262
18641
|
* creation date will be able to participate to the giveaway.
|
|
18263
18642
|
*/
|
|
18264
18643
|
onlyNewSubscribers?: boolean;
|
|
18644
|
+
/**
|
|
18645
|
+
* If set, giveaway winners are public and will be listed in a
|
|
18646
|
+
* {@link RawMessageMediaGiveawayResults} message that will be
|
|
18647
|
+
* automatically sent to the channel once the giveaway ends.
|
|
18648
|
+
*/
|
|
18265
18649
|
winnersAreVisible?: boolean;
|
|
18266
18650
|
/**
|
|
18267
18651
|
* The channel starting the giveaway, that the user must join
|
|
@@ -18285,6 +18669,10 @@ export class RpcError extends Error {
|
|
|
18285
18669
|
* country codes.
|
|
18286
18670
|
*/
|
|
18287
18671
|
countriesIso2?: string[];
|
|
18672
|
+
/**
|
|
18673
|
+
* Can contain a textual description of additional giveaway
|
|
18674
|
+
* prizes.
|
|
18675
|
+
*/
|
|
18288
18676
|
prizeDescription?: string;
|
|
18289
18677
|
/**
|
|
18290
18678
|
* Random ID to avoid resending the giveaway
|
|
@@ -19346,6 +19734,7 @@ export class RpcError extends Error {
|
|
|
19346
19734
|
* When was the story posted.
|
|
19347
19735
|
*/
|
|
19348
19736
|
date: number;
|
|
19737
|
+
fromId?: tl.TypePeer;
|
|
19349
19738
|
/**
|
|
19350
19739
|
* For
|
|
19351
19740
|
* <a href="https://corefork.telegram.org/api/stories#reposting-stories">reposted
|
|
@@ -19422,6 +19811,57 @@ export class RpcError extends Error {
|
|
|
19422
19811
|
*/
|
|
19423
19812
|
reaction?: tl.TypeReaction;
|
|
19424
19813
|
}
|
|
19814
|
+
/**
|
|
19815
|
+
* A certain peer has forwarded the story as a message to a
|
|
19816
|
+
* public chat or channel.
|
|
19817
|
+
*/
|
|
19818
|
+
interface RawStoryViewPublicForward {
|
|
19819
|
+
_: 'storyViewPublicForward';
|
|
19820
|
+
/**
|
|
19821
|
+
* Whether we have
|
|
19822
|
+
* <a href="https://corefork.telegram.org/api/block">completely
|
|
19823
|
+
* blocked</a> this user, including from viewing more of our
|
|
19824
|
+
* stories.
|
|
19825
|
+
*/
|
|
19826
|
+
blocked?: boolean;
|
|
19827
|
+
/**
|
|
19828
|
+
* Whether we have
|
|
19829
|
+
* <a href="https://corefork.telegram.org/api/block">blocked</a>
|
|
19830
|
+
* this user from viewing more of our stories.
|
|
19831
|
+
*/
|
|
19832
|
+
blockedMyStoriesFrom?: boolean;
|
|
19833
|
+
/**
|
|
19834
|
+
* The message with the forwarded story.
|
|
19835
|
+
*/
|
|
19836
|
+
message: tl.TypeMessage;
|
|
19837
|
+
}
|
|
19838
|
+
/**
|
|
19839
|
+
* A certain peer has reposted the story.
|
|
19840
|
+
*/
|
|
19841
|
+
interface RawStoryViewPublicRepost {
|
|
19842
|
+
_: 'storyViewPublicRepost';
|
|
19843
|
+
/**
|
|
19844
|
+
* Whether we have
|
|
19845
|
+
* <a href="https://corefork.telegram.org/api/block">completely
|
|
19846
|
+
* blocked</a> this user, including from viewing more of our
|
|
19847
|
+
* stories.
|
|
19848
|
+
*/
|
|
19849
|
+
blocked?: boolean;
|
|
19850
|
+
/**
|
|
19851
|
+
* Whether we have
|
|
19852
|
+
* <a href="https://corefork.telegram.org/api/block">blocked</a>
|
|
19853
|
+
* this user from viewing more of our stories.
|
|
19854
|
+
*/
|
|
19855
|
+
blockedMyStoriesFrom?: boolean;
|
|
19856
|
+
/**
|
|
19857
|
+
* The peer that reposted the story.
|
|
19858
|
+
*/
|
|
19859
|
+
peerId: tl.TypePeer;
|
|
19860
|
+
/**
|
|
19861
|
+
* The reposted story.
|
|
19862
|
+
*/
|
|
19863
|
+
story: tl.TypeStoryItem;
|
|
19864
|
+
}
|
|
19425
19865
|
/**
|
|
19426
19866
|
* Reply to a message.
|
|
19427
19867
|
*/
|
|
@@ -19452,7 +19892,10 @@ export class RpcError extends Error {
|
|
|
19452
19892
|
replyToPeerId?: tl.TypeInputPeer;
|
|
19453
19893
|
/**
|
|
19454
19894
|
* Used to quote-reply to only a certain section (specified
|
|
19455
|
-
* here) of the original message.
|
|
19895
|
+
* here) of the original message. The maximum UTF-8 length for
|
|
19896
|
+
* quotes is specified in the
|
|
19897
|
+
* <a href="https://corefork.telegram.org/api/config#quote-length-max">quote_length_max</a>
|
|
19898
|
+
* config key.
|
|
19456
19899
|
*/
|
|
19457
19900
|
quoteText?: string;
|
|
19458
19901
|
/**
|
|
@@ -19474,10 +19917,7 @@ export class RpcError extends Error {
|
|
|
19474
19917
|
*/
|
|
19475
19918
|
interface RawInputReplyToStory {
|
|
19476
19919
|
_: 'inputReplyToStory';
|
|
19477
|
-
|
|
19478
|
-
* ID of the user that posted the story.
|
|
19479
|
-
*/
|
|
19480
|
-
userId: tl.TypeInputUser;
|
|
19920
|
+
peer: tl.TypeInputPeer;
|
|
19481
19921
|
/**
|
|
19482
19922
|
* ID of the story to reply to.
|
|
19483
19923
|
*/
|
|
@@ -19653,6 +20093,44 @@ export class RpcError extends Error {
|
|
|
19653
20093
|
*/
|
|
19654
20094
|
reaction: tl.TypeReaction;
|
|
19655
20095
|
}
|
|
20096
|
+
/**
|
|
20097
|
+
* Represents a channel post.
|
|
20098
|
+
*/
|
|
20099
|
+
interface RawMediaAreaChannelPost {
|
|
20100
|
+
_: 'mediaAreaChannelPost';
|
|
20101
|
+
/**
|
|
20102
|
+
* The size and location of the media area corresponding to the
|
|
20103
|
+
* location sticker on top of the story media.
|
|
20104
|
+
*/
|
|
20105
|
+
coordinates: tl.TypeMediaAreaCoordinates;
|
|
20106
|
+
/**
|
|
20107
|
+
* The channel that posted the message
|
|
20108
|
+
*/
|
|
20109
|
+
channelId: number;
|
|
20110
|
+
/**
|
|
20111
|
+
* ID of the channel message
|
|
20112
|
+
*/
|
|
20113
|
+
msgId: number;
|
|
20114
|
+
}
|
|
20115
|
+
/**
|
|
20116
|
+
* Represents a channel post
|
|
20117
|
+
*/
|
|
20118
|
+
interface RawInputMediaAreaChannelPost {
|
|
20119
|
+
_: 'inputMediaAreaChannelPost';
|
|
20120
|
+
/**
|
|
20121
|
+
* The size and location of the media area corresponding to the
|
|
20122
|
+
* location sticker on top of the story media.
|
|
20123
|
+
*/
|
|
20124
|
+
coordinates: tl.TypeMediaAreaCoordinates;
|
|
20125
|
+
/**
|
|
20126
|
+
* The channel that posted the message
|
|
20127
|
+
*/
|
|
20128
|
+
channel: tl.TypeInputChannel;
|
|
20129
|
+
/**
|
|
20130
|
+
* ID of the channel message
|
|
20131
|
+
*/
|
|
20132
|
+
msgId: number;
|
|
20133
|
+
}
|
|
19656
20134
|
/**
|
|
19657
20135
|
* <a href="https://corefork.telegram.org/api/stories">Stories</a>
|
|
19658
20136
|
* associated to a peer
|
|
@@ -19954,193 +20432,193 @@ export class RpcError extends Error {
|
|
|
19954
20432
|
_: 'peerColor';
|
|
19955
20433
|
/**
|
|
19956
20434
|
* <a href="https://corefork.telegram.org/api/colors">Color
|
|
19957
|
-
* palette ID, see here »</a> for more info
|
|
20435
|
+
* palette ID, see here »</a> for more info; if not set, the
|
|
20436
|
+
* default palette should be used.
|
|
19958
20437
|
*/
|
|
19959
20438
|
color?: number;
|
|
19960
20439
|
/**
|
|
19961
|
-
*
|
|
20440
|
+
* Optional
|
|
20441
|
+
* <a href="https://corefork.telegram.org/api/custom-emoji">custom
|
|
19962
20442
|
* emoji ID</a> used to generate the pattern.
|
|
19963
20443
|
*/
|
|
19964
20444
|
backgroundEmojiId?: Long;
|
|
19965
20445
|
}
|
|
19966
|
-
interface RawMessageMediaGiveawayResults {
|
|
19967
|
-
_: 'messageMediaGiveawayResults';
|
|
19968
|
-
onlyNewSubscribers?: boolean;
|
|
19969
|
-
refunded?: boolean;
|
|
19970
|
-
channelId: Long;
|
|
19971
|
-
additionalPeersCount?: number;
|
|
19972
|
-
launchMsgId: number;
|
|
19973
|
-
winnersCount: number;
|
|
19974
|
-
unclaimedCount: number;
|
|
19975
|
-
winners: Long[];
|
|
19976
|
-
months: number;
|
|
19977
|
-
prizeDescription?: string;
|
|
19978
|
-
untilDate: number;
|
|
19979
|
-
}
|
|
19980
|
-
interface RawUpdateBotMessageReaction {
|
|
19981
|
-
_: 'updateBotMessageReaction';
|
|
19982
|
-
peer: tl.TypePeer;
|
|
19983
|
-
msgId: number;
|
|
19984
|
-
date: number;
|
|
19985
|
-
actor: tl.TypePeer;
|
|
19986
|
-
oldReactions: tl.TypeReaction[];
|
|
19987
|
-
newReactions: tl.TypeReaction[];
|
|
19988
|
-
qts: number;
|
|
19989
|
-
}
|
|
19990
|
-
interface RawUpdateBotMessageReactions {
|
|
19991
|
-
_: 'updateBotMessageReactions';
|
|
19992
|
-
peer: tl.TypePeer;
|
|
19993
|
-
msgId: number;
|
|
19994
|
-
date: number;
|
|
19995
|
-
reactions: tl.TypeReactionCount[];
|
|
19996
|
-
qts: number;
|
|
19997
|
-
}
|
|
19998
|
-
interface RawInputStickerSetEmojiChannelDefaultStatuses {
|
|
19999
|
-
_: 'inputStickerSetEmojiChannelDefaultStatuses';
|
|
20000
|
-
}
|
|
20001
|
-
interface RawChannelAdminLogEventActionChangePeerColor {
|
|
20002
|
-
_: 'channelAdminLogEventActionChangePeerColor';
|
|
20003
|
-
prevValue: tl.TypePeerColor;
|
|
20004
|
-
newValue: tl.TypePeerColor;
|
|
20005
|
-
}
|
|
20006
|
-
interface RawChannelAdminLogEventActionChangeProfilePeerColor {
|
|
20007
|
-
_: 'channelAdminLogEventActionChangeProfilePeerColor';
|
|
20008
|
-
prevValue: tl.TypePeerColor;
|
|
20009
|
-
newValue: tl.TypePeerColor;
|
|
20010
|
-
}
|
|
20011
|
-
interface RawChannelAdminLogEventActionChangeWallpaper {
|
|
20012
|
-
_: 'channelAdminLogEventActionChangeWallpaper';
|
|
20013
|
-
prevValue: tl.TypeWallPaper;
|
|
20014
|
-
newValue: tl.TypeWallPaper;
|
|
20015
|
-
}
|
|
20016
|
-
interface RawChannelAdminLogEventActionChangeEmojiStatus {
|
|
20017
|
-
_: 'channelAdminLogEventActionChangeEmojiStatus';
|
|
20018
|
-
prevValue: tl.TypeEmojiStatus;
|
|
20019
|
-
newValue: tl.TypeEmojiStatus;
|
|
20020
|
-
}
|
|
20021
|
-
interface RawStoryViewPublicForward {
|
|
20022
|
-
_: 'storyViewPublicForward';
|
|
20023
|
-
blocked?: boolean;
|
|
20024
|
-
blockedMyStoriesFrom?: boolean;
|
|
20025
|
-
message: tl.TypeMessage;
|
|
20026
|
-
}
|
|
20027
|
-
interface RawStoryViewPublicRepost {
|
|
20028
|
-
_: 'storyViewPublicRepost';
|
|
20029
|
-
blocked?: boolean;
|
|
20030
|
-
blockedMyStoriesFrom?: boolean;
|
|
20031
|
-
peerId: tl.TypePeer;
|
|
20032
|
-
story: tl.TypeStoryItem;
|
|
20033
|
-
}
|
|
20034
|
-
interface RawMediaAreaChannelPost {
|
|
20035
|
-
_: 'mediaAreaChannelPost';
|
|
20036
|
-
coordinates: tl.TypeMediaAreaCoordinates;
|
|
20037
|
-
channelId: number;
|
|
20038
|
-
msgId: number;
|
|
20039
|
-
}
|
|
20040
|
-
interface RawInputMediaAreaChannelPost {
|
|
20041
|
-
_: 'inputMediaAreaChannelPost';
|
|
20042
|
-
coordinates: tl.TypeMediaAreaCoordinates;
|
|
20043
|
-
channel: tl.TypeInputChannel;
|
|
20044
|
-
msgId: number;
|
|
20045
|
-
}
|
|
20046
|
-
interface RawStoryReaction {
|
|
20047
|
-
_: 'storyReaction';
|
|
20048
|
-
peerId: tl.TypePeer;
|
|
20049
|
-
date: number;
|
|
20050
|
-
reaction: tl.TypeReaction;
|
|
20051
|
-
}
|
|
20052
|
-
interface RawStoryReactionPublicForward {
|
|
20053
|
-
_: 'storyReactionPublicForward';
|
|
20054
|
-
message: tl.TypeMessage;
|
|
20055
|
-
}
|
|
20056
|
-
interface RawStoryReactionPublicRepost {
|
|
20057
|
-
_: 'storyReactionPublicRepost';
|
|
20058
|
-
peerId: tl.TypePeer;
|
|
20059
|
-
story: tl.TypeStoryItem;
|
|
20060
|
-
}
|
|
20061
|
-
/**
|
|
20062
|
-
* The user applied a
|
|
20063
|
-
* <a href="https://corefork.telegram.org/api/wallpapers">wallpaper
|
|
20064
|
-
* »</a> previously sent by the other user in a
|
|
20065
|
-
* {@link RawMessageActionSetChatWallPaper} message.
|
|
20066
|
-
*/
|
|
20067
|
-
interface RawMessageActionSetSameChatWallPaper {
|
|
20068
|
-
_: 'messageActionSetSameChatWallPaper';
|
|
20069
|
-
/**
|
|
20070
|
-
* The
|
|
20071
|
-
* <a href="https://corefork.telegram.org/api/wallpapers">wallpaper</a>
|
|
20072
|
-
*/
|
|
20073
|
-
wallpaper: tl.TypeWallPaper;
|
|
20074
|
-
}
|
|
20075
20446
|
/**
|
|
20076
|
-
* How a
|
|
20447
|
+
* How a certain peer reacted to a story
|
|
20077
20448
|
*/
|
|
20078
|
-
interface
|
|
20079
|
-
_: '
|
|
20449
|
+
interface RawStoryReaction {
|
|
20450
|
+
_: 'storyReaction';
|
|
20080
20451
|
/**
|
|
20081
|
-
*
|
|
20452
|
+
* The peer
|
|
20082
20453
|
*/
|
|
20083
|
-
|
|
20454
|
+
peerId: tl.TypePeer;
|
|
20084
20455
|
/**
|
|
20085
|
-
*
|
|
20456
|
+
* Reaction date
|
|
20086
20457
|
*/
|
|
20087
|
-
|
|
20458
|
+
date: number;
|
|
20088
20459
|
/**
|
|
20089
|
-
*
|
|
20460
|
+
* The reaction
|
|
20090
20461
|
*/
|
|
20091
|
-
|
|
20462
|
+
reaction: tl.TypeReaction;
|
|
20092
20463
|
}
|
|
20093
20464
|
/**
|
|
20094
|
-
*
|
|
20095
|
-
*
|
|
20096
|
-
* {@link messages.RawGetPollVotesRequest})
|
|
20465
|
+
* A certain peer has forwarded the story as a message to a
|
|
20466
|
+
* public chat or channel.
|
|
20097
20467
|
*/
|
|
20098
|
-
interface
|
|
20099
|
-
_: '
|
|
20100
|
-
/**
|
|
20101
|
-
* The user that voted for the queried <code>option</code>
|
|
20102
|
-
*/
|
|
20103
|
-
userId: number;
|
|
20468
|
+
interface RawStoryReactionPublicForward {
|
|
20469
|
+
_: 'storyReactionPublicForward';
|
|
20104
20470
|
/**
|
|
20105
|
-
*
|
|
20471
|
+
* The message with the forwarded story.
|
|
20106
20472
|
*/
|
|
20107
|
-
|
|
20473
|
+
message: tl.TypeMessage;
|
|
20108
20474
|
}
|
|
20109
20475
|
/**
|
|
20110
|
-
*
|
|
20476
|
+
* A certain peer has reposted the story.
|
|
20111
20477
|
*/
|
|
20112
|
-
interface
|
|
20113
|
-
_: '
|
|
20114
|
-
/**
|
|
20115
|
-
* User ID
|
|
20116
|
-
*/
|
|
20117
|
-
userId: number;
|
|
20478
|
+
interface RawStoryReactionPublicRepost {
|
|
20479
|
+
_: 'storyReactionPublicRepost';
|
|
20118
20480
|
/**
|
|
20119
|
-
*
|
|
20481
|
+
* The peer that reposted the story.
|
|
20120
20482
|
*/
|
|
20121
|
-
|
|
20483
|
+
peerId: tl.TypePeer;
|
|
20122
20484
|
/**
|
|
20123
|
-
*
|
|
20485
|
+
* The reposted story.
|
|
20124
20486
|
*/
|
|
20125
|
-
|
|
20487
|
+
story: tl.TypeStoryItem;
|
|
20126
20488
|
}
|
|
20127
20489
|
/**
|
|
20128
|
-
*
|
|
20490
|
+
* Represents a
|
|
20491
|
+
* <a href="https://corefork.telegram.org/api/saved-messages">saved
|
|
20492
|
+
* dialog »</a>.
|
|
20129
20493
|
*/
|
|
20130
|
-
interface
|
|
20131
|
-
_: '
|
|
20494
|
+
interface RawSavedDialog {
|
|
20495
|
+
_: 'savedDialog';
|
|
20132
20496
|
/**
|
|
20133
|
-
*
|
|
20497
|
+
* Is the dialog pinned
|
|
20134
20498
|
*/
|
|
20135
|
-
|
|
20499
|
+
pinned?: boolean;
|
|
20136
20500
|
/**
|
|
20137
|
-
*
|
|
20501
|
+
* The dialog
|
|
20138
20502
|
*/
|
|
20139
|
-
|
|
20503
|
+
peer: tl.TypePeer;
|
|
20140
20504
|
/**
|
|
20141
|
-
*
|
|
20505
|
+
* The latest message ID
|
|
20142
20506
|
*/
|
|
20143
|
-
|
|
20507
|
+
topMessage: number;
|
|
20508
|
+
}
|
|
20509
|
+
interface RawSavedReactionTag {
|
|
20510
|
+
_: 'savedReactionTag';
|
|
20511
|
+
reaction: tl.TypeReaction;
|
|
20512
|
+
title?: string;
|
|
20513
|
+
count: number;
|
|
20514
|
+
}
|
|
20515
|
+
interface RawOutboxReadDate {
|
|
20516
|
+
_: 'outboxReadDate';
|
|
20517
|
+
date: number;
|
|
20518
|
+
}
|
|
20519
|
+
interface RawSmsJob {
|
|
20520
|
+
_: 'smsJob';
|
|
20521
|
+
jobId: string;
|
|
20522
|
+
phoneNumber: string;
|
|
20523
|
+
text: string;
|
|
20524
|
+
}
|
|
20525
|
+
interface RawBusinessWeeklyOpen {
|
|
20526
|
+
_: 'businessWeeklyOpen';
|
|
20527
|
+
startMinute: number;
|
|
20528
|
+
endMinute: number;
|
|
20529
|
+
}
|
|
20530
|
+
interface RawBusinessWorkHours {
|
|
20531
|
+
_: 'businessWorkHours';
|
|
20532
|
+
openNow?: boolean;
|
|
20533
|
+
timezoneId: string;
|
|
20534
|
+
weeklyOpen: tl.TypeBusinessWeeklyOpen[];
|
|
20535
|
+
}
|
|
20536
|
+
interface RawBusinessLocation {
|
|
20537
|
+
_: 'businessLocation';
|
|
20538
|
+
geoPoint?: tl.TypeGeoPoint;
|
|
20539
|
+
address: string;
|
|
20540
|
+
}
|
|
20541
|
+
interface RawInputBusinessRecipients {
|
|
20542
|
+
_: 'inputBusinessRecipients';
|
|
20543
|
+
existingChats?: boolean;
|
|
20544
|
+
newChats?: boolean;
|
|
20545
|
+
contacts?: boolean;
|
|
20546
|
+
nonContacts?: boolean;
|
|
20547
|
+
excludeSelected?: boolean;
|
|
20548
|
+
users?: tl.TypeInputUser[];
|
|
20549
|
+
}
|
|
20550
|
+
interface RawBusinessRecipients {
|
|
20551
|
+
_: 'businessRecipients';
|
|
20552
|
+
existingChats?: boolean;
|
|
20553
|
+
newChats?: boolean;
|
|
20554
|
+
contacts?: boolean;
|
|
20555
|
+
nonContacts?: boolean;
|
|
20556
|
+
excludeSelected?: boolean;
|
|
20557
|
+
users?: number[];
|
|
20558
|
+
}
|
|
20559
|
+
interface RawBusinessAwayMessageScheduleAlways {
|
|
20560
|
+
_: 'businessAwayMessageScheduleAlways';
|
|
20561
|
+
}
|
|
20562
|
+
interface RawBusinessAwayMessageScheduleOutsideWorkHours {
|
|
20563
|
+
_: 'businessAwayMessageScheduleOutsideWorkHours';
|
|
20564
|
+
}
|
|
20565
|
+
interface RawBusinessAwayMessageScheduleCustom {
|
|
20566
|
+
_: 'businessAwayMessageScheduleCustom';
|
|
20567
|
+
startDate: number;
|
|
20568
|
+
endDate: number;
|
|
20569
|
+
}
|
|
20570
|
+
interface RawInputBusinessGreetingMessage {
|
|
20571
|
+
_: 'inputBusinessGreetingMessage';
|
|
20572
|
+
shortcutId: number;
|
|
20573
|
+
recipients: tl.TypeInputBusinessRecipients;
|
|
20574
|
+
noActivityDays: number;
|
|
20575
|
+
}
|
|
20576
|
+
interface RawBusinessGreetingMessage {
|
|
20577
|
+
_: 'businessGreetingMessage';
|
|
20578
|
+
shortcutId: number;
|
|
20579
|
+
recipients: tl.TypeBusinessRecipients;
|
|
20580
|
+
noActivityDays: number;
|
|
20581
|
+
}
|
|
20582
|
+
interface RawInputBusinessAwayMessage {
|
|
20583
|
+
_: 'inputBusinessAwayMessage';
|
|
20584
|
+
offlineOnly?: boolean;
|
|
20585
|
+
shortcutId: number;
|
|
20586
|
+
schedule: tl.TypeBusinessAwayMessageSchedule;
|
|
20587
|
+
recipients: tl.TypeInputBusinessRecipients;
|
|
20588
|
+
}
|
|
20589
|
+
interface RawBusinessAwayMessage {
|
|
20590
|
+
_: 'businessAwayMessage';
|
|
20591
|
+
offlineOnly?: boolean;
|
|
20592
|
+
shortcutId: number;
|
|
20593
|
+
schedule: tl.TypeBusinessAwayMessageSchedule;
|
|
20594
|
+
recipients: tl.TypeBusinessRecipients;
|
|
20595
|
+
}
|
|
20596
|
+
interface RawTimezone {
|
|
20597
|
+
_: 'timezone';
|
|
20598
|
+
id: string;
|
|
20599
|
+
name: string;
|
|
20600
|
+
utcOffset: number;
|
|
20601
|
+
}
|
|
20602
|
+
interface RawQuickReply {
|
|
20603
|
+
_: 'quickReply';
|
|
20604
|
+
shortcutId: number;
|
|
20605
|
+
shortcut: string;
|
|
20606
|
+
topMessage: number;
|
|
20607
|
+
count: number;
|
|
20608
|
+
}
|
|
20609
|
+
interface RawInputQuickReplyShortcut {
|
|
20610
|
+
_: 'inputQuickReplyShortcut';
|
|
20611
|
+
shortcut: string;
|
|
20612
|
+
}
|
|
20613
|
+
interface RawInputQuickReplyShortcutId {
|
|
20614
|
+
_: 'inputQuickReplyShortcutId';
|
|
20615
|
+
shortcutId: number;
|
|
20616
|
+
}
|
|
20617
|
+
interface RawConnectedBot {
|
|
20618
|
+
_: 'connectedBot';
|
|
20619
|
+
canReply?: boolean;
|
|
20620
|
+
botId: number;
|
|
20621
|
+
recipients: tl.TypeBusinessRecipients;
|
|
20144
20622
|
}
|
|
20145
20623
|
/**
|
|
20146
20624
|
* Invokes a query after successful completion of one of the
|
|
@@ -20284,7 +20762,7 @@ export class RpcError extends Error {
|
|
|
20284
20762
|
*/
|
|
20285
20763
|
query: X;
|
|
20286
20764
|
}
|
|
20287
|
-
interface RpcCallReturn extends help.RpcCallReturn, storage.RpcCallReturn, auth.RpcCallReturn, contacts.RpcCallReturn, messages.RpcCallReturn, updates.RpcCallReturn, photos.RpcCallReturn, upload.RpcCallReturn, account.RpcCallReturn, channels.RpcCallReturn, payments.RpcCallReturn, phone.RpcCallReturn, stats.RpcCallReturn, stickers.RpcCallReturn, users.RpcCallReturn, chatlists.RpcCallReturn, bots.RpcCallReturn, stories.RpcCallReturn, premium.RpcCallReturn, mtcute.RpcCallReturn, test.RpcCallReturn, langpack.RpcCallReturn, folders.RpcCallReturn {
|
|
20765
|
+
interface RpcCallReturn extends help.RpcCallReturn, storage.RpcCallReturn, auth.RpcCallReturn, contacts.RpcCallReturn, messages.RpcCallReturn, updates.RpcCallReturn, photos.RpcCallReturn, upload.RpcCallReturn, account.RpcCallReturn, channels.RpcCallReturn, payments.RpcCallReturn, phone.RpcCallReturn, stats.RpcCallReturn, stickers.RpcCallReturn, users.RpcCallReturn, chatlists.RpcCallReturn, bots.RpcCallReturn, stories.RpcCallReturn, premium.RpcCallReturn, smsjobs.RpcCallReturn, mtcute.RpcCallReturn, test.RpcCallReturn, langpack.RpcCallReturn, folders.RpcCallReturn {
|
|
20288
20766
|
'invokeAfterMsg': any
|
|
20289
20767
|
'invokeAfterMsgs': any
|
|
20290
20768
|
'initConnection': any
|
|
@@ -20411,7 +20889,7 @@ export class RpcError extends Error {
|
|
|
20411
20889
|
/**
|
|
20412
20890
|
* Object describing actions connected to a service message.
|
|
20413
20891
|
*/
|
|
20414
|
-
type TypeMessageAction = tl.RawMessageActionEmpty | tl.RawMessageActionChatCreate | tl.RawMessageActionChatEditTitle | tl.RawMessageActionChatEditPhoto | tl.RawMessageActionChatDeletePhoto | tl.RawMessageActionChatAddUser | tl.RawMessageActionChatDeleteUser | tl.RawMessageActionChatJoinedByLink | tl.RawMessageActionChannelCreate | tl.RawMessageActionChatMigrateTo | tl.RawMessageActionChannelMigrateFrom | tl.RawMessageActionPinMessage | tl.RawMessageActionHistoryClear | tl.RawMessageActionGameScore | tl.RawMessageActionPaymentSentMe | tl.RawMessageActionPaymentSent | tl.RawMessageActionPhoneCall | tl.RawMessageActionScreenshotTaken | tl.RawMessageActionCustomAction | tl.RawMessageActionBotAllowed | tl.RawMessageActionSecureValuesSentMe | tl.RawMessageActionSecureValuesSent | tl.RawMessageActionContactSignUp | tl.RawMessageActionGeoProximityReached | tl.RawMessageActionGroupCall | tl.RawMessageActionInviteToGroupCall | tl.RawMessageActionSetMessagesTTL | tl.RawMessageActionGroupCallScheduled | tl.RawMessageActionSetChatTheme | tl.RawMessageActionChatJoinedByRequest | tl.RawMessageActionWebViewDataSentMe | tl.RawMessageActionWebViewDataSent | tl.RawMessageActionGiftPremium | tl.RawMessageActionTopicCreate | tl.RawMessageActionTopicEdit | tl.RawMessageActionSuggestProfilePhoto | tl.RawMessageActionRequestedPeer | tl.RawMessageActionSetChatWallPaper | tl.RawMessageActionGiftCode | tl.RawMessageActionGiveawayLaunch | tl.RawMessageActionGiveawayResults | tl.
|
|
20892
|
+
type TypeMessageAction = tl.RawMessageActionEmpty | tl.RawMessageActionChatCreate | tl.RawMessageActionChatEditTitle | tl.RawMessageActionChatEditPhoto | tl.RawMessageActionChatDeletePhoto | tl.RawMessageActionChatAddUser | tl.RawMessageActionChatDeleteUser | tl.RawMessageActionChatJoinedByLink | tl.RawMessageActionChannelCreate | tl.RawMessageActionChatMigrateTo | tl.RawMessageActionChannelMigrateFrom | tl.RawMessageActionPinMessage | tl.RawMessageActionHistoryClear | tl.RawMessageActionGameScore | tl.RawMessageActionPaymentSentMe | tl.RawMessageActionPaymentSent | tl.RawMessageActionPhoneCall | tl.RawMessageActionScreenshotTaken | tl.RawMessageActionCustomAction | tl.RawMessageActionBotAllowed | tl.RawMessageActionSecureValuesSentMe | tl.RawMessageActionSecureValuesSent | tl.RawMessageActionContactSignUp | tl.RawMessageActionGeoProximityReached | tl.RawMessageActionGroupCall | tl.RawMessageActionInviteToGroupCall | tl.RawMessageActionSetMessagesTTL | tl.RawMessageActionGroupCallScheduled | tl.RawMessageActionSetChatTheme | tl.RawMessageActionChatJoinedByRequest | tl.RawMessageActionWebViewDataSentMe | tl.RawMessageActionWebViewDataSent | tl.RawMessageActionGiftPremium | tl.RawMessageActionTopicCreate | tl.RawMessageActionTopicEdit | tl.RawMessageActionSuggestProfilePhoto | tl.RawMessageActionRequestedPeer | tl.RawMessageActionSetChatWallPaper | tl.RawMessageActionGiftCode | tl.RawMessageActionGiveawayLaunch | tl.RawMessageActionGiveawayResults | tl.RawMessageActionBoostApply
|
|
20415
20893
|
function isAnyMessageAction(o: object): o is TypeMessageAction
|
|
20416
20894
|
/**
|
|
20417
20895
|
* Chat info.
|
|
@@ -20494,7 +20972,7 @@ export class RpcError extends Error {
|
|
|
20494
20972
|
/**
|
|
20495
20973
|
* Object contains info on events occurred.
|
|
20496
20974
|
*/
|
|
20497
|
-
type TypeUpdate = tl.RawUpdateNewMessage | tl.RawUpdateMessageID | tl.RawUpdateDeleteMessages | tl.RawUpdateUserTyping | tl.RawUpdateChatUserTyping | tl.RawUpdateChatParticipants | tl.RawUpdateUserStatus | tl.RawUpdateUserName | tl.RawUpdateNewAuthorization | tl.RawUpdateNewEncryptedMessage | tl.RawUpdateEncryptedChatTyping | tl.RawUpdateEncryption | tl.RawUpdateEncryptedMessagesRead | tl.RawUpdateChatParticipantAdd | tl.RawUpdateChatParticipantDelete | tl.RawUpdateDcOptions | tl.RawUpdateNotifySettings | tl.RawUpdateServiceNotification | tl.RawUpdatePrivacy | tl.RawUpdateUserPhone | tl.RawUpdateReadHistoryInbox | tl.RawUpdateReadHistoryOutbox | tl.RawUpdateWebPage | tl.RawUpdateReadMessagesContents | tl.RawUpdateChannelTooLong | tl.RawUpdateChannel | tl.RawUpdateNewChannelMessage | tl.RawUpdateReadChannelInbox | tl.RawUpdateDeleteChannelMessages | tl.RawUpdateChannelMessageViews | tl.RawUpdateChatParticipantAdmin | tl.RawUpdateNewStickerSet | tl.RawUpdateStickerSetsOrder | tl.RawUpdateStickerSets | tl.RawUpdateSavedGifs | tl.RawUpdateBotInlineQuery | tl.RawUpdateBotInlineSend | tl.RawUpdateEditChannelMessage | tl.RawUpdateBotCallbackQuery | tl.RawUpdateEditMessage | tl.RawUpdateInlineBotCallbackQuery | tl.RawUpdateReadChannelOutbox | tl.RawUpdateDraftMessage | tl.RawUpdateReadFeaturedStickers | tl.RawUpdateRecentStickers | tl.RawUpdateConfig | tl.RawUpdatePtsChanged | tl.RawUpdateChannelWebPage | tl.RawUpdateDialogPinned | tl.RawUpdatePinnedDialogs | tl.RawUpdateBotWebhookJSON | tl.RawUpdateBotWebhookJSONQuery | tl.RawUpdateBotShippingQuery | tl.RawUpdateBotPrecheckoutQuery | tl.RawUpdatePhoneCall | tl.RawUpdateLangPackTooLong | tl.RawUpdateLangPack | tl.RawUpdateFavedStickers | tl.RawUpdateChannelReadMessagesContents | tl.RawUpdateContactsReset | tl.RawUpdateChannelAvailableMessages | tl.RawUpdateDialogUnreadMark | tl.RawUpdateMessagePoll | tl.RawUpdateChatDefaultBannedRights | tl.RawUpdateFolderPeers | tl.RawUpdatePeerSettings | tl.RawUpdatePeerLocated | tl.RawUpdateNewScheduledMessage | tl.RawUpdateDeleteScheduledMessages | tl.RawUpdateTheme | tl.RawUpdateGeoLiveViewed | tl.RawUpdateLoginToken | tl.RawUpdateMessagePollVote | tl.RawUpdateDialogFilter | tl.RawUpdateDialogFilterOrder | tl.RawUpdateDialogFilters | tl.RawUpdatePhoneCallSignalingData | tl.RawUpdateChannelMessageForwards | tl.RawUpdateReadChannelDiscussionInbox | tl.RawUpdateReadChannelDiscussionOutbox | tl.RawUpdatePeerBlocked | tl.RawUpdateChannelUserTyping | tl.RawUpdatePinnedMessages | tl.RawUpdatePinnedChannelMessages | tl.RawUpdateChat | tl.RawUpdateGroupCallParticipants | tl.RawUpdateGroupCall | tl.RawUpdatePeerHistoryTTL | tl.RawUpdateChatParticipant | tl.RawUpdateChannelParticipant | tl.RawUpdateBotStopped | tl.RawUpdateGroupCallConnection | tl.RawUpdateBotCommands | tl.RawUpdatePendingJoinRequests | tl.RawUpdateBotChatInviteRequester | tl.RawUpdateMessageReactions | tl.RawUpdateAttachMenuBots | tl.RawUpdateWebViewResultSent | tl.RawUpdateBotMenuButton | tl.RawUpdateSavedRingtones | tl.RawUpdateTranscribedAudio | tl.RawUpdateReadFeaturedEmojiStickers | tl.RawUpdateUserEmojiStatus | tl.RawUpdateRecentEmojiStatuses | tl.RawUpdateRecentReactions | tl.RawUpdateMoveStickerSetToTop | tl.RawUpdateMessageExtendedMedia | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.RawUpdateUser | tl.RawUpdateAutoSaveSettings | tl.RawUpdateGroupInvitePrivacyForbidden | tl.RawUpdateStory | tl.RawUpdateReadStories | tl.RawUpdateStoryID | tl.RawUpdateStoriesStealthMode | tl.RawUpdateSentStoryReaction | tl.RawUpdateBotChatBoost | tl.RawUpdateChannelViewForumAsMessages | tl.RawUpdatePeerWallpaper | tl.RawUpdateBotMessageReaction | tl.RawUpdateBotMessageReactions | tl.mtcute.RawDummyUpdate
|
|
20975
|
+
type TypeUpdate = tl.RawUpdateNewMessage | tl.RawUpdateMessageID | tl.RawUpdateDeleteMessages | tl.RawUpdateUserTyping | tl.RawUpdateChatUserTyping | tl.RawUpdateChatParticipants | tl.RawUpdateUserStatus | tl.RawUpdateUserName | tl.RawUpdateNewAuthorization | tl.RawUpdateNewEncryptedMessage | tl.RawUpdateEncryptedChatTyping | tl.RawUpdateEncryption | tl.RawUpdateEncryptedMessagesRead | tl.RawUpdateChatParticipantAdd | tl.RawUpdateChatParticipantDelete | tl.RawUpdateDcOptions | tl.RawUpdateNotifySettings | tl.RawUpdateServiceNotification | tl.RawUpdatePrivacy | tl.RawUpdateUserPhone | tl.RawUpdateReadHistoryInbox | tl.RawUpdateReadHistoryOutbox | tl.RawUpdateWebPage | tl.RawUpdateReadMessagesContents | tl.RawUpdateChannelTooLong | tl.RawUpdateChannel | tl.RawUpdateNewChannelMessage | tl.RawUpdateReadChannelInbox | tl.RawUpdateDeleteChannelMessages | tl.RawUpdateChannelMessageViews | tl.RawUpdateChatParticipantAdmin | tl.RawUpdateNewStickerSet | tl.RawUpdateStickerSetsOrder | tl.RawUpdateStickerSets | tl.RawUpdateSavedGifs | tl.RawUpdateBotInlineQuery | tl.RawUpdateBotInlineSend | tl.RawUpdateEditChannelMessage | tl.RawUpdateBotCallbackQuery | tl.RawUpdateEditMessage | tl.RawUpdateInlineBotCallbackQuery | tl.RawUpdateReadChannelOutbox | tl.RawUpdateDraftMessage | tl.RawUpdateReadFeaturedStickers | tl.RawUpdateRecentStickers | tl.RawUpdateConfig | tl.RawUpdatePtsChanged | tl.RawUpdateChannelWebPage | tl.RawUpdateDialogPinned | tl.RawUpdatePinnedDialogs | tl.RawUpdateBotWebhookJSON | tl.RawUpdateBotWebhookJSONQuery | tl.RawUpdateBotShippingQuery | tl.RawUpdateBotPrecheckoutQuery | tl.RawUpdatePhoneCall | tl.RawUpdateLangPackTooLong | tl.RawUpdateLangPack | tl.RawUpdateFavedStickers | tl.RawUpdateChannelReadMessagesContents | tl.RawUpdateContactsReset | tl.RawUpdateChannelAvailableMessages | tl.RawUpdateDialogUnreadMark | tl.RawUpdateMessagePoll | tl.RawUpdateChatDefaultBannedRights | tl.RawUpdateFolderPeers | tl.RawUpdatePeerSettings | tl.RawUpdatePeerLocated | tl.RawUpdateNewScheduledMessage | tl.RawUpdateDeleteScheduledMessages | tl.RawUpdateTheme | tl.RawUpdateGeoLiveViewed | tl.RawUpdateLoginToken | tl.RawUpdateMessagePollVote | tl.RawUpdateDialogFilter | tl.RawUpdateDialogFilterOrder | tl.RawUpdateDialogFilters | tl.RawUpdatePhoneCallSignalingData | tl.RawUpdateChannelMessageForwards | tl.RawUpdateReadChannelDiscussionInbox | tl.RawUpdateReadChannelDiscussionOutbox | tl.RawUpdatePeerBlocked | tl.RawUpdateChannelUserTyping | tl.RawUpdatePinnedMessages | tl.RawUpdatePinnedChannelMessages | tl.RawUpdateChat | tl.RawUpdateGroupCallParticipants | tl.RawUpdateGroupCall | tl.RawUpdatePeerHistoryTTL | tl.RawUpdateChatParticipant | tl.RawUpdateChannelParticipant | tl.RawUpdateBotStopped | tl.RawUpdateGroupCallConnection | tl.RawUpdateBotCommands | tl.RawUpdatePendingJoinRequests | tl.RawUpdateBotChatInviteRequester | tl.RawUpdateMessageReactions | tl.RawUpdateAttachMenuBots | tl.RawUpdateWebViewResultSent | tl.RawUpdateBotMenuButton | tl.RawUpdateSavedRingtones | tl.RawUpdateTranscribedAudio | tl.RawUpdateReadFeaturedEmojiStickers | tl.RawUpdateUserEmojiStatus | tl.RawUpdateRecentEmojiStatuses | tl.RawUpdateRecentReactions | tl.RawUpdateMoveStickerSetToTop | tl.RawUpdateMessageExtendedMedia | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.RawUpdateUser | tl.RawUpdateAutoSaveSettings | tl.RawUpdateGroupInvitePrivacyForbidden | tl.RawUpdateStory | tl.RawUpdateReadStories | tl.RawUpdateStoryID | tl.RawUpdateStoriesStealthMode | tl.RawUpdateSentStoryReaction | tl.RawUpdateBotChatBoost | tl.RawUpdateChannelViewForumAsMessages | tl.RawUpdatePeerWallpaper | tl.RawUpdateBotMessageReaction | tl.RawUpdateBotMessageReactions | tl.RawUpdateSavedDialogPinned | tl.RawUpdatePinnedSavedDialogs | tl.RawUpdateSavedReactionTags | tl.RawUpdateSmsJob | tl.RawUpdateQuickReplies | tl.RawUpdateNewQuickReply | tl.RawUpdateDeleteQuickReply | tl.RawUpdateQuickReplyMessage | tl.RawUpdateDeleteQuickReplyMessages | tl.mtcute.RawDummyUpdate
|
|
20498
20976
|
function isAnyUpdate(o: object): o is TypeUpdate
|
|
20499
20977
|
/**
|
|
20500
20978
|
* Object which is perceived by the client without a call on
|
|
@@ -20959,7 +21437,7 @@ export class RpcError extends Error {
|
|
|
20959
21437
|
/**
|
|
20960
21438
|
* Channel admin log event
|
|
20961
21439
|
*/
|
|
20962
|
-
type TypeChannelAdminLogEventAction = tl.RawChannelAdminLogEventActionChangeTitle | tl.RawChannelAdminLogEventActionChangeAbout | tl.RawChannelAdminLogEventActionChangeUsername | tl.RawChannelAdminLogEventActionChangePhoto | tl.RawChannelAdminLogEventActionToggleInvites | tl.RawChannelAdminLogEventActionToggleSignatures | tl.RawChannelAdminLogEventActionUpdatePinned | tl.RawChannelAdminLogEventActionEditMessage | tl.RawChannelAdminLogEventActionDeleteMessage | tl.RawChannelAdminLogEventActionParticipantJoin | tl.RawChannelAdminLogEventActionParticipantLeave | tl.RawChannelAdminLogEventActionParticipantInvite | tl.RawChannelAdminLogEventActionParticipantToggleBan | tl.RawChannelAdminLogEventActionParticipantToggleAdmin | tl.RawChannelAdminLogEventActionChangeStickerSet | tl.RawChannelAdminLogEventActionTogglePreHistoryHidden | tl.RawChannelAdminLogEventActionDefaultBannedRights | tl.RawChannelAdminLogEventActionStopPoll | tl.RawChannelAdminLogEventActionChangeLinkedChat | tl.RawChannelAdminLogEventActionChangeLocation | tl.RawChannelAdminLogEventActionToggleSlowMode | tl.RawChannelAdminLogEventActionStartGroupCall | tl.RawChannelAdminLogEventActionDiscardGroupCall | tl.RawChannelAdminLogEventActionParticipantMute | tl.RawChannelAdminLogEventActionParticipantUnmute | tl.RawChannelAdminLogEventActionToggleGroupCallSetting | tl.RawChannelAdminLogEventActionParticipantJoinByInvite | tl.RawChannelAdminLogEventActionExportedInviteDelete | tl.RawChannelAdminLogEventActionExportedInviteRevoke | tl.RawChannelAdminLogEventActionExportedInviteEdit | tl.RawChannelAdminLogEventActionParticipantVolume | tl.RawChannelAdminLogEventActionChangeHistoryTTL | tl.RawChannelAdminLogEventActionParticipantJoinByRequest | tl.RawChannelAdminLogEventActionToggleNoForwards | tl.RawChannelAdminLogEventActionSendMessage | tl.RawChannelAdminLogEventActionChangeAvailableReactions | tl.RawChannelAdminLogEventActionChangeUsernames | tl.RawChannelAdminLogEventActionToggleForum | tl.RawChannelAdminLogEventActionCreateTopic | tl.RawChannelAdminLogEventActionEditTopic | tl.RawChannelAdminLogEventActionDeleteTopic | tl.RawChannelAdminLogEventActionPinTopic | tl.RawChannelAdminLogEventActionToggleAntiSpam | tl.
|
|
21440
|
+
type TypeChannelAdminLogEventAction = tl.RawChannelAdminLogEventActionChangeTitle | tl.RawChannelAdminLogEventActionChangeAbout | tl.RawChannelAdminLogEventActionChangeUsername | tl.RawChannelAdminLogEventActionChangePhoto | tl.RawChannelAdminLogEventActionToggleInvites | tl.RawChannelAdminLogEventActionToggleSignatures | tl.RawChannelAdminLogEventActionUpdatePinned | tl.RawChannelAdminLogEventActionEditMessage | tl.RawChannelAdminLogEventActionDeleteMessage | tl.RawChannelAdminLogEventActionParticipantJoin | tl.RawChannelAdminLogEventActionParticipantLeave | tl.RawChannelAdminLogEventActionParticipantInvite | tl.RawChannelAdminLogEventActionParticipantToggleBan | tl.RawChannelAdminLogEventActionParticipantToggleAdmin | tl.RawChannelAdminLogEventActionChangeStickerSet | tl.RawChannelAdminLogEventActionTogglePreHistoryHidden | tl.RawChannelAdminLogEventActionDefaultBannedRights | tl.RawChannelAdminLogEventActionStopPoll | tl.RawChannelAdminLogEventActionChangeLinkedChat | tl.RawChannelAdminLogEventActionChangeLocation | tl.RawChannelAdminLogEventActionToggleSlowMode | tl.RawChannelAdminLogEventActionStartGroupCall | tl.RawChannelAdminLogEventActionDiscardGroupCall | tl.RawChannelAdminLogEventActionParticipantMute | tl.RawChannelAdminLogEventActionParticipantUnmute | tl.RawChannelAdminLogEventActionToggleGroupCallSetting | tl.RawChannelAdminLogEventActionParticipantJoinByInvite | tl.RawChannelAdminLogEventActionExportedInviteDelete | tl.RawChannelAdminLogEventActionExportedInviteRevoke | tl.RawChannelAdminLogEventActionExportedInviteEdit | tl.RawChannelAdminLogEventActionParticipantVolume | tl.RawChannelAdminLogEventActionChangeHistoryTTL | tl.RawChannelAdminLogEventActionParticipantJoinByRequest | tl.RawChannelAdminLogEventActionToggleNoForwards | tl.RawChannelAdminLogEventActionSendMessage | tl.RawChannelAdminLogEventActionChangeAvailableReactions | tl.RawChannelAdminLogEventActionChangeUsernames | tl.RawChannelAdminLogEventActionToggleForum | tl.RawChannelAdminLogEventActionCreateTopic | tl.RawChannelAdminLogEventActionEditTopic | tl.RawChannelAdminLogEventActionDeleteTopic | tl.RawChannelAdminLogEventActionPinTopic | tl.RawChannelAdminLogEventActionToggleAntiSpam | tl.RawChannelAdminLogEventActionChangePeerColor | tl.RawChannelAdminLogEventActionChangeProfilePeerColor | tl.RawChannelAdminLogEventActionChangeWallpaper | tl.RawChannelAdminLogEventActionChangeEmojiStatus | tl.RawChannelAdminLogEventActionChangeEmojiStickerSet
|
|
20963
21441
|
function isAnyChannelAdminLogEventAction(o: object): o is TypeChannelAdminLogEventAction
|
|
20964
21442
|
/**
|
|
20965
21443
|
* An event in a channel admin log
|
|
@@ -21877,18 +22355,52 @@ export class RpcError extends Error {
|
|
|
21877
22355
|
*/
|
|
21878
22356
|
type TypePeerColor = tl.RawPeerColor
|
|
21879
22357
|
function isAnyPeerColor(o: object): o is TypePeerColor
|
|
21880
|
-
type TypeStoryReaction = tl.RawStoryReaction | tl.RawStoryReactionPublicForward | tl.RawStoryReactionPublicRepost
|
|
21881
|
-
function isAnyStoryReaction(o: object): o is TypeStoryReaction
|
|
21882
22358
|
/**
|
|
21883
|
-
* How a
|
|
22359
|
+
* How a certain peer reacted to or interacted with a story
|
|
21884
22360
|
*/
|
|
21885
|
-
type
|
|
21886
|
-
function
|
|
22361
|
+
type TypeStoryReaction = tl.RawStoryReaction | tl.RawStoryReactionPublicForward | tl.RawStoryReactionPublicRepost
|
|
22362
|
+
function isAnyStoryReaction(o: object): o is TypeStoryReaction
|
|
21887
22363
|
/**
|
|
21888
|
-
*
|
|
21889
|
-
|
|
21890
|
-
|
|
21891
|
-
|
|
22364
|
+
* Represents a
|
|
22365
|
+
* <a href="https://corefork.telegram.org/api/saved-messages">saved
|
|
22366
|
+
* message dialog »</a>.
|
|
22367
|
+
*/
|
|
22368
|
+
type TypeSavedDialog = tl.RawSavedDialog
|
|
22369
|
+
function isAnySavedDialog(o: object): o is TypeSavedDialog
|
|
22370
|
+
type TypeSavedReactionTag = tl.RawSavedReactionTag
|
|
22371
|
+
function isAnySavedReactionTag(o: object): o is TypeSavedReactionTag
|
|
22372
|
+
type TypeOutboxReadDate = tl.RawOutboxReadDate
|
|
22373
|
+
function isAnyOutboxReadDate(o: object): o is TypeOutboxReadDate
|
|
22374
|
+
type TypeSmsJob = tl.RawSmsJob
|
|
22375
|
+
function isAnySmsJob(o: object): o is TypeSmsJob
|
|
22376
|
+
type TypeBusinessWeeklyOpen = tl.RawBusinessWeeklyOpen
|
|
22377
|
+
function isAnyBusinessWeeklyOpen(o: object): o is TypeBusinessWeeklyOpen
|
|
22378
|
+
type TypeBusinessWorkHours = tl.RawBusinessWorkHours
|
|
22379
|
+
function isAnyBusinessWorkHours(o: object): o is TypeBusinessWorkHours
|
|
22380
|
+
type TypeBusinessLocation = tl.RawBusinessLocation
|
|
22381
|
+
function isAnyBusinessLocation(o: object): o is TypeBusinessLocation
|
|
22382
|
+
type TypeInputBusinessRecipients = tl.RawInputBusinessRecipients
|
|
22383
|
+
function isAnyInputBusinessRecipients(o: object): o is TypeInputBusinessRecipients
|
|
22384
|
+
type TypeBusinessRecipients = tl.RawBusinessRecipients
|
|
22385
|
+
function isAnyBusinessRecipients(o: object): o is TypeBusinessRecipients
|
|
22386
|
+
type TypeBusinessAwayMessageSchedule = tl.RawBusinessAwayMessageScheduleAlways | tl.RawBusinessAwayMessageScheduleOutsideWorkHours | tl.RawBusinessAwayMessageScheduleCustom
|
|
22387
|
+
function isAnyBusinessAwayMessageSchedule(o: object): o is TypeBusinessAwayMessageSchedule
|
|
22388
|
+
type TypeInputBusinessGreetingMessage = tl.RawInputBusinessGreetingMessage
|
|
22389
|
+
function isAnyInputBusinessGreetingMessage(o: object): o is TypeInputBusinessGreetingMessage
|
|
22390
|
+
type TypeBusinessGreetingMessage = tl.RawBusinessGreetingMessage
|
|
22391
|
+
function isAnyBusinessGreetingMessage(o: object): o is TypeBusinessGreetingMessage
|
|
22392
|
+
type TypeInputBusinessAwayMessage = tl.RawInputBusinessAwayMessage
|
|
22393
|
+
function isAnyInputBusinessAwayMessage(o: object): o is TypeInputBusinessAwayMessage
|
|
22394
|
+
type TypeBusinessAwayMessage = tl.RawBusinessAwayMessage
|
|
22395
|
+
function isAnyBusinessAwayMessage(o: object): o is TypeBusinessAwayMessage
|
|
22396
|
+
type TypeTimezone = tl.RawTimezone
|
|
22397
|
+
function isAnyTimezone(o: object): o is TypeTimezone
|
|
22398
|
+
type TypeQuickReply = tl.RawQuickReply
|
|
22399
|
+
function isAnyQuickReply(o: object): o is TypeQuickReply
|
|
22400
|
+
type TypeInputQuickReplyShortcut = tl.RawInputQuickReplyShortcut | tl.RawInputQuickReplyShortcutId
|
|
22401
|
+
function isAnyInputQuickReplyShortcut(o: object): o is TypeInputQuickReplyShortcut
|
|
22402
|
+
type TypeConnectedBot = tl.RawConnectedBot
|
|
22403
|
+
function isAnyConnectedBot(o: object): o is TypeConnectedBot
|
|
21892
22404
|
|
|
21893
22405
|
namespace help {
|
|
21894
22406
|
interface RawConfigSimple {
|
|
@@ -22393,7 +22905,13 @@ export class RpcError extends Error {
|
|
|
22393
22905
|
* <code>0</code> to <code>6</code>) if absent.
|
|
22394
22906
|
*/
|
|
22395
22907
|
darkColors?: tl.help.TypePeerColorSet;
|
|
22908
|
+
/**
|
|
22909
|
+
* Channels can use this palette only after reaching at least
|
|
22910
|
+
* the <a href="https://corefork.telegram.org/api/boost">boost
|
|
22911
|
+
* level</a> specified in this field.
|
|
22912
|
+
*/
|
|
22396
22913
|
channelMinLevel?: number;
|
|
22914
|
+
groupMinLevel?: number;
|
|
22397
22915
|
}
|
|
22398
22916
|
/**
|
|
22399
22917
|
* The list of color palettes has not changed.
|
|
@@ -22420,6 +22938,14 @@ export class RpcError extends Error {
|
|
|
22420
22938
|
*/
|
|
22421
22939
|
colors: tl.help.TypePeerColorOption[];
|
|
22422
22940
|
}
|
|
22941
|
+
interface RawTimezonesListNotModified {
|
|
22942
|
+
_: 'help.timezonesListNotModified';
|
|
22943
|
+
}
|
|
22944
|
+
interface RawTimezonesList {
|
|
22945
|
+
_: 'help.timezonesList';
|
|
22946
|
+
timezones: tl.TypeTimezone[];
|
|
22947
|
+
hash: number;
|
|
22948
|
+
}
|
|
22423
22949
|
/**
|
|
22424
22950
|
* Returns current configuration, including data center
|
|
22425
22951
|
* configuration.
|
|
@@ -22466,24 +22992,6 @@ export class RpcError extends Error {
|
|
|
22466
22992
|
interface RawGetSupportRequest {
|
|
22467
22993
|
_: 'help.getSupport';
|
|
22468
22994
|
}
|
|
22469
|
-
/**
|
|
22470
|
-
* Get changelog of current app.
|
|
22471
|
-
*
|
|
22472
|
-
*
|
|
22473
|
-
* Typically, an {@link RawUpdates} constructor will be
|
|
22474
|
-
* returned, containing one or more
|
|
22475
|
-
* {@link RawUpdateServiceNotification} updates with
|
|
22476
|
-
* app-specific changelogs.
|
|
22477
|
-
*
|
|
22478
|
-
* RPC method returns {@link tl.TypeUpdates}
|
|
22479
|
-
*/
|
|
22480
|
-
interface RawGetAppChangelogRequest {
|
|
22481
|
-
_: 'help.getAppChangelog';
|
|
22482
|
-
/**
|
|
22483
|
-
* Previous app version
|
|
22484
|
-
*/
|
|
22485
|
-
prevAppVersion: string;
|
|
22486
|
-
}
|
|
22487
22995
|
/**
|
|
22488
22996
|
* Informs the server about the number of pending bot updates
|
|
22489
22997
|
* if they haven't been processed for a long time; for bots
|
|
@@ -22751,13 +23259,19 @@ export class RpcError extends Error {
|
|
|
22751
23259
|
*/
|
|
22752
23260
|
hash: number;
|
|
22753
23261
|
}
|
|
23262
|
+
/**
|
|
23263
|
+
* RPC method returns {@link tl.help.TypeTimezonesList}
|
|
23264
|
+
*/
|
|
23265
|
+
interface RawGetTimezonesListRequest {
|
|
23266
|
+
_: 'help.getTimezonesList';
|
|
23267
|
+
hash: number;
|
|
23268
|
+
}
|
|
22754
23269
|
interface RpcCallReturn {
|
|
22755
23270
|
'help.getConfig': tl.TypeConfig
|
|
22756
23271
|
'help.getNearestDc': tl.TypeNearestDc
|
|
22757
23272
|
'help.getAppUpdate': tl.help.TypeAppUpdate
|
|
22758
23273
|
'help.getInviteText': tl.help.TypeInviteText
|
|
22759
23274
|
'help.getSupport': tl.help.TypeSupport
|
|
22760
|
-
'help.getAppChangelog': tl.TypeUpdates
|
|
22761
23275
|
'help.setBotUpdatesStatus': boolean
|
|
22762
23276
|
'help.getCdnConfig': tl.TypeCdnConfig
|
|
22763
23277
|
'help.getRecentMeUrls': tl.help.TypeRecentMeUrls
|
|
@@ -22777,6 +23291,7 @@ export class RpcError extends Error {
|
|
|
22777
23291
|
'help.getPremiumPromo': tl.help.TypePremiumPromo
|
|
22778
23292
|
'help.getPeerColors': tl.help.TypePeerColors
|
|
22779
23293
|
'help.getPeerProfileColors': tl.help.TypePeerColors
|
|
23294
|
+
'help.getTimezonesList': tl.help.TypeTimezonesList
|
|
22780
23295
|
}
|
|
22781
23296
|
type TypeConfigSimple = tl.help.RawConfigSimple
|
|
22782
23297
|
function isAnyConfigSimple(o: object): o is TypeConfigSimple
|
|
@@ -22891,6 +23406,8 @@ export class RpcError extends Error {
|
|
|
22891
23406
|
*/
|
|
22892
23407
|
type TypePeerColors = tl.help.RawPeerColorsNotModified | tl.help.RawPeerColors
|
|
22893
23408
|
function isAnyPeerColors(o: object): o is TypePeerColors
|
|
23409
|
+
type TypeTimezonesList = tl.help.RawTimezonesListNotModified | tl.help.RawTimezonesList
|
|
23410
|
+
function isAnyTimezonesList(o: object): o is TypeTimezonesList
|
|
22894
23411
|
}
|
|
22895
23412
|
|
|
22896
23413
|
namespace storage {
|
|
@@ -23369,6 +23886,7 @@ export class RpcError extends Error {
|
|
|
23369
23886
|
*/
|
|
23370
23887
|
interface RawSignUpRequest {
|
|
23371
23888
|
_: 'auth.signUp';
|
|
23889
|
+
noJoinedNotifications?: boolean;
|
|
23372
23890
|
/**
|
|
23373
23891
|
* Phone number in the international format
|
|
23374
23892
|
*/
|
|
@@ -24018,7 +24536,12 @@ export class RpcError extends Error {
|
|
|
24018
24536
|
_: 'contacts.topPeersDisabled';
|
|
24019
24537
|
}
|
|
24020
24538
|
/**
|
|
24021
|
-
* Get
|
|
24539
|
+
* Get the telegram IDs of all contacts.
|
|
24540
|
+
*
|
|
24541
|
+
*
|
|
24542
|
+
* Returns an array of Telegram user IDs for all contacts (0 if
|
|
24543
|
+
* a contact does not have an associated Telegram account or
|
|
24544
|
+
* have hidden their account using privacy settings).
|
|
24022
24545
|
*
|
|
24023
24546
|
* RPC method returns number array
|
|
24024
24547
|
*/
|
|
@@ -24031,7 +24554,8 @@ export class RpcError extends Error {
|
|
|
24031
24554
|
hash: Long;
|
|
24032
24555
|
}
|
|
24033
24556
|
/**
|
|
24034
|
-
*
|
|
24557
|
+
* Use this method to obtain the online statuses of all
|
|
24558
|
+
* contacts with an accessible associated Telegram account.
|
|
24035
24559
|
*
|
|
24036
24560
|
* RPC method returns {@link tl.TypeContactStatus} array
|
|
24037
24561
|
*/
|
|
@@ -24265,7 +24789,7 @@ export class RpcError extends Error {
|
|
|
24265
24789
|
peer: tl.TypeInputPeer;
|
|
24266
24790
|
}
|
|
24267
24791
|
/**
|
|
24268
|
-
*
|
|
24792
|
+
* Removes all contacts without an associated Telegram account.
|
|
24269
24793
|
*
|
|
24270
24794
|
* RPC method returns boolean
|
|
24271
24795
|
*/
|
|
@@ -25883,6 +26407,94 @@ export class RpcError extends Error {
|
|
|
25883
26407
|
*/
|
|
25884
26408
|
users: tl.TypeUser[];
|
|
25885
26409
|
}
|
|
26410
|
+
/**
|
|
26411
|
+
* Represents some
|
|
26412
|
+
* <a href="https://corefork.telegram.org/api/saved-messages">saved
|
|
26413
|
+
* message dialogs »</a>.
|
|
26414
|
+
*/
|
|
26415
|
+
interface RawSavedDialogs {
|
|
26416
|
+
_: 'messages.savedDialogs';
|
|
26417
|
+
/**
|
|
26418
|
+
* <a href="https://corefork.telegram.org/api/saved-messages">Saved
|
|
26419
|
+
* message dialogs »</a>.
|
|
26420
|
+
*/
|
|
26421
|
+
dialogs: tl.TypeSavedDialog[];
|
|
26422
|
+
/**
|
|
26423
|
+
* List of last messages from each saved dialog
|
|
26424
|
+
*/
|
|
26425
|
+
messages: tl.TypeMessage[];
|
|
26426
|
+
/**
|
|
26427
|
+
* Mentioned chats
|
|
26428
|
+
*/
|
|
26429
|
+
chats: tl.TypeChat[];
|
|
26430
|
+
/**
|
|
26431
|
+
* Mentioned users
|
|
26432
|
+
*/
|
|
26433
|
+
users: tl.TypeUser[];
|
|
26434
|
+
}
|
|
26435
|
+
/**
|
|
26436
|
+
* Incomplete list of
|
|
26437
|
+
* <a href="https://corefork.telegram.org/api/saved-messages">saved
|
|
26438
|
+
* message dialogs »</a> with messages and auxiliary data.
|
|
26439
|
+
*/
|
|
26440
|
+
interface RawSavedDialogsSlice {
|
|
26441
|
+
_: 'messages.savedDialogsSlice';
|
|
26442
|
+
/**
|
|
26443
|
+
* Total number of saved message dialogs
|
|
26444
|
+
*/
|
|
26445
|
+
count: number;
|
|
26446
|
+
/**
|
|
26447
|
+
* List of saved message dialogs
|
|
26448
|
+
*/
|
|
26449
|
+
dialogs: tl.TypeSavedDialog[];
|
|
26450
|
+
/**
|
|
26451
|
+
* List of last messages from dialogs
|
|
26452
|
+
*/
|
|
26453
|
+
messages: tl.TypeMessage[];
|
|
26454
|
+
/**
|
|
26455
|
+
* Mentioned chats
|
|
26456
|
+
*/
|
|
26457
|
+
chats: tl.TypeChat[];
|
|
26458
|
+
/**
|
|
26459
|
+
* Mentioned users
|
|
26460
|
+
*/
|
|
26461
|
+
users: tl.TypeUser[];
|
|
26462
|
+
}
|
|
26463
|
+
/**
|
|
26464
|
+
* The saved dialogs haven't changed
|
|
26465
|
+
*/
|
|
26466
|
+
interface RawSavedDialogsNotModified {
|
|
26467
|
+
_: 'messages.savedDialogsNotModified';
|
|
26468
|
+
/**
|
|
26469
|
+
* Number of
|
|
26470
|
+
* <a href="https://corefork.telegram.org/api/saved-messages">saved
|
|
26471
|
+
* dialogs</a> found server-side by the query
|
|
26472
|
+
*/
|
|
26473
|
+
count: number;
|
|
26474
|
+
}
|
|
26475
|
+
interface RawSavedReactionTagsNotModified {
|
|
26476
|
+
_: 'messages.savedReactionTagsNotModified';
|
|
26477
|
+
}
|
|
26478
|
+
interface RawSavedReactionTags {
|
|
26479
|
+
_: 'messages.savedReactionTags';
|
|
26480
|
+
tags: tl.TypeSavedReactionTag[];
|
|
26481
|
+
hash: Long;
|
|
26482
|
+
}
|
|
26483
|
+
interface RawQuickReplies {
|
|
26484
|
+
_: 'messages.quickReplies';
|
|
26485
|
+
quickReplies: tl.TypeQuickReply[];
|
|
26486
|
+
messages: tl.TypeMessage[];
|
|
26487
|
+
chats: tl.TypeChat[];
|
|
26488
|
+
users: tl.TypeUser[];
|
|
26489
|
+
}
|
|
26490
|
+
interface RawQuickRepliesNotModified {
|
|
26491
|
+
_: 'messages.quickRepliesNotModified';
|
|
26492
|
+
}
|
|
26493
|
+
interface RawDialogFilters {
|
|
26494
|
+
_: 'messages.dialogFilters';
|
|
26495
|
+
tagsEnabled?: boolean;
|
|
26496
|
+
filters: tl.TypeDialogFilter[];
|
|
26497
|
+
}
|
|
25886
26498
|
/**
|
|
25887
26499
|
* Returns the list of messages by their IDs.
|
|
25888
26500
|
*
|
|
@@ -26007,6 +26619,13 @@ export class RpcError extends Error {
|
|
|
26007
26619
|
* Only return messages sent by the specified user ID
|
|
26008
26620
|
*/
|
|
26009
26621
|
fromId?: tl.TypeInputPeer;
|
|
26622
|
+
/**
|
|
26623
|
+
* Search within the
|
|
26624
|
+
* <a href="https://corefork.telegram.org/api/saved-messages">saved
|
|
26625
|
+
* message dialog »</a> with this ID.
|
|
26626
|
+
*/
|
|
26627
|
+
savedPeerId?: tl.TypeInputPeer;
|
|
26628
|
+
savedReaction?: tl.TypeReaction[];
|
|
26010
26629
|
/**
|
|
26011
26630
|
* <a href="https://corefork.telegram.org/api/threads">Thread
|
|
26012
26631
|
* ID</a>
|
|
@@ -26241,6 +26860,7 @@ export class RpcError extends Error {
|
|
|
26241
26860
|
* Send this message as the specified peer
|
|
26242
26861
|
*/
|
|
26243
26862
|
sendAs?: tl.TypeInputPeer;
|
|
26863
|
+
quickReplyShortcut?: tl.TypeInputQuickReplyShortcut;
|
|
26244
26864
|
}
|
|
26245
26865
|
/**
|
|
26246
26866
|
* Send a media
|
|
@@ -26320,6 +26940,7 @@ export class RpcError extends Error {
|
|
|
26320
26940
|
* Send this message as the specified peer
|
|
26321
26941
|
*/
|
|
26322
26942
|
sendAs?: tl.TypeInputPeer;
|
|
26943
|
+
quickReplyShortcut?: tl.TypeInputQuickReplyShortcut;
|
|
26323
26944
|
}
|
|
26324
26945
|
/**
|
|
26325
26946
|
* Forwards messages by their IDs.
|
|
@@ -26388,6 +27009,7 @@ export class RpcError extends Error {
|
|
|
26388
27009
|
* Forward the messages as the specified peer
|
|
26389
27010
|
*/
|
|
26390
27011
|
sendAs?: tl.TypeInputPeer;
|
|
27012
|
+
quickReplyShortcut?: tl.TypeInputQuickReplyShortcut;
|
|
26391
27013
|
}
|
|
26392
27014
|
/**
|
|
26393
27015
|
* Report a new incoming chat for spam, if the
|
|
@@ -27336,6 +27958,7 @@ export class RpcError extends Error {
|
|
|
27336
27958
|
* Send this message as the specified peer
|
|
27337
27959
|
*/
|
|
27338
27960
|
sendAs?: tl.TypeInputPeer;
|
|
27961
|
+
quickReplyShortcut?: tl.TypeInputQuickReplyShortcut;
|
|
27339
27962
|
}
|
|
27340
27963
|
/**
|
|
27341
27964
|
* Find out if a media message's caption can be edited
|
|
@@ -27400,6 +28023,7 @@ export class RpcError extends Error {
|
|
|
27400
28023
|
* messages</a>
|
|
27401
28024
|
*/
|
|
27402
28025
|
scheduleDate?: number;
|
|
28026
|
+
quickReplyShortcutId?: number;
|
|
27403
28027
|
}
|
|
27404
28028
|
/**
|
|
27405
28029
|
* Edit an inline bot message
|
|
@@ -28180,6 +28804,7 @@ export class RpcError extends Error {
|
|
|
28180
28804
|
* Send this message as the specified peer
|
|
28181
28805
|
*/
|
|
28182
28806
|
sendAs?: tl.TypeInputPeer;
|
|
28807
|
+
quickReplyShortcut?: tl.TypeInputQuickReplyShortcut;
|
|
28183
28808
|
}
|
|
28184
28809
|
/**
|
|
28185
28810
|
* Upload encrypted file and associate it to a secret chat
|
|
@@ -28291,6 +28916,10 @@ export class RpcError extends Error {
|
|
|
28291
28916
|
/**
|
|
28292
28917
|
* Vote in a {@link RawPoll}
|
|
28293
28918
|
*
|
|
28919
|
+
* Starting from layer 159, the vote will be sent from the peer
|
|
28920
|
+
* specified using
|
|
28921
|
+
* {@link messages.RawSaveDefaultSendAsRequest}.
|
|
28922
|
+
*
|
|
28294
28923
|
* RPC method returns {@link tl.TypeUpdates}
|
|
28295
28924
|
*/
|
|
28296
28925
|
interface RawSendVoteRequest {
|
|
@@ -28452,6 +29081,12 @@ export class RpcError extends Error {
|
|
|
28452
29081
|
* Peer where to search
|
|
28453
29082
|
*/
|
|
28454
29083
|
peer: tl.TypeInputPeer;
|
|
29084
|
+
/**
|
|
29085
|
+
* Search within the
|
|
29086
|
+
* <a href="https://corefork.telegram.org/api/saved-messages">saved
|
|
29087
|
+
* message dialog »</a> with this ID.
|
|
29088
|
+
*/
|
|
29089
|
+
savedPeerId?: tl.TypeInputPeer;
|
|
28455
29090
|
/**
|
|
28456
29091
|
* If set, consider only messages within the specified
|
|
28457
29092
|
* <a href="https://corefork.telegram.org/api/forum#forum-topics">forum
|
|
@@ -28673,7 +29308,7 @@ export class RpcError extends Error {
|
|
|
28673
29308
|
* Get
|
|
28674
29309
|
* <a href="https://corefork.telegram.org/api/folders">folders</a>
|
|
28675
29310
|
*
|
|
28676
|
-
* RPC method returns {@link tl.
|
|
29311
|
+
* RPC method returns {@link tl.messages.TypeDialogFilters}
|
|
28677
29312
|
*/
|
|
28678
29313
|
interface RawGetDialogFiltersRequest {
|
|
28679
29314
|
_: 'messages.getDialogFilters';
|
|
@@ -29275,6 +29910,12 @@ export class RpcError extends Error {
|
|
|
29275
29910
|
* Peer where to search
|
|
29276
29911
|
*/
|
|
29277
29912
|
peer: tl.TypeInputPeer;
|
|
29913
|
+
/**
|
|
29914
|
+
* Search within the
|
|
29915
|
+
* <a href="https://corefork.telegram.org/api/saved-messages">saved
|
|
29916
|
+
* message dialog »</a> with this ID.
|
|
29917
|
+
*/
|
|
29918
|
+
savedPeerId?: tl.TypeInputPeer;
|
|
29278
29919
|
/**
|
|
29279
29920
|
* Message filter, {@link RawInputMessagesFilterEmpty},
|
|
29280
29921
|
* {@link RawInputMessagesFilterMyMentions} filters are not
|
|
@@ -29309,6 +29950,12 @@ export class RpcError extends Error {
|
|
|
29309
29950
|
* Peer where to search
|
|
29310
29951
|
*/
|
|
29311
29952
|
peer: tl.TypeInputPeer;
|
|
29953
|
+
/**
|
|
29954
|
+
* Search within the
|
|
29955
|
+
* <a href="https://corefork.telegram.org/api/saved-messages">saved
|
|
29956
|
+
* message dialog »</a> with this ID.
|
|
29957
|
+
*/
|
|
29958
|
+
savedPeerId?: tl.TypeInputPeer;
|
|
29312
29959
|
/**
|
|
29313
29960
|
* Message filter, {@link RawInputMessagesFilterEmpty},
|
|
29314
29961
|
* {@link RawInputMessagesFilterMyMentions} filters are not
|
|
@@ -29399,7 +30046,7 @@ export class RpcError extends Error {
|
|
|
29399
30046
|
}
|
|
29400
30047
|
/**
|
|
29401
30048
|
* Change the default peer that should be used when sending
|
|
29402
|
-
* messages to a specific group
|
|
30049
|
+
* messages, reactions, poll votes to a specific group
|
|
29403
30050
|
*
|
|
29404
30051
|
* RPC method returns boolean
|
|
29405
30052
|
*/
|
|
@@ -29486,13 +30133,14 @@ export class RpcError extends Error {
|
|
|
29486
30133
|
*/
|
|
29487
30134
|
id: number;
|
|
29488
30135
|
/**
|
|
29489
|
-
* Get only reactions of this type
|
|
30136
|
+
* Get only reactions of this type
|
|
29490
30137
|
*/
|
|
29491
30138
|
reaction?: tl.TypeReaction;
|
|
29492
30139
|
/**
|
|
29493
|
-
* Offset (
|
|
29494
|
-
* field of the returned
|
|
29495
|
-
* <a href="https://corefork.telegram.org/type/messages.MessageReactionsList">messages.MessageReactionsList</a>)
|
|
30140
|
+
* Offset for pagination (taken from the
|
|
30141
|
+
* <code>next_offset</code> field of the returned
|
|
30142
|
+
* <a href="https://corefork.telegram.org/type/messages.MessageReactionsList">messages.MessageReactionsList</a>);
|
|
30143
|
+
* empty in the first request.
|
|
29496
30144
|
*/
|
|
29497
30145
|
offset?: string;
|
|
29498
30146
|
/**
|
|
@@ -30149,7 +30797,7 @@ export class RpcError extends Error {
|
|
|
30149
30797
|
_: 'messages.getDefaultHistoryTTL';
|
|
30150
30798
|
}
|
|
30151
30799
|
/**
|
|
30152
|
-
* Send
|
|
30800
|
+
* Send one or more chosen peers, as requested by a
|
|
30153
30801
|
* {@link RawKeyboardButtonRequestPeer} button.
|
|
30154
30802
|
*
|
|
30155
30803
|
* RPC method returns {@link tl.TypeUpdates}
|
|
@@ -30171,6 +30819,9 @@ export class RpcError extends Error {
|
|
|
30171
30819
|
* {@link RawKeyboardButtonRequestPeer} constructor.
|
|
30172
30820
|
*/
|
|
30173
30821
|
buttonId: number;
|
|
30822
|
+
/**
|
|
30823
|
+
* The chosen peers.
|
|
30824
|
+
*/
|
|
30174
30825
|
requestedPeers: tl.TypeInputPeer[];
|
|
30175
30826
|
}
|
|
30176
30827
|
/**
|
|
@@ -30413,6 +31064,265 @@ export class RpcError extends Error {
|
|
|
30413
31064
|
*/
|
|
30414
31065
|
hash: Long;
|
|
30415
31066
|
}
|
|
31067
|
+
/**
|
|
31068
|
+
* Returns the current saved dialog list, see
|
|
31069
|
+
* <a href="https://corefork.telegram.org/api/saved-messages">here
|
|
31070
|
+
* »</a> for more info.
|
|
31071
|
+
*
|
|
31072
|
+
* RPC method returns {@link tl.messages.TypeSavedDialogs}
|
|
31073
|
+
*/
|
|
31074
|
+
interface RawGetSavedDialogsRequest {
|
|
31075
|
+
_: 'messages.getSavedDialogs';
|
|
31076
|
+
/**
|
|
31077
|
+
* Exclude pinned dialogs
|
|
31078
|
+
*/
|
|
31079
|
+
excludePinned?: boolean;
|
|
31080
|
+
/**
|
|
31081
|
+
* <a href="https://corefork.telegram.org/api/offsets">Offsets
|
|
31082
|
+
* for pagination, for more info click here</a>
|
|
31083
|
+
*/
|
|
31084
|
+
offsetDate: number;
|
|
31085
|
+
/**
|
|
31086
|
+
* <a href="https://corefork.telegram.org/api/offsets">Offsets
|
|
31087
|
+
* for pagination, for more info click here</a>
|
|
31088
|
+
* (<code>top_message</code> ID used for pagination)
|
|
31089
|
+
*/
|
|
31090
|
+
offsetId: number;
|
|
31091
|
+
/**
|
|
31092
|
+
* <a href="https://corefork.telegram.org/api/offsets">Offset
|
|
31093
|
+
* peer for pagination</a>
|
|
31094
|
+
*/
|
|
31095
|
+
offsetPeer: tl.TypeInputPeer;
|
|
31096
|
+
/**
|
|
31097
|
+
* Number of list elements to be returned
|
|
31098
|
+
*/
|
|
31099
|
+
limit: number;
|
|
31100
|
+
/**
|
|
31101
|
+
* <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
|
|
31102
|
+
* for pagination, for more info click here</a>
|
|
31103
|
+
*/
|
|
31104
|
+
hash: Long;
|
|
31105
|
+
}
|
|
31106
|
+
/**
|
|
31107
|
+
* Returns
|
|
31108
|
+
* <a href="https://corefork.telegram.org/api/saved-messages">saved
|
|
31109
|
+
* messages »</a> forwarded from a specific peer
|
|
31110
|
+
*
|
|
31111
|
+
* RPC method returns {@link tl.messages.TypeMessages}
|
|
31112
|
+
*/
|
|
31113
|
+
interface RawGetSavedHistoryRequest {
|
|
31114
|
+
_: 'messages.getSavedHistory';
|
|
31115
|
+
/**
|
|
31116
|
+
* Target peer
|
|
31117
|
+
*/
|
|
31118
|
+
peer: tl.TypeInputPeer;
|
|
31119
|
+
/**
|
|
31120
|
+
* Only return messages starting from the specified message ID
|
|
31121
|
+
*/
|
|
31122
|
+
offsetId: number;
|
|
31123
|
+
/**
|
|
31124
|
+
* Only return messages sent before the specified date
|
|
31125
|
+
*/
|
|
31126
|
+
offsetDate: number;
|
|
31127
|
+
/**
|
|
31128
|
+
* Number of list elements to be skipped, negative values are
|
|
31129
|
+
* also accepted.
|
|
31130
|
+
*/
|
|
31131
|
+
addOffset: number;
|
|
31132
|
+
/**
|
|
31133
|
+
* Number of results to return
|
|
31134
|
+
*/
|
|
31135
|
+
limit: number;
|
|
31136
|
+
/**
|
|
31137
|
+
* If a positive value was transferred, the method will return
|
|
31138
|
+
* only messages with IDs less than <strong>max_id</strong>
|
|
31139
|
+
*/
|
|
31140
|
+
maxId: number;
|
|
31141
|
+
/**
|
|
31142
|
+
* If a positive value was transferred, the method will return
|
|
31143
|
+
* only messages with IDs more than <strong>min_id</strong>
|
|
31144
|
+
*/
|
|
31145
|
+
minId: number;
|
|
31146
|
+
/**
|
|
31147
|
+
* <a href="https://corefork.telegram.org/api/offsets">Result
|
|
31148
|
+
* hash</a>
|
|
31149
|
+
*/
|
|
31150
|
+
hash: Long;
|
|
31151
|
+
}
|
|
31152
|
+
/**
|
|
31153
|
+
* Deletes messages forwarded from a specific peer to
|
|
31154
|
+
* <a href="https://corefork.telegram.org/api/saved-messages">saved
|
|
31155
|
+
* messages »</a>.
|
|
31156
|
+
*
|
|
31157
|
+
* RPC method returns {@link tl.messages.TypeAffectedHistory}
|
|
31158
|
+
*/
|
|
31159
|
+
interface RawDeleteSavedHistoryRequest {
|
|
31160
|
+
_: 'messages.deleteSavedHistory';
|
|
31161
|
+
/**
|
|
31162
|
+
* Peer, whose messages will be deleted from
|
|
31163
|
+
* <a href="https://corefork.telegram.org/api/saved-messages">saved
|
|
31164
|
+
* messages »</a>
|
|
31165
|
+
*/
|
|
31166
|
+
peer: tl.TypeInputPeer;
|
|
31167
|
+
/**
|
|
31168
|
+
* Maximum ID of message to delete
|
|
31169
|
+
*/
|
|
31170
|
+
maxId: number;
|
|
31171
|
+
/**
|
|
31172
|
+
* Delete all messages newer than this UNIX timestamp
|
|
31173
|
+
*/
|
|
31174
|
+
minDate?: number;
|
|
31175
|
+
/**
|
|
31176
|
+
* Delete all messages older than this UNIX timestamp
|
|
31177
|
+
*/
|
|
31178
|
+
maxDate?: number;
|
|
31179
|
+
}
|
|
31180
|
+
/**
|
|
31181
|
+
* Get pinned
|
|
31182
|
+
* <a href="https://corefork.telegram.org/api/saved-messages">saved
|
|
31183
|
+
* dialogs, see here »</a> for more info.
|
|
31184
|
+
*
|
|
31185
|
+
* RPC method returns {@link tl.messages.TypeSavedDialogs}
|
|
31186
|
+
*/
|
|
31187
|
+
interface RawGetPinnedSavedDialogsRequest {
|
|
31188
|
+
_: 'messages.getPinnedSavedDialogs';
|
|
31189
|
+
}
|
|
31190
|
+
/**
|
|
31191
|
+
* Pin or unpin a
|
|
31192
|
+
* <a href="https://corefork.telegram.org/api/saved-messages">saved
|
|
31193
|
+
* message dialog »</a>.
|
|
31194
|
+
*
|
|
31195
|
+
* RPC method returns boolean
|
|
31196
|
+
*/
|
|
31197
|
+
interface RawToggleSavedDialogPinRequest {
|
|
31198
|
+
_: 'messages.toggleSavedDialogPin';
|
|
31199
|
+
/**
|
|
31200
|
+
* Whether to pin or unpin the dialog
|
|
31201
|
+
*/
|
|
31202
|
+
pinned?: boolean;
|
|
31203
|
+
/**
|
|
31204
|
+
* The dialog to pin
|
|
31205
|
+
*/
|
|
31206
|
+
peer: tl.TypeInputDialogPeer;
|
|
31207
|
+
}
|
|
31208
|
+
/**
|
|
31209
|
+
* Reorder pinned
|
|
31210
|
+
* <a href="https://corefork.telegram.org/api/saved-messages">saved
|
|
31211
|
+
* message dialogs »</a>.
|
|
31212
|
+
*
|
|
31213
|
+
* RPC method returns boolean
|
|
31214
|
+
*/
|
|
31215
|
+
interface RawReorderPinnedSavedDialogsRequest {
|
|
31216
|
+
_: 'messages.reorderPinnedSavedDialogs';
|
|
31217
|
+
/**
|
|
31218
|
+
* If set, dialogs pinned server-side but not present in the
|
|
31219
|
+
* <code>order</code> field will be unpinned.
|
|
31220
|
+
*/
|
|
31221
|
+
force?: boolean;
|
|
31222
|
+
/**
|
|
31223
|
+
* New dialog order
|
|
31224
|
+
*/
|
|
31225
|
+
order: tl.TypeInputDialogPeer[];
|
|
31226
|
+
}
|
|
31227
|
+
/**
|
|
31228
|
+
* RPC method returns {@link tl.messages.TypeSavedReactionTags}
|
|
31229
|
+
*/
|
|
31230
|
+
interface RawGetSavedReactionTagsRequest {
|
|
31231
|
+
_: 'messages.getSavedReactionTags';
|
|
31232
|
+
peer?: tl.TypeInputPeer;
|
|
31233
|
+
hash: Long;
|
|
31234
|
+
}
|
|
31235
|
+
/**
|
|
31236
|
+
* RPC method returns boolean
|
|
31237
|
+
*/
|
|
31238
|
+
interface RawUpdateSavedReactionTagRequest {
|
|
31239
|
+
_: 'messages.updateSavedReactionTag';
|
|
31240
|
+
reaction: tl.TypeReaction;
|
|
31241
|
+
title?: string;
|
|
31242
|
+
}
|
|
31243
|
+
/**
|
|
31244
|
+
* RPC method returns {@link tl.messages.TypeReactions}
|
|
31245
|
+
*/
|
|
31246
|
+
interface RawGetDefaultTagReactionsRequest {
|
|
31247
|
+
_: 'messages.getDefaultTagReactions';
|
|
31248
|
+
hash: Long;
|
|
31249
|
+
}
|
|
31250
|
+
/**
|
|
31251
|
+
* RPC method returns {@link tl.TypeOutboxReadDate}
|
|
31252
|
+
*/
|
|
31253
|
+
interface RawGetOutboxReadDateRequest {
|
|
31254
|
+
_: 'messages.getOutboxReadDate';
|
|
31255
|
+
peer: tl.TypeInputPeer;
|
|
31256
|
+
msgId: number;
|
|
31257
|
+
}
|
|
31258
|
+
/**
|
|
31259
|
+
* RPC method returns {@link tl.messages.TypeQuickReplies}
|
|
31260
|
+
*/
|
|
31261
|
+
interface RawGetQuickRepliesRequest {
|
|
31262
|
+
_: 'messages.getQuickReplies';
|
|
31263
|
+
hash: Long;
|
|
31264
|
+
}
|
|
31265
|
+
/**
|
|
31266
|
+
* RPC method returns boolean
|
|
31267
|
+
*/
|
|
31268
|
+
interface RawReorderQuickRepliesRequest {
|
|
31269
|
+
_: 'messages.reorderQuickReplies';
|
|
31270
|
+
order: number[];
|
|
31271
|
+
}
|
|
31272
|
+
/**
|
|
31273
|
+
* RPC method returns boolean
|
|
31274
|
+
*/
|
|
31275
|
+
interface RawCheckQuickReplyShortcutRequest {
|
|
31276
|
+
_: 'messages.checkQuickReplyShortcut';
|
|
31277
|
+
shortcut: string;
|
|
31278
|
+
}
|
|
31279
|
+
/**
|
|
31280
|
+
* RPC method returns boolean
|
|
31281
|
+
*/
|
|
31282
|
+
interface RawEditQuickReplyShortcutRequest {
|
|
31283
|
+
_: 'messages.editQuickReplyShortcut';
|
|
31284
|
+
shortcutId: number;
|
|
31285
|
+
shortcut: string;
|
|
31286
|
+
}
|
|
31287
|
+
/**
|
|
31288
|
+
* RPC method returns boolean
|
|
31289
|
+
*/
|
|
31290
|
+
interface RawDeleteQuickReplyShortcutRequest {
|
|
31291
|
+
_: 'messages.deleteQuickReplyShortcut';
|
|
31292
|
+
shortcutId: number;
|
|
31293
|
+
}
|
|
31294
|
+
/**
|
|
31295
|
+
* RPC method returns {@link tl.messages.TypeMessages}
|
|
31296
|
+
*/
|
|
31297
|
+
interface RawGetQuickReplyMessagesRequest {
|
|
31298
|
+
_: 'messages.getQuickReplyMessages';
|
|
31299
|
+
shortcutId: number;
|
|
31300
|
+
id?: number[];
|
|
31301
|
+
hash: Long;
|
|
31302
|
+
}
|
|
31303
|
+
/**
|
|
31304
|
+
* RPC method returns {@link tl.TypeUpdates}
|
|
31305
|
+
*/
|
|
31306
|
+
interface RawSendQuickReplyMessagesRequest {
|
|
31307
|
+
_: 'messages.sendQuickReplyMessages';
|
|
31308
|
+
peer: tl.TypeInputPeer;
|
|
31309
|
+
shortcutId: number;
|
|
31310
|
+
}
|
|
31311
|
+
/**
|
|
31312
|
+
* RPC method returns {@link tl.TypeUpdates}
|
|
31313
|
+
*/
|
|
31314
|
+
interface RawDeleteQuickReplyMessagesRequest {
|
|
31315
|
+
_: 'messages.deleteQuickReplyMessages';
|
|
31316
|
+
shortcutId: number;
|
|
31317
|
+
id: number[];
|
|
31318
|
+
}
|
|
31319
|
+
/**
|
|
31320
|
+
* RPC method returns boolean
|
|
31321
|
+
*/
|
|
31322
|
+
interface RawToggleDialogFilterTagsRequest {
|
|
31323
|
+
_: 'messages.toggleDialogFilterTags';
|
|
31324
|
+
enabled: boolean;
|
|
31325
|
+
}
|
|
30416
31326
|
interface RpcCallReturn {
|
|
30417
31327
|
'messages.getMessages': tl.messages.TypeMessages
|
|
30418
31328
|
'messages.getDialogs': tl.messages.TypeDialogs
|
|
@@ -30530,7 +31440,7 @@ export class RpcError extends Error {
|
|
|
30530
31440
|
'messages.deleteScheduledMessages': tl.TypeUpdates
|
|
30531
31441
|
'messages.getPollVotes': tl.messages.TypeVotesList
|
|
30532
31442
|
'messages.toggleStickerSets': boolean
|
|
30533
|
-
'messages.getDialogFilters': tl.
|
|
31443
|
+
'messages.getDialogFilters': tl.messages.TypeDialogFilters
|
|
30534
31444
|
'messages.getSuggestedDialogFilters': tl.TypeDialogFilterSuggested[]
|
|
30535
31445
|
'messages.updateDialogFilter': boolean
|
|
30536
31446
|
'messages.updateDialogFiltersOrder': boolean
|
|
@@ -30602,6 +31512,25 @@ export class RpcError extends Error {
|
|
|
30602
31512
|
'messages.requestAppWebView': tl.TypeAppWebViewResult
|
|
30603
31513
|
'messages.setChatWallPaper': tl.TypeUpdates
|
|
30604
31514
|
'messages.searchEmojiStickerSets': tl.messages.TypeFoundStickerSets
|
|
31515
|
+
'messages.getSavedDialogs': tl.messages.TypeSavedDialogs
|
|
31516
|
+
'messages.getSavedHistory': tl.messages.TypeMessages
|
|
31517
|
+
'messages.deleteSavedHistory': tl.messages.TypeAffectedHistory
|
|
31518
|
+
'messages.getPinnedSavedDialogs': tl.messages.TypeSavedDialogs
|
|
31519
|
+
'messages.toggleSavedDialogPin': boolean
|
|
31520
|
+
'messages.reorderPinnedSavedDialogs': boolean
|
|
31521
|
+
'messages.getSavedReactionTags': tl.messages.TypeSavedReactionTags
|
|
31522
|
+
'messages.updateSavedReactionTag': boolean
|
|
31523
|
+
'messages.getDefaultTagReactions': tl.messages.TypeReactions
|
|
31524
|
+
'messages.getOutboxReadDate': tl.TypeOutboxReadDate
|
|
31525
|
+
'messages.getQuickReplies': tl.messages.TypeQuickReplies
|
|
31526
|
+
'messages.reorderQuickReplies': boolean
|
|
31527
|
+
'messages.checkQuickReplyShortcut': boolean
|
|
31528
|
+
'messages.editQuickReplyShortcut': boolean
|
|
31529
|
+
'messages.deleteQuickReplyShortcut': boolean
|
|
31530
|
+
'messages.getQuickReplyMessages': tl.messages.TypeMessages
|
|
31531
|
+
'messages.sendQuickReplyMessages': tl.TypeUpdates
|
|
31532
|
+
'messages.deleteQuickReplyMessages': tl.TypeUpdates
|
|
31533
|
+
'messages.toggleDialogFilterTags': boolean
|
|
30605
31534
|
}
|
|
30606
31535
|
/**
|
|
30607
31536
|
* Object contains a list of chats with messages and auxiliary
|
|
@@ -30877,6 +31806,19 @@ export class RpcError extends Error {
|
|
|
30877
31806
|
*/
|
|
30878
31807
|
type TypeWebPage = tl.messages.RawWebPage
|
|
30879
31808
|
function isAnyWebPage(o: object): o is TypeWebPage
|
|
31809
|
+
/**
|
|
31810
|
+
* Represents some
|
|
31811
|
+
* <a href="https://corefork.telegram.org/api/saved-messages">saved
|
|
31812
|
+
* message dialogs »</a>.
|
|
31813
|
+
*/
|
|
31814
|
+
type TypeSavedDialogs = tl.messages.RawSavedDialogs | tl.messages.RawSavedDialogsSlice | tl.messages.RawSavedDialogsNotModified
|
|
31815
|
+
function isAnySavedDialogs(o: object): o is TypeSavedDialogs
|
|
31816
|
+
type TypeSavedReactionTags = tl.messages.RawSavedReactionTagsNotModified | tl.messages.RawSavedReactionTags
|
|
31817
|
+
function isAnySavedReactionTags(o: object): o is TypeSavedReactionTags
|
|
31818
|
+
type TypeQuickReplies = tl.messages.RawQuickReplies | tl.messages.RawQuickRepliesNotModified
|
|
31819
|
+
function isAnyQuickReplies(o: object): o is TypeQuickReplies
|
|
31820
|
+
type TypeDialogFilters = tl.messages.RawDialogFilters
|
|
31821
|
+
function isAnyDialogFilters(o: object): o is TypeDialogFilters
|
|
30880
31822
|
}
|
|
30881
31823
|
|
|
30882
31824
|
namespace updates {
|
|
@@ -32227,6 +33169,11 @@ export class RpcError extends Error {
|
|
|
32227
33169
|
*/
|
|
32228
33170
|
users: tl.TypeUser[];
|
|
32229
33171
|
}
|
|
33172
|
+
interface RawConnectedBots {
|
|
33173
|
+
_: 'account.connectedBots';
|
|
33174
|
+
connectedBots: tl.TypeConnectedBot[];
|
|
33175
|
+
users: tl.TypeUser[];
|
|
33176
|
+
}
|
|
32230
33177
|
/**
|
|
32231
33178
|
* Register device to receive
|
|
32232
33179
|
* <a href="https://corefork.telegram.org/api/push-updates">PUSH
|
|
@@ -33441,7 +34388,9 @@ export class RpcError extends Error {
|
|
|
33441
34388
|
_: 'account.declinePasswordReset';
|
|
33442
34389
|
}
|
|
33443
34390
|
/**
|
|
33444
|
-
* Get all available chat
|
|
34391
|
+
* Get all available chat
|
|
34392
|
+
* <a href="https://corefork.telegram.org/api/themes">themes
|
|
34393
|
+
* »</a>.
|
|
33445
34394
|
*
|
|
33446
34395
|
* RPC method returns {@link tl.account.TypeThemes}
|
|
33447
34396
|
*/
|
|
@@ -33783,19 +34732,82 @@ export class RpcError extends Error {
|
|
|
33783
34732
|
hash: Long;
|
|
33784
34733
|
}
|
|
33785
34734
|
/**
|
|
34735
|
+
* Get a list of default suggested
|
|
34736
|
+
* <a href="https://corefork.telegram.org/api/emoji-status">channel
|
|
34737
|
+
* emoji statuses</a>.
|
|
34738
|
+
*
|
|
33786
34739
|
* RPC method returns {@link tl.account.TypeEmojiStatuses}
|
|
33787
34740
|
*/
|
|
33788
34741
|
interface RawGetChannelDefaultEmojiStatusesRequest {
|
|
33789
34742
|
_: 'account.getChannelDefaultEmojiStatuses';
|
|
34743
|
+
/**
|
|
34744
|
+
* <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
|
|
34745
|
+
* for pagination, for more info click here</a>
|
|
34746
|
+
*/
|
|
33790
34747
|
hash: Long;
|
|
33791
34748
|
}
|
|
33792
34749
|
/**
|
|
34750
|
+
* Returns fetch the full list of
|
|
34751
|
+
* <a href="https://corefork.telegram.org/api/custom-emoji">custom
|
|
34752
|
+
* emoji IDs »</a> that cannot be used in
|
|
34753
|
+
* <a href="https://corefork.telegram.org/api/emoji-status">channel
|
|
34754
|
+
* emoji statuses »</a>.
|
|
34755
|
+
*
|
|
33793
34756
|
* RPC method returns {@link tl.TypeEmojiList}
|
|
33794
34757
|
*/
|
|
33795
34758
|
interface RawGetChannelRestrictedStatusEmojisRequest {
|
|
33796
34759
|
_: 'account.getChannelRestrictedStatusEmojis';
|
|
34760
|
+
/**
|
|
34761
|
+
* <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
|
|
34762
|
+
* for pagination, for more info click here</a>
|
|
34763
|
+
*/
|
|
33797
34764
|
hash: Long;
|
|
33798
34765
|
}
|
|
34766
|
+
/**
|
|
34767
|
+
* RPC method returns boolean
|
|
34768
|
+
*/
|
|
34769
|
+
interface RawUpdateBusinessWorkHoursRequest {
|
|
34770
|
+
_: 'account.updateBusinessWorkHours';
|
|
34771
|
+
businessWorkHours?: tl.TypeBusinessWorkHours;
|
|
34772
|
+
}
|
|
34773
|
+
/**
|
|
34774
|
+
* RPC method returns boolean
|
|
34775
|
+
*/
|
|
34776
|
+
interface RawUpdateBusinessLocationRequest {
|
|
34777
|
+
_: 'account.updateBusinessLocation';
|
|
34778
|
+
geoPoint?: tl.TypeInputGeoPoint;
|
|
34779
|
+
address?: string;
|
|
34780
|
+
}
|
|
34781
|
+
/**
|
|
34782
|
+
* RPC method returns boolean
|
|
34783
|
+
*/
|
|
34784
|
+
interface RawUpdateBusinessGreetingMessageRequest {
|
|
34785
|
+
_: 'account.updateBusinessGreetingMessage';
|
|
34786
|
+
message?: tl.TypeInputBusinessGreetingMessage;
|
|
34787
|
+
}
|
|
34788
|
+
/**
|
|
34789
|
+
* RPC method returns boolean
|
|
34790
|
+
*/
|
|
34791
|
+
interface RawUpdateBusinessAwayMessageRequest {
|
|
34792
|
+
_: 'account.updateBusinessAwayMessage';
|
|
34793
|
+
message?: tl.TypeInputBusinessAwayMessage;
|
|
34794
|
+
}
|
|
34795
|
+
/**
|
|
34796
|
+
* RPC method returns {@link tl.TypeUpdates}
|
|
34797
|
+
*/
|
|
34798
|
+
interface RawUpdateConnectedBotRequest {
|
|
34799
|
+
_: 'account.updateConnectedBot';
|
|
34800
|
+
canReply?: boolean;
|
|
34801
|
+
deleted?: boolean;
|
|
34802
|
+
bot: tl.TypeInputUser;
|
|
34803
|
+
recipients: tl.TypeInputBusinessRecipients;
|
|
34804
|
+
}
|
|
34805
|
+
/**
|
|
34806
|
+
* RPC method returns {@link tl.account.TypeConnectedBots}
|
|
34807
|
+
*/
|
|
34808
|
+
interface RawGetConnectedBotsRequest {
|
|
34809
|
+
_: 'account.getConnectedBots';
|
|
34810
|
+
}
|
|
33799
34811
|
interface RpcCallReturn {
|
|
33800
34812
|
'account.registerDevice': boolean
|
|
33801
34813
|
'account.unregisterDevice': boolean
|
|
@@ -33889,6 +34901,12 @@ export class RpcError extends Error {
|
|
|
33889
34901
|
'account.getDefaultBackgroundEmojis': tl.TypeEmojiList
|
|
33890
34902
|
'account.getChannelDefaultEmojiStatuses': tl.account.TypeEmojiStatuses
|
|
33891
34903
|
'account.getChannelRestrictedStatusEmojis': tl.TypeEmojiList
|
|
34904
|
+
'account.updateBusinessWorkHours': boolean
|
|
34905
|
+
'account.updateBusinessLocation': boolean
|
|
34906
|
+
'account.updateBusinessGreetingMessage': boolean
|
|
34907
|
+
'account.updateBusinessAwayMessage': boolean
|
|
34908
|
+
'account.updateConnectedBot': tl.TypeUpdates
|
|
34909
|
+
'account.getConnectedBots': tl.account.TypeConnectedBots
|
|
33892
34910
|
}
|
|
33893
34911
|
/**
|
|
33894
34912
|
* Privacy rules
|
|
@@ -33998,6 +35016,8 @@ export class RpcError extends Error {
|
|
|
33998
35016
|
*/
|
|
33999
35017
|
type TypeAutoSaveSettings = tl.account.RawAutoSaveSettings
|
|
34000
35018
|
function isAnyAutoSaveSettings(o: object): o is TypeAutoSaveSettings
|
|
35019
|
+
type TypeConnectedBots = tl.account.RawConnectedBots
|
|
35020
|
+
function isAnyConnectedBots(o: object): o is TypeConnectedBots
|
|
34001
35021
|
}
|
|
34002
35022
|
|
|
34003
35023
|
namespace channels {
|
|
@@ -35299,6 +36319,11 @@ export class RpcError extends Error {
|
|
|
35299
36319
|
*/
|
|
35300
36320
|
interface RawUpdateColorRequest {
|
|
35301
36321
|
_: 'channels.updateColor';
|
|
36322
|
+
/**
|
|
36323
|
+
* Whether to change the accent color emoji pattern of the
|
|
36324
|
+
* profile page; otherwise, the accent color and emoji pattern
|
|
36325
|
+
* of messages will be changed.
|
|
36326
|
+
*/
|
|
35302
36327
|
forProfile?: boolean;
|
|
35303
36328
|
/**
|
|
35304
36329
|
* Channel whose accent color should be changed.
|
|
@@ -35308,7 +36333,8 @@ export class RpcError extends Error {
|
|
|
35308
36333
|
* <a href="https://corefork.telegram.org/api/colors">ID of the
|
|
35309
36334
|
* accent color palette »</a> to use (not RGB24, see
|
|
35310
36335
|
* <a href="https://corefork.telegram.org/api/colors">here
|
|
35311
|
-
* »</a> for more info)
|
|
36336
|
+
* »</a> for more info); if not set, the default palette is
|
|
36337
|
+
* used.
|
|
35312
36338
|
*/
|
|
35313
36339
|
color?: number;
|
|
35314
36340
|
/**
|
|
@@ -35360,13 +36386,42 @@ export class RpcError extends Error {
|
|
|
35360
36386
|
channel: tl.TypeInputChannel;
|
|
35361
36387
|
}
|
|
35362
36388
|
/**
|
|
36389
|
+
* Set an
|
|
36390
|
+
* <a href="https://corefork.telegram.org/api/emoji-status">emoji
|
|
36391
|
+
* status</a> for a channel.
|
|
36392
|
+
*
|
|
35363
36393
|
* RPC method returns {@link tl.TypeUpdates}
|
|
35364
36394
|
*/
|
|
35365
36395
|
interface RawUpdateEmojiStatusRequest {
|
|
35366
36396
|
_: 'channels.updateEmojiStatus';
|
|
36397
|
+
/**
|
|
36398
|
+
* The channel, must have at least
|
|
36399
|
+
* <a href="https://corefork.telegram.org/api/config#channel-emoji-status-level-min"><code>channel_emoji_status_level_min</code>
|
|
36400
|
+
* boosts</a>.
|
|
36401
|
+
*/
|
|
35367
36402
|
channel: tl.TypeInputChannel;
|
|
36403
|
+
/**
|
|
36404
|
+
* <a href="https://corefork.telegram.org/api/emoji-status">Emoji
|
|
36405
|
+
* status</a> to set
|
|
36406
|
+
*/
|
|
35368
36407
|
emojiStatus: tl.TypeEmojiStatus;
|
|
35369
36408
|
}
|
|
36409
|
+
/**
|
|
36410
|
+
* RPC method returns {@link tl.TypeUpdates}
|
|
36411
|
+
*/
|
|
36412
|
+
interface RawSetBoostsToUnblockRestrictionsRequest {
|
|
36413
|
+
_: 'channels.setBoostsToUnblockRestrictions';
|
|
36414
|
+
channel: tl.TypeInputChannel;
|
|
36415
|
+
boosts: number;
|
|
36416
|
+
}
|
|
36417
|
+
/**
|
|
36418
|
+
* RPC method returns boolean
|
|
36419
|
+
*/
|
|
36420
|
+
interface RawSetEmojiStickersRequest {
|
|
36421
|
+
_: 'channels.setEmojiStickers';
|
|
36422
|
+
channel: tl.TypeInputChannel;
|
|
36423
|
+
stickerset: tl.TypeInputStickerSet;
|
|
36424
|
+
}
|
|
35370
36425
|
interface RpcCallReturn {
|
|
35371
36426
|
'channels.readHistory': boolean
|
|
35372
36427
|
'channels.deleteMessages': tl.messages.TypeAffectedMessages
|
|
@@ -35428,6 +36483,8 @@ export class RpcError extends Error {
|
|
|
35428
36483
|
'channels.toggleViewForumAsMessages': tl.TypeUpdates
|
|
35429
36484
|
'channels.getChannelRecommendations': tl.messages.TypeChats
|
|
35430
36485
|
'channels.updateEmojiStatus': tl.TypeUpdates
|
|
36486
|
+
'channels.setBoostsToUnblockRestrictions': tl.TypeUpdates
|
|
36487
|
+
'channels.setEmojiStickers': boolean
|
|
35431
36488
|
}
|
|
35432
36489
|
/**
|
|
35433
36490
|
* Channel/supergroup participants
|
|
@@ -37416,6 +38473,13 @@ export class RpcError extends Error {
|
|
|
37416
38473
|
* Source message ID
|
|
37417
38474
|
*/
|
|
37418
38475
|
msgId: number;
|
|
38476
|
+
/**
|
|
38477
|
+
* Offset for
|
|
38478
|
+
* <a href="https://corefork.telegram.org/api/offsets">pagination</a>,
|
|
38479
|
+
* empty string on first call, then use the
|
|
38480
|
+
* <code>next_offset</code> field of the returned constructor
|
|
38481
|
+
* (if present, otherwise no more results are available).
|
|
38482
|
+
*/
|
|
37419
38483
|
offset: string;
|
|
37420
38484
|
/**
|
|
37421
38485
|
* Maximum number of results to return,
|
|
@@ -37864,10 +38928,18 @@ export class RpcError extends Error {
|
|
|
37864
38928
|
*/
|
|
37865
38929
|
errors: tl.TypeSecureValueError[];
|
|
37866
38930
|
}
|
|
38931
|
+
/**
|
|
38932
|
+
* RPC method returns boolean array
|
|
38933
|
+
*/
|
|
38934
|
+
interface RawGetIsPremiumRequiredToContactRequest {
|
|
38935
|
+
_: 'users.getIsPremiumRequiredToContact';
|
|
38936
|
+
id: tl.TypeInputUser[];
|
|
38937
|
+
}
|
|
37867
38938
|
interface RpcCallReturn {
|
|
37868
38939
|
'users.getUsers': tl.TypeUser[]
|
|
37869
38940
|
'users.getFullUser': tl.users.TypeUserFull
|
|
37870
38941
|
'users.setSecureValueErrors': boolean
|
|
38942
|
+
'users.getIsPremiumRequiredToContact': boolean[]
|
|
37871
38943
|
}
|
|
37872
38944
|
/**
|
|
37873
38945
|
* Full user information, with attached context peers for
|
|
@@ -38689,7 +39761,13 @@ export class RpcError extends Error {
|
|
|
38689
39761
|
* Total number of results that can be fetched
|
|
38690
39762
|
*/
|
|
38691
39763
|
count: number;
|
|
39764
|
+
/**
|
|
39765
|
+
* Total number of story views
|
|
39766
|
+
*/
|
|
38692
39767
|
viewsCount: number;
|
|
39768
|
+
/**
|
|
39769
|
+
* Total number of story forwards/reposts
|
|
39770
|
+
*/
|
|
38693
39771
|
forwardsCount: number;
|
|
38694
39772
|
/**
|
|
38695
39773
|
* Number of reactions that were added to the story
|
|
@@ -38699,6 +39777,9 @@ export class RpcError extends Error {
|
|
|
38699
39777
|
* Story view date and reaction information
|
|
38700
39778
|
*/
|
|
38701
39779
|
views: tl.TypeStoryView[];
|
|
39780
|
+
/**
|
|
39781
|
+
* Mentioned chats
|
|
39782
|
+
*/
|
|
38702
39783
|
chats: tl.TypeChat[];
|
|
38703
39784
|
/**
|
|
38704
39785
|
* Mentioned users
|
|
@@ -38743,12 +39824,34 @@ export class RpcError extends Error {
|
|
|
38743
39824
|
*/
|
|
38744
39825
|
users: tl.TypeUser[];
|
|
38745
39826
|
}
|
|
39827
|
+
/**
|
|
39828
|
+
* List of peers that reacted to or intercated with a specific
|
|
39829
|
+
* <a href="https://corefork.telegram.org/api/stories">story</a>
|
|
39830
|
+
*/
|
|
38746
39831
|
interface RawStoryReactionsList {
|
|
38747
39832
|
_: 'stories.storyReactionsList';
|
|
39833
|
+
/**
|
|
39834
|
+
* Total number of reactions matching query
|
|
39835
|
+
*/
|
|
38748
39836
|
count: number;
|
|
39837
|
+
/**
|
|
39838
|
+
* List of peers that reacted to or interacted with a specific
|
|
39839
|
+
* story
|
|
39840
|
+
*/
|
|
38749
39841
|
reactions: tl.TypeStoryReaction[];
|
|
39842
|
+
/**
|
|
39843
|
+
* Mentioned chats
|
|
39844
|
+
*/
|
|
38750
39845
|
chats: tl.TypeChat[];
|
|
39846
|
+
/**
|
|
39847
|
+
* Mentioned users
|
|
39848
|
+
*/
|
|
38751
39849
|
users: tl.TypeUser[];
|
|
39850
|
+
/**
|
|
39851
|
+
* If set, indicates the next offset to use to load more
|
|
39852
|
+
* results by invoking
|
|
39853
|
+
* {@link stories.RawGetStoryReactionsListRequest}.
|
|
39854
|
+
*/
|
|
38752
39855
|
nextOffset?: string;
|
|
38753
39856
|
}
|
|
38754
39857
|
/**
|
|
@@ -39105,9 +40208,16 @@ export class RpcError extends Error {
|
|
|
39105
40208
|
* reacted to the story (i.e. if set, the server will first
|
|
39106
40209
|
* sort results by view date as usual, and then also
|
|
39107
40210
|
* additionally sort the list by putting {@link RawStoryView}s
|
|
39108
|
-
* with an associated reaction first in the list).
|
|
40211
|
+
* with an associated reaction first in the list). Ignored if
|
|
40212
|
+
* <code>forwards_first</code> is set.
|
|
39109
40213
|
*/
|
|
39110
40214
|
reactionsFirst?: boolean;
|
|
40215
|
+
/**
|
|
40216
|
+
* If set, returns forwards and reposts first, then reactions,
|
|
40217
|
+
* then other views; otherwise returns interactions sorted just
|
|
40218
|
+
* by interaction date.
|
|
40219
|
+
*/
|
|
40220
|
+
forwardsFirst?: boolean;
|
|
39111
40221
|
/**
|
|
39112
40222
|
* Peer where the story was posted
|
|
39113
40223
|
*/
|
|
@@ -39116,7 +40226,6 @@ export class RpcError extends Error {
|
|
|
39116
40226
|
* Search for specific peers
|
|
39117
40227
|
*/
|
|
39118
40228
|
q?: string;
|
|
39119
|
-
forwardsFirst?: boolean;
|
|
39120
40229
|
/**
|
|
39121
40230
|
* Story ID
|
|
39122
40231
|
*/
|
|
@@ -39316,15 +40425,49 @@ export class RpcError extends Error {
|
|
|
39316
40425
|
hidden: boolean;
|
|
39317
40426
|
}
|
|
39318
40427
|
/**
|
|
40428
|
+
* Get the
|
|
40429
|
+
* <a href="https://corefork.telegram.org/api/reactions">reaction</a>
|
|
40430
|
+
* and interaction list of a
|
|
40431
|
+
* <a href="https://corefork.telegram.org/api/stories">story</a>
|
|
40432
|
+
* posted to a channel, along with the sender of each reaction.
|
|
40433
|
+
*
|
|
40434
|
+
* Can only be used by channel admins.
|
|
40435
|
+
*
|
|
39319
40436
|
* RPC method returns {@link tl.stories.TypeStoryReactionsList}
|
|
39320
40437
|
*/
|
|
39321
40438
|
interface RawGetStoryReactionsListRequest {
|
|
39322
40439
|
_: 'stories.getStoryReactionsList';
|
|
40440
|
+
/**
|
|
40441
|
+
* If set, returns forwards and reposts first, then reactions,
|
|
40442
|
+
* then other views; otherwise returns interactions sorted just
|
|
40443
|
+
* by interaction date.
|
|
40444
|
+
*/
|
|
39323
40445
|
forwardsFirst?: boolean;
|
|
40446
|
+
/**
|
|
40447
|
+
* Channel
|
|
40448
|
+
*/
|
|
39324
40449
|
peer: tl.TypeInputPeer;
|
|
40450
|
+
/**
|
|
40451
|
+
* <a href="https://corefork.telegram.org/api/stories">Story</a>
|
|
40452
|
+
* ID
|
|
40453
|
+
*/
|
|
39325
40454
|
id: number;
|
|
40455
|
+
/**
|
|
40456
|
+
* Get only reactions of this type
|
|
40457
|
+
*/
|
|
39326
40458
|
reaction?: tl.TypeReaction;
|
|
40459
|
+
/**
|
|
40460
|
+
* Offset for pagination (taken from the
|
|
40461
|
+
* <code>next_offset</code> field of the returned
|
|
40462
|
+
* <a href="https://corefork.telegram.org/type/stories.StoryReactionsList">stories.StoryReactionsList</a>);
|
|
40463
|
+
* empty in the first request.
|
|
40464
|
+
*/
|
|
39327
40465
|
offset?: string;
|
|
40466
|
+
/**
|
|
40467
|
+
* Maximum number of results to return,
|
|
40468
|
+
* <a href="https://corefork.telegram.org/api/offsets">see
|
|
40469
|
+
* pagination</a>
|
|
40470
|
+
*/
|
|
39328
40471
|
limit: number;
|
|
39329
40472
|
}
|
|
39330
40473
|
interface RpcCallReturn {
|
|
@@ -39383,6 +40526,10 @@ export class RpcError extends Error {
|
|
|
39383
40526
|
*/
|
|
39384
40527
|
type TypePeerStories = tl.stories.RawPeerStories
|
|
39385
40528
|
function isAnyPeerStories(o: object): o is TypePeerStories
|
|
40529
|
+
/**
|
|
40530
|
+
* List of peers that reacted to a specific
|
|
40531
|
+
* <a href="https://corefork.telegram.org/api/stories">story</a>
|
|
40532
|
+
*/
|
|
39386
40533
|
type TypeStoryReactionsList = tl.stories.RawStoryReactionsList
|
|
39387
40534
|
function isAnyStoryReactionsList(o: object): o is TypeStoryReactionsList
|
|
39388
40535
|
}
|
|
@@ -39622,6 +40769,84 @@ export class RpcError extends Error {
|
|
|
39622
40769
|
function isAnyBoostsStatus(o: object): o is TypeBoostsStatus
|
|
39623
40770
|
}
|
|
39624
40771
|
|
|
40772
|
+
namespace smsjobs {
|
|
40773
|
+
interface RawEligibleToJoin {
|
|
40774
|
+
_: 'smsjobs.eligibleToJoin';
|
|
40775
|
+
termsUrl: string;
|
|
40776
|
+
monthlySentSms: number;
|
|
40777
|
+
}
|
|
40778
|
+
interface RawStatus {
|
|
40779
|
+
_: 'smsjobs.status';
|
|
40780
|
+
allowInternational?: boolean;
|
|
40781
|
+
recentSent: number;
|
|
40782
|
+
recentSince: number;
|
|
40783
|
+
recentRemains: number;
|
|
40784
|
+
totalSent: number;
|
|
40785
|
+
totalSince: number;
|
|
40786
|
+
lastGiftSlug?: string;
|
|
40787
|
+
termsUrl: string;
|
|
40788
|
+
}
|
|
40789
|
+
/**
|
|
40790
|
+
* RPC method returns {@link tl.smsjobs.TypeEligibilityToJoin}
|
|
40791
|
+
*/
|
|
40792
|
+
interface RawIsEligibleToJoinRequest {
|
|
40793
|
+
_: 'smsjobs.isEligibleToJoin';
|
|
40794
|
+
}
|
|
40795
|
+
/**
|
|
40796
|
+
* RPC method returns boolean
|
|
40797
|
+
*/
|
|
40798
|
+
interface RawJoinRequest {
|
|
40799
|
+
_: 'smsjobs.join';
|
|
40800
|
+
}
|
|
40801
|
+
/**
|
|
40802
|
+
* RPC method returns boolean
|
|
40803
|
+
*/
|
|
40804
|
+
interface RawLeaveRequest {
|
|
40805
|
+
_: 'smsjobs.leave';
|
|
40806
|
+
}
|
|
40807
|
+
/**
|
|
40808
|
+
* RPC method returns boolean
|
|
40809
|
+
*/
|
|
40810
|
+
interface RawUpdateSettingsRequest {
|
|
40811
|
+
_: 'smsjobs.updateSettings';
|
|
40812
|
+
allowInternational?: boolean;
|
|
40813
|
+
}
|
|
40814
|
+
/**
|
|
40815
|
+
* RPC method returns {@link tl.smsjobs.TypeStatus}
|
|
40816
|
+
*/
|
|
40817
|
+
interface RawGetStatusRequest {
|
|
40818
|
+
_: 'smsjobs.getStatus';
|
|
40819
|
+
}
|
|
40820
|
+
/**
|
|
40821
|
+
* RPC method returns {@link tl.TypeSmsJob}
|
|
40822
|
+
*/
|
|
40823
|
+
interface RawGetSmsJobRequest {
|
|
40824
|
+
_: 'smsjobs.getSmsJob';
|
|
40825
|
+
jobId: string;
|
|
40826
|
+
}
|
|
40827
|
+
/**
|
|
40828
|
+
* RPC method returns boolean
|
|
40829
|
+
*/
|
|
40830
|
+
interface RawFinishJobRequest {
|
|
40831
|
+
_: 'smsjobs.finishJob';
|
|
40832
|
+
jobId: string;
|
|
40833
|
+
error?: string;
|
|
40834
|
+
}
|
|
40835
|
+
interface RpcCallReturn {
|
|
40836
|
+
'smsjobs.isEligibleToJoin': tl.smsjobs.TypeEligibilityToJoin
|
|
40837
|
+
'smsjobs.join': boolean
|
|
40838
|
+
'smsjobs.leave': boolean
|
|
40839
|
+
'smsjobs.updateSettings': boolean
|
|
40840
|
+
'smsjobs.getStatus': tl.smsjobs.TypeStatus
|
|
40841
|
+
'smsjobs.getSmsJob': tl.TypeSmsJob
|
|
40842
|
+
'smsjobs.finishJob': boolean
|
|
40843
|
+
}
|
|
40844
|
+
type TypeEligibilityToJoin = tl.smsjobs.RawEligibleToJoin
|
|
40845
|
+
function isAnyEligibilityToJoin(o: object): o is TypeEligibilityToJoin
|
|
40846
|
+
type TypeStatus = tl.smsjobs.RawStatus
|
|
40847
|
+
function isAnyStatus(o: object): o is TypeStatus
|
|
40848
|
+
}
|
|
40849
|
+
|
|
39625
40850
|
namespace mtcute {
|
|
39626
40851
|
interface RawDummyUpdate {
|
|
39627
40852
|
_: 'mtcute.dummyUpdate';
|
|
@@ -39642,7 +40867,7 @@ export class RpcError extends Error {
|
|
|
39642
40867
|
/**
|
|
39643
40868
|
* Object contains info on events occurred.
|
|
39644
40869
|
*/
|
|
39645
|
-
type TypeUpdate = tl.RawUpdateNewMessage | tl.RawUpdateMessageID | tl.RawUpdateDeleteMessages | tl.RawUpdateUserTyping | tl.RawUpdateChatUserTyping | tl.RawUpdateChatParticipants | tl.RawUpdateUserStatus | tl.RawUpdateUserName | tl.RawUpdateNewAuthorization | tl.RawUpdateNewEncryptedMessage | tl.RawUpdateEncryptedChatTyping | tl.RawUpdateEncryption | tl.RawUpdateEncryptedMessagesRead | tl.RawUpdateChatParticipantAdd | tl.RawUpdateChatParticipantDelete | tl.RawUpdateDcOptions | tl.RawUpdateNotifySettings | tl.RawUpdateServiceNotification | tl.RawUpdatePrivacy | tl.RawUpdateUserPhone | tl.RawUpdateReadHistoryInbox | tl.RawUpdateReadHistoryOutbox | tl.RawUpdateWebPage | tl.RawUpdateReadMessagesContents | tl.RawUpdateChannelTooLong | tl.RawUpdateChannel | tl.RawUpdateNewChannelMessage | tl.RawUpdateReadChannelInbox | tl.RawUpdateDeleteChannelMessages | tl.RawUpdateChannelMessageViews | tl.RawUpdateChatParticipantAdmin | tl.RawUpdateNewStickerSet | tl.RawUpdateStickerSetsOrder | tl.RawUpdateStickerSets | tl.RawUpdateSavedGifs | tl.RawUpdateBotInlineQuery | tl.RawUpdateBotInlineSend | tl.RawUpdateEditChannelMessage | tl.RawUpdateBotCallbackQuery | tl.RawUpdateEditMessage | tl.RawUpdateInlineBotCallbackQuery | tl.RawUpdateReadChannelOutbox | tl.RawUpdateDraftMessage | tl.RawUpdateReadFeaturedStickers | tl.RawUpdateRecentStickers | tl.RawUpdateConfig | tl.RawUpdatePtsChanged | tl.RawUpdateChannelWebPage | tl.RawUpdateDialogPinned | tl.RawUpdatePinnedDialogs | tl.RawUpdateBotWebhookJSON | tl.RawUpdateBotWebhookJSONQuery | tl.RawUpdateBotShippingQuery | tl.RawUpdateBotPrecheckoutQuery | tl.RawUpdatePhoneCall | tl.RawUpdateLangPackTooLong | tl.RawUpdateLangPack | tl.RawUpdateFavedStickers | tl.RawUpdateChannelReadMessagesContents | tl.RawUpdateContactsReset | tl.RawUpdateChannelAvailableMessages | tl.RawUpdateDialogUnreadMark | tl.RawUpdateMessagePoll | tl.RawUpdateChatDefaultBannedRights | tl.RawUpdateFolderPeers | tl.RawUpdatePeerSettings | tl.RawUpdatePeerLocated | tl.RawUpdateNewScheduledMessage | tl.RawUpdateDeleteScheduledMessages | tl.RawUpdateTheme | tl.RawUpdateGeoLiveViewed | tl.RawUpdateLoginToken | tl.RawUpdateMessagePollVote | tl.RawUpdateDialogFilter | tl.RawUpdateDialogFilterOrder | tl.RawUpdateDialogFilters | tl.RawUpdatePhoneCallSignalingData | tl.RawUpdateChannelMessageForwards | tl.RawUpdateReadChannelDiscussionInbox | tl.RawUpdateReadChannelDiscussionOutbox | tl.RawUpdatePeerBlocked | tl.RawUpdateChannelUserTyping | tl.RawUpdatePinnedMessages | tl.RawUpdatePinnedChannelMessages | tl.RawUpdateChat | tl.RawUpdateGroupCallParticipants | tl.RawUpdateGroupCall | tl.RawUpdatePeerHistoryTTL | tl.RawUpdateChatParticipant | tl.RawUpdateChannelParticipant | tl.RawUpdateBotStopped | tl.RawUpdateGroupCallConnection | tl.RawUpdateBotCommands | tl.RawUpdatePendingJoinRequests | tl.RawUpdateBotChatInviteRequester | tl.RawUpdateMessageReactions | tl.RawUpdateAttachMenuBots | tl.RawUpdateWebViewResultSent | tl.RawUpdateBotMenuButton | tl.RawUpdateSavedRingtones | tl.RawUpdateTranscribedAudio | tl.RawUpdateReadFeaturedEmojiStickers | tl.RawUpdateUserEmojiStatus | tl.RawUpdateRecentEmojiStatuses | tl.RawUpdateRecentReactions | tl.RawUpdateMoveStickerSetToTop | tl.RawUpdateMessageExtendedMedia | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.RawUpdateUser | tl.RawUpdateAutoSaveSettings | tl.RawUpdateGroupInvitePrivacyForbidden | tl.RawUpdateStory | tl.RawUpdateReadStories | tl.RawUpdateStoryID | tl.RawUpdateStoriesStealthMode | tl.RawUpdateSentStoryReaction | tl.RawUpdateBotChatBoost | tl.RawUpdateChannelViewForumAsMessages | tl.RawUpdatePeerWallpaper | tl.RawUpdateBotMessageReaction | tl.RawUpdateBotMessageReactions | tl.mtcute.RawDummyUpdate
|
|
40870
|
+
type TypeUpdate = tl.RawUpdateNewMessage | tl.RawUpdateMessageID | tl.RawUpdateDeleteMessages | tl.RawUpdateUserTyping | tl.RawUpdateChatUserTyping | tl.RawUpdateChatParticipants | tl.RawUpdateUserStatus | tl.RawUpdateUserName | tl.RawUpdateNewAuthorization | tl.RawUpdateNewEncryptedMessage | tl.RawUpdateEncryptedChatTyping | tl.RawUpdateEncryption | tl.RawUpdateEncryptedMessagesRead | tl.RawUpdateChatParticipantAdd | tl.RawUpdateChatParticipantDelete | tl.RawUpdateDcOptions | tl.RawUpdateNotifySettings | tl.RawUpdateServiceNotification | tl.RawUpdatePrivacy | tl.RawUpdateUserPhone | tl.RawUpdateReadHistoryInbox | tl.RawUpdateReadHistoryOutbox | tl.RawUpdateWebPage | tl.RawUpdateReadMessagesContents | tl.RawUpdateChannelTooLong | tl.RawUpdateChannel | tl.RawUpdateNewChannelMessage | tl.RawUpdateReadChannelInbox | tl.RawUpdateDeleteChannelMessages | tl.RawUpdateChannelMessageViews | tl.RawUpdateChatParticipantAdmin | tl.RawUpdateNewStickerSet | tl.RawUpdateStickerSetsOrder | tl.RawUpdateStickerSets | tl.RawUpdateSavedGifs | tl.RawUpdateBotInlineQuery | tl.RawUpdateBotInlineSend | tl.RawUpdateEditChannelMessage | tl.RawUpdateBotCallbackQuery | tl.RawUpdateEditMessage | tl.RawUpdateInlineBotCallbackQuery | tl.RawUpdateReadChannelOutbox | tl.RawUpdateDraftMessage | tl.RawUpdateReadFeaturedStickers | tl.RawUpdateRecentStickers | tl.RawUpdateConfig | tl.RawUpdatePtsChanged | tl.RawUpdateChannelWebPage | tl.RawUpdateDialogPinned | tl.RawUpdatePinnedDialogs | tl.RawUpdateBotWebhookJSON | tl.RawUpdateBotWebhookJSONQuery | tl.RawUpdateBotShippingQuery | tl.RawUpdateBotPrecheckoutQuery | tl.RawUpdatePhoneCall | tl.RawUpdateLangPackTooLong | tl.RawUpdateLangPack | tl.RawUpdateFavedStickers | tl.RawUpdateChannelReadMessagesContents | tl.RawUpdateContactsReset | tl.RawUpdateChannelAvailableMessages | tl.RawUpdateDialogUnreadMark | tl.RawUpdateMessagePoll | tl.RawUpdateChatDefaultBannedRights | tl.RawUpdateFolderPeers | tl.RawUpdatePeerSettings | tl.RawUpdatePeerLocated | tl.RawUpdateNewScheduledMessage | tl.RawUpdateDeleteScheduledMessages | tl.RawUpdateTheme | tl.RawUpdateGeoLiveViewed | tl.RawUpdateLoginToken | tl.RawUpdateMessagePollVote | tl.RawUpdateDialogFilter | tl.RawUpdateDialogFilterOrder | tl.RawUpdateDialogFilters | tl.RawUpdatePhoneCallSignalingData | tl.RawUpdateChannelMessageForwards | tl.RawUpdateReadChannelDiscussionInbox | tl.RawUpdateReadChannelDiscussionOutbox | tl.RawUpdatePeerBlocked | tl.RawUpdateChannelUserTyping | tl.RawUpdatePinnedMessages | tl.RawUpdatePinnedChannelMessages | tl.RawUpdateChat | tl.RawUpdateGroupCallParticipants | tl.RawUpdateGroupCall | tl.RawUpdatePeerHistoryTTL | tl.RawUpdateChatParticipant | tl.RawUpdateChannelParticipant | tl.RawUpdateBotStopped | tl.RawUpdateGroupCallConnection | tl.RawUpdateBotCommands | tl.RawUpdatePendingJoinRequests | tl.RawUpdateBotChatInviteRequester | tl.RawUpdateMessageReactions | tl.RawUpdateAttachMenuBots | tl.RawUpdateWebViewResultSent | tl.RawUpdateBotMenuButton | tl.RawUpdateSavedRingtones | tl.RawUpdateTranscribedAudio | tl.RawUpdateReadFeaturedEmojiStickers | tl.RawUpdateUserEmojiStatus | tl.RawUpdateRecentEmojiStatuses | tl.RawUpdateRecentReactions | tl.RawUpdateMoveStickerSetToTop | tl.RawUpdateMessageExtendedMedia | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.RawUpdateUser | tl.RawUpdateAutoSaveSettings | tl.RawUpdateGroupInvitePrivacyForbidden | tl.RawUpdateStory | tl.RawUpdateReadStories | tl.RawUpdateStoryID | tl.RawUpdateStoriesStealthMode | tl.RawUpdateSentStoryReaction | tl.RawUpdateBotChatBoost | tl.RawUpdateChannelViewForumAsMessages | tl.RawUpdatePeerWallpaper | tl.RawUpdateBotMessageReaction | tl.RawUpdateBotMessageReactions | tl.RawUpdateSavedDialogPinned | tl.RawUpdatePinnedSavedDialogs | tl.RawUpdateSavedReactionTags | tl.RawUpdateSmsJob | tl.RawUpdateQuickReplies | tl.RawUpdateNewQuickReply | tl.RawUpdateDeleteQuickReply | tl.RawUpdateQuickReplyMessage | tl.RawUpdateDeleteQuickReplyMessages | tl.mtcute.RawDummyUpdate
|
|
39646
40871
|
function isAnyUpdate(o: object): o is TypeUpdate
|
|
39647
40872
|
/**
|
|
39648
40873
|
* Peer
|
|
@@ -39919,9 +41144,18 @@ export class RpcError extends Error {
|
|
|
39919
41144
|
| tl.account.RawInvalidateSignInCodesRequest
|
|
39920
41145
|
| tl.account.RawUpdateColorRequest
|
|
39921
41146
|
| tl.account.RawGetDefaultBackgroundEmojisRequest
|
|
41147
|
+
| tl.account.RawGetChannelDefaultEmojiStatusesRequest
|
|
41148
|
+
| tl.account.RawGetChannelRestrictedStatusEmojisRequest
|
|
41149
|
+
| tl.account.RawUpdateBusinessWorkHoursRequest
|
|
41150
|
+
| tl.account.RawUpdateBusinessLocationRequest
|
|
41151
|
+
| tl.account.RawUpdateBusinessGreetingMessageRequest
|
|
41152
|
+
| tl.account.RawUpdateBusinessAwayMessageRequest
|
|
41153
|
+
| tl.account.RawUpdateConnectedBotRequest
|
|
41154
|
+
| tl.account.RawGetConnectedBotsRequest
|
|
39922
41155
|
| tl.users.RawGetUsersRequest
|
|
39923
41156
|
| tl.users.RawGetFullUserRequest
|
|
39924
41157
|
| tl.users.RawSetSecureValueErrorsRequest
|
|
41158
|
+
| tl.users.RawGetIsPremiumRequiredToContactRequest
|
|
39925
41159
|
| tl.contacts.RawGetContactIDsRequest
|
|
39926
41160
|
| tl.contacts.RawGetStatusesRequest
|
|
39927
41161
|
| tl.contacts.RawGetContactsRequest
|
|
@@ -40135,6 +41369,25 @@ export class RpcError extends Error {
|
|
|
40135
41369
|
| tl.messages.RawRequestAppWebViewRequest
|
|
40136
41370
|
| tl.messages.RawSetChatWallPaperRequest
|
|
40137
41371
|
| tl.messages.RawSearchEmojiStickerSetsRequest
|
|
41372
|
+
| tl.messages.RawGetSavedDialogsRequest
|
|
41373
|
+
| tl.messages.RawGetSavedHistoryRequest
|
|
41374
|
+
| tl.messages.RawDeleteSavedHistoryRequest
|
|
41375
|
+
| tl.messages.RawGetPinnedSavedDialogsRequest
|
|
41376
|
+
| tl.messages.RawToggleSavedDialogPinRequest
|
|
41377
|
+
| tl.messages.RawReorderPinnedSavedDialogsRequest
|
|
41378
|
+
| tl.messages.RawGetSavedReactionTagsRequest
|
|
41379
|
+
| tl.messages.RawUpdateSavedReactionTagRequest
|
|
41380
|
+
| tl.messages.RawGetDefaultTagReactionsRequest
|
|
41381
|
+
| tl.messages.RawGetOutboxReadDateRequest
|
|
41382
|
+
| tl.messages.RawGetQuickRepliesRequest
|
|
41383
|
+
| tl.messages.RawReorderQuickRepliesRequest
|
|
41384
|
+
| tl.messages.RawCheckQuickReplyShortcutRequest
|
|
41385
|
+
| tl.messages.RawEditQuickReplyShortcutRequest
|
|
41386
|
+
| tl.messages.RawDeleteQuickReplyShortcutRequest
|
|
41387
|
+
| tl.messages.RawGetQuickReplyMessagesRequest
|
|
41388
|
+
| tl.messages.RawSendQuickReplyMessagesRequest
|
|
41389
|
+
| tl.messages.RawDeleteQuickReplyMessagesRequest
|
|
41390
|
+
| tl.messages.RawToggleDialogFilterTagsRequest
|
|
40138
41391
|
| tl.updates.RawGetStateRequest
|
|
40139
41392
|
| tl.updates.RawGetDifferenceRequest
|
|
40140
41393
|
| tl.updates.RawGetChannelDifferenceRequest
|
|
@@ -40156,7 +41409,6 @@ export class RpcError extends Error {
|
|
|
40156
41409
|
| tl.help.RawGetAppUpdateRequest
|
|
40157
41410
|
| tl.help.RawGetInviteTextRequest
|
|
40158
41411
|
| tl.help.RawGetSupportRequest
|
|
40159
|
-
| tl.help.RawGetAppChangelogRequest
|
|
40160
41412
|
| tl.help.RawSetBotUpdatesStatusRequest
|
|
40161
41413
|
| tl.help.RawGetCdnConfigRequest
|
|
40162
41414
|
| tl.help.RawGetRecentMeUrlsRequest
|
|
@@ -40176,6 +41428,7 @@ export class RpcError extends Error {
|
|
|
40176
41428
|
| tl.help.RawGetPremiumPromoRequest
|
|
40177
41429
|
| tl.help.RawGetPeerColorsRequest
|
|
40178
41430
|
| tl.help.RawGetPeerProfileColorsRequest
|
|
41431
|
+
| tl.help.RawGetTimezonesListRequest
|
|
40179
41432
|
| tl.channels.RawReadHistoryRequest
|
|
40180
41433
|
| tl.channels.RawDeleteMessagesRequest
|
|
40181
41434
|
| tl.channels.RawReportSpamRequest
|
|
@@ -40235,6 +41488,9 @@ export class RpcError extends Error {
|
|
|
40235
41488
|
| tl.channels.RawUpdateColorRequest
|
|
40236
41489
|
| tl.channels.RawToggleViewForumAsMessagesRequest
|
|
40237
41490
|
| tl.channels.RawGetChannelRecommendationsRequest
|
|
41491
|
+
| tl.channels.RawUpdateEmojiStatusRequest
|
|
41492
|
+
| tl.channels.RawSetBoostsToUnblockRestrictionsRequest
|
|
41493
|
+
| tl.channels.RawSetEmojiStickersRequest
|
|
40238
41494
|
| tl.bots.RawSendCustomRequestRequest
|
|
40239
41495
|
| tl.bots.RawAnswerWebhookJSONQueryRequest
|
|
40240
41496
|
| tl.bots.RawSetBotCommandsRequest
|
|
@@ -40355,15 +41611,19 @@ export class RpcError extends Error {
|
|
|
40355
41611
|
| tl.stories.RawGetPeerMaxIDsRequest
|
|
40356
41612
|
| tl.stories.RawGetChatsToSendRequest
|
|
40357
41613
|
| tl.stories.RawTogglePeerStoriesHiddenRequest
|
|
41614
|
+
| tl.stories.RawGetStoryReactionsListRequest
|
|
40358
41615
|
| tl.premium.RawGetBoostsListRequest
|
|
40359
41616
|
| tl.premium.RawGetMyBoostsRequest
|
|
40360
41617
|
| tl.premium.RawApplyBoostRequest
|
|
40361
41618
|
| tl.premium.RawGetBoostsStatusRequest
|
|
40362
41619
|
| tl.premium.RawGetUserBoostsRequest
|
|
40363
|
-
| tl.
|
|
40364
|
-
| tl.
|
|
40365
|
-
| tl.
|
|
40366
|
-
| tl.
|
|
41620
|
+
| tl.smsjobs.RawIsEligibleToJoinRequest
|
|
41621
|
+
| tl.smsjobs.RawJoinRequest
|
|
41622
|
+
| tl.smsjobs.RawLeaveRequest
|
|
41623
|
+
| tl.smsjobs.RawUpdateSettingsRequest
|
|
41624
|
+
| tl.smsjobs.RawGetStatusRequest
|
|
41625
|
+
| tl.smsjobs.RawGetSmsJobRequest
|
|
41626
|
+
| tl.smsjobs.RawFinishJobRequest
|
|
40367
41627
|
|
|
40368
41628
|
type TlObject =
|
|
40369
41629
|
| tl.RawError
|
|
@@ -40476,6 +41736,7 @@ export class RpcError extends Error {
|
|
|
40476
41736
|
| tl.RawMessageMediaDice
|
|
40477
41737
|
| tl.RawMessageMediaStory
|
|
40478
41738
|
| tl.RawMessageMediaGiveaway
|
|
41739
|
+
| tl.RawMessageMediaGiveawayResults
|
|
40479
41740
|
| tl.RawMessageActionEmpty
|
|
40480
41741
|
| tl.RawMessageActionChatCreate
|
|
40481
41742
|
| tl.RawMessageActionChatEditTitle
|
|
@@ -40517,6 +41778,7 @@ export class RpcError extends Error {
|
|
|
40517
41778
|
| tl.RawMessageActionGiftCode
|
|
40518
41779
|
| tl.RawMessageActionGiveawayLaunch
|
|
40519
41780
|
| tl.RawMessageActionGiveawayResults
|
|
41781
|
+
| tl.RawMessageActionBoostApply
|
|
40520
41782
|
| tl.RawDialog
|
|
40521
41783
|
| tl.RawDialogFolder
|
|
40522
41784
|
| tl.RawPhotoEmpty
|
|
@@ -40711,6 +41973,17 @@ export class RpcError extends Error {
|
|
|
40711
41973
|
| tl.RawUpdateBotChatBoost
|
|
40712
41974
|
| tl.RawUpdateChannelViewForumAsMessages
|
|
40713
41975
|
| tl.RawUpdatePeerWallpaper
|
|
41976
|
+
| tl.RawUpdateBotMessageReaction
|
|
41977
|
+
| tl.RawUpdateBotMessageReactions
|
|
41978
|
+
| tl.RawUpdateSavedDialogPinned
|
|
41979
|
+
| tl.RawUpdatePinnedSavedDialogs
|
|
41980
|
+
| tl.RawUpdateSavedReactionTags
|
|
41981
|
+
| tl.RawUpdateSmsJob
|
|
41982
|
+
| tl.RawUpdateQuickReplies
|
|
41983
|
+
| tl.RawUpdateNewQuickReply
|
|
41984
|
+
| tl.RawUpdateDeleteQuickReply
|
|
41985
|
+
| tl.RawUpdateQuickReplyMessage
|
|
41986
|
+
| tl.RawUpdateDeleteQuickReplyMessages
|
|
40714
41987
|
| tl.updates.RawState
|
|
40715
41988
|
| tl.updates.RawDifferenceEmpty
|
|
40716
41989
|
| tl.updates.RawDifference
|
|
@@ -40861,6 +42134,7 @@ export class RpcError extends Error {
|
|
|
40861
42134
|
| tl.RawInputStickerSetEmojiGenericAnimations
|
|
40862
42135
|
| tl.RawInputStickerSetEmojiDefaultStatuses
|
|
40863
42136
|
| tl.RawInputStickerSetEmojiDefaultTopicIcons
|
|
42137
|
+
| tl.RawInputStickerSetEmojiChannelDefaultStatuses
|
|
40864
42138
|
| tl.RawStickerSet
|
|
40865
42139
|
| tl.messages.RawStickerSet
|
|
40866
42140
|
| tl.messages.RawStickerSetNotModified
|
|
@@ -41155,8 +42429,11 @@ export class RpcError extends Error {
|
|
|
41155
42429
|
| tl.RawChannelAdminLogEventActionDeleteTopic
|
|
41156
42430
|
| tl.RawChannelAdminLogEventActionPinTopic
|
|
41157
42431
|
| tl.RawChannelAdminLogEventActionToggleAntiSpam
|
|
41158
|
-
| tl.
|
|
41159
|
-
| tl.
|
|
42432
|
+
| tl.RawChannelAdminLogEventActionChangePeerColor
|
|
42433
|
+
| tl.RawChannelAdminLogEventActionChangeProfilePeerColor
|
|
42434
|
+
| tl.RawChannelAdminLogEventActionChangeWallpaper
|
|
42435
|
+
| tl.RawChannelAdminLogEventActionChangeEmojiStatus
|
|
42436
|
+
| tl.RawChannelAdminLogEventActionChangeEmojiStickerSet
|
|
41160
42437
|
| tl.RawChannelAdminLogEvent
|
|
41161
42438
|
| tl.channels.RawAdminLogResults
|
|
41162
42439
|
| tl.RawChannelAdminLogEventsFilter
|
|
@@ -41517,6 +42794,8 @@ export class RpcError extends Error {
|
|
|
41517
42794
|
| tl.stories.RawAllStories
|
|
41518
42795
|
| tl.stories.RawStories
|
|
41519
42796
|
| tl.RawStoryView
|
|
42797
|
+
| tl.RawStoryViewPublicForward
|
|
42798
|
+
| tl.RawStoryViewPublicRepost
|
|
41520
42799
|
| tl.stories.RawStoryViewsList
|
|
41521
42800
|
| tl.stories.RawStoryViews
|
|
41522
42801
|
| tl.RawInputReplyToMessage
|
|
@@ -41528,6 +42807,8 @@ export class RpcError extends Error {
|
|
|
41528
42807
|
| tl.RawInputMediaAreaVenue
|
|
41529
42808
|
| tl.RawMediaAreaGeoPoint
|
|
41530
42809
|
| tl.RawMediaAreaSuggestedReaction
|
|
42810
|
+
| tl.RawMediaAreaChannelPost
|
|
42811
|
+
| tl.RawInputMediaAreaChannelPost
|
|
41531
42812
|
| tl.RawPeerStories
|
|
41532
42813
|
| tl.stories.RawPeerStories
|
|
41533
42814
|
| tl.messages.RawWebPage
|
|
@@ -41554,27 +42835,44 @@ export class RpcError extends Error {
|
|
|
41554
42835
|
| tl.help.RawPeerColorOption
|
|
41555
42836
|
| tl.help.RawPeerColorsNotModified
|
|
41556
42837
|
| tl.help.RawPeerColors
|
|
41557
|
-
| tl.RawMessageMediaGiveawayResults
|
|
41558
|
-
| tl.RawUpdateBotMessageReaction
|
|
41559
|
-
| tl.RawUpdateBotMessageReactions
|
|
41560
|
-
| tl.RawInputStickerSetEmojiChannelDefaultStatuses
|
|
41561
|
-
| tl.RawChannelAdminLogEventActionChangePeerColor
|
|
41562
|
-
| tl.RawChannelAdminLogEventActionChangeProfilePeerColor
|
|
41563
|
-
| tl.RawChannelAdminLogEventActionChangeWallpaper
|
|
41564
|
-
| tl.RawChannelAdminLogEventActionChangeEmojiStatus
|
|
41565
|
-
| tl.RawStoryViewPublicForward
|
|
41566
|
-
| tl.RawStoryViewPublicRepost
|
|
41567
|
-
| tl.RawMediaAreaChannelPost
|
|
41568
|
-
| tl.RawInputMediaAreaChannelPost
|
|
41569
42838
|
| tl.RawStoryReaction
|
|
41570
42839
|
| tl.RawStoryReactionPublicForward
|
|
41571
42840
|
| tl.RawStoryReactionPublicRepost
|
|
41572
42841
|
| tl.stories.RawStoryReactionsList
|
|
41573
|
-
| tl.
|
|
41574
|
-
| tl.
|
|
41575
|
-
| tl.
|
|
41576
|
-
| tl.
|
|
41577
|
-
| tl.
|
|
42842
|
+
| tl.RawSavedDialog
|
|
42843
|
+
| tl.messages.RawSavedDialogs
|
|
42844
|
+
| tl.messages.RawSavedDialogsSlice
|
|
42845
|
+
| tl.messages.RawSavedDialogsNotModified
|
|
42846
|
+
| tl.RawSavedReactionTag
|
|
42847
|
+
| tl.messages.RawSavedReactionTagsNotModified
|
|
42848
|
+
| tl.messages.RawSavedReactionTags
|
|
42849
|
+
| tl.RawOutboxReadDate
|
|
42850
|
+
| tl.smsjobs.RawEligibleToJoin
|
|
42851
|
+
| tl.smsjobs.RawStatus
|
|
42852
|
+
| tl.RawSmsJob
|
|
42853
|
+
| tl.RawBusinessWeeklyOpen
|
|
42854
|
+
| tl.RawBusinessWorkHours
|
|
42855
|
+
| tl.RawBusinessLocation
|
|
42856
|
+
| tl.RawInputBusinessRecipients
|
|
42857
|
+
| tl.RawBusinessRecipients
|
|
42858
|
+
| tl.RawBusinessAwayMessageScheduleAlways
|
|
42859
|
+
| tl.RawBusinessAwayMessageScheduleOutsideWorkHours
|
|
42860
|
+
| tl.RawBusinessAwayMessageScheduleCustom
|
|
42861
|
+
| tl.RawInputBusinessGreetingMessage
|
|
42862
|
+
| tl.RawBusinessGreetingMessage
|
|
42863
|
+
| tl.RawInputBusinessAwayMessage
|
|
42864
|
+
| tl.RawBusinessAwayMessage
|
|
42865
|
+
| tl.RawTimezone
|
|
42866
|
+
| tl.help.RawTimezonesListNotModified
|
|
42867
|
+
| tl.help.RawTimezonesList
|
|
42868
|
+
| tl.RawQuickReply
|
|
42869
|
+
| tl.RawInputQuickReplyShortcut
|
|
42870
|
+
| tl.RawInputQuickReplyShortcutId
|
|
42871
|
+
| tl.messages.RawQuickReplies
|
|
42872
|
+
| tl.messages.RawQuickRepliesNotModified
|
|
42873
|
+
| tl.RawConnectedBot
|
|
42874
|
+
| tl.account.RawConnectedBots
|
|
42875
|
+
| tl.messages.RawDialogFilters
|
|
41578
42876
|
| tl.mtcute.RawDummyUpdate
|
|
41579
42877
|
| tl.mtcute.RawDummyInputPeerMinUser
|
|
41580
42878
|
| tl.mtcute.RawDummyInputPeerMinChannel
|
|
@@ -41700,9 +42998,18 @@ export class RpcError extends Error {
|
|
|
41700
42998
|
| tl.account.RawInvalidateSignInCodesRequest
|
|
41701
42999
|
| tl.account.RawUpdateColorRequest
|
|
41702
43000
|
| tl.account.RawGetDefaultBackgroundEmojisRequest
|
|
43001
|
+
| tl.account.RawGetChannelDefaultEmojiStatusesRequest
|
|
43002
|
+
| tl.account.RawGetChannelRestrictedStatusEmojisRequest
|
|
43003
|
+
| tl.account.RawUpdateBusinessWorkHoursRequest
|
|
43004
|
+
| tl.account.RawUpdateBusinessLocationRequest
|
|
43005
|
+
| tl.account.RawUpdateBusinessGreetingMessageRequest
|
|
43006
|
+
| tl.account.RawUpdateBusinessAwayMessageRequest
|
|
43007
|
+
| tl.account.RawUpdateConnectedBotRequest
|
|
43008
|
+
| tl.account.RawGetConnectedBotsRequest
|
|
41703
43009
|
| tl.users.RawGetUsersRequest
|
|
41704
43010
|
| tl.users.RawGetFullUserRequest
|
|
41705
43011
|
| tl.users.RawSetSecureValueErrorsRequest
|
|
43012
|
+
| tl.users.RawGetIsPremiumRequiredToContactRequest
|
|
41706
43013
|
| tl.contacts.RawGetContactIDsRequest
|
|
41707
43014
|
| tl.contacts.RawGetStatusesRequest
|
|
41708
43015
|
| tl.contacts.RawGetContactsRequest
|
|
@@ -41916,6 +43223,25 @@ export class RpcError extends Error {
|
|
|
41916
43223
|
| tl.messages.RawRequestAppWebViewRequest
|
|
41917
43224
|
| tl.messages.RawSetChatWallPaperRequest
|
|
41918
43225
|
| tl.messages.RawSearchEmojiStickerSetsRequest
|
|
43226
|
+
| tl.messages.RawGetSavedDialogsRequest
|
|
43227
|
+
| tl.messages.RawGetSavedHistoryRequest
|
|
43228
|
+
| tl.messages.RawDeleteSavedHistoryRequest
|
|
43229
|
+
| tl.messages.RawGetPinnedSavedDialogsRequest
|
|
43230
|
+
| tl.messages.RawToggleSavedDialogPinRequest
|
|
43231
|
+
| tl.messages.RawReorderPinnedSavedDialogsRequest
|
|
43232
|
+
| tl.messages.RawGetSavedReactionTagsRequest
|
|
43233
|
+
| tl.messages.RawUpdateSavedReactionTagRequest
|
|
43234
|
+
| tl.messages.RawGetDefaultTagReactionsRequest
|
|
43235
|
+
| tl.messages.RawGetOutboxReadDateRequest
|
|
43236
|
+
| tl.messages.RawGetQuickRepliesRequest
|
|
43237
|
+
| tl.messages.RawReorderQuickRepliesRequest
|
|
43238
|
+
| tl.messages.RawCheckQuickReplyShortcutRequest
|
|
43239
|
+
| tl.messages.RawEditQuickReplyShortcutRequest
|
|
43240
|
+
| tl.messages.RawDeleteQuickReplyShortcutRequest
|
|
43241
|
+
| tl.messages.RawGetQuickReplyMessagesRequest
|
|
43242
|
+
| tl.messages.RawSendQuickReplyMessagesRequest
|
|
43243
|
+
| tl.messages.RawDeleteQuickReplyMessagesRequest
|
|
43244
|
+
| tl.messages.RawToggleDialogFilterTagsRequest
|
|
41919
43245
|
| tl.updates.RawGetStateRequest
|
|
41920
43246
|
| tl.updates.RawGetDifferenceRequest
|
|
41921
43247
|
| tl.updates.RawGetChannelDifferenceRequest
|
|
@@ -41937,7 +43263,6 @@ export class RpcError extends Error {
|
|
|
41937
43263
|
| tl.help.RawGetAppUpdateRequest
|
|
41938
43264
|
| tl.help.RawGetInviteTextRequest
|
|
41939
43265
|
| tl.help.RawGetSupportRequest
|
|
41940
|
-
| tl.help.RawGetAppChangelogRequest
|
|
41941
43266
|
| tl.help.RawSetBotUpdatesStatusRequest
|
|
41942
43267
|
| tl.help.RawGetCdnConfigRequest
|
|
41943
43268
|
| tl.help.RawGetRecentMeUrlsRequest
|
|
@@ -41957,6 +43282,7 @@ export class RpcError extends Error {
|
|
|
41957
43282
|
| tl.help.RawGetPremiumPromoRequest
|
|
41958
43283
|
| tl.help.RawGetPeerColorsRequest
|
|
41959
43284
|
| tl.help.RawGetPeerProfileColorsRequest
|
|
43285
|
+
| tl.help.RawGetTimezonesListRequest
|
|
41960
43286
|
| tl.channels.RawReadHistoryRequest
|
|
41961
43287
|
| tl.channels.RawDeleteMessagesRequest
|
|
41962
43288
|
| tl.channels.RawReportSpamRequest
|
|
@@ -42016,6 +43342,9 @@ export class RpcError extends Error {
|
|
|
42016
43342
|
| tl.channels.RawUpdateColorRequest
|
|
42017
43343
|
| tl.channels.RawToggleViewForumAsMessagesRequest
|
|
42018
43344
|
| tl.channels.RawGetChannelRecommendationsRequest
|
|
43345
|
+
| tl.channels.RawUpdateEmojiStatusRequest
|
|
43346
|
+
| tl.channels.RawSetBoostsToUnblockRestrictionsRequest
|
|
43347
|
+
| tl.channels.RawSetEmojiStickersRequest
|
|
42019
43348
|
| tl.bots.RawSendCustomRequestRequest
|
|
42020
43349
|
| tl.bots.RawAnswerWebhookJSONQueryRequest
|
|
42021
43350
|
| tl.bots.RawSetBotCommandsRequest
|
|
@@ -42136,15 +43465,19 @@ export class RpcError extends Error {
|
|
|
42136
43465
|
| tl.stories.RawGetPeerMaxIDsRequest
|
|
42137
43466
|
| tl.stories.RawGetChatsToSendRequest
|
|
42138
43467
|
| tl.stories.RawTogglePeerStoriesHiddenRequest
|
|
43468
|
+
| tl.stories.RawGetStoryReactionsListRequest
|
|
42139
43469
|
| tl.premium.RawGetBoostsListRequest
|
|
42140
43470
|
| tl.premium.RawGetMyBoostsRequest
|
|
42141
43471
|
| tl.premium.RawApplyBoostRequest
|
|
42142
43472
|
| tl.premium.RawGetBoostsStatusRequest
|
|
42143
43473
|
| tl.premium.RawGetUserBoostsRequest
|
|
42144
|
-
| tl.
|
|
42145
|
-
| tl.
|
|
42146
|
-
| tl.
|
|
42147
|
-
| tl.
|
|
43474
|
+
| tl.smsjobs.RawIsEligibleToJoinRequest
|
|
43475
|
+
| tl.smsjobs.RawJoinRequest
|
|
43476
|
+
| tl.smsjobs.RawLeaveRequest
|
|
43477
|
+
| tl.smsjobs.RawUpdateSettingsRequest
|
|
43478
|
+
| tl.smsjobs.RawGetStatusRequest
|
|
43479
|
+
| tl.smsjobs.RawGetSmsJobRequest
|
|
43480
|
+
| tl.smsjobs.RawFinishJobRequest
|
|
42148
43481
|
}
|
|
42149
43482
|
|
|
42150
43483
|
|