@mtcute/core 0.29.6 → 0.30.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/client.cjs +8 -0
- package/client.js +8 -0
- package/highlevel/client.d.cts +23 -7
- package/highlevel/client.d.ts +23 -7
- package/highlevel/methods/bots/answer-bot-guest-chat-query.cjs +26 -0
- package/highlevel/methods/bots/answer-bot-guest-chat-query.d.cts +12 -0
- package/highlevel/methods/bots/answer-bot-guest-chat-query.d.ts +12 -0
- package/highlevel/methods/bots/answer-bot-guest-chat-query.js +21 -0
- package/highlevel/methods/chats/join-chat.cjs +38 -16
- package/highlevel/methods/chats/join-chat.d.cts +20 -6
- package/highlevel/methods/chats/join-chat.d.ts +20 -6
- package/highlevel/methods/chats/join-chat.js +38 -16
- package/highlevel/methods/chats/save-draft.d.cts +4 -1
- package/highlevel/methods/chats/save-draft.d.ts +4 -1
- package/highlevel/methods/messages/send-copy-group.cjs +5 -9
- package/highlevel/methods/messages/send-copy-group.js +5 -9
- package/highlevel/methods.d.cts +3 -0
- package/highlevel/methods.d.ts +3 -0
- package/highlevel/storage/service/peers.cjs +2 -0
- package/highlevel/storage/service/peers.js +2 -0
- package/highlevel/types/files/utils.d.cts +1 -1
- package/highlevel/types/files/utils.d.ts +1 -1
- package/highlevel/types/media/poll.cjs +14 -0
- package/highlevel/types/media/poll.d.cts +6 -0
- package/highlevel/types/media/poll.d.ts +6 -0
- package/highlevel/types/media/poll.js +14 -0
- package/highlevel/types/messages/index.d.cts +1 -0
- package/highlevel/types/messages/index.d.ts +1 -0
- package/highlevel/types/messages/message.cjs +15 -1
- package/highlevel/types/messages/message.d.cts +8 -0
- package/highlevel/types/messages/message.d.ts +8 -0
- package/highlevel/types/messages/message.js +15 -1
- package/highlevel/types/messages/rich-message.cjs +50 -0
- package/highlevel/types/messages/rich-message.d.cts +18 -0
- package/highlevel/types/messages/rich-message.d.ts +18 -0
- package/highlevel/types/messages/rich-message.js +45 -0
- package/highlevel/types/peers/chat-permissions.cjs +6 -0
- package/highlevel/types/peers/chat-permissions.d.cts +4 -0
- package/highlevel/types/peers/chat-permissions.d.ts +4 -0
- package/highlevel/types/peers/chat-permissions.js +6 -0
- package/highlevel/types/peers/full-chat.cjs +6 -0
- package/highlevel/types/peers/full-chat.d.cts +2 -0
- package/highlevel/types/peers/full-chat.d.ts +2 -0
- package/highlevel/types/peers/full-chat.js +6 -0
- package/highlevel/types/peers/user.cjs +8 -0
- package/highlevel/types/peers/user.d.cts +4 -0
- package/highlevel/types/peers/user.d.ts +4 -0
- package/highlevel/types/peers/user.js +8 -0
- package/highlevel/types/updates/bot-guest-chat-query.cjs +39 -0
- package/highlevel/types/updates/bot-guest-chat-query.d.cts +21 -0
- package/highlevel/types/updates/bot-guest-chat-query.d.ts +21 -0
- package/highlevel/types/updates/bot-guest-chat-query.js +34 -0
- package/highlevel/types/updates/index.d.cts +5 -1
- package/highlevel/types/updates/index.d.ts +5 -1
- package/highlevel/types/updates/parse-update.cjs +3 -0
- package/highlevel/types/updates/parse-update.js +3 -0
- package/highlevel/types/updates/user-typing-update.cjs +2 -0
- package/highlevel/types/updates/user-typing-update.js +2 -0
- package/highlevel/updates/manager.cjs +214 -3
- package/highlevel/updates/manager.d.cts +1 -0
- package/highlevel/updates/manager.d.ts +1 -0
- package/highlevel/updates/manager.js +214 -3
- package/highlevel/utils/inspectable.cjs +1 -0
- package/highlevel/utils/inspectable.d.cts +1 -0
- package/highlevel/utils/inspectable.d.ts +1 -0
- package/highlevel/utils/inspectable.js +1 -0
- package/index.cjs +4 -0
- package/index.js +4 -0
- package/methods.cjs +2 -0
- package/methods.js +2 -0
- package/network/flood-control.cjs +149 -0
- package/network/flood-control.d.cts +79 -0
- package/network/flood-control.d.ts +79 -0
- package/network/flood-control.js +144 -0
- package/network/flood-control.test.d.cts +1 -0
- package/network/flood-control.test.d.ts +1 -0
- package/network/mtproto-session.cjs +1 -21
- package/network/mtproto-session.d.cts +1 -5
- package/network/mtproto-session.d.ts +1 -5
- package/network/mtproto-session.js +2 -22
- package/network/multi-session-connection.cjs +26 -16
- package/network/multi-session-connection.d.cts +1 -1
- package/network/multi-session-connection.d.ts +1 -1
- package/network/multi-session-connection.js +26 -16
- package/network/multi-session-connection.test.d.cts +1 -0
- package/network/multi-session-connection.test.d.ts +1 -0
- package/network/network-manager.cjs +3 -2
- package/network/network-manager.d.cts +12 -0
- package/network/network-manager.d.ts +12 -0
- package/network/network-manager.js +3 -2
- package/network/persistent-connection.cjs +25 -1
- package/network/persistent-connection.d.cts +5 -0
- package/network/persistent-connection.d.ts +5 -0
- package/network/persistent-connection.js +25 -1
- package/network/session-connection.cjs +5 -10
- package/network/session-connection.d.cts +0 -2
- package/network/session-connection.d.ts +0 -2
- package/network/session-connection.js +5 -10
- package/package.json +1 -1
- package/tl/api-schema.json +1 -1
- package/tl/binary/reader.cjs +257 -62
- package/tl/binary/reader.js +257 -62
- package/tl/binary/writer.cjs +837 -212
- package/tl/binary/writer.js +837 -212
- package/tl/compat/reader.cjs +31 -0
- package/tl/compat/reader.js +31 -0
- package/tl/index.d.cts +2478 -186
- package/tl/index.d.ts +2478 -186
- package/tl/inner-tl.cjs +34 -10
- package/tl/inner-tl.js +34 -10
- package/utils/binary/compat.cjs +84 -0
- package/utils/binary/compat.js +84 -0
- package/utils/index.d.cts +1 -0
- package/utils/index.d.ts +1 -0
- package/utils/long-utils.cjs +10 -0
- package/utils/long-utils.js +10 -0
- package/utils.cjs +7 -0
- package/utils.js +8 -1
package/tl/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as _Long } from 'long';
|
|
2
2
|
export declare namespace tl {
|
|
3
|
-
const LAYER =
|
|
3
|
+
const LAYER = 227;
|
|
4
4
|
|
|
5
5
|
type Long = _Long;
|
|
6
6
|
type RawLong = Uint8Array;
|
|
@@ -806,6 +806,11 @@ export class RpcError extends Error {
|
|
|
806
806
|
* Contact's last name
|
|
807
807
|
*/
|
|
808
808
|
lastName: string;
|
|
809
|
+
/**
|
|
810
|
+
* A private note for this contact, only visible to us; see
|
|
811
|
+
* <a href="https://corefork.telegram.org/api/contacts#private-notes-for-contacts">here
|
|
812
|
+
* »</a> for more info on contact notes.
|
|
813
|
+
*/
|
|
809
814
|
note?: tl.TypeTextWithEntities;
|
|
810
815
|
}
|
|
811
816
|
/**
|
|
@@ -1894,9 +1899,23 @@ export class RpcError extends Error {
|
|
|
1894
1899
|
* Mini App »</a>.
|
|
1895
1900
|
*/
|
|
1896
1901
|
botHasMainApp?: boolean;
|
|
1902
|
+
/**
|
|
1903
|
+
* If set, this bot supports
|
|
1904
|
+
* <a href="https://corefork.telegram.org/api/forum#bot-forums">bot
|
|
1905
|
+
* forum topics »</a>.
|
|
1906
|
+
*/
|
|
1897
1907
|
botForumView?: boolean;
|
|
1908
|
+
/**
|
|
1909
|
+
* If set, this bot supports
|
|
1910
|
+
* <a href="https://corefork.telegram.org/api/forum#bot-forums">bot
|
|
1911
|
+
* forum topics »</a>, and users (not just the bot!) are
|
|
1912
|
+
* allowed to create and manage bot forum topics in their
|
|
1913
|
+
* private chat with the bot.
|
|
1914
|
+
*/
|
|
1898
1915
|
botForumCanManageTopics?: boolean;
|
|
1899
1916
|
botCanManageBots?: boolean;
|
|
1917
|
+
botGuestchat?: boolean;
|
|
1918
|
+
botGuard?: boolean;
|
|
1900
1919
|
/**
|
|
1901
1920
|
* ID of the user, see
|
|
1902
1921
|
* <a href="https://corefork.telegram.org/api/peers#peer-id">here
|
|
@@ -2313,7 +2332,7 @@ export class RpcError extends Error {
|
|
|
2313
2332
|
callNotEmpty?: boolean;
|
|
2314
2333
|
/**
|
|
2315
2334
|
* Whether this group is
|
|
2316
|
-
* <a href="https://telegram.org/blog/
|
|
2335
|
+
* <a href="https://telegram.org/blog/content-protection-delete-by-date-and-more">protected</a>,
|
|
2317
2336
|
* thus does not allow forwarding messages from it
|
|
2318
2337
|
*/
|
|
2319
2338
|
noforwards?: boolean;
|
|
@@ -2515,7 +2534,7 @@ export class RpcError extends Error {
|
|
|
2515
2534
|
gigagroup?: boolean;
|
|
2516
2535
|
/**
|
|
2517
2536
|
* Whether this channel or group is
|
|
2518
|
-
* <a href="https://telegram.org/blog/
|
|
2537
|
+
* <a href="https://telegram.org/blog/content-protection-delete-by-date-and-more">protected</a>,
|
|
2519
2538
|
* thus does not allow forwarding messages from it
|
|
2520
2539
|
*/
|
|
2521
2540
|
noforwards?: boolean;
|
|
@@ -2761,6 +2780,11 @@ export class RpcError extends Error {
|
|
|
2761
2780
|
* Is this a supergroup
|
|
2762
2781
|
*/
|
|
2763
2782
|
megagroup?: boolean;
|
|
2783
|
+
/**
|
|
2784
|
+
* If set, this is a
|
|
2785
|
+
* <a href="https://corefork.telegram.org/api/monoforum">monoforum
|
|
2786
|
+
* »</a>.
|
|
2787
|
+
*/
|
|
2764
2788
|
monoforum?: boolean;
|
|
2765
2789
|
/**
|
|
2766
2790
|
* Channel ID
|
|
@@ -2939,8 +2963,9 @@ export class RpcError extends Error {
|
|
|
2939
2963
|
canViewStats?: boolean;
|
|
2940
2964
|
/**
|
|
2941
2965
|
* Whether any anonymous admin of this supergroup was blocked:
|
|
2942
|
-
* if set, you won't receive messages from
|
|
2943
|
-
* admins
|
|
2966
|
+
* if set, you won't receive messages from
|
|
2967
|
+
* <a href="https://corefork.telegram.org/api/rights#anonymous-admins">anonymous
|
|
2968
|
+
* group admins »</a> in
|
|
2944
2969
|
* <a href="https://corefork.telegram.org/api/discussion">discussion
|
|
2945
2970
|
* replies via @replies</a>
|
|
2946
2971
|
*/
|
|
@@ -3273,9 +3298,11 @@ export class RpcError extends Error {
|
|
|
3273
3298
|
* »</a> for more info.
|
|
3274
3299
|
*/
|
|
3275
3300
|
mainTab?: tl.TypeProfileTab;
|
|
3301
|
+
guardBotId?: number;
|
|
3276
3302
|
}
|
|
3277
3303
|
/**
|
|
3278
|
-
*
|
|
3304
|
+
* <a href="https://corefork.telegram.org/api/channel#basic-groups">Basic
|
|
3305
|
+
* group</a> member (not usable by supergroups).
|
|
3279
3306
|
*/
|
|
3280
3307
|
interface RawChatParticipant {
|
|
3281
3308
|
_: 'chatParticipant';
|
|
@@ -3291,10 +3318,16 @@ export class RpcError extends Error {
|
|
|
3291
3318
|
* Date added to the group
|
|
3292
3319
|
*/
|
|
3293
3320
|
date: number;
|
|
3321
|
+
/**
|
|
3322
|
+
* The participant's
|
|
3323
|
+
* <a href="https://corefork.telegram.org/api/rank">tag »</a>.
|
|
3324
|
+
*/
|
|
3294
3325
|
rank?: string;
|
|
3295
3326
|
}
|
|
3296
3327
|
/**
|
|
3297
|
-
* Represents the creator of the
|
|
3328
|
+
* Represents the creator of the
|
|
3329
|
+
* <a href="https://corefork.telegram.org/api/channel#basic-groups">basic
|
|
3330
|
+
* group »</a>
|
|
3298
3331
|
*/
|
|
3299
3332
|
interface RawChatParticipantCreator {
|
|
3300
3333
|
_: 'chatParticipantCreator';
|
|
@@ -3302,10 +3335,15 @@ export class RpcError extends Error {
|
|
|
3302
3335
|
* ID of the user that created the group
|
|
3303
3336
|
*/
|
|
3304
3337
|
userId: number;
|
|
3338
|
+
/**
|
|
3339
|
+
* The participant's
|
|
3340
|
+
* <a href="https://corefork.telegram.org/api/rank">tag »</a>.
|
|
3341
|
+
*/
|
|
3305
3342
|
rank?: string;
|
|
3306
3343
|
}
|
|
3307
3344
|
/**
|
|
3308
|
-
*
|
|
3345
|
+
* <a href="https://corefork.telegram.org/api/channel#basic-groups">Basic
|
|
3346
|
+
* group</a> admin (not usable by supergroups).
|
|
3309
3347
|
*/
|
|
3310
3348
|
interface RawChatParticipantAdmin {
|
|
3311
3349
|
_: 'chatParticipantAdmin';
|
|
@@ -3321,10 +3359,17 @@ export class RpcError extends Error {
|
|
|
3321
3359
|
* Date when the user was added
|
|
3322
3360
|
*/
|
|
3323
3361
|
date: number;
|
|
3362
|
+
/**
|
|
3363
|
+
* The participant's
|
|
3364
|
+
* <a href="https://corefork.telegram.org/api/rank">tag »</a>.
|
|
3365
|
+
*/
|
|
3324
3366
|
rank?: string;
|
|
3325
3367
|
}
|
|
3326
3368
|
/**
|
|
3327
|
-
*
|
|
3369
|
+
* The full list of members of
|
|
3370
|
+
* <a href="https://corefork.telegram.org/api/channel#basic-groups">basic
|
|
3371
|
+
* groups »</a> is not available to you, because you were
|
|
3372
|
+
* banned.
|
|
3328
3373
|
*/
|
|
3329
3374
|
interface RawChatParticipantsForbidden {
|
|
3330
3375
|
_: 'chatParticipantsForbidden';
|
|
@@ -3338,7 +3383,10 @@ export class RpcError extends Error {
|
|
|
3338
3383
|
selfParticipant?: tl.TypeChatParticipant;
|
|
3339
3384
|
}
|
|
3340
3385
|
/**
|
|
3341
|
-
*
|
|
3386
|
+
* Contains the full list of members of
|
|
3387
|
+
* <a href="https://corefork.telegram.org/api/channel#basic-groups">basic
|
|
3388
|
+
* groups »</a>; is <strong>NOT</strong> usable for
|
|
3389
|
+
* supergroups/channels.
|
|
3342
3390
|
*/
|
|
3343
3391
|
interface RawChatParticipants {
|
|
3344
3392
|
_: 'chatParticipants';
|
|
@@ -3448,7 +3496,7 @@ export class RpcError extends Error {
|
|
|
3448
3496
|
pinned?: boolean;
|
|
3449
3497
|
/**
|
|
3450
3498
|
* Whether this message is
|
|
3451
|
-
* <a href="https://telegram.org/blog/
|
|
3499
|
+
* <a href="https://telegram.org/blog/content-protection-delete-by-date-and-more">protected</a>
|
|
3452
3500
|
* and thus cannot be forwarded; clients should also prevent
|
|
3453
3501
|
* users from saving attached media (i.e. videos should only be
|
|
3454
3502
|
* streamed, photos should be kept in RAM, et cetera).
|
|
@@ -3525,6 +3573,15 @@ export class RpcError extends Error {
|
|
|
3525
3573
|
* users, even if their boosts have changed.
|
|
3526
3574
|
*/
|
|
3527
3575
|
fromBoostsApplied?: number;
|
|
3576
|
+
/**
|
|
3577
|
+
* Only in
|
|
3578
|
+
* <a href="https://corefork.telegram.org/api/channel#supergroups">supergroups
|
|
3579
|
+
* »</a> (never basic groups, where this information is
|
|
3580
|
+
* contained
|
|
3581
|
+
* <a href="https://corefork.telegram.org/api/rank">elsewhere
|
|
3582
|
+
* »</a>), contains the sender's
|
|
3583
|
+
* <a href="https://corefork.telegram.org/api/rank">tag »</a>.
|
|
3584
|
+
*/
|
|
3528
3585
|
fromRank?: string;
|
|
3529
3586
|
/**
|
|
3530
3587
|
* Peer ID, the chat where this message was sent
|
|
@@ -3560,6 +3617,7 @@ export class RpcError extends Error {
|
|
|
3560
3617
|
* the user.
|
|
3561
3618
|
*/
|
|
3562
3619
|
viaBusinessBotId?: number;
|
|
3620
|
+
guestchatViaFrom?: tl.TypePeer;
|
|
3563
3621
|
/**
|
|
3564
3622
|
* Reply information
|
|
3565
3623
|
*/
|
|
@@ -3678,8 +3736,15 @@ export class RpcError extends Error {
|
|
|
3678
3736
|
* full flow.
|
|
3679
3737
|
*/
|
|
3680
3738
|
suggestedPost?: tl.TypeSuggestedPost;
|
|
3739
|
+
/**
|
|
3740
|
+
* Once sent, this message will be automatically re-scheduled
|
|
3741
|
+
* to be re-sent again this many seconds in the future, see
|
|
3742
|
+
* <a href="https://corefork.telegram.org/api/scheduled-messages#repeating-scheduled-messages">here
|
|
3743
|
+
* »</a> for more info on repeating scheduled messages.
|
|
3744
|
+
*/
|
|
3681
3745
|
scheduleRepeatPeriod?: number;
|
|
3682
3746
|
summaryFromLanguage?: string;
|
|
3747
|
+
richMessage?: tl.TypeRichMessage;
|
|
3683
3748
|
}
|
|
3684
3749
|
/**
|
|
3685
3750
|
* Indicates a service message
|
|
@@ -5245,6 +5310,11 @@ export class RpcError extends Error {
|
|
|
5245
5310
|
* pre-payment for the upgrade of a gift we own</a>.
|
|
5246
5311
|
*/
|
|
5247
5312
|
upgradeSeparate?: boolean;
|
|
5313
|
+
/**
|
|
5314
|
+
* If set, this gift was acquired in a
|
|
5315
|
+
* <a href="https://corefork.telegram.org/api/auctions">collectible
|
|
5316
|
+
* gifts auction »</a>.
|
|
5317
|
+
*/
|
|
5248
5318
|
auctionAcquired?: boolean;
|
|
5249
5319
|
/**
|
|
5250
5320
|
* Info about the gift
|
|
@@ -5401,6 +5471,13 @@ export class RpcError extends Error {
|
|
|
5401
5471
|
* the specified unixtime.
|
|
5402
5472
|
*/
|
|
5403
5473
|
canResellAt?: number;
|
|
5474
|
+
/**
|
|
5475
|
+
* If set, the {@link RawStarGiftAttributeOriginalDetails}
|
|
5476
|
+
* attribute of this gift may be removed by paying the
|
|
5477
|
+
* specified amount of stars, see
|
|
5478
|
+
* <a href="https://corefork.telegram.org/api/gifts#dropping-the-original-details-of-an-upgraded-gift">here
|
|
5479
|
+
* »</a> for the full flow.
|
|
5480
|
+
*/
|
|
5404
5481
|
dropOriginalDetailsStars?: Long;
|
|
5405
5482
|
canCraftAt?: number;
|
|
5406
5483
|
}
|
|
@@ -5612,8 +5689,17 @@ export class RpcError extends Error {
|
|
|
5612
5689
|
*/
|
|
5613
5690
|
transactionId?: string;
|
|
5614
5691
|
}
|
|
5692
|
+
/**
|
|
5693
|
+
* A new birthday was suggested using
|
|
5694
|
+
* {@link users.RawSuggestBirthdayRequest}, see
|
|
5695
|
+
* <a href="https://corefork.telegram.org/api/profile#birthday">here
|
|
5696
|
+
* »</a> for more info on birthdays in the API.
|
|
5697
|
+
*/
|
|
5615
5698
|
interface RawMessageActionSuggestBirthday {
|
|
5616
5699
|
_: 'messageActionSuggestBirthday';
|
|
5700
|
+
/**
|
|
5701
|
+
* The suggested birthday.
|
|
5702
|
+
*/
|
|
5617
5703
|
birthday: tl.TypeBirthday;
|
|
5618
5704
|
}
|
|
5619
5705
|
interface RawMessageActionStarGiftPurchaseOffer {
|
|
@@ -5638,17 +5724,60 @@ export class RpcError extends Error {
|
|
|
5638
5724
|
_: 'messageActionChangeCreator';
|
|
5639
5725
|
newCreatorId: number;
|
|
5640
5726
|
}
|
|
5727
|
+
/**
|
|
5728
|
+
* Emitted only in private chats when enabling or disabling
|
|
5729
|
+
* <a href="https://corefork.telegram.org/api/content-protection#for-users">content
|
|
5730
|
+
* protection »</a>.
|
|
5731
|
+
*/
|
|
5641
5732
|
interface RawMessageActionNoForwardsToggle {
|
|
5642
5733
|
_: 'messageActionNoForwardsToggle';
|
|
5734
|
+
/**
|
|
5735
|
+
* Previous protection status (if true, the chat was
|
|
5736
|
+
* protected). May be equal to <code>new_value</code> when
|
|
5737
|
+
* replying to requests, see
|
|
5738
|
+
* <a href="https://corefork.telegram.org/api/content-protection#for-users">here
|
|
5739
|
+
* »</a> for more info on the full flow.
|
|
5740
|
+
*/
|
|
5643
5741
|
prevValue: boolean;
|
|
5742
|
+
/**
|
|
5743
|
+
* New protection status.
|
|
5744
|
+
*/
|
|
5644
5745
|
newValue: boolean;
|
|
5645
5746
|
}
|
|
5747
|
+
/**
|
|
5748
|
+
* Emitted only in private chats if the other side requested to
|
|
5749
|
+
* disable
|
|
5750
|
+
* <a href="https://corefork.telegram.org/api/content-protection#for-users">content
|
|
5751
|
+
* protection »</a>.
|
|
5752
|
+
*/
|
|
5646
5753
|
interface RawMessageActionNoForwardsRequest {
|
|
5647
5754
|
_: 'messageActionNoForwardsRequest';
|
|
5755
|
+
/**
|
|
5756
|
+
* If set, this request was accepted or rejected by the other
|
|
5757
|
+
* user and thus cannot be used anymore.
|
|
5758
|
+
*/
|
|
5648
5759
|
expired?: boolean;
|
|
5760
|
+
/**
|
|
5761
|
+
* Previous protection status.
|
|
5762
|
+
*/
|
|
5649
5763
|
prevValue: boolean;
|
|
5764
|
+
/**
|
|
5765
|
+
* New requested protection status.
|
|
5766
|
+
*/
|
|
5650
5767
|
newValue: boolean;
|
|
5651
5768
|
}
|
|
5769
|
+
interface RawMessageActionPollAppendAnswer {
|
|
5770
|
+
_: 'messageActionPollAppendAnswer';
|
|
5771
|
+
answer: tl.TypePollAnswer;
|
|
5772
|
+
}
|
|
5773
|
+
interface RawMessageActionPollDeleteAnswer {
|
|
5774
|
+
_: 'messageActionPollDeleteAnswer';
|
|
5775
|
+
answer: tl.TypePollAnswer;
|
|
5776
|
+
}
|
|
5777
|
+
interface RawMessageActionManagedBotCreated {
|
|
5778
|
+
_: 'messageActionManagedBotCreated';
|
|
5779
|
+
botId: number;
|
|
5780
|
+
}
|
|
5652
5781
|
/**
|
|
5653
5782
|
* Chat
|
|
5654
5783
|
*/
|
|
@@ -6502,7 +6631,18 @@ export class RpcError extends Error {
|
|
|
6502
6631
|
* Gifts »</a>.
|
|
6503
6632
|
*/
|
|
6504
6633
|
displayGiftsButton?: boolean;
|
|
6634
|
+
/**
|
|
6635
|
+
* If set,
|
|
6636
|
+
* <a href="https://corefork.telegram.org/api/content-protection#for-users">content
|
|
6637
|
+
* protection »</a> was enabled in this private chat by us.
|
|
6638
|
+
*/
|
|
6505
6639
|
noforwardsMyEnabled?: boolean;
|
|
6640
|
+
/**
|
|
6641
|
+
* If set,
|
|
6642
|
+
* <a href="https://corefork.telegram.org/api/content-protection#for-users">content
|
|
6643
|
+
* protection »</a> was enabled in this private chat by this
|
|
6644
|
+
* user.
|
|
6645
|
+
*/
|
|
6506
6646
|
noforwardsPeerEnabled?: boolean;
|
|
6507
6647
|
unofficialSecurityRisk?: boolean;
|
|
6508
6648
|
/**
|
|
@@ -6715,6 +6855,11 @@ export class RpcError extends Error {
|
|
|
6715
6855
|
* »</a> for more info on the music profile tab.
|
|
6716
6856
|
*/
|
|
6717
6857
|
savedMusic?: tl.TypeDocument;
|
|
6858
|
+
/**
|
|
6859
|
+
* A private note for this contact, only visible to us; see
|
|
6860
|
+
* <a href="https://corefork.telegram.org/api/contacts#private-notes-for-contacts">here
|
|
6861
|
+
* »</a> for more info on contact notes.
|
|
6862
|
+
*/
|
|
6718
6863
|
note?: tl.TypeTextWithEntities;
|
|
6719
6864
|
botManagerId?: number;
|
|
6720
6865
|
}
|
|
@@ -6870,6 +7015,9 @@ export class RpcError extends Error {
|
|
|
6870
7015
|
interface RawInputMessagesFilterPinned {
|
|
6871
7016
|
_: 'inputMessagesFilterPinned';
|
|
6872
7017
|
}
|
|
7018
|
+
interface RawInputMessagesFilterPoll {
|
|
7019
|
+
_: 'inputMessagesFilterPoll';
|
|
7020
|
+
}
|
|
6873
7021
|
/**
|
|
6874
7022
|
* New message in a private chat or in a
|
|
6875
7023
|
* <a href="https://core.telegram.org/api/channel#basic-groups">basic
|
|
@@ -6939,6 +7087,11 @@ export class RpcError extends Error {
|
|
|
6939
7087
|
* User id
|
|
6940
7088
|
*/
|
|
6941
7089
|
userId: number;
|
|
7090
|
+
/**
|
|
7091
|
+
* If set, this notification was sent within a
|
|
7092
|
+
* <a href="https://corefork.telegram.org/api/forum#bot-forums">bot
|
|
7093
|
+
* forum topic »</a>.
|
|
7094
|
+
*/
|
|
6942
7095
|
topMsgId?: number;
|
|
6943
7096
|
/**
|
|
6944
7097
|
* Action type
|
|
@@ -6969,12 +7122,18 @@ export class RpcError extends Error {
|
|
|
6969
7122
|
action: tl.TypeSendMessageAction;
|
|
6970
7123
|
}
|
|
6971
7124
|
/**
|
|
6972
|
-
*
|
|
7125
|
+
* The participants of a
|
|
7126
|
+
* <a href="https://corefork.telegram.org/api/channel#basic-groups">basic
|
|
7127
|
+
* group »</a> changed.
|
|
6973
7128
|
*/
|
|
6974
7129
|
interface RawUpdateChatParticipants {
|
|
6975
7130
|
_: 'updateChatParticipants';
|
|
6976
7131
|
/**
|
|
6977
|
-
* Updated chat participants
|
|
7132
|
+
* Updated chat participants (also contains the
|
|
7133
|
+
* <code>version</code> used to deduplicate/update outdated
|
|
7134
|
+
* chat information as specified
|
|
7135
|
+
* <a href="https://corefork.telegram.org/api/peers#basic-group-updates">here
|
|
7136
|
+
* »</a>).
|
|
6978
7137
|
*/
|
|
6979
7138
|
participants: tl.TypeChatParticipants;
|
|
6980
7139
|
}
|
|
@@ -7132,12 +7291,17 @@ export class RpcError extends Error {
|
|
|
7132
7291
|
*/
|
|
7133
7292
|
date: number;
|
|
7134
7293
|
/**
|
|
7135
|
-
*
|
|
7294
|
+
* Used similarly to <code>pts</code> values to
|
|
7295
|
+
* deduplicate/update outdated chat information as specified
|
|
7296
|
+
* <a href="https://corefork.telegram.org/api/peers#basic-group-updates">here
|
|
7297
|
+
* »</a>.
|
|
7136
7298
|
*/
|
|
7137
7299
|
version: number;
|
|
7138
7300
|
}
|
|
7139
7301
|
/**
|
|
7140
|
-
* A member has left the
|
|
7302
|
+
* A member has left the
|
|
7303
|
+
* <a href="https://corefork.telegram.org/api/channel#basic-groups">basic
|
|
7304
|
+
* group</a>.
|
|
7141
7305
|
*/
|
|
7142
7306
|
interface RawUpdateChatParticipantDelete {
|
|
7143
7307
|
_: 'updateChatParticipantDelete';
|
|
@@ -7150,8 +7314,10 @@ export class RpcError extends Error {
|
|
|
7150
7314
|
*/
|
|
7151
7315
|
userId: number;
|
|
7152
7316
|
/**
|
|
7153
|
-
* Used
|
|
7154
|
-
*
|
|
7317
|
+
* Used similarly to <code>pts</code> values to
|
|
7318
|
+
* deduplicate/update outdated chat information as specified
|
|
7319
|
+
* <a href="https://corefork.telegram.org/api/peers#basic-group-updates">here
|
|
7320
|
+
* »</a>.
|
|
7155
7321
|
*/
|
|
7156
7322
|
version: number;
|
|
7157
7323
|
}
|
|
@@ -7275,6 +7441,11 @@ export class RpcError extends Error {
|
|
|
7275
7441
|
* Peer
|
|
7276
7442
|
*/
|
|
7277
7443
|
peer: tl.TypePeer;
|
|
7444
|
+
/**
|
|
7445
|
+
* If set, the messages were read only within the specified
|
|
7446
|
+
* <a href="https://corefork.telegram.org/api/forum#bot-forums">bot
|
|
7447
|
+
* forum topic »</a>.
|
|
7448
|
+
*/
|
|
7278
7449
|
topMsgId?: number;
|
|
7279
7450
|
/**
|
|
7280
7451
|
* Maximum ID of messages read
|
|
@@ -7530,8 +7701,10 @@ export class RpcError extends Error {
|
|
|
7530
7701
|
*/
|
|
7531
7702
|
isAdmin: boolean;
|
|
7532
7703
|
/**
|
|
7533
|
-
* Used
|
|
7534
|
-
*
|
|
7704
|
+
* Used similarly to <code>pts</code> values to
|
|
7705
|
+
* deduplicate/update outdated chat information as specified
|
|
7706
|
+
* <a href="https://corefork.telegram.org/api/peers#basic-group-updates">here
|
|
7707
|
+
* »</a>.
|
|
7535
7708
|
*/
|
|
7536
7709
|
version: number;
|
|
7537
7710
|
}
|
|
@@ -8134,8 +8307,8 @@ export class RpcError extends Error {
|
|
|
8134
8307
|
}
|
|
8135
8308
|
/**
|
|
8136
8309
|
* Default banned rights in a
|
|
8137
|
-
* <a href="https://corefork.telegram.org/api/channel">
|
|
8138
|
-
*
|
|
8310
|
+
* <a href="https://corefork.telegram.org/api/channel#basic-groups">basic
|
|
8311
|
+
* group</a> were updated
|
|
8139
8312
|
*/
|
|
8140
8313
|
interface RawUpdateChatDefaultBannedRights {
|
|
8141
8314
|
_: 'updateChatDefaultBannedRights';
|
|
@@ -8148,7 +8321,10 @@ export class RpcError extends Error {
|
|
|
8148
8321
|
*/
|
|
8149
8322
|
defaultBannedRights: tl.TypeChatBannedRights;
|
|
8150
8323
|
/**
|
|
8151
|
-
*
|
|
8324
|
+
* Used similarly to <code>pts</code> values to
|
|
8325
|
+
* deduplicate/update outdated chat information as specified
|
|
8326
|
+
* <a href="https://corefork.telegram.org/api/peers#basic-group-updates">here
|
|
8327
|
+
* »</a>.
|
|
8152
8328
|
*/
|
|
8153
8329
|
version: number;
|
|
8154
8330
|
}
|
|
@@ -8605,7 +8781,9 @@ export class RpcError extends Error {
|
|
|
8605
8781
|
ttlPeriod?: number;
|
|
8606
8782
|
}
|
|
8607
8783
|
/**
|
|
8608
|
-
* A user has joined or left a specific
|
|
8784
|
+
* A user has joined or left a specific
|
|
8785
|
+
* <a href="https://corefork.telegram.org/api/channel#basic-groups">basic
|
|
8786
|
+
* group »</a>
|
|
8609
8787
|
*/
|
|
8610
8788
|
interface RawUpdateChatParticipant {
|
|
8611
8789
|
_: 'updateChatParticipant';
|
|
@@ -8812,6 +8990,7 @@ export class RpcError extends Error {
|
|
|
8812
8990
|
* event sequence identifier
|
|
8813
8991
|
*/
|
|
8814
8992
|
qts: number;
|
|
8993
|
+
queryId?: Long;
|
|
8815
8994
|
}
|
|
8816
8995
|
/**
|
|
8817
8996
|
* New
|
|
@@ -9717,15 +9896,42 @@ export class RpcError extends Error {
|
|
|
9717
9896
|
fromId: tl.TypePeer;
|
|
9718
9897
|
encryptedMessage: Uint8Array;
|
|
9719
9898
|
}
|
|
9899
|
+
/**
|
|
9900
|
+
* A
|
|
9901
|
+
* <a href="https://corefork.telegram.org/api/forum#forum-topics">forum
|
|
9902
|
+
* topic »</a> was pinned or unpinned.
|
|
9903
|
+
*/
|
|
9720
9904
|
interface RawUpdatePinnedForumTopic {
|
|
9721
9905
|
_: 'updatePinnedForumTopic';
|
|
9906
|
+
/**
|
|
9907
|
+
* Whether the topic was pinned or unpinned
|
|
9908
|
+
*/
|
|
9722
9909
|
pinned?: boolean;
|
|
9910
|
+
/**
|
|
9911
|
+
* The supergroup forum, private chat (for forum-enabled bots)
|
|
9912
|
+
* or bot forum (for users) where the topic is located.
|
|
9913
|
+
*/
|
|
9723
9914
|
peer: tl.TypePeer;
|
|
9915
|
+
/**
|
|
9916
|
+
* The topic ID
|
|
9917
|
+
*/
|
|
9724
9918
|
topicId: number;
|
|
9725
9919
|
}
|
|
9920
|
+
/**
|
|
9921
|
+
* The
|
|
9922
|
+
* <a href="https://corefork.telegram.org/api/forum#forum-topics">pinned
|
|
9923
|
+
* topics</a> of a forum have changed.
|
|
9924
|
+
*/
|
|
9726
9925
|
interface RawUpdatePinnedForumTopics {
|
|
9727
9926
|
_: 'updatePinnedForumTopics';
|
|
9927
|
+
/**
|
|
9928
|
+
* The supergroup forum, private chat (for forum-enabled bots)
|
|
9929
|
+
* or bot forum (for users) where the topic is located.
|
|
9930
|
+
*/
|
|
9728
9931
|
peer: tl.TypePeer;
|
|
9932
|
+
/**
|
|
9933
|
+
* Ordered list containing the IDs of all pinned topics.
|
|
9934
|
+
*/
|
|
9729
9935
|
order?: number[];
|
|
9730
9936
|
}
|
|
9731
9937
|
interface RawUpdateDeleteGroupCallMessages {
|
|
@@ -9733,14 +9939,43 @@ export class RpcError extends Error {
|
|
|
9733
9939
|
call: tl.TypeInputGroupCall;
|
|
9734
9940
|
messages: number[];
|
|
9735
9941
|
}
|
|
9942
|
+
/**
|
|
9943
|
+
* Contains updates to
|
|
9944
|
+
* <a href="https://corefork.telegram.org/api/auctions">auction
|
|
9945
|
+
* state, see here »</a> for more info on how to enable these
|
|
9946
|
+
* updates.
|
|
9947
|
+
*/
|
|
9736
9948
|
interface RawUpdateStarGiftAuctionState {
|
|
9737
9949
|
_: 'updateStarGiftAuctionState';
|
|
9950
|
+
/**
|
|
9951
|
+
* ID of the
|
|
9952
|
+
* <a href="https://corefork.telegram.org/api/gifts#collectible-gifts">collectible
|
|
9953
|
+
* gift »</a> currently being distributed in the auction.
|
|
9954
|
+
*/
|
|
9738
9955
|
giftId: Long;
|
|
9956
|
+
/**
|
|
9957
|
+
* Auction state.
|
|
9958
|
+
*/
|
|
9739
9959
|
state: tl.TypeStarGiftAuctionState;
|
|
9740
9960
|
}
|
|
9961
|
+
/**
|
|
9962
|
+
* Contains updates to
|
|
9963
|
+
* <a href="https://corefork.telegram.org/api/auctions">auction
|
|
9964
|
+
* state related to the current user, see here »</a> for more
|
|
9965
|
+
* info on how to enable these updates.
|
|
9966
|
+
*/
|
|
9741
9967
|
interface RawUpdateStarGiftAuctionUserState {
|
|
9742
9968
|
_: 'updateStarGiftAuctionUserState';
|
|
9969
|
+
/**
|
|
9970
|
+
* ID of the
|
|
9971
|
+
* <a href="https://corefork.telegram.org/api/gifts#collectible-gifts">collectible
|
|
9972
|
+
* gift »</a> currently being distributed in the auction.
|
|
9973
|
+
*/
|
|
9743
9974
|
giftId: Long;
|
|
9975
|
+
/**
|
|
9976
|
+
* Auction state related to the current user (i.e. info about
|
|
9977
|
+
* placed bids, won gifts and so on).
|
|
9978
|
+
*/
|
|
9744
9979
|
userState: tl.TypeStarGiftAuctionUserState;
|
|
9745
9980
|
}
|
|
9746
9981
|
interface RawUpdateEmojiGameInfo {
|
|
@@ -9750,13 +9985,50 @@ export class RpcError extends Error {
|
|
|
9750
9985
|
interface RawUpdateStarGiftCraftFail {
|
|
9751
9986
|
_: 'updateStarGiftCraftFail';
|
|
9752
9987
|
}
|
|
9988
|
+
/**
|
|
9989
|
+
* The <a href="https://corefork.telegram.org/api/rank">tag
|
|
9990
|
+
* »</a> of a participant of a
|
|
9991
|
+
* <a href="https://corefork.telegram.org/api/channel#basic-groups">basic
|
|
9992
|
+
* group »</a> has changed.
|
|
9993
|
+
*/
|
|
9753
9994
|
interface RawUpdateChatParticipantRank {
|
|
9754
9995
|
_: 'updateChatParticipantRank';
|
|
9996
|
+
/**
|
|
9997
|
+
* Basic group ID.
|
|
9998
|
+
*/
|
|
9755
9999
|
chatId: number;
|
|
10000
|
+
/**
|
|
10001
|
+
* User ID.
|
|
10002
|
+
*/
|
|
9756
10003
|
userId: number;
|
|
10004
|
+
/**
|
|
10005
|
+
* The new tag.
|
|
10006
|
+
*/
|
|
9757
10007
|
rank: string;
|
|
10008
|
+
/**
|
|
10009
|
+
* Used similarly to <code>pts</code> values to
|
|
10010
|
+
* deduplicate/update outdated chat information as specified
|
|
10011
|
+
* <a href="https://corefork.telegram.org/api/peers#basic-group-updates">here
|
|
10012
|
+
* »</a>.
|
|
10013
|
+
*/
|
|
9758
10014
|
version: number;
|
|
9759
10015
|
}
|
|
10016
|
+
interface RawUpdateManagedBot {
|
|
10017
|
+
_: 'updateManagedBot';
|
|
10018
|
+
userId: number;
|
|
10019
|
+
botId: number;
|
|
10020
|
+
qts: number;
|
|
10021
|
+
}
|
|
10022
|
+
interface RawUpdateBotGuestChatQuery {
|
|
10023
|
+
_: 'updateBotGuestChatQuery';
|
|
10024
|
+
queryId: Long;
|
|
10025
|
+
message: tl.TypeMessage;
|
|
10026
|
+
referenceMessages?: tl.TypeMessage[];
|
|
10027
|
+
qts: number;
|
|
10028
|
+
}
|
|
10029
|
+
interface RawUpdateAiComposeTones {
|
|
10030
|
+
_: 'updateAiComposeTones';
|
|
10031
|
+
}
|
|
9760
10032
|
/**
|
|
9761
10033
|
* Too many updates, it is necessary to execute
|
|
9762
10034
|
* {@link updates.RawGetDifferenceRequest}.
|
|
@@ -10926,9 +11198,23 @@ export class RpcError extends Error {
|
|
|
10926
11198
|
*/
|
|
10927
11199
|
emoticon: string;
|
|
10928
11200
|
}
|
|
11201
|
+
/**
|
|
11202
|
+
* Used by bots to implement
|
|
11203
|
+
* <a href="https://corefork.telegram.org/api/bots/ai#live-message-streaming">live
|
|
11204
|
+
* message streaming »</a>.
|
|
11205
|
+
*/
|
|
10929
11206
|
interface RawSendMessageTextDraftAction {
|
|
10930
11207
|
_: 'sendMessageTextDraftAction';
|
|
11208
|
+
/**
|
|
11209
|
+
* Live draft ID: used by graphical clients to slightly change
|
|
11210
|
+
* the rendering behavior, see
|
|
11211
|
+
* <a href="https://corefork.telegram.org/api/bots/ai#live-message-streaming">here
|
|
11212
|
+
* »</a> for more info.
|
|
11213
|
+
*/
|
|
10931
11214
|
randomId: Long;
|
|
11215
|
+
/**
|
|
11216
|
+
* The contents of the live draft.
|
|
11217
|
+
*/
|
|
10932
11218
|
text: tl.TypeTextWithEntities;
|
|
10933
11219
|
}
|
|
10934
11220
|
/**
|
|
@@ -11033,6 +11319,11 @@ export class RpcError extends Error {
|
|
|
11033
11319
|
interface RawInputPrivacyKeyNoPaidMessages {
|
|
11034
11320
|
_: 'inputPrivacyKeyNoPaidMessages';
|
|
11035
11321
|
}
|
|
11322
|
+
/**
|
|
11323
|
+
* Whether the user can see the
|
|
11324
|
+
* <a href="https://corefork.telegram.org/api/profile#music">songs
|
|
11325
|
+
* we pinned to our profile »</a>.
|
|
11326
|
+
*/
|
|
11036
11327
|
interface RawInputPrivacyKeySavedMusic {
|
|
11037
11328
|
_: 'inputPrivacyKeySavedMusic';
|
|
11038
11329
|
}
|
|
@@ -11137,6 +11428,11 @@ export class RpcError extends Error {
|
|
|
11137
11428
|
interface RawPrivacyKeyNoPaidMessages {
|
|
11138
11429
|
_: 'privacyKeyNoPaidMessages';
|
|
11139
11430
|
}
|
|
11431
|
+
/**
|
|
11432
|
+
* Whether the user can see the
|
|
11433
|
+
* <a href="https://corefork.telegram.org/api/profile#music">songs
|
|
11434
|
+
* we pinned to our profile »</a>.
|
|
11435
|
+
*/
|
|
11140
11436
|
interface RawPrivacyKeySavedMusic {
|
|
11141
11437
|
_: 'privacyKeySavedMusic';
|
|
11142
11438
|
}
|
|
@@ -11596,8 +11892,8 @@ export class RpcError extends Error {
|
|
|
11596
11892
|
*/
|
|
11597
11893
|
hash: number;
|
|
11598
11894
|
/**
|
|
11599
|
-
* Type of the web page. One of the following: <!--
|
|
11600
|
-
* -->
|
|
11895
|
+
* Type of the web page. One of the following: <!-- start_table
|
|
11896
|
+
* type -->
|
|
11601
11897
|
*
|
|
11602
11898
|
*
|
|
11603
11899
|
*
|
|
@@ -11655,6 +11951,8 @@ export class RpcError extends Error {
|
|
|
11655
11951
|
*
|
|
11656
11952
|
* - <code>telegram_message</code>
|
|
11657
11953
|
*
|
|
11954
|
+
* - <code>telegram_newbot</code>
|
|
11955
|
+
*
|
|
11658
11956
|
* - <code>telegram_nft</code>
|
|
11659
11957
|
*
|
|
11660
11958
|
* - <code>telegram_stickerset</code>
|
|
@@ -11675,7 +11973,7 @@ export class RpcError extends Error {
|
|
|
11675
11973
|
*
|
|
11676
11974
|
*
|
|
11677
11975
|
*
|
|
11678
|
-
* <!--
|
|
11976
|
+
* <!-- end_table type -->
|
|
11679
11977
|
*/
|
|
11680
11978
|
type?: string;
|
|
11681
11979
|
/**
|
|
@@ -12332,6 +12630,11 @@ export class RpcError extends Error {
|
|
|
12332
12630
|
*/
|
|
12333
12631
|
interface RawKeyboardButton {
|
|
12334
12632
|
_: 'keyboardButton';
|
|
12633
|
+
/**
|
|
12634
|
+
* Button style, see
|
|
12635
|
+
* <a href="https://corefork.telegram.org/api/bots/buttons#button-styles">here
|
|
12636
|
+
* »</a> for more info on button styles.
|
|
12637
|
+
*/
|
|
12335
12638
|
style?: tl.TypeKeyboardButtonStyle;
|
|
12336
12639
|
/**
|
|
12337
12640
|
* Button text
|
|
@@ -12343,6 +12646,11 @@ export class RpcError extends Error {
|
|
|
12343
12646
|
*/
|
|
12344
12647
|
interface RawKeyboardButtonUrl {
|
|
12345
12648
|
_: 'keyboardButtonUrl';
|
|
12649
|
+
/**
|
|
12650
|
+
* Button style, see
|
|
12651
|
+
* <a href="https://corefork.telegram.org/api/bots/buttons#button-styles">here
|
|
12652
|
+
* »</a> for more info on button styles.
|
|
12653
|
+
*/
|
|
12346
12654
|
style?: tl.TypeKeyboardButtonStyle;
|
|
12347
12655
|
/**
|
|
12348
12656
|
* Button label
|
|
@@ -12372,6 +12680,11 @@ export class RpcError extends Error {
|
|
|
12372
12680
|
* of a bot to another user.
|
|
12373
12681
|
*/
|
|
12374
12682
|
requiresPassword?: boolean;
|
|
12683
|
+
/**
|
|
12684
|
+
* Button style, see
|
|
12685
|
+
* <a href="https://corefork.telegram.org/api/bots/buttons#button-styles">here
|
|
12686
|
+
* »</a> for more info on button styles.
|
|
12687
|
+
*/
|
|
12375
12688
|
style?: tl.TypeKeyboardButtonStyle;
|
|
12376
12689
|
/**
|
|
12377
12690
|
* Button text
|
|
@@ -12387,6 +12700,11 @@ export class RpcError extends Error {
|
|
|
12387
12700
|
*/
|
|
12388
12701
|
interface RawKeyboardButtonRequestPhone {
|
|
12389
12702
|
_: 'keyboardButtonRequestPhone';
|
|
12703
|
+
/**
|
|
12704
|
+
* Button style, see
|
|
12705
|
+
* <a href="https://corefork.telegram.org/api/bots/buttons#button-styles">here
|
|
12706
|
+
* »</a> for more info on button styles.
|
|
12707
|
+
*/
|
|
12390
12708
|
style?: tl.TypeKeyboardButtonStyle;
|
|
12391
12709
|
/**
|
|
12392
12710
|
* Button text
|
|
@@ -12398,6 +12716,11 @@ export class RpcError extends Error {
|
|
|
12398
12716
|
*/
|
|
12399
12717
|
interface RawKeyboardButtonRequestGeoLocation {
|
|
12400
12718
|
_: 'keyboardButtonRequestGeoLocation';
|
|
12719
|
+
/**
|
|
12720
|
+
* Button style, see
|
|
12721
|
+
* <a href="https://corefork.telegram.org/api/bots/buttons#button-styles">here
|
|
12722
|
+
* »</a> for more info on button styles.
|
|
12723
|
+
*/
|
|
12401
12724
|
style?: tl.TypeKeyboardButtonStyle;
|
|
12402
12725
|
/**
|
|
12403
12726
|
* Button text
|
|
@@ -12418,6 +12741,11 @@ export class RpcError extends Error {
|
|
|
12418
12741
|
* chat's input field.
|
|
12419
12742
|
*/
|
|
12420
12743
|
samePeer?: boolean;
|
|
12744
|
+
/**
|
|
12745
|
+
* Button style, see
|
|
12746
|
+
* <a href="https://corefork.telegram.org/api/bots/buttons#button-styles">here
|
|
12747
|
+
* »</a> for more info on button styles.
|
|
12748
|
+
*/
|
|
12421
12749
|
style?: tl.TypeKeyboardButtonStyle;
|
|
12422
12750
|
/**
|
|
12423
12751
|
* Button label
|
|
@@ -12437,6 +12765,11 @@ export class RpcError extends Error {
|
|
|
12437
12765
|
*/
|
|
12438
12766
|
interface RawKeyboardButtonGame {
|
|
12439
12767
|
_: 'keyboardButtonGame';
|
|
12768
|
+
/**
|
|
12769
|
+
* Button style, see
|
|
12770
|
+
* <a href="https://corefork.telegram.org/api/bots/buttons#button-styles">here
|
|
12771
|
+
* »</a> for more info on button styles.
|
|
12772
|
+
*/
|
|
12440
12773
|
style?: tl.TypeKeyboardButtonStyle;
|
|
12441
12774
|
/**
|
|
12442
12775
|
* Button text
|
|
@@ -12448,6 +12781,11 @@ export class RpcError extends Error {
|
|
|
12448
12781
|
*/
|
|
12449
12782
|
interface RawKeyboardButtonBuy {
|
|
12450
12783
|
_: 'keyboardButtonBuy';
|
|
12784
|
+
/**
|
|
12785
|
+
* Button style, see
|
|
12786
|
+
* <a href="https://corefork.telegram.org/api/bots/buttons#button-styles">here
|
|
12787
|
+
* »</a> for more info on button styles.
|
|
12788
|
+
*/
|
|
12451
12789
|
style?: tl.TypeKeyboardButtonStyle;
|
|
12452
12790
|
/**
|
|
12453
12791
|
* Button text
|
|
@@ -12478,6 +12816,11 @@ export class RpcError extends Error {
|
|
|
12478
12816
|
*/
|
|
12479
12817
|
interface RawKeyboardButtonUrlAuth {
|
|
12480
12818
|
_: 'keyboardButtonUrlAuth';
|
|
12819
|
+
/**
|
|
12820
|
+
* Button style, see
|
|
12821
|
+
* <a href="https://corefork.telegram.org/api/bots/buttons#button-styles">here
|
|
12822
|
+
* »</a> for more info on button styles.
|
|
12823
|
+
*/
|
|
12481
12824
|
style?: tl.TypeKeyboardButtonStyle;
|
|
12482
12825
|
/**
|
|
12483
12826
|
* Button label
|
|
@@ -12524,6 +12867,11 @@ export class RpcError extends Error {
|
|
|
12524
12867
|
* messages to the user.
|
|
12525
12868
|
*/
|
|
12526
12869
|
requestWriteAccess?: boolean;
|
|
12870
|
+
/**
|
|
12871
|
+
* Button style, see
|
|
12872
|
+
* <a href="https://corefork.telegram.org/api/bots/buttons#button-styles">here
|
|
12873
|
+
* »</a> for more info on button styles.
|
|
12874
|
+
*/
|
|
12527
12875
|
style?: tl.TypeKeyboardButtonStyle;
|
|
12528
12876
|
/**
|
|
12529
12877
|
* Button text
|
|
@@ -12567,6 +12915,11 @@ export class RpcError extends Error {
|
|
|
12567
12915
|
*/
|
|
12568
12916
|
interface RawKeyboardButtonRequestPoll {
|
|
12569
12917
|
_: 'keyboardButtonRequestPoll';
|
|
12918
|
+
/**
|
|
12919
|
+
* Button style, see
|
|
12920
|
+
* <a href="https://corefork.telegram.org/api/bots/buttons#button-styles">here
|
|
12921
|
+
* »</a> for more info on button styles.
|
|
12922
|
+
*/
|
|
12570
12923
|
style?: tl.TypeKeyboardButtonStyle;
|
|
12571
12924
|
/**
|
|
12572
12925
|
* If set, only quiz polls can be sent
|
|
@@ -12582,6 +12935,11 @@ export class RpcError extends Error {
|
|
|
12582
12935
|
*/
|
|
12583
12936
|
interface RawInputKeyboardButtonUserProfile {
|
|
12584
12937
|
_: 'inputKeyboardButtonUserProfile';
|
|
12938
|
+
/**
|
|
12939
|
+
* Button style, see
|
|
12940
|
+
* <a href="https://corefork.telegram.org/api/bots/buttons#button-styles">here
|
|
12941
|
+
* »</a> for more info on button styles.
|
|
12942
|
+
*/
|
|
12585
12943
|
style?: tl.TypeKeyboardButtonStyle;
|
|
12586
12944
|
/**
|
|
12587
12945
|
* Button text
|
|
@@ -12597,6 +12955,11 @@ export class RpcError extends Error {
|
|
|
12597
12955
|
*/
|
|
12598
12956
|
interface RawKeyboardButtonUserProfile {
|
|
12599
12957
|
_: 'keyboardButtonUserProfile';
|
|
12958
|
+
/**
|
|
12959
|
+
* Button style, see
|
|
12960
|
+
* <a href="https://corefork.telegram.org/api/bots/buttons#button-styles">here
|
|
12961
|
+
* »</a> for more info on button styles.
|
|
12962
|
+
*/
|
|
12600
12963
|
style?: tl.TypeKeyboardButtonStyle;
|
|
12601
12964
|
/**
|
|
12602
12965
|
* Button text
|
|
@@ -12620,6 +12983,11 @@ export class RpcError extends Error {
|
|
|
12620
12983
|
*/
|
|
12621
12984
|
interface RawKeyboardButtonWebView {
|
|
12622
12985
|
_: 'keyboardButtonWebView';
|
|
12986
|
+
/**
|
|
12987
|
+
* Button style, see
|
|
12988
|
+
* <a href="https://corefork.telegram.org/api/bots/buttons#button-styles">here
|
|
12989
|
+
* »</a> for more info on button styles.
|
|
12990
|
+
*/
|
|
12623
12991
|
style?: tl.TypeKeyboardButtonStyle;
|
|
12624
12992
|
/**
|
|
12625
12993
|
* Button text
|
|
@@ -12643,6 +13011,11 @@ export class RpcError extends Error {
|
|
|
12643
13011
|
*/
|
|
12644
13012
|
interface RawKeyboardButtonSimpleWebView {
|
|
12645
13013
|
_: 'keyboardButtonSimpleWebView';
|
|
13014
|
+
/**
|
|
13015
|
+
* Button style, see
|
|
13016
|
+
* <a href="https://corefork.telegram.org/api/bots/buttons#button-styles">here
|
|
13017
|
+
* »</a> for more info on button styles.
|
|
13018
|
+
*/
|
|
12646
13019
|
style?: tl.TypeKeyboardButtonStyle;
|
|
12647
13020
|
/**
|
|
12648
13021
|
* Button text
|
|
@@ -12661,6 +13034,11 @@ export class RpcError extends Error {
|
|
|
12661
13034
|
*/
|
|
12662
13035
|
interface RawKeyboardButtonRequestPeer {
|
|
12663
13036
|
_: 'keyboardButtonRequestPeer';
|
|
13037
|
+
/**
|
|
13038
|
+
* Button style, see
|
|
13039
|
+
* <a href="https://corefork.telegram.org/api/bots/buttons#button-styles">here
|
|
13040
|
+
* »</a> for more info on button styles.
|
|
13041
|
+
*/
|
|
12664
13042
|
style?: tl.TypeKeyboardButtonStyle;
|
|
12665
13043
|
/**
|
|
12666
13044
|
* Button text
|
|
@@ -12707,6 +13085,11 @@ export class RpcError extends Error {
|
|
|
12707
13085
|
* Set this flag to request the peer's photo (if any).
|
|
12708
13086
|
*/
|
|
12709
13087
|
photoRequested?: boolean;
|
|
13088
|
+
/**
|
|
13089
|
+
* Button style, see
|
|
13090
|
+
* <a href="https://corefork.telegram.org/api/bots/buttons#button-styles">here
|
|
13091
|
+
* »</a> for more info on button styles.
|
|
13092
|
+
*/
|
|
12710
13093
|
style?: tl.TypeKeyboardButtonStyle;
|
|
12711
13094
|
/**
|
|
12712
13095
|
* Button text
|
|
@@ -12739,6 +13122,11 @@ export class RpcError extends Error {
|
|
|
12739
13122
|
*/
|
|
12740
13123
|
interface RawKeyboardButtonCopy {
|
|
12741
13124
|
_: 'keyboardButtonCopy';
|
|
13125
|
+
/**
|
|
13126
|
+
* Button style, see
|
|
13127
|
+
* <a href="https://corefork.telegram.org/api/bots/buttons#button-styles">here
|
|
13128
|
+
* »</a> for more info on button styles.
|
|
13129
|
+
*/
|
|
12742
13130
|
style?: tl.TypeKeyboardButtonStyle;
|
|
12743
13131
|
/**
|
|
12744
13132
|
* Title of the button
|
|
@@ -13319,6 +13707,76 @@ export class RpcError extends Error {
|
|
|
13319
13707
|
length: number;
|
|
13320
13708
|
date: number;
|
|
13321
13709
|
}
|
|
13710
|
+
/**
|
|
13711
|
+
* Represents an diff addition: render it by simply
|
|
13712
|
+
* <u>underlining</u> the specified section and coloring it in
|
|
13713
|
+
* green, see
|
|
13714
|
+
* <a href="https://corefork.telegram.org/api/entities#diff-entities">here
|
|
13715
|
+
* »</a> for more info on how to render diff entities.
|
|
13716
|
+
*/
|
|
13717
|
+
interface RawMessageEntityDiffInsert {
|
|
13718
|
+
_: 'messageEntityDiffInsert';
|
|
13719
|
+
/**
|
|
13720
|
+
* Offset of message entity within message (in
|
|
13721
|
+
* <a href="https://corefork.telegram.org/api/entities#entity-length">UTF-16
|
|
13722
|
+
* code units</a>)
|
|
13723
|
+
*/
|
|
13724
|
+
offset: number;
|
|
13725
|
+
/**
|
|
13726
|
+
* Length of message entity within message (in
|
|
13727
|
+
* <a href="https://corefork.telegram.org/api/entities#entity-length">UTF-16
|
|
13728
|
+
* code units</a>)
|
|
13729
|
+
*/
|
|
13730
|
+
length: number;
|
|
13731
|
+
}
|
|
13732
|
+
/**
|
|
13733
|
+
* Represents an diff replacement, render it as follows:
|
|
13734
|
+
*
|
|
13735
|
+
* See
|
|
13736
|
+
* <a href="https://corefork.telegram.org/api/entities#diff-entities">here
|
|
13737
|
+
* »</a> for more info on how to render diff entities.
|
|
13738
|
+
*/
|
|
13739
|
+
interface RawMessageEntityDiffReplace {
|
|
13740
|
+
_: 'messageEntityDiffReplace';
|
|
13741
|
+
/**
|
|
13742
|
+
* Offset of message entity within message (in
|
|
13743
|
+
* <a href="https://corefork.telegram.org/api/entities#entity-length">UTF-16
|
|
13744
|
+
* code units</a>)
|
|
13745
|
+
*/
|
|
13746
|
+
offset: number;
|
|
13747
|
+
/**
|
|
13748
|
+
* Length of message entity within message (in
|
|
13749
|
+
* <a href="https://corefork.telegram.org/api/entities#entity-length">UTF-16
|
|
13750
|
+
* code units</a>)
|
|
13751
|
+
*/
|
|
13752
|
+
length: number;
|
|
13753
|
+
/**
|
|
13754
|
+
* The chunk of text that was removed.
|
|
13755
|
+
*/
|
|
13756
|
+
oldText: string;
|
|
13757
|
+
}
|
|
13758
|
+
/**
|
|
13759
|
+
* Represents an diff deletion: render it by simply
|
|
13760
|
+
* <u>underlining</u> the specified section and coloring it in
|
|
13761
|
+
* red, see
|
|
13762
|
+
* <a href="https://corefork.telegram.org/api/entities#diff-entities">here
|
|
13763
|
+
* »</a> for more info on how to render diff entities.
|
|
13764
|
+
*/
|
|
13765
|
+
interface RawMessageEntityDiffDelete {
|
|
13766
|
+
_: 'messageEntityDiffDelete';
|
|
13767
|
+
/**
|
|
13768
|
+
* Offset of message entity within message (in
|
|
13769
|
+
* <a href="https://corefork.telegram.org/api/entities#entity-length">UTF-16
|
|
13770
|
+
* code units</a>)
|
|
13771
|
+
*/
|
|
13772
|
+
offset: number;
|
|
13773
|
+
/**
|
|
13774
|
+
* Length of message entity within message (in
|
|
13775
|
+
* <a href="https://corefork.telegram.org/api/entities#entity-length">UTF-16
|
|
13776
|
+
* code units</a>)
|
|
13777
|
+
*/
|
|
13778
|
+
length: number;
|
|
13779
|
+
}
|
|
13322
13780
|
/**
|
|
13323
13781
|
* Represents the absence of a channel
|
|
13324
13782
|
*/
|
|
@@ -13414,6 +13872,10 @@ export class RpcError extends Error {
|
|
|
13414
13872
|
* participant.
|
|
13415
13873
|
*/
|
|
13416
13874
|
subscriptionUntilDate?: number;
|
|
13875
|
+
/**
|
|
13876
|
+
* The participant's
|
|
13877
|
+
* <a href="https://corefork.telegram.org/api/rank">tag »</a>.
|
|
13878
|
+
*/
|
|
13417
13879
|
rank?: string;
|
|
13418
13880
|
}
|
|
13419
13881
|
/**
|
|
@@ -13444,6 +13906,10 @@ export class RpcError extends Error {
|
|
|
13444
13906
|
* participant.
|
|
13445
13907
|
*/
|
|
13446
13908
|
subscriptionUntilDate?: number;
|
|
13909
|
+
/**
|
|
13910
|
+
* The participant's
|
|
13911
|
+
* <a href="https://corefork.telegram.org/api/rank">tag »</a>.
|
|
13912
|
+
*/
|
|
13447
13913
|
rank?: string;
|
|
13448
13914
|
}
|
|
13449
13915
|
/**
|
|
@@ -13460,8 +13926,9 @@ export class RpcError extends Error {
|
|
|
13460
13926
|
*/
|
|
13461
13927
|
adminRights: tl.TypeChatAdminRights;
|
|
13462
13928
|
/**
|
|
13463
|
-
* The
|
|
13464
|
-
*
|
|
13929
|
+
* The participant's
|
|
13930
|
+
* <a href="https://corefork.telegram.org/api/rank">tag »</a>,
|
|
13931
|
+
* defaults to "Owner" if not set.
|
|
13465
13932
|
*/
|
|
13466
13933
|
rank?: string;
|
|
13467
13934
|
}
|
|
@@ -13501,8 +13968,9 @@ export class RpcError extends Error {
|
|
|
13501
13968
|
*/
|
|
13502
13969
|
adminRights: tl.TypeChatAdminRights;
|
|
13503
13970
|
/**
|
|
13504
|
-
* The
|
|
13505
|
-
*
|
|
13971
|
+
* The participant's
|
|
13972
|
+
* <a href="https://corefork.telegram.org/api/rank">tag »</a>,
|
|
13973
|
+
* defaults to "Admin" if not set.
|
|
13506
13974
|
*/
|
|
13507
13975
|
rank?: string;
|
|
13508
13976
|
}
|
|
@@ -13532,6 +14000,10 @@ export class RpcError extends Error {
|
|
|
13532
14000
|
* <a href="https://corefork.telegram.org/api/rights">rights</a>
|
|
13533
14001
|
*/
|
|
13534
14002
|
bannedRights: tl.TypeChatBannedRights;
|
|
14003
|
+
/**
|
|
14004
|
+
* The participant's
|
|
14005
|
+
* <a href="https://corefork.telegram.org/api/rank">tag »</a>.
|
|
14006
|
+
*/
|
|
13535
14007
|
rank?: string;
|
|
13536
14008
|
}
|
|
13537
14009
|
/**
|
|
@@ -14552,6 +15024,9 @@ export class RpcError extends Error {
|
|
|
14552
15024
|
interface RawTopPeerCategoryBotsApp {
|
|
14553
15025
|
_: 'topPeerCategoryBotsApp';
|
|
14554
15026
|
}
|
|
15027
|
+
interface RawTopPeerCategoryBotsGuestChat {
|
|
15028
|
+
_: 'topPeerCategoryBotsGuestChat';
|
|
15029
|
+
}
|
|
14555
15030
|
/**
|
|
14556
15031
|
* Top peer category
|
|
14557
15032
|
*/
|
|
@@ -14631,6 +15106,7 @@ export class RpcError extends Error {
|
|
|
14631
15106
|
* full flow.
|
|
14632
15107
|
*/
|
|
14633
15108
|
suggestedPost?: tl.TypeSuggestedPost;
|
|
15109
|
+
richMessage?: tl.TypeRichMessage;
|
|
14634
15110
|
}
|
|
14635
15111
|
/**
|
|
14636
15112
|
* Stickerset with a single sticker as preview
|
|
@@ -15192,6 +15668,7 @@ export class RpcError extends Error {
|
|
|
15192
15668
|
* ID of preview of the page the photo leads to when clicked
|
|
15193
15669
|
*/
|
|
15194
15670
|
webpageId?: Long;
|
|
15671
|
+
spoiler?: boolean;
|
|
15195
15672
|
}
|
|
15196
15673
|
/**
|
|
15197
15674
|
* Video
|
|
@@ -15206,6 +15683,7 @@ export class RpcError extends Error {
|
|
|
15206
15683
|
* Whether the video is set to loop
|
|
15207
15684
|
*/
|
|
15208
15685
|
loop?: boolean;
|
|
15686
|
+
spoiler?: boolean;
|
|
15209
15687
|
/**
|
|
15210
15688
|
* Video ID
|
|
15211
15689
|
*/
|
|
@@ -15387,10 +15865,13 @@ export class RpcError extends Error {
|
|
|
15387
15865
|
*/
|
|
15388
15866
|
interface RawPageBlockOrderedList {
|
|
15389
15867
|
_: 'pageBlockOrderedList';
|
|
15868
|
+
reversed?: boolean;
|
|
15390
15869
|
/**
|
|
15391
15870
|
* List items
|
|
15392
15871
|
*/
|
|
15393
15872
|
items: tl.TypePageListOrderedItem[];
|
|
15873
|
+
start?: number;
|
|
15874
|
+
type?: string;
|
|
15394
15875
|
}
|
|
15395
15876
|
/**
|
|
15396
15877
|
* A collapsible details block
|
|
@@ -16174,8 +16655,8 @@ export class RpcError extends Error {
|
|
|
16174
16655
|
duration?: number;
|
|
16175
16656
|
}
|
|
16176
16657
|
/**
|
|
16177
|
-
* Identifies an endpoint that can be
|
|
16178
|
-
* other user in a phone call
|
|
16658
|
+
* DEPRECATED (libtgvoip): Identifies an endpoint that can be
|
|
16659
|
+
* used to connect to the other user in a phone call
|
|
16179
16660
|
*/
|
|
16180
16661
|
interface RawPhoneConnection {
|
|
16181
16662
|
_: 'phoneConnection';
|
|
@@ -17100,10 +17581,24 @@ export class RpcError extends Error {
|
|
|
17100
17581
|
*/
|
|
17101
17582
|
newValue: boolean;
|
|
17102
17583
|
}
|
|
17584
|
+
/**
|
|
17585
|
+
* A participant's
|
|
17586
|
+
* <a href="https://corefork.telegram.org/api/rank">tag »</a>
|
|
17587
|
+
* was changed.
|
|
17588
|
+
*/
|
|
17103
17589
|
interface RawChannelAdminLogEventActionParticipantEditRank {
|
|
17104
17590
|
_: 'channelAdminLogEventActionParticipantEditRank';
|
|
17591
|
+
/**
|
|
17592
|
+
* The user ID.
|
|
17593
|
+
*/
|
|
17105
17594
|
userId: number;
|
|
17595
|
+
/**
|
|
17596
|
+
* The previous tag.
|
|
17597
|
+
*/
|
|
17106
17598
|
prevRank: string;
|
|
17599
|
+
/**
|
|
17600
|
+
* The new tag.
|
|
17601
|
+
*/
|
|
17107
17602
|
newRank: string;
|
|
17108
17603
|
}
|
|
17109
17604
|
/**
|
|
@@ -18430,6 +18925,8 @@ export class RpcError extends Error {
|
|
|
18430
18925
|
*/
|
|
18431
18926
|
interface RawPageListItemText {
|
|
18432
18927
|
_: 'pageListItemText';
|
|
18928
|
+
checkbox?: boolean;
|
|
18929
|
+
checked?: boolean;
|
|
18433
18930
|
/**
|
|
18434
18931
|
* Text
|
|
18435
18932
|
*/
|
|
@@ -18440,6 +18937,8 @@ export class RpcError extends Error {
|
|
|
18440
18937
|
*/
|
|
18441
18938
|
interface RawPageListItemBlocks {
|
|
18442
18939
|
_: 'pageListItemBlocks';
|
|
18940
|
+
checkbox?: boolean;
|
|
18941
|
+
checked?: boolean;
|
|
18443
18942
|
/**
|
|
18444
18943
|
* Blocks
|
|
18445
18944
|
*/
|
|
@@ -18450,14 +18949,18 @@ export class RpcError extends Error {
|
|
|
18450
18949
|
*/
|
|
18451
18950
|
interface RawPageListOrderedItemText {
|
|
18452
18951
|
_: 'pageListOrderedItemText';
|
|
18952
|
+
checkbox?: boolean;
|
|
18953
|
+
checked?: boolean;
|
|
18453
18954
|
/**
|
|
18454
18955
|
* Number of element within ordered list
|
|
18455
18956
|
*/
|
|
18456
|
-
num
|
|
18957
|
+
num?: string;
|
|
18457
18958
|
/**
|
|
18458
18959
|
* Text
|
|
18459
18960
|
*/
|
|
18460
18961
|
text: tl.TypeRichText;
|
|
18962
|
+
value?: number;
|
|
18963
|
+
type?: string;
|
|
18461
18964
|
}
|
|
18462
18965
|
/**
|
|
18463
18966
|
* Ordered list of
|
|
@@ -18465,14 +18968,18 @@ export class RpcError extends Error {
|
|
|
18465
18968
|
*/
|
|
18466
18969
|
interface RawPageListOrderedItemBlocks {
|
|
18467
18970
|
_: 'pageListOrderedItemBlocks';
|
|
18971
|
+
checkbox?: boolean;
|
|
18972
|
+
checked?: boolean;
|
|
18468
18973
|
/**
|
|
18469
18974
|
* Number of element within ordered list
|
|
18470
18975
|
*/
|
|
18471
|
-
num
|
|
18976
|
+
num?: string;
|
|
18472
18977
|
/**
|
|
18473
18978
|
* Item contents
|
|
18474
18979
|
*/
|
|
18475
18980
|
blocks: tl.TypePageBlock[];
|
|
18981
|
+
value?: number;
|
|
18982
|
+
type?: string;
|
|
18476
18983
|
}
|
|
18477
18984
|
/**
|
|
18478
18985
|
* Related article
|
|
@@ -18574,6 +19081,11 @@ export class RpcError extends Error {
|
|
|
18574
19081
|
addedBy?: tl.TypePeer;
|
|
18575
19082
|
date?: number;
|
|
18576
19083
|
}
|
|
19084
|
+
interface RawInputPollAnswer {
|
|
19085
|
+
_: 'inputPollAnswer';
|
|
19086
|
+
text: tl.TypeTextWithEntities;
|
|
19087
|
+
media?: tl.TypeInputMedia;
|
|
19088
|
+
}
|
|
18577
19089
|
/**
|
|
18578
19090
|
* Poll
|
|
18579
19091
|
*/
|
|
@@ -18607,6 +19119,7 @@ export class RpcError extends Error {
|
|
|
18607
19119
|
shuffleAnswers?: boolean;
|
|
18608
19120
|
hideResultsUntilClose?: boolean;
|
|
18609
19121
|
creator?: boolean;
|
|
19122
|
+
subscribersOnly?: boolean;
|
|
18610
19123
|
/**
|
|
18611
19124
|
* The question of the poll (only
|
|
18612
19125
|
* <a href="https://corefork.telegram.org/api/premium">Premium</a>
|
|
@@ -18633,6 +19146,7 @@ export class RpcError extends Error {
|
|
|
18633
19146
|
* close_period.
|
|
18634
19147
|
*/
|
|
18635
19148
|
closeDate?: number;
|
|
19149
|
+
countriesIso2?: string[];
|
|
18636
19150
|
hash: Long;
|
|
18637
19151
|
}
|
|
18638
19152
|
/**
|
|
@@ -18675,6 +19189,7 @@ export class RpcError extends Error {
|
|
|
18675
19189
|
*/
|
|
18676
19190
|
min?: boolean;
|
|
18677
19191
|
hasUnreadVotes?: boolean;
|
|
19192
|
+
canViewStats?: boolean;
|
|
18678
19193
|
/**
|
|
18679
19194
|
* Poll results
|
|
18680
19195
|
*/
|
|
@@ -18882,23 +19397,22 @@ export class RpcError extends Error {
|
|
|
18882
19397
|
*/
|
|
18883
19398
|
sendPolls?: boolean;
|
|
18884
19399
|
/**
|
|
18885
|
-
* If set, does not allow
|
|
18886
|
-
* a
|
|
19400
|
+
* If set, does not allow a user to change the description of a
|
|
18887
19401
|
* <a href="https://corefork.telegram.org/api/channel">supergroup/chat</a>
|
|
18888
19402
|
*/
|
|
18889
19403
|
changeInfo?: boolean;
|
|
18890
19404
|
/**
|
|
18891
|
-
* If set, does not allow
|
|
19405
|
+
* If set, does not allow a user to invite users in a
|
|
18892
19406
|
* <a href="https://corefork.telegram.org/api/channel">supergroup/chat</a>
|
|
18893
19407
|
*/
|
|
18894
19408
|
inviteUsers?: boolean;
|
|
18895
19409
|
/**
|
|
18896
|
-
* If set, does not allow
|
|
19410
|
+
* If set, does not allow a user to pin messages in a
|
|
18897
19411
|
* <a href="https://corefork.telegram.org/api/channel">supergroup/chat</a>
|
|
18898
19412
|
*/
|
|
18899
19413
|
pinMessages?: boolean;
|
|
18900
19414
|
/**
|
|
18901
|
-
* If set, does not allow
|
|
19415
|
+
* If set, does not allow a user to create, delete or modify
|
|
18902
19416
|
* <a href="https://corefork.telegram.org/api/forum#forum-topics">forum
|
|
18903
19417
|
* topics »</a>.
|
|
18904
19418
|
*/
|
|
@@ -18939,6 +19453,7 @@ export class RpcError extends Error {
|
|
|
18939
19453
|
*/
|
|
18940
19454
|
sendPlain?: boolean;
|
|
18941
19455
|
editRank?: boolean;
|
|
19456
|
+
sendReactions?: boolean;
|
|
18942
19457
|
/**
|
|
18943
19458
|
* Validity of said permissions (it is considered forever any
|
|
18944
19459
|
* value less then 30 seconds or more then 366 days).
|
|
@@ -19740,11 +20255,29 @@ export class RpcError extends Error {
|
|
|
19740
20255
|
*/
|
|
19741
20256
|
icons: tl.TypeDocument[];
|
|
19742
20257
|
}
|
|
20258
|
+
/**
|
|
20259
|
+
* Contains info about a
|
|
20260
|
+
* <a href="https://corefork.telegram.org/api/auctions">collectible
|
|
20261
|
+
* gift auction »</a> for a {@link RawWebPage} preview of an
|
|
20262
|
+
* <a href="https://corefork.telegram.org/api/auctions">auction
|
|
20263
|
+
* »</a> (the {@link RawWebPage} will have a <code>type</code>
|
|
20264
|
+
* of <code>telegram_auction</code>).
|
|
20265
|
+
*/
|
|
19743
20266
|
interface RawWebPageAttributeStarGiftAuction {
|
|
19744
20267
|
_: 'webPageAttributeStarGiftAuction';
|
|
20268
|
+
/**
|
|
20269
|
+
* The gift linked to the auction
|
|
20270
|
+
*/
|
|
19745
20271
|
gift: tl.TypeStarGift;
|
|
20272
|
+
/**
|
|
20273
|
+
* Date when the auction will end (UNIX timestamp)
|
|
20274
|
+
*/
|
|
19746
20275
|
endDate: number;
|
|
19747
20276
|
}
|
|
20277
|
+
interface RawWebPageAttributeAiComposeTone {
|
|
20278
|
+
_: 'webPageAttributeAiComposeTone';
|
|
20279
|
+
emojiId: Long;
|
|
20280
|
+
}
|
|
19748
20281
|
/**
|
|
19749
20282
|
* Credit card info URL provided by the bank
|
|
19750
20283
|
*/
|
|
@@ -20271,6 +20804,7 @@ export class RpcError extends Error {
|
|
|
20271
20804
|
* Whether this message is quoting a part of another message.
|
|
20272
20805
|
*/
|
|
20273
20806
|
quote?: boolean;
|
|
20807
|
+
replyToEphemeral?: boolean;
|
|
20274
20808
|
/**
|
|
20275
20809
|
* ID of message to which this message is replying
|
|
20276
20810
|
*/
|
|
@@ -21433,6 +21967,7 @@ export class RpcError extends Error {
|
|
|
21433
21967
|
* menu mini apps</a>).
|
|
21434
21968
|
*/
|
|
21435
21969
|
queryId?: Long;
|
|
21970
|
+
sameOrigin?: boolean;
|
|
21436
21971
|
/**
|
|
21437
21972
|
* Webview URL to open
|
|
21438
21973
|
*/
|
|
@@ -21809,21 +22344,82 @@ export class RpcError extends Error {
|
|
|
21809
22344
|
*/
|
|
21810
22345
|
hash: string;
|
|
21811
22346
|
}
|
|
22347
|
+
/**
|
|
22348
|
+
* Used to pay for login codes, in case of high cost of SMS
|
|
22349
|
+
* verification codes for the user's country/provider, see
|
|
22350
|
+
* <a href="https://corefork.telegram.org/api/auth#paid-auth">here
|
|
22351
|
+
* »</a> for more info.
|
|
22352
|
+
*/
|
|
21812
22353
|
interface RawInputInvoicePremiumAuthCode {
|
|
21813
22354
|
_: 'inputInvoicePremiumAuthCode';
|
|
22355
|
+
/**
|
|
22356
|
+
* Must contain an {@link RawInputStorePaymentAuthCode}.
|
|
22357
|
+
*/
|
|
21814
22358
|
purpose: tl.TypeInputStorePaymentPurpose;
|
|
21815
22359
|
}
|
|
22360
|
+
/**
|
|
22361
|
+
* Used to pay for for the removal of the
|
|
22362
|
+
* {@link RawStarGiftAttributeOriginalDetails} attribute from a
|
|
22363
|
+
* collectible gift, see
|
|
22364
|
+
* <a href="https://corefork.telegram.org/api/gifts#dropping-the-original-details-of-an-upgraded-gift">here
|
|
22365
|
+
* »</a> for the full flow.
|
|
22366
|
+
*/
|
|
21816
22367
|
interface RawInputInvoiceStarGiftDropOriginalDetails {
|
|
21817
22368
|
_: 'inputInvoiceStarGiftDropOriginalDetails';
|
|
22369
|
+
/**
|
|
22370
|
+
* The collectible gift whose
|
|
22371
|
+
* {@link RawStarGiftAttributeOriginalDetails} attribute should
|
|
22372
|
+
* be removed.
|
|
22373
|
+
*/
|
|
21818
22374
|
stargift: tl.TypeInputSavedStarGift;
|
|
21819
22375
|
}
|
|
22376
|
+
/**
|
|
22377
|
+
* Used to place a bid in a
|
|
22378
|
+
* <a href="https://corefork.telegram.org/api/auctions">collectible
|
|
22379
|
+
* gift auction »</a>.
|
|
22380
|
+
*/
|
|
21820
22381
|
interface RawInputInvoiceStarGiftAuctionBid {
|
|
21821
22382
|
_: 'inputInvoiceStarGiftAuctionBid';
|
|
22383
|
+
/**
|
|
22384
|
+
* If set, your name will be hidden if the destination peer
|
|
22385
|
+
* decides to display the gift on their profile (they will
|
|
22386
|
+
* still see that you sent the gift).
|
|
22387
|
+
*
|
|
22388
|
+
* Must not be set when updating an existing bid, as the
|
|
22389
|
+
* value cannot be changed for existing bids.
|
|
22390
|
+
*/
|
|
21822
22391
|
hideName?: boolean;
|
|
22392
|
+
/**
|
|
22393
|
+
* Must be set when increasing an already existing bid.
|
|
22394
|
+
*/
|
|
21823
22395
|
updateBid?: boolean;
|
|
22396
|
+
/**
|
|
22397
|
+
* Identifier of the user or channel (only if
|
|
22398
|
+
* {@link RawChannelFull}.<code>stargifts_available</code> is
|
|
22399
|
+
* set) that will receive the gift.
|
|
22400
|
+
*/
|
|
21824
22401
|
peer?: tl.TypeInputPeer;
|
|
22402
|
+
/**
|
|
22403
|
+
* Identifier of the gift, from
|
|
22404
|
+
* {@link RawStarGift}.<code>id</code>
|
|
22405
|
+
*/
|
|
21825
22406
|
giftId: Long;
|
|
22407
|
+
/**
|
|
22408
|
+
* Total amount of the bid in
|
|
22409
|
+
* <a href="https://corefork.telegram.org/api/stars">Telegram
|
|
22410
|
+
* Stars</a>.
|
|
22411
|
+
*/
|
|
21826
22412
|
bidAmount: Long;
|
|
22413
|
+
/**
|
|
22414
|
+
* Optional message that will be attached with the gift if we
|
|
22415
|
+
* end up winning this round: the maximum length for this field
|
|
22416
|
+
* is specified in the
|
|
22417
|
+
* <a href="https://corefork.telegram.org/api/config#stargifts-message-length-max">stargifts_message_length_max
|
|
22418
|
+
* client configuration value »</a>.
|
|
22419
|
+
*
|
|
22420
|
+
* Must not be set when updating an existing bid, as the
|
|
22421
|
+
* value cannot be changed for existing bids.
|
|
22422
|
+
*/
|
|
21827
22423
|
message?: tl.TypeTextWithEntities;
|
|
21828
22424
|
}
|
|
21829
22425
|
/**
|
|
@@ -22163,6 +22759,7 @@ export class RpcError extends Error {
|
|
|
22163
22759
|
* {@link auth.RawSendCodeRequest}.
|
|
22164
22760
|
*/
|
|
22165
22761
|
phoneCodeHash: string;
|
|
22762
|
+
premiumDays: number;
|
|
22166
22763
|
/**
|
|
22167
22764
|
* Three-letter ISO 4217
|
|
22168
22765
|
* <a href="https://corefork.telegram.org/bots/payments#supported-currencies">currency</a>
|
|
@@ -22621,7 +23218,7 @@ export class RpcError extends Error {
|
|
|
22621
23218
|
* log events »</a> and in the
|
|
22622
23219
|
* {@link messages.RawChannelMessages} constructor: if needed,
|
|
22623
23220
|
* full information can be fetched using
|
|
22624
|
-
* {@link
|
|
23221
|
+
* {@link messages.RawGetForumTopicsByIDRequest}.
|
|
22625
23222
|
*/
|
|
22626
23223
|
short?: boolean;
|
|
22627
23224
|
/**
|
|
@@ -22639,6 +23236,10 @@ export class RpcError extends Error {
|
|
|
22639
23236
|
* Topic creation date
|
|
22640
23237
|
*/
|
|
22641
23238
|
date: number;
|
|
23239
|
+
/**
|
|
23240
|
+
* Contains the supergroup/private chat where the topic is
|
|
23241
|
+
* located.
|
|
23242
|
+
*/
|
|
22642
23243
|
peer: tl.TypePeer;
|
|
22643
23244
|
/**
|
|
22644
23245
|
* Topic title
|
|
@@ -22814,6 +23415,12 @@ export class RpcError extends Error {
|
|
|
22814
23415
|
*/
|
|
22815
23416
|
botAdminRights?: tl.TypeChatAdminRights;
|
|
22816
23417
|
}
|
|
23418
|
+
interface RawRequestPeerTypeCreateBot {
|
|
23419
|
+
_: 'requestPeerTypeCreateBot';
|
|
23420
|
+
botManaged?: boolean;
|
|
23421
|
+
suggestedName?: string;
|
|
23422
|
+
suggestedUsername?: string;
|
|
23423
|
+
}
|
|
22817
23424
|
/**
|
|
22818
23425
|
* The list of
|
|
22819
23426
|
* <a href="https://corefork.telegram.org/api/custom-emoji">custom
|
|
@@ -23260,7 +23867,7 @@ export class RpcError extends Error {
|
|
|
23260
23867
|
min?: boolean;
|
|
23261
23868
|
/**
|
|
23262
23869
|
* Whether this story is
|
|
23263
|
-
* <a href="https://telegram.org/blog/
|
|
23870
|
+
* <a href="https://telegram.org/blog/content-protection-delete-by-date-and-more">protected</a>
|
|
23264
23871
|
* and thus cannot be forwarded; clients should also prevent
|
|
23265
23872
|
* users from saving attached media (i.e. videos should only be
|
|
23266
23873
|
* streamed, photos should be kept in RAM, et cetera).
|
|
@@ -24148,18 +24755,73 @@ export class RpcError extends Error {
|
|
|
24148
24755
|
*/
|
|
24149
24756
|
backgroundEmojiId?: Long;
|
|
24150
24757
|
}
|
|
24758
|
+
/**
|
|
24759
|
+
* Represents a
|
|
24760
|
+
* <a href="https://corefork.telegram.org/api/colors">color
|
|
24761
|
+
* palette »</a> associated to a
|
|
24762
|
+
* <a href="https://corefork.telegram.org/api/gifts#collectible-gifts">collectible
|
|
24763
|
+
* gift »</a>, see
|
|
24764
|
+
* <a href="https://corefork.telegram.org/api/colors#collectible-gift-palettes">here
|
|
24765
|
+
* »</a> for more info.
|
|
24766
|
+
*/
|
|
24151
24767
|
interface RawPeerColorCollectible {
|
|
24152
24768
|
_: 'peerColorCollectible';
|
|
24769
|
+
/**
|
|
24770
|
+
* ID of the
|
|
24771
|
+
* <a href="https://corefork.telegram.org/api/gifts#collectible-gifts">collectible
|
|
24772
|
+
* gift »</a>.
|
|
24773
|
+
*/
|
|
24153
24774
|
collectibleId: Long;
|
|
24775
|
+
/**
|
|
24776
|
+
* <a href="https://corefork.telegram.org/api/custom-emoji">Custom
|
|
24777
|
+
* emoji ID »</a> of the collectible gift: a single copy of
|
|
24778
|
+
* this custom emoji should be displayed as-is (without
|
|
24779
|
+
* recoloring it, unlike for <code>background_emoji_id</code>)
|
|
24780
|
+
* in the top-right corner of the palette.
|
|
24781
|
+
*/
|
|
24154
24782
|
giftEmojiId: Long;
|
|
24783
|
+
/**
|
|
24784
|
+
* <a href="https://corefork.telegram.org/api/custom-emoji">Custom
|
|
24785
|
+
* emoji ID »</a> used to generate the pattern.
|
|
24786
|
+
*/
|
|
24155
24787
|
backgroundEmojiId: Long;
|
|
24788
|
+
/**
|
|
24789
|
+
* Accent color in RGB24 format, used for reply backgrounds and
|
|
24790
|
+
* the user's name in messages.
|
|
24791
|
+
*/
|
|
24156
24792
|
accentColor: number;
|
|
24793
|
+
/**
|
|
24794
|
+
* 1-3 RGB24 colors to be used in the reply strip.
|
|
24795
|
+
*/
|
|
24157
24796
|
colors: number[];
|
|
24797
|
+
/**
|
|
24798
|
+
* Accent color in RGB24 format, used for reply backgrounds and
|
|
24799
|
+
* the user's name in messages in dark mode (fallback to
|
|
24800
|
+
* <code>accent_color</code> if absent).
|
|
24801
|
+
*/
|
|
24158
24802
|
darkAccentColor?: number;
|
|
24803
|
+
/**
|
|
24804
|
+
* 1-3 RGB24 colors to be used in the reply strip in dark mode
|
|
24805
|
+
* (fallback to <code>colors</code> if absent).
|
|
24806
|
+
*/
|
|
24159
24807
|
darkColors?: number[];
|
|
24160
24808
|
}
|
|
24809
|
+
/**
|
|
24810
|
+
* Represents a
|
|
24811
|
+
* <a href="https://corefork.telegram.org/api/colors">color
|
|
24812
|
+
* palette »</a> associated to a
|
|
24813
|
+
* <a href="https://corefork.telegram.org/api/gifts#collectible-gifts">collectible
|
|
24814
|
+
* gift »</a>, see
|
|
24815
|
+
* <a href="https://corefork.telegram.org/api/colors#collectible-gift-palettes">here
|
|
24816
|
+
* »</a> for more info.
|
|
24817
|
+
*/
|
|
24161
24818
|
interface RawInputPeerColorCollectible {
|
|
24162
24819
|
_: 'inputPeerColorCollectible';
|
|
24820
|
+
/**
|
|
24821
|
+
* ID of the
|
|
24822
|
+
* <a href="https://corefork.telegram.org/api/gifts#collectible-gifts">collectible
|
|
24823
|
+
* gift »</a>.
|
|
24824
|
+
*/
|
|
24163
24825
|
collectibleId: Long;
|
|
24164
24826
|
}
|
|
24165
24827
|
/**
|
|
@@ -24734,6 +25396,9 @@ export class RpcError extends Error {
|
|
|
24734
25396
|
* Business bot rights.
|
|
24735
25397
|
*/
|
|
24736
25398
|
rights: tl.TypeBusinessBotRights;
|
|
25399
|
+
device?: string;
|
|
25400
|
+
date?: number;
|
|
25401
|
+
location?: string;
|
|
24737
25402
|
}
|
|
24738
25403
|
/**
|
|
24739
25404
|
* <a href="https://corefork.telegram.org/api/profile#birthday">Birthday</a>
|
|
@@ -25476,8 +26141,20 @@ export class RpcError extends Error {
|
|
|
25476
26141
|
* prepaid upgrade of a gift</a>.
|
|
25477
26142
|
*/
|
|
25478
26143
|
stargiftPrepaidUpgrade?: boolean;
|
|
26144
|
+
/**
|
|
26145
|
+
* Represents payment for the removal of the
|
|
26146
|
+
* {@link RawStarGiftAttributeOriginalDetails} attribute from a
|
|
26147
|
+
* gift, see
|
|
26148
|
+
* <a href="https://corefork.telegram.org/api/gifts#dropping-the-original-details-of-an-upgraded-gift">here
|
|
26149
|
+
* »</a> for the full flow.
|
|
26150
|
+
*/
|
|
25479
26151
|
stargiftDropOriginalDetails?: boolean;
|
|
25480
26152
|
phonegroupMessage?: boolean;
|
|
26153
|
+
/**
|
|
26154
|
+
* Represents payment for placing a
|
|
26155
|
+
* <a href="https://corefork.telegram.org/api/auctions">collectible
|
|
26156
|
+
* gift auction bid »</a>.
|
|
26157
|
+
*/
|
|
25481
26158
|
stargiftAuctionBid?: boolean;
|
|
25482
26159
|
offer?: boolean;
|
|
25483
26160
|
/**
|
|
@@ -25999,6 +26676,12 @@ export class RpcError extends Error {
|
|
|
25999
26676
|
*/
|
|
26000
26677
|
limitedPerUser?: boolean;
|
|
26001
26678
|
peerColorAvailable?: boolean;
|
|
26679
|
+
/**
|
|
26680
|
+
* If set, this is a collectible gift that can only be bought
|
|
26681
|
+
* through a
|
|
26682
|
+
* <a href="https://corefork.telegram.org/api/auctions">collectible
|
|
26683
|
+
* gift auction »</a>.
|
|
26684
|
+
*/
|
|
26002
26685
|
auction?: boolean;
|
|
26003
26686
|
/**
|
|
26004
26687
|
* Identifier of the gift
|
|
@@ -26089,8 +26772,28 @@ export class RpcError extends Error {
|
|
|
26089
26772
|
* for the full flow.
|
|
26090
26773
|
*/
|
|
26091
26774
|
lockedUntilDate?: number;
|
|
26775
|
+
/**
|
|
26776
|
+
* Always set for gifts that can be bought on
|
|
26777
|
+
* <a href="https://corefork.telegram.org/api/auctions">auctions
|
|
26778
|
+
* »</a>, contains the
|
|
26779
|
+
* <a href="https://corefork.telegram.org/api/links#auction-links">auction
|
|
26780
|
+
* deep link slug »</a>.
|
|
26781
|
+
*/
|
|
26092
26782
|
auctionSlug?: string;
|
|
26783
|
+
/**
|
|
26784
|
+
* Always set for gifts that can be bought on
|
|
26785
|
+
* <a href="https://corefork.telegram.org/api/auctions">auctions
|
|
26786
|
+
* »</a>, contains the number of gifts of this kind that are
|
|
26787
|
+
* distributed on every round.
|
|
26788
|
+
*/
|
|
26093
26789
|
giftsPerRound?: number;
|
|
26790
|
+
/**
|
|
26791
|
+
* Always set for gifts that can be bought on
|
|
26792
|
+
* <a href="https://corefork.telegram.org/api/auctions">auctions
|
|
26793
|
+
* »</a>, contains the UNIX timestamp indicating when will the
|
|
26794
|
+
* auction start (or when the auction started, if it points to
|
|
26795
|
+
* the past).
|
|
26796
|
+
*/
|
|
26094
26797
|
auctionStartDate?: number;
|
|
26095
26798
|
upgradeVariants?: number;
|
|
26096
26799
|
background?: tl.TypeStarGiftBackground;
|
|
@@ -26414,11 +27117,11 @@ export class RpcError extends Error {
|
|
|
26414
27117
|
amount: Long;
|
|
26415
27118
|
/**
|
|
26416
27119
|
* The decimal amount of Telegram Stars, expressed as nanostars
|
|
26417
|
-
* (i.e. 1 nanostar is equal to <code>1/
|
|
27120
|
+
* (i.e. 1 nanostar is equal to <code>1/1_000_000_000</code>th
|
|
26418
27121
|
* (one billionth) of a Telegram Star).
|
|
26419
27122
|
*
|
|
26420
|
-
* This field may also be negative (the allowed range is
|
|
26421
|
-
*
|
|
27123
|
+
* This field may also be negative (the allowed range is from
|
|
27124
|
+
* <code>-999_999_999</code> to <code>999_999_999</code>).
|
|
26422
27125
|
*/
|
|
26423
27126
|
nanos: number;
|
|
26424
27127
|
}
|
|
@@ -26705,6 +27408,13 @@ export class RpcError extends Error {
|
|
|
26705
27408
|
* to prepay for a gift upgrade separately »</a>.
|
|
26706
27409
|
*/
|
|
26707
27410
|
prepaidUpgradeHash?: string;
|
|
27411
|
+
/**
|
|
27412
|
+
* If set, the {@link RawStarGiftAttributeOriginalDetails}
|
|
27413
|
+
* attribute of this gift may be removed by paying the
|
|
27414
|
+
* specified amount of stars, see
|
|
27415
|
+
* <a href="https://corefork.telegram.org/api/gifts#dropping-the-original-details-of-an-upgraded-gift">here
|
|
27416
|
+
* »</a> for the full flow.
|
|
27417
|
+
*/
|
|
26708
27418
|
dropOriginalDetailsStars?: Long;
|
|
26709
27419
|
giftNum?: number;
|
|
26710
27420
|
canCraftAt?: number;
|
|
@@ -26763,7 +27473,8 @@ export class RpcError extends Error {
|
|
|
26763
27473
|
}
|
|
26764
27474
|
/**
|
|
26765
27475
|
* Send paid reactions as the specified peer, fetched using
|
|
26766
|
-
* {@link channels.RawGetSendAsRequest}
|
|
27476
|
+
* {@link channels.RawGetSendAsRequest} with the
|
|
27477
|
+
* <code>for_paid_reactions</code> flag set.
|
|
26767
27478
|
*/
|
|
26768
27479
|
interface RawPaidReactionPrivacyPeer {
|
|
26769
27480
|
_: 'paidReactionPrivacyPeer';
|
|
@@ -27308,9 +28019,20 @@ export class RpcError extends Error {
|
|
|
27308
28019
|
*/
|
|
27309
28020
|
slug: string;
|
|
27310
28021
|
}
|
|
28022
|
+
/**
|
|
28023
|
+
* Indicates the price for a
|
|
28024
|
+
* <a href="https://corefork.telegram.org/api/gifts#collectible-gifts">gift
|
|
28025
|
+
* upgrade »</a> starting from a specific point in time.
|
|
28026
|
+
*/
|
|
27311
28027
|
interface RawStarGiftUpgradePrice {
|
|
27312
28028
|
_: 'starGiftUpgradePrice';
|
|
28029
|
+
/**
|
|
28030
|
+
* UNIX timestamp indicating when the price will be in effect.
|
|
28031
|
+
*/
|
|
27313
28032
|
date: number;
|
|
28033
|
+
/**
|
|
28034
|
+
* Upgrade price.
|
|
28035
|
+
*/
|
|
27314
28036
|
upgradeStars: Long;
|
|
27315
28037
|
}
|
|
27316
28038
|
interface RawGroupCallMessage {
|
|
@@ -27334,97 +28056,427 @@ export class RpcError extends Error {
|
|
|
27334
28056
|
live?: boolean;
|
|
27335
28057
|
maxId?: number;
|
|
27336
28058
|
}
|
|
28059
|
+
/**
|
|
28060
|
+
* Describes a bid in an
|
|
28061
|
+
* <a href="https://corefork.telegram.org/api/auctions">auction</a>.
|
|
28062
|
+
*/
|
|
27337
28063
|
interface RawAuctionBidLevel {
|
|
27338
28064
|
_: 'auctionBidLevel';
|
|
28065
|
+
/**
|
|
28066
|
+
* Position of the bid.
|
|
28067
|
+
*/
|
|
27339
28068
|
pos: number;
|
|
28069
|
+
/**
|
|
28070
|
+
* Amount of the bid in
|
|
28071
|
+
* <a href="https://corefork.telegram.org/api/stars">Telegram
|
|
28072
|
+
* Stars</a>.
|
|
28073
|
+
*/
|
|
27340
28074
|
amount: Long;
|
|
28075
|
+
/**
|
|
28076
|
+
* Date when the bid was placed.
|
|
28077
|
+
*/
|
|
27341
28078
|
date: number;
|
|
27342
28079
|
}
|
|
28080
|
+
/**
|
|
28081
|
+
* Returned only by auction methods (never by updates) if the
|
|
28082
|
+
* passed <code>version</code> is equal to the remote
|
|
28083
|
+
* <a href="https://corefork.telegram.org/api/auctions">auction
|
|
28084
|
+
* »</a>.<code>version</code>, meaning auction information
|
|
28085
|
+
* hasn't changed over the locally cached version.
|
|
28086
|
+
*/
|
|
27343
28087
|
interface RawStarGiftAuctionStateNotModified {
|
|
27344
28088
|
_: 'starGiftAuctionStateNotModified';
|
|
27345
28089
|
}
|
|
28090
|
+
/**
|
|
28091
|
+
* Represents an active or pending
|
|
28092
|
+
* <a href="https://corefork.telegram.org/api/auctions">auction
|
|
28093
|
+
* »</a>.
|
|
28094
|
+
*/
|
|
27346
28095
|
interface RawStarGiftAuctionState {
|
|
27347
28096
|
_: 'starGiftAuctionState';
|
|
28097
|
+
/**
|
|
28098
|
+
* Only apply incoming {@link RawStarGiftAuctionState}
|
|
28099
|
+
* constructors if the received <code>version</code> is bigger
|
|
28100
|
+
* than the locally cached <code>version</code>.
|
|
28101
|
+
*/
|
|
27348
28102
|
version: number;
|
|
28103
|
+
/**
|
|
28104
|
+
* UNIX timestamp indicating when the auction will start (or
|
|
28105
|
+
* when it started, if it's in the past).
|
|
28106
|
+
*/
|
|
27349
28107
|
startDate: number;
|
|
28108
|
+
/**
|
|
28109
|
+
* UNIX timestamp indicating when the auction will end
|
|
28110
|
+
*/
|
|
27350
28111
|
endDate: number;
|
|
28112
|
+
/**
|
|
28113
|
+
* Minumum allowed bid amount in
|
|
28114
|
+
* <a href="https://corefork.telegram.org/api/stars">Telegram
|
|
28115
|
+
* Stars</a>: only applicable if the user hasn't made a bid
|
|
28116
|
+
* yet, otherwise must be overridden to the value of
|
|
28117
|
+
* {@link RawStarGiftAuctionUserState}.<code>min_bid_amount</code>
|
|
28118
|
+
* (which will be set if and only if the user already made a
|
|
28119
|
+
* bid to this auction).
|
|
28120
|
+
*/
|
|
27351
28121
|
minBidAmount: Long;
|
|
28122
|
+
/**
|
|
28123
|
+
* Contains a sparse list of bids starting from the top bids, a
|
|
28124
|
+
* more detailed description is available in
|
|
28125
|
+
* <a href="https://corefork.telegram.org/api/auctions">the
|
|
28126
|
+
* docs</a>.
|
|
28127
|
+
*/
|
|
27352
28128
|
bidLevels: tl.TypeAuctionBidLevel[];
|
|
28129
|
+
/**
|
|
28130
|
+
* User IDs of the top 3 bidders (the {@link RawUser}
|
|
28131
|
+
* constructors will be returned as
|
|
28132
|
+
* <a href="https://corefork.telegram.org/api/min">min</a>
|
|
28133
|
+
* constructors in the containing object).
|
|
28134
|
+
*/
|
|
27353
28135
|
topBidders: Long[];
|
|
28136
|
+
/**
|
|
28137
|
+
* UNIX timestamp indicating when the current auction round
|
|
28138
|
+
* will end, distributing
|
|
28139
|
+
* {@link RawStarGift}.<code>gifts_per_round</code> gifts to
|
|
28140
|
+
* the top {@link RawStarGift}.<code>gifts_per_round</code>
|
|
28141
|
+
* bidders.
|
|
28142
|
+
*/
|
|
27354
28143
|
nextRoundAt: number;
|
|
28144
|
+
/**
|
|
28145
|
+
* The number of gifts that were distributed in the previous
|
|
28146
|
+
* round (also used to compute the approximated index of the
|
|
28147
|
+
* gift that the current user will receive, <code>last_gift_num
|
|
28148
|
+
* + approx_pos</code>, see
|
|
28149
|
+
* <a href="https://corefork.telegram.org/api/auctions">here
|
|
28150
|
+
* »</a> for more info).
|
|
28151
|
+
*/
|
|
27355
28152
|
lastGiftNum: number;
|
|
28153
|
+
/**
|
|
28154
|
+
* The remaining number of gifts that are yet to be
|
|
28155
|
+
* distributed.
|
|
28156
|
+
*/
|
|
27356
28157
|
giftsLeft: number;
|
|
28158
|
+
/**
|
|
28159
|
+
* The current round number (starting from 1).
|
|
28160
|
+
*/
|
|
27357
28161
|
currentRound: number;
|
|
28162
|
+
/**
|
|
28163
|
+
* The total number of rounds in this auction.
|
|
28164
|
+
*/
|
|
27358
28165
|
totalRounds: number;
|
|
28166
|
+
/**
|
|
28167
|
+
* Detailed round information.
|
|
28168
|
+
*/
|
|
27359
28169
|
rounds: tl.TypeStarGiftAuctionRound[];
|
|
27360
28170
|
}
|
|
28171
|
+
/**
|
|
28172
|
+
* Represents a finished
|
|
28173
|
+
* <a href="https://corefork.telegram.org/api/auctions">auction
|
|
28174
|
+
* »</a>.
|
|
28175
|
+
*/
|
|
27361
28176
|
interface RawStarGiftAuctionStateFinished {
|
|
27362
28177
|
_: 'starGiftAuctionStateFinished';
|
|
28178
|
+
/**
|
|
28179
|
+
* UNIX timestamp indicating when the auction started.
|
|
28180
|
+
*/
|
|
27363
28181
|
startDate: number;
|
|
28182
|
+
/**
|
|
28183
|
+
* UNIX timestamp indicating when the auction ended.
|
|
28184
|
+
*/
|
|
27364
28185
|
endDate: number;
|
|
28186
|
+
/**
|
|
28187
|
+
* Average price of distributed gifts.
|
|
28188
|
+
*/
|
|
27365
28189
|
averagePrice: Long;
|
|
28190
|
+
/**
|
|
28191
|
+
* Number of gifts from the auction currently being resold on
|
|
28192
|
+
* Telegram: if set, when the corresponding element is clicked
|
|
28193
|
+
* in graphical clients,
|
|
28194
|
+
* {@link payments.RawGetResaleStarGiftsRequest} should be
|
|
28195
|
+
* invoked with the ID of the gift associated to this auction,
|
|
28196
|
+
* see
|
|
28197
|
+
* <a href="https://corefork.telegram.org/api/auctions">here
|
|
28198
|
+
* »</a> for more info.
|
|
28199
|
+
*/
|
|
27366
28200
|
listedCount?: number;
|
|
28201
|
+
/**
|
|
28202
|
+
* Number of gifts from the auction currently being resold on
|
|
28203
|
+
* <a href="https://fragment.com/">Fragment</a>.
|
|
28204
|
+
*/
|
|
27367
28205
|
fragmentListedCount?: number;
|
|
28206
|
+
/**
|
|
28207
|
+
* Only set if <code>fragment_listed_count</code> is set. If
|
|
28208
|
+
* set, when the corresponding element is clicked in graphical
|
|
28209
|
+
* clients, this URL should be opened.
|
|
28210
|
+
*/
|
|
27368
28211
|
fragmentListedUrl?: string;
|
|
27369
28212
|
}
|
|
28213
|
+
/**
|
|
28214
|
+
* Contains information about the current user's state in an
|
|
28215
|
+
* <a href="https://corefork.telegram.org/api/auctions">auction
|
|
28216
|
+
* »</a>.
|
|
28217
|
+
*
|
|
28218
|
+
* The <code>bid_amount</code>, <code>bid_date</code>,
|
|
28219
|
+
* <code>bid_peer</code> and <code>min_bid_amount</code> flags
|
|
28220
|
+
* of {@link RawStarGiftAuctionUserState} will all be set if
|
|
28221
|
+
* the user placed a bid in the auction.
|
|
28222
|
+
*/
|
|
27370
28223
|
interface RawStarGiftAuctionUserState {
|
|
27371
28224
|
_: 'starGiftAuctionUserState';
|
|
28225
|
+
/**
|
|
28226
|
+
* If set, the placed bid was returned to the user, because it
|
|
28227
|
+
* was outbid so much that it fell out of the top
|
|
28228
|
+
* {@link RawStarGiftAuctionState}.<code>gifts_left</code>
|
|
28229
|
+
* positions, meaning that even if no new bids are placed, the
|
|
28230
|
+
* user will never receive any gifts, so the bid was completely
|
|
28231
|
+
* removed from the auction, and in order to participate again
|
|
28232
|
+
* the user must manually make a new bid.
|
|
28233
|
+
*/
|
|
27372
28234
|
returned?: boolean;
|
|
28235
|
+
/**
|
|
28236
|
+
* Contains the amount of the placed bid in
|
|
28237
|
+
* <a href="https://corefork.telegram.org/api/stars">Telegram
|
|
28238
|
+
* Stars</a>.
|
|
28239
|
+
*/
|
|
27373
28240
|
bidAmount?: Long;
|
|
28241
|
+
/**
|
|
28242
|
+
* Contains a UNIX timestamp, indicating when the bid was
|
|
28243
|
+
* placed.
|
|
28244
|
+
*/
|
|
27374
28245
|
bidDate?: number;
|
|
28246
|
+
/**
|
|
28247
|
+
* Contains the minumum allowed bid amount in
|
|
28248
|
+
* <a href="https://corefork.telegram.org/api/stars">Telegram
|
|
28249
|
+
* Stars</a>, if set overrides
|
|
28250
|
+
* {@link RawStarGiftAuctionState}.<code>min_bid_amount</code>
|
|
28251
|
+
* for the current user.
|
|
28252
|
+
*/
|
|
27375
28253
|
minBidAmount?: Long;
|
|
28254
|
+
/**
|
|
28255
|
+
* Contains the peer that will receive the gift, if you end up
|
|
28256
|
+
* winning this round
|
|
28257
|
+
*/
|
|
27376
28258
|
bidPeer?: tl.TypePeer;
|
|
28259
|
+
/**
|
|
28260
|
+
* Contains the number of gifts that were purchased so far in
|
|
28261
|
+
* the auction by the current user.
|
|
28262
|
+
*/
|
|
27377
28263
|
acquiredCount: number;
|
|
27378
28264
|
}
|
|
28265
|
+
/**
|
|
28266
|
+
* Describes a gift that the current user won in an auction.
|
|
28267
|
+
*/
|
|
27379
28268
|
interface RawStarGiftAuctionAcquiredGift {
|
|
27380
28269
|
_: 'starGiftAuctionAcquiredGift';
|
|
28270
|
+
/**
|
|
28271
|
+
* If set, your name will be hidden if the destination peer
|
|
28272
|
+
* decides to display the gift on their profile (they will
|
|
28273
|
+
* still see that you sent the gift).
|
|
28274
|
+
*/
|
|
27381
28275
|
nameHidden?: boolean;
|
|
28276
|
+
/**
|
|
28277
|
+
* The peer that received the gift.
|
|
28278
|
+
*/
|
|
27382
28279
|
peer: tl.TypePeer;
|
|
28280
|
+
/**
|
|
28281
|
+
* When was the gift obtained.
|
|
28282
|
+
*/
|
|
27383
28283
|
date: number;
|
|
28284
|
+
/**
|
|
28285
|
+
* The amount in
|
|
28286
|
+
* <a href="https://corefork.telegram.org/api/stars">Telegram
|
|
28287
|
+
* Stars</a> that was bid in order to obtain the gift.
|
|
28288
|
+
*/
|
|
27384
28289
|
bidAmount: Long;
|
|
28290
|
+
/**
|
|
28291
|
+
* The round number where the gift was obtained.
|
|
28292
|
+
*/
|
|
27385
28293
|
round: number;
|
|
28294
|
+
/**
|
|
28295
|
+
* The position of the gift in the auction.
|
|
28296
|
+
*/
|
|
27386
28297
|
pos: number;
|
|
28298
|
+
/**
|
|
28299
|
+
* Optional message that attached with the gift, passed when
|
|
28300
|
+
* making the bid.
|
|
28301
|
+
*/
|
|
27387
28302
|
message?: tl.TypeTextWithEntities;
|
|
27388
28303
|
giftNum?: number;
|
|
27389
28304
|
}
|
|
28305
|
+
/**
|
|
28306
|
+
* Contains info about
|
|
28307
|
+
* <a href="https://corefork.telegram.org/api/auctions">an
|
|
28308
|
+
* auction where the user has placed a bid »</a>.
|
|
28309
|
+
*/
|
|
27390
28310
|
interface RawStarGiftActiveAuctionState {
|
|
27391
28311
|
_: 'starGiftActiveAuctionState';
|
|
28312
|
+
/**
|
|
28313
|
+
* The
|
|
28314
|
+
* <a href="https://corefork.telegram.org/api/gifts#collectible-gifts">collectible
|
|
28315
|
+
* gift »</a> currently being distributed in the auction.
|
|
28316
|
+
*/
|
|
27392
28317
|
gift: tl.TypeStarGift;
|
|
28318
|
+
/**
|
|
28319
|
+
* Auction state
|
|
28320
|
+
*/
|
|
27393
28321
|
state: tl.TypeStarGiftAuctionState;
|
|
28322
|
+
/**
|
|
28323
|
+
* Auction state related to the current user (i.e. info about
|
|
28324
|
+
* placed bids, won gifts and so on).
|
|
28325
|
+
*/
|
|
27394
28326
|
userState: tl.TypeStarGiftAuctionUserState;
|
|
27395
28327
|
}
|
|
28328
|
+
/**
|
|
28329
|
+
* Used to fetch
|
|
28330
|
+
* <a href="https://corefork.telegram.org/api/auctions">auctions</a>
|
|
28331
|
+
* using the ID of the linked
|
|
28332
|
+
* <a href="https://corefork.telegram.org/api/gifts#collectible-gifts">collectible
|
|
28333
|
+
* gift</a>.
|
|
28334
|
+
*/
|
|
27396
28335
|
interface RawInputStarGiftAuction {
|
|
27397
28336
|
_: 'inputStarGiftAuction';
|
|
28337
|
+
/**
|
|
28338
|
+
* <a href="https://corefork.telegram.org/api/gifts#collectible-gifts">Collectible
|
|
28339
|
+
* gift ID</a>
|
|
28340
|
+
*/
|
|
27398
28341
|
giftId: Long;
|
|
27399
28342
|
}
|
|
28343
|
+
/**
|
|
28344
|
+
* Used to fetch
|
|
28345
|
+
* <a href="https://corefork.telegram.org/api/auctions">auctions</a>
|
|
28346
|
+
* using the
|
|
28347
|
+
* <a href="https://corefork.telegram.org/api/links#auction-links">slug
|
|
28348
|
+
* of an auction deep link »</a>.
|
|
28349
|
+
*/
|
|
27400
28350
|
interface RawInputStarGiftAuctionSlug {
|
|
27401
28351
|
_: 'inputStarGiftAuctionSlug';
|
|
28352
|
+
/**
|
|
28353
|
+
* <a href="https://corefork.telegram.org/api/links#auction-links">Auction
|
|
28354
|
+
* deep link slug »</a>.
|
|
28355
|
+
*/
|
|
27402
28356
|
slug: string;
|
|
27403
28357
|
}
|
|
28358
|
+
/**
|
|
28359
|
+
* Human-readable info about a passkey associated to an
|
|
28360
|
+
* account, returned when
|
|
28361
|
+
* <a href="https://corefork.telegram.org/api/passkeys#creating-a-passkey">creating
|
|
28362
|
+
* a passkey »</a> or
|
|
28363
|
+
* <a href="https://corefork.telegram.org/api/passkeys#list-passkeys">listing
|
|
28364
|
+
* passkeys »</a>.
|
|
28365
|
+
*/
|
|
27404
28366
|
interface RawPasskey {
|
|
27405
28367
|
_: 'passkey';
|
|
28368
|
+
/**
|
|
28369
|
+
* Unique passkey ID, usable for example in
|
|
28370
|
+
* {@link account.RawDeletePasskeyRequest}.
|
|
28371
|
+
*/
|
|
27406
28372
|
id: string;
|
|
28373
|
+
/**
|
|
28374
|
+
* Human-readable passkey name
|
|
28375
|
+
*/
|
|
27407
28376
|
name: string;
|
|
28377
|
+
/**
|
|
28378
|
+
* Creation date of the passkey
|
|
28379
|
+
*/
|
|
27408
28380
|
date: number;
|
|
28381
|
+
/**
|
|
28382
|
+
* ID of the
|
|
28383
|
+
* <a href="https://corefork.telegram.org/api/custom-emoji">custom
|
|
28384
|
+
* emoji</a> used as icon for the software or password manager
|
|
28385
|
+
* that created the passkey
|
|
28386
|
+
*/
|
|
27409
28387
|
softwareEmojiId?: Long;
|
|
28388
|
+
/**
|
|
28389
|
+
* Date when the passkey was last used to log in
|
|
28390
|
+
*/
|
|
27410
28391
|
lastUsageDate?: number;
|
|
27411
28392
|
}
|
|
28393
|
+
/**
|
|
28394
|
+
* WebAuthn registration response used when registering a new
|
|
28395
|
+
* passkey, see
|
|
28396
|
+
* <a href="https://corefork.telegram.org/api/passkeys#creating-a-passkey">here
|
|
28397
|
+
* »</a> for more info on the full flow.
|
|
28398
|
+
*
|
|
28399
|
+
* Generated from the
|
|
28400
|
+
* <a href="https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAttestationResponse">AuthenticatorAttestationResponse</a>
|
|
28401
|
+
* object.
|
|
28402
|
+
*/
|
|
27412
28403
|
interface RawInputPasskeyResponseRegister {
|
|
27413
28404
|
_: 'inputPasskeyResponseRegister';
|
|
28405
|
+
/**
|
|
28406
|
+
* Base64url-decoded <code>clientDataJSON</code> field of an
|
|
28407
|
+
* <a href="https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAttestationResponse">AuthenticatorAttestationResponse</a>,
|
|
28408
|
+
* wrapped in {@link RawDataJSON}
|
|
28409
|
+
*/
|
|
27414
28410
|
clientData: tl.TypeDataJSON;
|
|
28411
|
+
/**
|
|
28412
|
+
* Base64url-decoded <code>attestationObject</code> field of an
|
|
28413
|
+
* <a href="https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAttestationResponse">AuthenticatorAttestationResponse</a>
|
|
28414
|
+
*/
|
|
27415
28415
|
attestationData: Uint8Array;
|
|
27416
28416
|
}
|
|
28417
|
+
/**
|
|
28418
|
+
* WebAuthn authentication response used when logging in with a
|
|
28419
|
+
* passkey, see
|
|
28420
|
+
* <a href="https://corefork.telegram.org/api/passkeys#logging-in-with-a-passkey">here
|
|
28421
|
+
* »</a> for more info on the full flow.
|
|
28422
|
+
*
|
|
28423
|
+
* Generated from the
|
|
28424
|
+
* <a href="https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAssertionResponse">AuthenticatorAssertionResponse</a>
|
|
28425
|
+
* object.
|
|
28426
|
+
*/
|
|
27417
28427
|
interface RawInputPasskeyResponseLogin {
|
|
27418
28428
|
_: 'inputPasskeyResponseLogin';
|
|
28429
|
+
/**
|
|
28430
|
+
* Base64url-decoded <code>clientDataJSON</code> field of an
|
|
28431
|
+
* <a href="https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAssertionResponse">AuthenticatorAssertionResponse</a>,
|
|
28432
|
+
* wrapped in {@link RawDataJSON}
|
|
28433
|
+
*/
|
|
27419
28434
|
clientData: tl.TypeDataJSON;
|
|
28435
|
+
/**
|
|
28436
|
+
* Base64url-decoded <code>authenticatorData</code> field of an
|
|
28437
|
+
* <a href="https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAssertionResponse">AuthenticatorAssertionResponse</a>
|
|
28438
|
+
*/
|
|
27420
28439
|
authenticatorData: Uint8Array;
|
|
28440
|
+
/**
|
|
28441
|
+
* Base64url-decoded <code>signature</code> field of an
|
|
28442
|
+
* <a href="https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAssertionResponse">AuthenticatorAssertionResponse</a>
|
|
28443
|
+
*/
|
|
27421
28444
|
signature: Uint8Array;
|
|
28445
|
+
/**
|
|
28446
|
+
* Base64url-decoded <code>userHandle</code> field of an
|
|
28447
|
+
* <a href="https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAssertionResponse">AuthenticatorAssertionResponse</a>.
|
|
28448
|
+
* The user handle specified by the server is in
|
|
28449
|
+
* <code><dc_id>:<user_id></code> format.
|
|
28450
|
+
*/
|
|
27422
28451
|
userHandle: string;
|
|
27423
28452
|
}
|
|
28453
|
+
/**
|
|
28454
|
+
* Public-key passkey credential used both for registration and
|
|
28455
|
+
* for login, see
|
|
28456
|
+
* <a href="https://corefork.telegram.org/api/passkeys#creating-a-passkey">creating
|
|
28457
|
+
* a passkey »</a> and
|
|
28458
|
+
* <a href="https://corefork.telegram.org/api/passkeys#logging-in-with-a-passkey">logging
|
|
28459
|
+
* in with a passkey »</a> for the full flows.
|
|
28460
|
+
*/
|
|
27424
28461
|
interface RawInputPasskeyCredentialPublicKey {
|
|
27425
28462
|
_: 'inputPasskeyCredentialPublicKey';
|
|
28463
|
+
/**
|
|
28464
|
+
* <code>id</code> field of a
|
|
28465
|
+
* <a href="https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential">PublicKeyCredential</a>,
|
|
28466
|
+
* passed as-is without base64url-decoding when using the JSON
|
|
28467
|
+
* representation
|
|
28468
|
+
*/
|
|
27426
28469
|
id: string;
|
|
28470
|
+
/**
|
|
28471
|
+
* <code>rawId</code> field of a
|
|
28472
|
+
* <a href="https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential">PublicKeyCredential</a>,
|
|
28473
|
+
* passed as-is without base64url-decoding when using the JSON
|
|
28474
|
+
* representation
|
|
28475
|
+
*/
|
|
27427
28476
|
rawId: string;
|
|
28477
|
+
/**
|
|
28478
|
+
* Registration or login response.
|
|
28479
|
+
*/
|
|
27428
28480
|
response: tl.TypeInputPasskeyResponse;
|
|
27429
28481
|
}
|
|
27430
28482
|
interface RawInputPasskeyCredentialFirebasePNV {
|
|
@@ -27437,16 +28489,54 @@ export class RpcError extends Error {
|
|
|
27437
28489
|
edgeColor: number;
|
|
27438
28490
|
textColor: number;
|
|
27439
28491
|
}
|
|
28492
|
+
/**
|
|
28493
|
+
* Describes one or more
|
|
28494
|
+
* <a href="https://corefork.telegram.org/api/auctions">collectible
|
|
28495
|
+
* gift auction rounds »</a>.
|
|
28496
|
+
*/
|
|
27440
28497
|
interface RawStarGiftAuctionRound {
|
|
27441
28498
|
_: 'starGiftAuctionRound';
|
|
28499
|
+
/**
|
|
28500
|
+
* This object describes all rounds starting from
|
|
28501
|
+
* <code>num</code> up until <code>next.num-1</code>
|
|
28502
|
+
* inclusively (<code>next</code> is the next
|
|
28503
|
+
* <a href="https://corefork.telegram.org/type/StarGiftAuctionRound">StarGiftAuctionRound</a>).
|
|
28504
|
+
*/
|
|
27442
28505
|
num: number;
|
|
28506
|
+
/**
|
|
28507
|
+
* Duration in seconds of the round(s).
|
|
28508
|
+
*/
|
|
27443
28509
|
duration: number;
|
|
27444
28510
|
}
|
|
28511
|
+
/**
|
|
28512
|
+
* Describes one or more extendable
|
|
28513
|
+
* <a href="https://corefork.telegram.org/api/auctions">collectible
|
|
28514
|
+
* gift auction rounds »</a>.
|
|
28515
|
+
*/
|
|
27445
28516
|
interface RawStarGiftAuctionRoundExtendable {
|
|
27446
28517
|
_: 'starGiftAuctionRoundExtendable';
|
|
28518
|
+
/**
|
|
28519
|
+
* This object describes all rounds starting from
|
|
28520
|
+
* <code>num</code> up until <code>next.num-1</code>
|
|
28521
|
+
* inclusively (<code>next</code> is the next
|
|
28522
|
+
* <a href="https://corefork.telegram.org/type/StarGiftAuctionRound">StarGiftAuctionRound</a>).
|
|
28523
|
+
*/
|
|
27447
28524
|
num: number;
|
|
28525
|
+
/**
|
|
28526
|
+
* Duration in seconds of the round(s).
|
|
28527
|
+
*/
|
|
27448
28528
|
duration: number;
|
|
28529
|
+
/**
|
|
28530
|
+
* The round(s) will be extended by <code>extend_window</code>
|
|
28531
|
+
* if a bid changes the composition/order of the top
|
|
28532
|
+
* <code>extend_top</code> bidders.
|
|
28533
|
+
*/
|
|
27449
28534
|
extendTop: number;
|
|
28535
|
+
/**
|
|
28536
|
+
* The round(s) will be extended by this many seconds if a bid
|
|
28537
|
+
* changes the composition/order of the top
|
|
28538
|
+
* <code>extend_top</code> bidders.
|
|
28539
|
+
*/
|
|
27450
28540
|
extendWindow: number;
|
|
27451
28541
|
}
|
|
27452
28542
|
interface RawStarGiftAttributeRarity {
|
|
@@ -27465,69 +28555,284 @@ export class RpcError extends Error {
|
|
|
27465
28555
|
interface RawStarGiftAttributeRarityLegendary {
|
|
27466
28556
|
_: 'starGiftAttributeRarityLegendary';
|
|
27467
28557
|
}
|
|
28558
|
+
/**
|
|
28559
|
+
* This constructor allows setting a custom background color
|
|
28560
|
+
* and custom emoji label for a button, see
|
|
28561
|
+
* <a href="https://corefork.telegram.org/api/bots/buttons#button-styles">here
|
|
28562
|
+
* »</a> for more info.
|
|
28563
|
+
*/
|
|
27468
28564
|
interface RawKeyboardButtonStyle {
|
|
27469
28565
|
_: 'keyboardButtonStyle';
|
|
28566
|
+
/**
|
|
28567
|
+
* A dark blue color, recommended for main actions.
|
|
28568
|
+
*/
|
|
27470
28569
|
bgPrimary?: boolean;
|
|
28570
|
+
/**
|
|
28571
|
+
* A red color, recommended for destructive actions.
|
|
28572
|
+
*/
|
|
27471
28573
|
bgDanger?: boolean;
|
|
28574
|
+
/**
|
|
28575
|
+
* A green color, recommended for positive actions.
|
|
28576
|
+
*/
|
|
27472
28577
|
bgSuccess?: boolean;
|
|
28578
|
+
/**
|
|
28579
|
+
* The ID of a
|
|
28580
|
+
* <a href="https://corefork.telegram.org/api/custom-emoji">custom
|
|
28581
|
+
* emoji</a> to be displayed before the button's label.
|
|
28582
|
+
*/
|
|
27473
28583
|
icon?: Long;
|
|
27474
28584
|
}
|
|
27475
|
-
interface
|
|
27476
|
-
_: '
|
|
27477
|
-
|
|
28585
|
+
interface RawInputMessageReadMetric {
|
|
28586
|
+
_: 'inputMessageReadMetric';
|
|
28587
|
+
msgId: number;
|
|
28588
|
+
viewId: Long;
|
|
28589
|
+
timeInViewMs: number;
|
|
28590
|
+
activeTimeInViewMs: number;
|
|
28591
|
+
heightToViewportRatioPermille: number;
|
|
28592
|
+
seenRangeRatioPermille: number;
|
|
27478
28593
|
}
|
|
27479
|
-
interface
|
|
27480
|
-
_: '
|
|
27481
|
-
|
|
28594
|
+
interface RawInputAiComposeToneDefault {
|
|
28595
|
+
_: 'inputAiComposeToneDefault';
|
|
28596
|
+
tone: string;
|
|
27482
28597
|
}
|
|
27483
|
-
interface
|
|
27484
|
-
_: '
|
|
28598
|
+
interface RawInputAiComposeToneID {
|
|
28599
|
+
_: 'inputAiComposeToneID';
|
|
28600
|
+
id: Long;
|
|
28601
|
+
accessHash: Long;
|
|
28602
|
+
}
|
|
28603
|
+
interface RawInputAiComposeToneSlug {
|
|
28604
|
+
_: 'inputAiComposeToneSlug';
|
|
28605
|
+
slug: string;
|
|
28606
|
+
}
|
|
28607
|
+
interface RawAiComposeTone {
|
|
28608
|
+
_: 'aiComposeTone';
|
|
28609
|
+
creator?: boolean;
|
|
28610
|
+
id: Long;
|
|
28611
|
+
accessHash: Long;
|
|
28612
|
+
slug: string;
|
|
28613
|
+
title: string;
|
|
28614
|
+
emojiId?: Long;
|
|
28615
|
+
prompt?: string;
|
|
28616
|
+
installsCount?: number;
|
|
28617
|
+
authorId?: number;
|
|
28618
|
+
exampleEnglish?: tl.TypeAiComposeToneExample;
|
|
28619
|
+
}
|
|
28620
|
+
interface RawAiComposeToneDefault {
|
|
28621
|
+
_: 'aiComposeToneDefault';
|
|
28622
|
+
tone: string;
|
|
28623
|
+
emojiId: Long;
|
|
28624
|
+
title: string;
|
|
28625
|
+
}
|
|
28626
|
+
interface RawAiComposeToneExample {
|
|
28627
|
+
_: 'aiComposeToneExample';
|
|
28628
|
+
from: tl.TypeTextWithEntities;
|
|
28629
|
+
to: tl.TypeTextWithEntities;
|
|
28630
|
+
}
|
|
28631
|
+
interface RawUpdateJoinChatWebViewDecision {
|
|
28632
|
+
_: 'updateJoinChatWebViewDecision';
|
|
28633
|
+
peer: tl.TypePeer;
|
|
28634
|
+
queryId: Long;
|
|
28635
|
+
result: tl.TypeJoinChatBotResult;
|
|
28636
|
+
}
|
|
28637
|
+
interface RawUpdateNewBotConnection {
|
|
28638
|
+
_: 'updateNewBotConnection';
|
|
28639
|
+
confirmed?: boolean;
|
|
27485
28640
|
botId: number;
|
|
28641
|
+
date?: number;
|
|
28642
|
+
device?: string;
|
|
28643
|
+
location?: string;
|
|
27486
28644
|
}
|
|
27487
|
-
interface
|
|
27488
|
-
_: '
|
|
28645
|
+
interface RawUpdateWebBrowserSettings {
|
|
28646
|
+
_: 'updateWebBrowserSettings';
|
|
28647
|
+
openExternalBrowser?: boolean;
|
|
28648
|
+
displayCloseButton?: boolean;
|
|
27489
28649
|
}
|
|
27490
|
-
interface
|
|
27491
|
-
_: '
|
|
28650
|
+
interface RawUpdateWebBrowserException {
|
|
28651
|
+
_: 'updateWebBrowserException';
|
|
28652
|
+
delete?: boolean;
|
|
28653
|
+
openExternalBrowser?: boolean;
|
|
28654
|
+
exception: tl.TypeWebDomainException;
|
|
28655
|
+
}
|
|
28656
|
+
interface RawInputSendMessageRichMessageDraftAction {
|
|
28657
|
+
_: 'inputSendMessageRichMessageDraftAction';
|
|
28658
|
+
randomId: Long;
|
|
28659
|
+
richMessage: tl.TypeInputRichMessage;
|
|
28660
|
+
}
|
|
28661
|
+
interface RawSendMessageRichMessageDraftAction {
|
|
28662
|
+
_: 'sendMessageRichMessageDraftAction';
|
|
28663
|
+
randomId: Long;
|
|
28664
|
+
richMessage: tl.TypeRichMessage;
|
|
28665
|
+
}
|
|
28666
|
+
interface RawInputBotInlineMessageRichMessage {
|
|
28667
|
+
_: 'inputBotInlineMessageRichMessage';
|
|
28668
|
+
replyMarkup?: tl.TypeReplyMarkup;
|
|
28669
|
+
richMessage: tl.TypeInputRichMessage;
|
|
28670
|
+
}
|
|
28671
|
+
interface RawBotInlineMessageRichMessage {
|
|
28672
|
+
_: 'botInlineMessageRichMessage';
|
|
28673
|
+
replyMarkup?: tl.TypeReplyMarkup;
|
|
28674
|
+
richMessage: tl.TypeRichMessage;
|
|
28675
|
+
}
|
|
28676
|
+
interface RawTextMath {
|
|
28677
|
+
_: 'textMath';
|
|
28678
|
+
source: string;
|
|
28679
|
+
}
|
|
28680
|
+
interface RawTextCustomEmoji {
|
|
28681
|
+
_: 'textCustomEmoji';
|
|
28682
|
+
documentId: Long;
|
|
28683
|
+
alt: string;
|
|
28684
|
+
}
|
|
28685
|
+
interface RawTextSpoiler {
|
|
28686
|
+
_: 'textSpoiler';
|
|
28687
|
+
text: tl.TypeRichText;
|
|
28688
|
+
}
|
|
28689
|
+
interface RawTextMention {
|
|
28690
|
+
_: 'textMention';
|
|
28691
|
+
text: tl.TypeRichText;
|
|
28692
|
+
}
|
|
28693
|
+
interface RawTextHashtag {
|
|
28694
|
+
_: 'textHashtag';
|
|
28695
|
+
text: tl.TypeRichText;
|
|
28696
|
+
}
|
|
28697
|
+
interface RawTextBotCommand {
|
|
28698
|
+
_: 'textBotCommand';
|
|
28699
|
+
text: tl.TypeRichText;
|
|
28700
|
+
}
|
|
28701
|
+
interface RawTextCashtag {
|
|
28702
|
+
_: 'textCashtag';
|
|
28703
|
+
text: tl.TypeRichText;
|
|
28704
|
+
}
|
|
28705
|
+
interface RawTextAutoUrl {
|
|
28706
|
+
_: 'textAutoUrl';
|
|
28707
|
+
text: tl.TypeRichText;
|
|
28708
|
+
}
|
|
28709
|
+
interface RawTextAutoEmail {
|
|
28710
|
+
_: 'textAutoEmail';
|
|
28711
|
+
text: tl.TypeRichText;
|
|
28712
|
+
}
|
|
28713
|
+
interface RawTextAutoPhone {
|
|
28714
|
+
_: 'textAutoPhone';
|
|
28715
|
+
text: tl.TypeRichText;
|
|
28716
|
+
}
|
|
28717
|
+
interface RawTextBankCard {
|
|
28718
|
+
_: 'textBankCard';
|
|
28719
|
+
text: tl.TypeRichText;
|
|
28720
|
+
}
|
|
28721
|
+
interface RawTextMentionName {
|
|
28722
|
+
_: 'textMentionName';
|
|
28723
|
+
text: tl.TypeRichText;
|
|
27492
28724
|
userId: number;
|
|
27493
|
-
botId: number;
|
|
27494
|
-
qts: number;
|
|
27495
28725
|
}
|
|
27496
|
-
interface
|
|
27497
|
-
_: '
|
|
27498
|
-
|
|
27499
|
-
|
|
28726
|
+
interface RawTextDate {
|
|
28727
|
+
_: 'textDate';
|
|
28728
|
+
relative?: boolean;
|
|
28729
|
+
shortTime?: boolean;
|
|
28730
|
+
longTime?: boolean;
|
|
28731
|
+
shortDate?: boolean;
|
|
28732
|
+
longDate?: boolean;
|
|
28733
|
+
dayOfWeek?: boolean;
|
|
28734
|
+
text: tl.TypeRichText;
|
|
28735
|
+
date: number;
|
|
27500
28736
|
}
|
|
27501
|
-
interface
|
|
27502
|
-
_: '
|
|
27503
|
-
|
|
27504
|
-
length: number;
|
|
27505
|
-
oldText: string;
|
|
28737
|
+
interface RawPageBlockHeading1 {
|
|
28738
|
+
_: 'pageBlockHeading1';
|
|
28739
|
+
text: tl.TypeRichText;
|
|
27506
28740
|
}
|
|
27507
|
-
interface
|
|
27508
|
-
_: '
|
|
27509
|
-
|
|
27510
|
-
length: number;
|
|
28741
|
+
interface RawPageBlockHeading2 {
|
|
28742
|
+
_: 'pageBlockHeading2';
|
|
28743
|
+
text: tl.TypeRichText;
|
|
27511
28744
|
}
|
|
27512
|
-
interface
|
|
27513
|
-
_: '
|
|
27514
|
-
text: tl.
|
|
27515
|
-
media?: tl.TypeInputMedia;
|
|
28745
|
+
interface RawPageBlockHeading3 {
|
|
28746
|
+
_: 'pageBlockHeading3';
|
|
28747
|
+
text: tl.TypeRichText;
|
|
27516
28748
|
}
|
|
27517
|
-
interface
|
|
27518
|
-
_: '
|
|
27519
|
-
|
|
27520
|
-
suggestedName?: string;
|
|
27521
|
-
suggestedUsername?: string;
|
|
28749
|
+
interface RawPageBlockHeading4 {
|
|
28750
|
+
_: 'pageBlockHeading4';
|
|
28751
|
+
text: tl.TypeRichText;
|
|
27522
28752
|
}
|
|
27523
|
-
interface
|
|
27524
|
-
_: '
|
|
27525
|
-
|
|
27526
|
-
|
|
27527
|
-
|
|
27528
|
-
|
|
27529
|
-
|
|
27530
|
-
|
|
28753
|
+
interface RawPageBlockHeading5 {
|
|
28754
|
+
_: 'pageBlockHeading5';
|
|
28755
|
+
text: tl.TypeRichText;
|
|
28756
|
+
}
|
|
28757
|
+
interface RawPageBlockHeading6 {
|
|
28758
|
+
_: 'pageBlockHeading6';
|
|
28759
|
+
text: tl.TypeRichText;
|
|
28760
|
+
}
|
|
28761
|
+
interface RawPageBlockMath {
|
|
28762
|
+
_: 'pageBlockMath';
|
|
28763
|
+
source: string;
|
|
28764
|
+
}
|
|
28765
|
+
interface RawPageBlockThinking {
|
|
28766
|
+
_: 'pageBlockThinking';
|
|
28767
|
+
text: tl.TypeRichText;
|
|
28768
|
+
}
|
|
28769
|
+
interface RawInputPageBlockMap {
|
|
28770
|
+
_: 'inputPageBlockMap';
|
|
28771
|
+
geo: tl.TypeInputGeoPoint;
|
|
28772
|
+
zoom: number;
|
|
28773
|
+
w: number;
|
|
28774
|
+
h: number;
|
|
28775
|
+
caption: tl.TypePageCaption;
|
|
28776
|
+
}
|
|
28777
|
+
interface RawPageBlockBlockquoteBlocks {
|
|
28778
|
+
_: 'pageBlockBlockquoteBlocks';
|
|
28779
|
+
blocks: tl.TypePageBlock[];
|
|
28780
|
+
caption: tl.TypeRichText;
|
|
28781
|
+
}
|
|
28782
|
+
interface RawJoinChatBotResultApproved {
|
|
28783
|
+
_: 'joinChatBotResultApproved';
|
|
28784
|
+
}
|
|
28785
|
+
interface RawJoinChatBotResultDeclined {
|
|
28786
|
+
_: 'joinChatBotResultDeclined';
|
|
28787
|
+
}
|
|
28788
|
+
interface RawJoinChatBotResultQueued {
|
|
28789
|
+
_: 'joinChatBotResultQueued';
|
|
28790
|
+
}
|
|
28791
|
+
interface RawJoinChatBotResultWebView {
|
|
28792
|
+
_: 'joinChatBotResultWebView';
|
|
28793
|
+
url: string;
|
|
28794
|
+
}
|
|
28795
|
+
interface RawWebDomainException {
|
|
28796
|
+
_: 'webDomainException';
|
|
28797
|
+
domain: string;
|
|
28798
|
+
url: string;
|
|
28799
|
+
title: string;
|
|
28800
|
+
favicon?: Long;
|
|
28801
|
+
}
|
|
28802
|
+
interface RawRichMessage {
|
|
28803
|
+
_: 'richMessage';
|
|
28804
|
+
rtl?: boolean;
|
|
28805
|
+
part?: boolean;
|
|
28806
|
+
blocks: tl.TypePageBlock[];
|
|
28807
|
+
photos: tl.TypePhoto[];
|
|
28808
|
+
documents: tl.TypeDocument[];
|
|
28809
|
+
}
|
|
28810
|
+
interface RawInputRichMessage {
|
|
28811
|
+
_: 'inputRichMessage';
|
|
28812
|
+
rtl?: boolean;
|
|
28813
|
+
noautolink?: boolean;
|
|
28814
|
+
blocks: tl.TypePageBlock[];
|
|
28815
|
+
photos?: tl.TypeInputPhoto[];
|
|
28816
|
+
documents?: tl.TypeInputDocument[];
|
|
28817
|
+
users?: tl.TypeInputUser[];
|
|
28818
|
+
}
|
|
28819
|
+
interface RawInputRichMessageHTML {
|
|
28820
|
+
_: 'inputRichMessageHTML';
|
|
28821
|
+
rtl?: boolean;
|
|
28822
|
+
noautolink?: boolean;
|
|
28823
|
+
html: string;
|
|
28824
|
+
photos?: tl.TypeInputPhoto[];
|
|
28825
|
+
documents?: tl.TypeInputDocument[];
|
|
28826
|
+
users?: tl.TypeInputUser[];
|
|
28827
|
+
}
|
|
28828
|
+
interface RawInputRichMessageMarkdown {
|
|
28829
|
+
_: 'inputRichMessageMarkdown';
|
|
28830
|
+
rtl?: boolean;
|
|
28831
|
+
noautolink?: boolean;
|
|
28832
|
+
markdown: string;
|
|
28833
|
+
photos?: tl.TypeInputPhoto[];
|
|
28834
|
+
documents?: tl.TypeInputDocument[];
|
|
28835
|
+
users?: tl.TypeInputUser[];
|
|
27531
28836
|
}
|
|
27532
28837
|
/**
|
|
27533
28838
|
* A
|
|
@@ -27789,7 +29094,7 @@ export class RpcError extends Error {
|
|
|
27789
29094
|
*/
|
|
27790
29095
|
query: X;
|
|
27791
29096
|
}
|
|
27792
|
-
interface RpcCallReturn extends storage.RpcCallReturn, auth.RpcCallReturn, contacts.RpcCallReturn, messages.RpcCallReturn, updates.RpcCallReturn, photos.RpcCallReturn, upload.RpcCallReturn, help.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, fragment.RpcCallReturn, mtcute.RpcCallReturn, langpack.RpcCallReturn, folders.RpcCallReturn {
|
|
29097
|
+
interface RpcCallReturn extends storage.RpcCallReturn, auth.RpcCallReturn, contacts.RpcCallReturn, messages.RpcCallReturn, updates.RpcCallReturn, photos.RpcCallReturn, upload.RpcCallReturn, help.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, fragment.RpcCallReturn, aicompose.RpcCallReturn, mtcute.RpcCallReturn, langpack.RpcCallReturn, folders.RpcCallReturn {
|
|
27793
29098
|
'invokeAfterMsg': any
|
|
27794
29099
|
'invokeAfterMsgs': any
|
|
27795
29100
|
'initConnection': any
|
|
@@ -27896,7 +29201,10 @@ export class RpcError extends Error {
|
|
|
27896
29201
|
type TypeChatParticipant = tl.RawChatParticipant | tl.RawChatParticipantCreator | tl.RawChatParticipantAdmin
|
|
27897
29202
|
function isAnyChatParticipant(o: object): o is TypeChatParticipant
|
|
27898
29203
|
/**
|
|
27899
|
-
*
|
|
29204
|
+
* Contains the full list of members of
|
|
29205
|
+
* <a href="https://corefork.telegram.org/api/channel#basic-groups">basic
|
|
29206
|
+
* groups »</a>; is <strong>NOT</strong> usable for
|
|
29207
|
+
* supergroups/channels.
|
|
27900
29208
|
*/
|
|
27901
29209
|
type TypeChatParticipants = tl.RawChatParticipantsForbidden | tl.RawChatParticipants
|
|
27902
29210
|
function isAnyChatParticipants(o: object): o is TypeChatParticipants
|
|
@@ -28001,7 +29309,7 @@ export class RpcError extends Error {
|
|
|
28001
29309
|
/**
|
|
28002
29310
|
* Object contains info on events occurred.
|
|
28003
29311
|
*/
|
|
28004
|
-
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.RawUpdateUser | tl.RawUpdateAutoSaveSettings | 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.RawUpdateBotBusinessConnect | tl.RawUpdateBotNewBusinessMessage | tl.RawUpdateBotEditBusinessMessage | tl.RawUpdateBotDeleteBusinessMessage | tl.RawUpdateNewStoryReaction | tl.RawUpdateStarsBalance | tl.RawUpdateBusinessBotCallbackQuery | tl.RawUpdateStarsRevenueStatus | tl.RawUpdateBotPurchasedPaidMedia | tl.RawUpdatePaidReactionPrivacy | tl.RawUpdateSentPhoneCode | tl.RawUpdateGroupCallChainBlocks | tl.RawUpdateReadMonoForumInbox | tl.RawUpdateReadMonoForumOutbox | tl.RawUpdateMonoForumNoPaidException | tl.RawUpdateGroupCallMessage | tl.RawUpdateGroupCallEncryptedMessage | tl.RawUpdatePinnedForumTopic | tl.RawUpdatePinnedForumTopics | tl.RawUpdateDeleteGroupCallMessages | tl.RawUpdateStarGiftAuctionState | tl.RawUpdateStarGiftAuctionUserState | tl.RawUpdateEmojiGameInfo | tl.RawUpdateStarGiftCraftFail | tl.RawUpdateChatParticipantRank | tl.RawUpdateManagedBot | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.mtcute.RawDummyUpdate
|
|
29312
|
+
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.RawUpdateUser | tl.RawUpdateAutoSaveSettings | 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.RawUpdateBotBusinessConnect | tl.RawUpdateBotNewBusinessMessage | tl.RawUpdateBotEditBusinessMessage | tl.RawUpdateBotDeleteBusinessMessage | tl.RawUpdateNewStoryReaction | tl.RawUpdateStarsBalance | tl.RawUpdateBusinessBotCallbackQuery | tl.RawUpdateStarsRevenueStatus | tl.RawUpdateBotPurchasedPaidMedia | tl.RawUpdatePaidReactionPrivacy | tl.RawUpdateSentPhoneCode | tl.RawUpdateGroupCallChainBlocks | tl.RawUpdateReadMonoForumInbox | tl.RawUpdateReadMonoForumOutbox | tl.RawUpdateMonoForumNoPaidException | tl.RawUpdateGroupCallMessage | tl.RawUpdateGroupCallEncryptedMessage | tl.RawUpdatePinnedForumTopic | tl.RawUpdatePinnedForumTopics | tl.RawUpdateDeleteGroupCallMessages | tl.RawUpdateStarGiftAuctionState | tl.RawUpdateStarGiftAuctionUserState | tl.RawUpdateEmojiGameInfo | tl.RawUpdateStarGiftCraftFail | tl.RawUpdateChatParticipantRank | tl.RawUpdateManagedBot | tl.RawUpdateBotGuestChatQuery | tl.RawUpdateAiComposeTones | tl.RawUpdateJoinChatWebViewDecision | tl.RawUpdateNewBotConnection | tl.RawUpdateWebBrowserSettings | tl.RawUpdateWebBrowserException | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.mtcute.RawDummyUpdate
|
|
28005
29313
|
function isAnyUpdate(o: object): o is TypeUpdate
|
|
28006
29314
|
/**
|
|
28007
29315
|
* Object which is perceived by the client without a call on
|
|
@@ -28070,7 +29378,7 @@ export class RpcError extends Error {
|
|
|
28070
29378
|
* about their chat partner's actions: typing or sending
|
|
28071
29379
|
* attachments of all kinds.
|
|
28072
29380
|
*/
|
|
28073
|
-
type TypeSendMessageAction = tl.RawSendMessageTypingAction | tl.RawSendMessageCancelAction | tl.RawSendMessageRecordVideoAction | tl.RawSendMessageUploadVideoAction | tl.RawSendMessageRecordAudioAction | tl.RawSendMessageUploadAudioAction | tl.RawSendMessageUploadPhotoAction | tl.RawSendMessageUploadDocumentAction | tl.RawSendMessageGeoLocationAction | tl.RawSendMessageChooseContactAction | tl.RawSendMessageGamePlayAction | tl.RawSendMessageRecordRoundAction | tl.RawSendMessageUploadRoundAction | tl.RawSpeakingInGroupCallAction | tl.RawSendMessageHistoryImportAction | tl.RawSendMessageChooseStickerAction | tl.RawSendMessageEmojiInteraction | tl.RawSendMessageEmojiInteractionSeen | tl.RawSendMessageTextDraftAction
|
|
29381
|
+
type TypeSendMessageAction = tl.RawSendMessageTypingAction | tl.RawSendMessageCancelAction | tl.RawSendMessageRecordVideoAction | tl.RawSendMessageUploadVideoAction | tl.RawSendMessageRecordAudioAction | tl.RawSendMessageUploadAudioAction | tl.RawSendMessageUploadPhotoAction | tl.RawSendMessageUploadDocumentAction | tl.RawSendMessageGeoLocationAction | tl.RawSendMessageChooseContactAction | tl.RawSendMessageGamePlayAction | tl.RawSendMessageRecordRoundAction | tl.RawSendMessageUploadRoundAction | tl.RawSpeakingInGroupCallAction | tl.RawSendMessageHistoryImportAction | tl.RawSendMessageChooseStickerAction | tl.RawSendMessageEmojiInteraction | tl.RawSendMessageEmojiInteractionSeen | tl.RawSendMessageTextDraftAction | tl.RawInputSendMessageRichMessageDraftAction | tl.RawSendMessageRichMessageDraftAction
|
|
28074
29382
|
function isAnySendMessageAction(o: object): o is TypeSendMessageAction
|
|
28075
29383
|
/**
|
|
28076
29384
|
* Privacy <strong>keys</strong> together with
|
|
@@ -28242,7 +29550,7 @@ export class RpcError extends Error {
|
|
|
28242
29550
|
* Represents a sent inline message from the perspective of a
|
|
28243
29551
|
* bot
|
|
28244
29552
|
*/
|
|
28245
|
-
type TypeInputBotInlineMessage = tl.RawInputBotInlineMessageMediaAuto | tl.RawInputBotInlineMessageText | tl.RawInputBotInlineMessageMediaGeo | tl.RawInputBotInlineMessageMediaVenue | tl.RawInputBotInlineMessageMediaContact | tl.RawInputBotInlineMessageGame | tl.RawInputBotInlineMessageMediaInvoice | tl.RawInputBotInlineMessageMediaWebPage
|
|
29553
|
+
type TypeInputBotInlineMessage = tl.RawInputBotInlineMessageMediaAuto | tl.RawInputBotInlineMessageText | tl.RawInputBotInlineMessageMediaGeo | tl.RawInputBotInlineMessageMediaVenue | tl.RawInputBotInlineMessageMediaContact | tl.RawInputBotInlineMessageGame | tl.RawInputBotInlineMessageMediaInvoice | tl.RawInputBotInlineMessageMediaWebPage | tl.RawInputBotInlineMessageRichMessage
|
|
28246
29554
|
function isAnyInputBotInlineMessage(o: object): o is TypeInputBotInlineMessage
|
|
28247
29555
|
/**
|
|
28248
29556
|
* Inline bot result
|
|
@@ -28252,7 +29560,7 @@ export class RpcError extends Error {
|
|
|
28252
29560
|
/**
|
|
28253
29561
|
* Inline message
|
|
28254
29562
|
*/
|
|
28255
|
-
type TypeBotInlineMessage = tl.RawBotInlineMessageMediaAuto | tl.RawBotInlineMessageText | tl.RawBotInlineMessageMediaGeo | tl.RawBotInlineMessageMediaVenue | tl.RawBotInlineMessageMediaContact | tl.RawBotInlineMessageMediaInvoice | tl.RawBotInlineMessageMediaWebPage
|
|
29563
|
+
type TypeBotInlineMessage = tl.RawBotInlineMessageMediaAuto | tl.RawBotInlineMessageText | tl.RawBotInlineMessageMediaGeo | tl.RawBotInlineMessageMediaVenue | tl.RawBotInlineMessageMediaContact | tl.RawBotInlineMessageMediaInvoice | tl.RawBotInlineMessageMediaWebPage | tl.RawBotInlineMessageRichMessage
|
|
28256
29564
|
function isAnyBotInlineMessage(o: object): o is TypeBotInlineMessage
|
|
28257
29565
|
/**
|
|
28258
29566
|
* Results of an inline query
|
|
@@ -28288,7 +29596,7 @@ export class RpcError extends Error {
|
|
|
28288
29596
|
/**
|
|
28289
29597
|
* Top peer category
|
|
28290
29598
|
*/
|
|
28291
|
-
type TypeTopPeerCategory = tl.RawTopPeerCategoryBotsPM | tl.RawTopPeerCategoryBotsInline | tl.RawTopPeerCategoryCorrespondents | tl.RawTopPeerCategoryGroups | tl.RawTopPeerCategoryChannels | tl.RawTopPeerCategoryPhoneCalls | tl.RawTopPeerCategoryForwardUsers | tl.RawTopPeerCategoryForwardChats | tl.RawTopPeerCategoryBotsApp
|
|
29599
|
+
type TypeTopPeerCategory = tl.RawTopPeerCategoryBotsPM | tl.RawTopPeerCategoryBotsInline | tl.RawTopPeerCategoryCorrespondents | tl.RawTopPeerCategoryGroups | tl.RawTopPeerCategoryChannels | tl.RawTopPeerCategoryPhoneCalls | tl.RawTopPeerCategoryForwardUsers | tl.RawTopPeerCategoryForwardChats | tl.RawTopPeerCategoryBotsApp | tl.RawTopPeerCategoryBotsGuestChat
|
|
28292
29600
|
function isAnyTopPeerCategory(o: object): o is TypeTopPeerCategory
|
|
28293
29601
|
/**
|
|
28294
29602
|
* Top peers by top peer category
|
|
@@ -28335,14 +29643,14 @@ export class RpcError extends Error {
|
|
|
28335
29643
|
/**
|
|
28336
29644
|
* Rich text
|
|
28337
29645
|
*/
|
|
28338
|
-
type TypeRichText = tl.RawTextEmpty | tl.RawTextPlain | tl.RawTextBold | tl.RawTextItalic | tl.RawTextUnderline | tl.RawTextStrike | tl.RawTextFixed | tl.RawTextUrl | tl.RawTextEmail | tl.RawTextConcat | tl.RawTextSubscript | tl.RawTextSuperscript | tl.RawTextMarked | tl.RawTextPhone | tl.RawTextImage | tl.RawTextAnchor
|
|
29646
|
+
type TypeRichText = tl.RawTextEmpty | tl.RawTextPlain | tl.RawTextBold | tl.RawTextItalic | tl.RawTextUnderline | tl.RawTextStrike | tl.RawTextFixed | tl.RawTextUrl | tl.RawTextEmail | tl.RawTextConcat | tl.RawTextSubscript | tl.RawTextSuperscript | tl.RawTextMarked | tl.RawTextPhone | tl.RawTextImage | tl.RawTextAnchor | tl.RawTextMath | tl.RawTextCustomEmoji | tl.RawTextSpoiler | tl.RawTextMention | tl.RawTextHashtag | tl.RawTextBotCommand | tl.RawTextCashtag | tl.RawTextAutoUrl | tl.RawTextAutoEmail | tl.RawTextAutoPhone | tl.RawTextBankCard | tl.RawTextMentionName | tl.RawTextDate
|
|
28339
29647
|
function isAnyRichText(o: object): o is TypeRichText
|
|
28340
29648
|
/**
|
|
28341
29649
|
* Represents an
|
|
28342
29650
|
* <a href="https://instantview.telegram.org/">instant view
|
|
28343
29651
|
* page element</a>
|
|
28344
29652
|
*/
|
|
28345
|
-
type TypePageBlock = tl.RawPageBlockUnsupported | tl.RawPageBlockTitle | tl.RawPageBlockSubtitle | tl.RawPageBlockAuthorDate | tl.RawPageBlockHeader | tl.RawPageBlockSubheader | tl.RawPageBlockParagraph | tl.RawPageBlockPreformatted | tl.RawPageBlockFooter | tl.RawPageBlockDivider | tl.RawPageBlockAnchor | tl.RawPageBlockList | tl.RawPageBlockBlockquote | tl.RawPageBlockPullquote | tl.RawPageBlockPhoto | tl.RawPageBlockVideo | tl.RawPageBlockCover | tl.RawPageBlockEmbed | tl.RawPageBlockEmbedPost | tl.RawPageBlockCollage | tl.RawPageBlockSlideshow | tl.RawPageBlockChannel | tl.RawPageBlockAudio | tl.RawPageBlockKicker | tl.RawPageBlockTable | tl.RawPageBlockOrderedList | tl.RawPageBlockDetails | tl.RawPageBlockRelatedArticles | tl.RawPageBlockMap
|
|
29653
|
+
type TypePageBlock = tl.RawPageBlockUnsupported | tl.RawPageBlockTitle | tl.RawPageBlockSubtitle | tl.RawPageBlockAuthorDate | tl.RawPageBlockHeader | tl.RawPageBlockSubheader | tl.RawPageBlockParagraph | tl.RawPageBlockPreformatted | tl.RawPageBlockFooter | tl.RawPageBlockDivider | tl.RawPageBlockAnchor | tl.RawPageBlockList | tl.RawPageBlockBlockquote | tl.RawPageBlockPullquote | tl.RawPageBlockPhoto | tl.RawPageBlockVideo | tl.RawPageBlockCover | tl.RawPageBlockEmbed | tl.RawPageBlockEmbedPost | tl.RawPageBlockCollage | tl.RawPageBlockSlideshow | tl.RawPageBlockChannel | tl.RawPageBlockAudio | tl.RawPageBlockKicker | tl.RawPageBlockTable | tl.RawPageBlockOrderedList | tl.RawPageBlockDetails | tl.RawPageBlockRelatedArticles | tl.RawPageBlockMap | tl.RawPageBlockHeading1 | tl.RawPageBlockHeading2 | tl.RawPageBlockHeading3 | tl.RawPageBlockHeading4 | tl.RawPageBlockHeading5 | tl.RawPageBlockHeading6 | tl.RawPageBlockMath | tl.RawPageBlockThinking | tl.RawInputPageBlockMap | tl.RawPageBlockBlockquoteBlocks
|
|
28346
29654
|
function isAnyPageBlock(o: object): o is TypePageBlock
|
|
28347
29655
|
/**
|
|
28348
29656
|
* Why was the phone call discarded?
|
|
@@ -28840,7 +30148,7 @@ export class RpcError extends Error {
|
|
|
28840
30148
|
/**
|
|
28841
30149
|
* Webpage attributes
|
|
28842
30150
|
*/
|
|
28843
|
-
type TypeWebPageAttribute = tl.RawWebPageAttributeTheme | tl.RawWebPageAttributeStory | tl.RawWebPageAttributeStickerSet | tl.RawWebPageAttributeUniqueStarGift | tl.RawWebPageAttributeStarGiftCollection | tl.RawWebPageAttributeStarGiftAuction
|
|
30151
|
+
type TypeWebPageAttribute = tl.RawWebPageAttributeTheme | tl.RawWebPageAttributeStory | tl.RawWebPageAttributeStickerSet | tl.RawWebPageAttributeUniqueStarGift | tl.RawWebPageAttributeStarGiftCollection | tl.RawWebPageAttributeStarGiftAuction | tl.RawWebPageAttributeAiComposeTone
|
|
28844
30152
|
function isAnyWebPageAttribute(o: object): o is TypeWebPageAttribute
|
|
28845
30153
|
/**
|
|
28846
30154
|
* Credit card info URL provided by the bank
|
|
@@ -29927,6 +31235,11 @@ export class RpcError extends Error {
|
|
|
29927
31235
|
*/
|
|
29928
31236
|
type TypeInputChatTheme = tl.RawInputChatThemeEmpty | tl.RawInputChatTheme | tl.RawInputChatThemeUniqueGift
|
|
29929
31237
|
function isAnyInputChatTheme(o: object): o is TypeInputChatTheme
|
|
31238
|
+
/**
|
|
31239
|
+
* Indicates the price for a
|
|
31240
|
+
* <a href="https://corefork.telegram.org/api/gifts#collectible-gifts">gift
|
|
31241
|
+
* upgrade »</a> starting from a specific point in time.
|
|
31242
|
+
*/
|
|
29930
31243
|
type TypeStarGiftUpgradePrice = tl.RawStarGiftUpgradePrice
|
|
29931
31244
|
function isAnyStarGiftUpgradePrice(o: object): o is TypeStarGiftUpgradePrice
|
|
29932
31245
|
type TypeGroupCallMessage = tl.RawGroupCallMessage
|
|
@@ -29935,18 +31248,48 @@ export class RpcError extends Error {
|
|
|
29935
31248
|
function isAnyGroupCallDonor(o: object): o is TypeGroupCallDonor
|
|
29936
31249
|
type TypeRecentStory = tl.RawRecentStory
|
|
29937
31250
|
function isAnyRecentStory(o: object): o is TypeRecentStory
|
|
31251
|
+
/**
|
|
31252
|
+
* Describes a bid in an
|
|
31253
|
+
* <a href="https://corefork.telegram.org/api/auctions">auction</a>.
|
|
31254
|
+
*/
|
|
29938
31255
|
type TypeAuctionBidLevel = tl.RawAuctionBidLevel
|
|
29939
31256
|
function isAnyAuctionBidLevel(o: object): o is TypeAuctionBidLevel
|
|
29940
31257
|
type TypeStarGiftAuctionState = tl.RawStarGiftAuctionStateNotModified | tl.RawStarGiftAuctionState | tl.RawStarGiftAuctionStateFinished
|
|
29941
31258
|
function isAnyStarGiftAuctionState(o: object): o is TypeStarGiftAuctionState
|
|
31259
|
+
/**
|
|
31260
|
+
* Contains information about the current user's state in an
|
|
31261
|
+
* <a href="https://corefork.telegram.org/api/auctions">auction
|
|
31262
|
+
* »</a>.
|
|
31263
|
+
*
|
|
31264
|
+
* The <code>bid_amount</code>, <code>bid_date</code>,
|
|
31265
|
+
* <code>bid_peer</code> and <code>min_bid_amount</code> flags
|
|
31266
|
+
* of {@link RawStarGiftAuctionUserState} will all be set if
|
|
31267
|
+
* the user placed a bid in the auction.
|
|
31268
|
+
*/
|
|
29942
31269
|
type TypeStarGiftAuctionUserState = tl.RawStarGiftAuctionUserState
|
|
29943
31270
|
function isAnyStarGiftAuctionUserState(o: object): o is TypeStarGiftAuctionUserState
|
|
31271
|
+
/**
|
|
31272
|
+
* Describes a gift that the current user won in an auction.
|
|
31273
|
+
*/
|
|
29944
31274
|
type TypeStarGiftAuctionAcquiredGift = tl.RawStarGiftAuctionAcquiredGift
|
|
29945
31275
|
function isAnyStarGiftAuctionAcquiredGift(o: object): o is TypeStarGiftAuctionAcquiredGift
|
|
31276
|
+
/**
|
|
31277
|
+
* Contains info about
|
|
31278
|
+
* <a href="https://corefork.telegram.org/api/auctions">an
|
|
31279
|
+
* auction where the user has placed a bid »</a>.
|
|
31280
|
+
*/
|
|
29946
31281
|
type TypeStarGiftActiveAuctionState = tl.RawStarGiftActiveAuctionState
|
|
29947
31282
|
function isAnyStarGiftActiveAuctionState(o: object): o is TypeStarGiftActiveAuctionState
|
|
29948
31283
|
type TypeInputStarGiftAuction = tl.RawInputStarGiftAuction | tl.RawInputStarGiftAuctionSlug
|
|
29949
31284
|
function isAnyInputStarGiftAuction(o: object): o is TypeInputStarGiftAuction
|
|
31285
|
+
/**
|
|
31286
|
+
* Human-readable info about a passkey associated to an
|
|
31287
|
+
* account, returned when
|
|
31288
|
+
* <a href="https://corefork.telegram.org/api/passkeys#creating-a-passkey">creating
|
|
31289
|
+
* a passkey »</a> or
|
|
31290
|
+
* <a href="https://corefork.telegram.org/api/passkeys#list-passkeys">listing
|
|
31291
|
+
* passkeys »</a>.
|
|
31292
|
+
*/
|
|
29950
31293
|
type TypePasskey = tl.RawPasskey
|
|
29951
31294
|
function isAnyPasskey(o: object): o is TypePasskey
|
|
29952
31295
|
type TypeInputPasskeyResponse = tl.RawInputPasskeyResponseRegister | tl.RawInputPasskeyResponseLogin
|
|
@@ -29959,10 +31302,30 @@ export class RpcError extends Error {
|
|
|
29959
31302
|
function isAnyStarGiftAuctionRound(o: object): o is TypeStarGiftAuctionRound
|
|
29960
31303
|
type TypeStarGiftAttributeRarity = tl.RawStarGiftAttributeRarity | tl.RawStarGiftAttributeRarityUncommon | tl.RawStarGiftAttributeRarityRare | tl.RawStarGiftAttributeRarityEpic | tl.RawStarGiftAttributeRarityLegendary
|
|
29961
31304
|
function isAnyStarGiftAttributeRarity(o: object): o is TypeStarGiftAttributeRarity
|
|
31305
|
+
/**
|
|
31306
|
+
* This constructor allows setting a custom background color
|
|
31307
|
+
* and custom emoji label for a button, see
|
|
31308
|
+
* <a href="https://corefork.telegram.org/api/bots/buttons#button-styles">here
|
|
31309
|
+
* »</a> for more info.
|
|
31310
|
+
*/
|
|
29962
31311
|
type TypeKeyboardButtonStyle = tl.RawKeyboardButtonStyle
|
|
29963
31312
|
function isAnyKeyboardButtonStyle(o: object): o is TypeKeyboardButtonStyle
|
|
29964
31313
|
type TypeInputMessageReadMetric = tl.RawInputMessageReadMetric
|
|
29965
31314
|
function isAnyInputMessageReadMetric(o: object): o is TypeInputMessageReadMetric
|
|
31315
|
+
type TypeInputAiComposeTone = tl.RawInputAiComposeToneDefault | tl.RawInputAiComposeToneID | tl.RawInputAiComposeToneSlug
|
|
31316
|
+
function isAnyInputAiComposeTone(o: object): o is TypeInputAiComposeTone
|
|
31317
|
+
type TypeAiComposeTone = tl.RawAiComposeTone | tl.RawAiComposeToneDefault
|
|
31318
|
+
function isAnyAiComposeTone(o: object): o is TypeAiComposeTone
|
|
31319
|
+
type TypeAiComposeToneExample = tl.RawAiComposeToneExample
|
|
31320
|
+
function isAnyAiComposeToneExample(o: object): o is TypeAiComposeToneExample
|
|
31321
|
+
type TypeJoinChatBotResult = tl.RawJoinChatBotResultApproved | tl.RawJoinChatBotResultDeclined | tl.RawJoinChatBotResultQueued | tl.RawJoinChatBotResultWebView
|
|
31322
|
+
function isAnyJoinChatBotResult(o: object): o is TypeJoinChatBotResult
|
|
31323
|
+
type TypeWebDomainException = tl.RawWebDomainException
|
|
31324
|
+
function isAnyWebDomainException(o: object): o is TypeWebDomainException
|
|
31325
|
+
type TypeRichMessage = tl.RawRichMessage
|
|
31326
|
+
function isAnyRichMessage(o: object): o is TypeRichMessage
|
|
31327
|
+
type TypeInputRichMessage = tl.RawInputRichMessage | tl.RawInputRichMessageHTML | tl.RawInputRichMessageMarkdown
|
|
31328
|
+
function isAnyInputRichMessage(o: object): o is TypeInputRichMessage
|
|
29966
31329
|
|
|
29967
31330
|
namespace storage {
|
|
29968
31331
|
/**
|
|
@@ -30078,12 +31441,15 @@ export class RpcError extends Error {
|
|
|
30078
31441
|
* user's country/provider, the user must purchase a
|
|
30079
31442
|
* <a href="https://corefork.telegram.org/api/premium">Telegram
|
|
30080
31443
|
* Premium</a> subscription in order to proceed with the
|
|
30081
|
-
* login/signup
|
|
31444
|
+
* login/signup, see
|
|
31445
|
+
* <a href="https://corefork.telegram.org/api/auth#paid-auth">here
|
|
31446
|
+
* »</a> for more info.
|
|
30082
31447
|
*/
|
|
30083
31448
|
interface RawSentCodePaymentRequired {
|
|
30084
31449
|
_: 'auth.sentCodePaymentRequired';
|
|
30085
31450
|
/**
|
|
30086
|
-
*
|
|
31451
|
+
* For official apps, tore identifier of the Telegram Premium
|
|
31452
|
+
* subscription.
|
|
30087
31453
|
*/
|
|
30088
31454
|
storeProduct: string;
|
|
30089
31455
|
/**
|
|
@@ -30100,7 +31466,22 @@ export class RpcError extends Error {
|
|
|
30100
31466
|
* The mandatory subject for the email.
|
|
30101
31467
|
*/
|
|
30102
31468
|
supportEmailSubject: string;
|
|
31469
|
+
premiumDays: number;
|
|
31470
|
+
/**
|
|
31471
|
+
* Three-letter ISO 4217
|
|
31472
|
+
* <a href="https://corefork.telegram.org/bots/payments#supported-currencies">currency</a>
|
|
31473
|
+
* code.
|
|
31474
|
+
*/
|
|
30103
31475
|
currency: string;
|
|
31476
|
+
/**
|
|
31477
|
+
* Total price in the smallest units of the currency (integer,
|
|
31478
|
+
* not float/double). For example, for a price of <code>US$
|
|
31479
|
+
* 1.45</code> pass <code>amount = 145</code>. See the exp
|
|
31480
|
+
* parameter in
|
|
31481
|
+
* <a href="https://corefork.telegram.org/bots/payments/currencies.json">currencies.json</a>,
|
|
31482
|
+
* it shows the number of digits past the decimal point for
|
|
31483
|
+
* each currency (2 for the majority of currencies).
|
|
31484
|
+
*/
|
|
30104
31485
|
amount: Long;
|
|
30105
31486
|
}
|
|
30106
31487
|
/**
|
|
@@ -30468,8 +31849,19 @@ export class RpcError extends Error {
|
|
|
30468
31849
|
*/
|
|
30469
31850
|
futureAuthToken?: Uint8Array;
|
|
30470
31851
|
}
|
|
31852
|
+
/**
|
|
31853
|
+
* Passkey login options, see
|
|
31854
|
+
* <a href="https://corefork.telegram.org/api/passkeys#logging-in-with-a-passkey">here
|
|
31855
|
+
* »</a> for more info on the full flow.
|
|
31856
|
+
*/
|
|
30471
31857
|
interface RawPasskeyLoginOptions {
|
|
30472
31858
|
_: 'auth.passkeyLoginOptions';
|
|
31859
|
+
/**
|
|
31860
|
+
* JSON-encoded object whose <code>publicKey</code> field
|
|
31861
|
+
* contains a
|
|
31862
|
+
* <a href="https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredentialRequestOptions"><code>PublicKeyCredentialRequestOptions</code></a>
|
|
31863
|
+
* object.
|
|
31864
|
+
*/
|
|
30473
31865
|
options: tl.TypeDataJSON;
|
|
30474
31866
|
}
|
|
30475
31867
|
/**
|
|
@@ -30967,29 +32359,85 @@ export class RpcError extends Error {
|
|
|
30967
32359
|
mnc: string;
|
|
30968
32360
|
}
|
|
30969
32361
|
/**
|
|
32362
|
+
* Checks the status of a
|
|
32363
|
+
* <a href="https://corefork.telegram.org/api/auth#paid-auth">login
|
|
32364
|
+
* payment</a>.
|
|
32365
|
+
*
|
|
30970
32366
|
* RPC method returns {@link tl.auth.TypeSentCode}
|
|
30971
32367
|
*/
|
|
30972
32368
|
interface RawCheckPaidAuthRequest {
|
|
30973
32369
|
_: 'auth.checkPaidAuth';
|
|
32370
|
+
/**
|
|
32371
|
+
* Phone number
|
|
32372
|
+
*/
|
|
30974
32373
|
phoneNumber: string;
|
|
32374
|
+
/**
|
|
32375
|
+
* The phone code hash obtained from
|
|
32376
|
+
* {@link auth.RawSendCodeRequest}
|
|
32377
|
+
*/
|
|
30975
32378
|
phoneCodeHash: string;
|
|
32379
|
+
/**
|
|
32380
|
+
* The payment form ID passed to
|
|
32381
|
+
* {@link payments.RawSendPaymentFormRequest}.
|
|
32382
|
+
*/
|
|
30976
32383
|
formId: Long;
|
|
30977
32384
|
}
|
|
30978
32385
|
/**
|
|
32386
|
+
* Initialize login with a passkey over an unauthenticated
|
|
32387
|
+
* connection, see
|
|
32388
|
+
* <a href="https://corefork.telegram.org/api/passkeys#logging-in-with-a-passkey">here
|
|
32389
|
+
* »</a> for more info.
|
|
32390
|
+
*
|
|
30979
32391
|
* RPC method returns {@link tl.auth.TypePasskeyLoginOptions}
|
|
30980
32392
|
*/
|
|
30981
32393
|
interface RawInitPasskeyLoginRequest {
|
|
30982
32394
|
_: 'auth.initPasskeyLogin';
|
|
32395
|
+
/**
|
|
32396
|
+
* Application identifier (see
|
|
32397
|
+
* <a href="https://corefork.telegram.org/myapp">App
|
|
32398
|
+
* configuration</a>)
|
|
32399
|
+
*/
|
|
30983
32400
|
apiId: number;
|
|
32401
|
+
/**
|
|
32402
|
+
* Application identifier hash (see
|
|
32403
|
+
* <a href="https://corefork.telegram.org/myapp">App
|
|
32404
|
+
* configuration</a>)
|
|
32405
|
+
*/
|
|
30984
32406
|
apiHash: string;
|
|
30985
32407
|
}
|
|
30986
32408
|
/**
|
|
32409
|
+
* Complete login with a passkey over an unauthenticated
|
|
32410
|
+
* connection, see
|
|
32411
|
+
* <a href="https://corefork.telegram.org/api/passkeys#logging-in-with-a-passkey">here
|
|
32412
|
+
* »</a> for more info.
|
|
32413
|
+
*
|
|
32414
|
+
* Must be sent to the user's native DC, as specified by the
|
|
32415
|
+
* <code>user_handle</code> (<code>dcId:userId</code>) returned
|
|
32416
|
+
* in the passkey assertion, see
|
|
32417
|
+
* <a href="https://corefork.telegram.org/api/passkeys#logging-in-with-a-passkey">here
|
|
32418
|
+
* »</a> for the full flow.
|
|
32419
|
+
*
|
|
30987
32420
|
* RPC method returns {@link tl.auth.TypeAuthorization}
|
|
30988
32421
|
*/
|
|
30989
32422
|
interface RawFinishPasskeyLoginRequest {
|
|
30990
32423
|
_: 'auth.finishPasskeyLogin';
|
|
32424
|
+
/**
|
|
32425
|
+
* Passkey assertion result.
|
|
32426
|
+
*/
|
|
30991
32427
|
credential: tl.TypeInputPasskeyCredential;
|
|
32428
|
+
/**
|
|
32429
|
+
* DC ID used for the initial
|
|
32430
|
+
* {@link auth.RawInitPasskeyLoginRequest} request; set only if
|
|
32431
|
+
* the user's DC is different from the DC used for the initial
|
|
32432
|
+
* {@link auth.RawInitPasskeyLoginRequest}.
|
|
32433
|
+
*/
|
|
30992
32434
|
fromDcId?: number;
|
|
32435
|
+
/**
|
|
32436
|
+
* Auth key ID for the connection to <code>from_dc_id</code>
|
|
32437
|
+
* (use the permanent auth key ID if PFS is enabled); set only
|
|
32438
|
+
* if the user's DC is different from the DC used for the
|
|
32439
|
+
* initial {@link auth.RawInitPasskeyLoginRequest}.
|
|
32440
|
+
*/
|
|
30993
32441
|
fromAuthKeyId?: Long;
|
|
30994
32442
|
}
|
|
30995
32443
|
interface RpcCallReturn {
|
|
@@ -31067,6 +32515,11 @@ export class RpcError extends Error {
|
|
|
31067
32515
|
*/
|
|
31068
32516
|
type TypeLoggedOut = tl.auth.RawLoggedOut
|
|
31069
32517
|
function isAnyLoggedOut(o: object): o is TypeLoggedOut
|
|
32518
|
+
/**
|
|
32519
|
+
* Passkey login options, see
|
|
32520
|
+
* <a href="https://corefork.telegram.org/api/passkeys#logging-in-with-a-passkey">here
|
|
32521
|
+
* »</a> for more info on the full flow.
|
|
32522
|
+
*/
|
|
31070
32523
|
type TypePasskeyLoginOptions = tl.auth.RawPasskeyLoginOptions
|
|
31071
32524
|
function isAnyPasskeyLoginOptions(o: object): o is TypePasskeyLoginOptions
|
|
31072
32525
|
}
|
|
@@ -31435,6 +32888,8 @@ export class RpcError extends Error {
|
|
|
31435
32888
|
*/
|
|
31436
32889
|
interface RawSearchRequest {
|
|
31437
32890
|
_: 'contacts.search';
|
|
32891
|
+
broadcasts?: boolean;
|
|
32892
|
+
bots?: boolean;
|
|
31438
32893
|
/**
|
|
31439
32894
|
* Target substring
|
|
31440
32895
|
*/
|
|
@@ -31506,6 +32961,7 @@ export class RpcError extends Error {
|
|
|
31506
32961
|
* Mini Bot Apps</a>.
|
|
31507
32962
|
*/
|
|
31508
32963
|
botsApp?: boolean;
|
|
32964
|
+
botsGuestchat?: boolean;
|
|
31509
32965
|
/**
|
|
31510
32966
|
* Offset for
|
|
31511
32967
|
* <a href="https://corefork.telegram.org/api/offsets">pagination</a>
|
|
@@ -31604,6 +33060,11 @@ export class RpcError extends Error {
|
|
|
31604
33060
|
* to the contact list, without a phone number.
|
|
31605
33061
|
*/
|
|
31606
33062
|
phone: string;
|
|
33063
|
+
/**
|
|
33064
|
+
* A private note for this contact, only visible to us; see
|
|
33065
|
+
* <a href="https://corefork.telegram.org/api/contacts#private-notes-for-contacts">here
|
|
33066
|
+
* »</a> for more info on contact notes.
|
|
33067
|
+
*/
|
|
31607
33068
|
note?: tl.TypeTextWithEntities;
|
|
31608
33069
|
}
|
|
31609
33070
|
/**
|
|
@@ -31683,6 +33144,9 @@ export class RpcError extends Error {
|
|
|
31683
33144
|
* Resolve a phone number to get user info, if their privacy
|
|
31684
33145
|
* settings allow it.
|
|
31685
33146
|
*
|
|
33147
|
+
* Make sure to implement client-side ratelimiting/debounce for
|
|
33148
|
+
* this method, allowing at most 1 call every 3 seconds.
|
|
33149
|
+
*
|
|
31686
33150
|
* RPC method returns {@link tl.contacts.TypeResolvedPeer}
|
|
31687
33151
|
*/
|
|
31688
33152
|
interface RawResolvePhoneRequest {
|
|
@@ -31794,11 +33258,21 @@ export class RpcError extends Error {
|
|
|
31794
33258
|
q: string;
|
|
31795
33259
|
}
|
|
31796
33260
|
/**
|
|
33261
|
+
* Update the private note associated to a contact; see
|
|
33262
|
+
* <a href="https://corefork.telegram.org/api/contacts#private-notes-for-contacts">here
|
|
33263
|
+
* »</a> for more info.
|
|
33264
|
+
*
|
|
31797
33265
|
* RPC method returns boolean
|
|
31798
33266
|
*/
|
|
31799
33267
|
interface RawUpdateContactNoteRequest {
|
|
31800
33268
|
_: 'contacts.updateContactNote';
|
|
33269
|
+
/**
|
|
33270
|
+
* The contact.
|
|
33271
|
+
*/
|
|
31801
33272
|
id: tl.TypeInputUser;
|
|
33273
|
+
/**
|
|
33274
|
+
* The note.
|
|
33275
|
+
*/
|
|
31802
33276
|
note: tl.TypeTextWithEntities;
|
|
31803
33277
|
}
|
|
31804
33278
|
interface RpcCallReturn {
|
|
@@ -33561,11 +35035,36 @@ export class RpcError extends Error {
|
|
|
33561
35035
|
params: number[];
|
|
33562
35036
|
playsLeft?: number;
|
|
33563
35037
|
}
|
|
35038
|
+
/**
|
|
35039
|
+
* Represents a message modified by AI.
|
|
35040
|
+
*/
|
|
33564
35041
|
interface RawComposedMessageWithAI {
|
|
33565
35042
|
_: 'messages.composedMessageWithAI';
|
|
35043
|
+
/**
|
|
35044
|
+
* The modified message.
|
|
35045
|
+
*/
|
|
33566
35046
|
resultText: tl.TypeTextWithEntities;
|
|
35047
|
+
/**
|
|
35048
|
+
* If <strong>only</strong> the proofreading mode
|
|
35049
|
+
* ({@link messages.RawComposeMessageWithAIRequest}.<code>proofread</code>)
|
|
35050
|
+
* is enabled, this field will be populated with a
|
|
35051
|
+
* "pre-rendered" diff between the old and the new message text
|
|
35052
|
+
* using <strong>only</strong>
|
|
35053
|
+
* <a href="https://corefork.telegram.org/api/entities#diff-entities">diff
|
|
35054
|
+
* entities »</a>.
|
|
35055
|
+
*/
|
|
33567
35056
|
diffText?: tl.TypeTextWithEntities;
|
|
33568
35057
|
}
|
|
35058
|
+
interface RawChatInviteJoinResultOk {
|
|
35059
|
+
_: 'messages.chatInviteJoinResultOk';
|
|
35060
|
+
updates: tl.TypeUpdates;
|
|
35061
|
+
}
|
|
35062
|
+
interface RawChatInviteJoinResultWebView {
|
|
35063
|
+
_: 'messages.chatInviteJoinResultWebView';
|
|
35064
|
+
botId: number;
|
|
35065
|
+
webview: tl.TypeWebViewResult;
|
|
35066
|
+
users: tl.TypeUser[];
|
|
35067
|
+
}
|
|
33569
35068
|
/**
|
|
33570
35069
|
* Returns the list of messages by their IDs.
|
|
33571
35070
|
*
|
|
@@ -33885,7 +35384,7 @@ export class RpcError extends Error {
|
|
|
33885
35384
|
/**
|
|
33886
35385
|
* Only for bots, disallows forwarding and saving of the
|
|
33887
35386
|
* messages, even if the destination chat doesn't have
|
|
33888
|
-
* <a href="https://telegram.org/blog/
|
|
35387
|
+
* <a href="https://telegram.org/blog/content-protection-delete-by-date-and-more">content
|
|
33889
35388
|
* protection</a> enabled
|
|
33890
35389
|
*/
|
|
33891
35390
|
noforwards?: boolean;
|
|
@@ -33944,6 +35443,12 @@ export class RpcError extends Error {
|
|
|
33944
35443
|
* messages</a>
|
|
33945
35444
|
*/
|
|
33946
35445
|
scheduleDate?: number;
|
|
35446
|
+
/**
|
|
35447
|
+
* Once sent, this message will be automatically re-scheduled
|
|
35448
|
+
* to be re-sent again this many seconds in the future, see
|
|
35449
|
+
* <a href="https://corefork.telegram.org/api/scheduled-messages#repeating-scheduled-messages">here
|
|
35450
|
+
* »</a> for more info on repeating scheduled messages.
|
|
35451
|
+
*/
|
|
33947
35452
|
scheduleRepeatPeriod?: number;
|
|
33948
35453
|
/**
|
|
33949
35454
|
* Send this message as the specified peer
|
|
@@ -33977,6 +35482,7 @@ export class RpcError extends Error {
|
|
|
33977
35482
|
* full flow.
|
|
33978
35483
|
*/
|
|
33979
35484
|
suggestedPost?: tl.TypeSuggestedPost;
|
|
35485
|
+
richMessage?: tl.TypeInputRichMessage;
|
|
33980
35486
|
}
|
|
33981
35487
|
/**
|
|
33982
35488
|
* Send a media
|
|
@@ -34000,7 +35506,7 @@ export class RpcError extends Error {
|
|
|
34000
35506
|
/**
|
|
34001
35507
|
* Only for bots, disallows forwarding and saving of the
|
|
34002
35508
|
* messages, even if the destination chat doesn't have
|
|
34003
|
-
* <a href="https://telegram.org/blog/
|
|
35509
|
+
* <a href="https://telegram.org/blog/content-protection-delete-by-date-and-more">content
|
|
34004
35510
|
* protection</a> enabled
|
|
34005
35511
|
*/
|
|
34006
35512
|
noforwards?: boolean;
|
|
@@ -34060,6 +35566,12 @@ export class RpcError extends Error {
|
|
|
34060
35566
|
* messages</a>
|
|
34061
35567
|
*/
|
|
34062
35568
|
scheduleDate?: number;
|
|
35569
|
+
/**
|
|
35570
|
+
* Once sent, this message will be automatically re-scheduled
|
|
35571
|
+
* to be re-sent again this many seconds in the future, see
|
|
35572
|
+
* <a href="https://corefork.telegram.org/api/scheduled-messages#repeating-scheduled-messages">here
|
|
35573
|
+
* »</a> for more info on repeating scheduled messages.
|
|
35574
|
+
*/
|
|
34063
35575
|
scheduleRepeatPeriod?: number;
|
|
34064
35576
|
/**
|
|
34065
35577
|
* Send this message as the specified peer
|
|
@@ -34127,7 +35639,7 @@ export class RpcError extends Error {
|
|
|
34127
35639
|
/**
|
|
34128
35640
|
* Only for bots, disallows further re-forwarding and saving of
|
|
34129
35641
|
* the messages, even if the destination chat doesn't have
|
|
34130
|
-
* <a href="https://telegram.org/blog/
|
|
35642
|
+
* <a href="https://telegram.org/blog/content-protection-delete-by-date-and-more">content
|
|
34131
35643
|
* protection</a> enabled
|
|
34132
35644
|
*/
|
|
34133
35645
|
noforwards?: boolean;
|
|
@@ -34172,6 +35684,12 @@ export class RpcError extends Error {
|
|
|
34172
35684
|
* Scheduled message date for scheduled messages
|
|
34173
35685
|
*/
|
|
34174
35686
|
scheduleDate?: number;
|
|
35687
|
+
/**
|
|
35688
|
+
* Once sent, this message will be automatically re-scheduled
|
|
35689
|
+
* to be re-sent again this many seconds in the future, see
|
|
35690
|
+
* <a href="https://corefork.telegram.org/api/scheduled-messages#repeating-scheduled-messages">here
|
|
35691
|
+
* »</a> for more info on repeating scheduled messages.
|
|
35692
|
+
*/
|
|
34175
35693
|
scheduleRepeatPeriod?: number;
|
|
34176
35694
|
/**
|
|
34177
35695
|
* Forward the messages as the specified peer
|
|
@@ -34183,6 +35701,11 @@ export class RpcError extends Error {
|
|
|
34183
35701
|
* reply shortcut »</a>, instead.
|
|
34184
35702
|
*/
|
|
34185
35703
|
quickReplyShortcut?: tl.TypeInputQuickReplyShortcut;
|
|
35704
|
+
/**
|
|
35705
|
+
* Specifies a
|
|
35706
|
+
* <a href="https://corefork.telegram.org/api/effects">message
|
|
35707
|
+
* effect »</a> to use for the message.
|
|
35708
|
+
*/
|
|
34186
35709
|
effect?: Long;
|
|
34187
35710
|
/**
|
|
34188
35711
|
* Start playing the video at the specified timestamp
|
|
@@ -34741,7 +36264,8 @@ export class RpcError extends Error {
|
|
|
34741
36264
|
* Import a chat invite and join a private
|
|
34742
36265
|
* chat/supergroup/channel
|
|
34743
36266
|
*
|
|
34744
|
-
* RPC method returns
|
|
36267
|
+
* RPC method returns
|
|
36268
|
+
* {@link tl.messages.TypeChatInviteJoinResult}
|
|
34745
36269
|
*/
|
|
34746
36270
|
interface RawImportChatInviteRequest {
|
|
34747
36271
|
_: 'messages.importChatInvite';
|
|
@@ -35242,6 +36766,12 @@ export class RpcError extends Error {
|
|
|
35242
36766
|
* messages</a>
|
|
35243
36767
|
*/
|
|
35244
36768
|
scheduleDate?: number;
|
|
36769
|
+
/**
|
|
36770
|
+
* Once sent, this message will be automatically re-scheduled
|
|
36771
|
+
* to be re-sent again this many seconds in the future, see
|
|
36772
|
+
* <a href="https://corefork.telegram.org/api/scheduled-messages#repeating-scheduled-messages">here
|
|
36773
|
+
* »</a> for more info on repeating scheduled messages.
|
|
36774
|
+
*/
|
|
35245
36775
|
scheduleRepeatPeriod?: number;
|
|
35246
36776
|
/**
|
|
35247
36777
|
* If specified, edits a
|
|
@@ -35249,6 +36779,7 @@ export class RpcError extends Error {
|
|
|
35249
36779
|
* reply shortcut message, instead »</a>.
|
|
35250
36780
|
*/
|
|
35251
36781
|
quickReplyShortcutId?: number;
|
|
36782
|
+
richMessage?: tl.TypeInputRichMessage;
|
|
35252
36783
|
}
|
|
35253
36784
|
/**
|
|
35254
36785
|
* Edit an inline bot message
|
|
@@ -35287,6 +36818,7 @@ export class RpcError extends Error {
|
|
|
35287
36818
|
* entities for styled text</a>
|
|
35288
36819
|
*/
|
|
35289
36820
|
entities?: tl.TypeMessageEntity[];
|
|
36821
|
+
richMessage?: tl.TypeInputRichMessage;
|
|
35290
36822
|
}
|
|
35291
36823
|
/**
|
|
35292
36824
|
* Press an inline callback button and get a callback answer
|
|
@@ -35414,6 +36946,7 @@ export class RpcError extends Error {
|
|
|
35414
36946
|
* full flow.
|
|
35415
36947
|
*/
|
|
35416
36948
|
suggestedPost?: tl.TypeSuggestedPost;
|
|
36949
|
+
richMessage?: tl.TypeInputRichMessage;
|
|
35417
36950
|
}
|
|
35418
36951
|
/**
|
|
35419
36952
|
* Return all message
|
|
@@ -36023,7 +37556,7 @@ export class RpcError extends Error {
|
|
|
36023
37556
|
/**
|
|
36024
37557
|
* Only for bots, disallows forwarding and saving of the
|
|
36025
37558
|
* messages, even if the destination chat doesn't have
|
|
36026
|
-
* <a href="https://telegram.org/blog/
|
|
37559
|
+
* <a href="https://telegram.org/blog/content-protection-delete-by-date-and-more">content
|
|
36027
37560
|
* protection</a> enabled
|
|
36028
37561
|
*/
|
|
36029
37562
|
noforwards?: boolean;
|
|
@@ -37352,8 +38885,8 @@ export class RpcError extends Error {
|
|
|
37352
38885
|
}
|
|
37353
38886
|
/**
|
|
37354
38887
|
* Enable or disable
|
|
37355
|
-
* <a href="https://telegram.org/
|
|
37356
|
-
* protection</a> on a channel or chat
|
|
38888
|
+
* <a href="https://corefork.telegram.org/api/content-protection">content
|
|
38889
|
+
* protection</a> on a channel, group or private chat.
|
|
37357
38890
|
*
|
|
37358
38891
|
* RPC method returns {@link tl.TypeUpdates}
|
|
37359
38892
|
*/
|
|
@@ -37367,6 +38900,12 @@ export class RpcError extends Error {
|
|
|
37367
38900
|
* Enable or disable content protection
|
|
37368
38901
|
*/
|
|
37369
38902
|
enabled: boolean;
|
|
38903
|
+
/**
|
|
38904
|
+
* Used only inside private chats to accept or refuse a request
|
|
38905
|
+
* to disable content protection, see
|
|
38906
|
+
* <a href="https://corefork.telegram.org/api/content-protection#for-users">here
|
|
38907
|
+
* »</a> for more info on the full flow.
|
|
38908
|
+
*/
|
|
37370
38909
|
requestMsgId?: number;
|
|
37371
38910
|
}
|
|
37372
38911
|
/**
|
|
@@ -39139,15 +40678,11 @@ export class RpcError extends Error {
|
|
|
39139
40678
|
count: number;
|
|
39140
40679
|
/**
|
|
39141
40680
|
* Unique client message ID required to prevent message
|
|
39142
|
-
* resending.
|
|
39143
|
-
*
|
|
39144
|
-
*
|
|
39145
|
-
*
|
|
39146
|
-
*
|
|
39147
|
-
* current unixtime</strong>, i.e. <code>uint64_t random_id =
|
|
39148
|
-
* (time() << 32) | ((uint64_t)random_uint32_t())</code>: this
|
|
39149
|
-
* differs from the <code>random_id</code> format of all other
|
|
39150
|
-
* methods in the API, which just take 64 random bits.
|
|
40681
|
+
* resending. <strong>Note</strong>: this argument
|
|
40682
|
+
* <strong>must</strong> be composed of a 64-bit integer where
|
|
40683
|
+
* the lower 32 bits are random, and the higher 32 bits
|
|
40684
|
+
* <strong>are equal to the current unixtime</strong>, i.e.
|
|
40685
|
+
* `uint64_t random_id = (time() << 32)
|
|
39151
40686
|
*/
|
|
39152
40687
|
randomId: Long;
|
|
39153
40688
|
/**
|
|
@@ -39538,87 +41073,230 @@ export class RpcError extends Error {
|
|
|
39538
41073
|
rejectComment?: string;
|
|
39539
41074
|
}
|
|
39540
41075
|
/**
|
|
41076
|
+
* Get <a href="https://corefork.telegram.org/api/forum">topics
|
|
41077
|
+
* of a forum</a>
|
|
41078
|
+
*
|
|
39541
41079
|
* RPC method returns {@link tl.messages.TypeForumTopics}
|
|
39542
41080
|
*/
|
|
39543
41081
|
interface RawGetForumTopicsRequest {
|
|
39544
41082
|
_: 'messages.getForumTopics';
|
|
41083
|
+
/**
|
|
41084
|
+
* The supergroup forum, private chat (for forum-enabled bots)
|
|
41085
|
+
* or bot forum (for users) where the topic is located.
|
|
41086
|
+
*/
|
|
39545
41087
|
peer: tl.TypeInputPeer;
|
|
41088
|
+
/**
|
|
41089
|
+
* Search query
|
|
41090
|
+
*/
|
|
39546
41091
|
q?: string;
|
|
39547
41092
|
/**
|
|
39548
41093
|
* <a href="https://corefork.telegram.org/api/offsets">Offsets
|
|
39549
|
-
* for pagination, for more info click here</a
|
|
41094
|
+
* for pagination, for more info click here</a>, date of the
|
|
41095
|
+
* last message of the last found topic. Use 0 or any date in
|
|
41096
|
+
* the future to get results from the last topic.
|
|
39550
41097
|
*/
|
|
39551
41098
|
offsetDate: number;
|
|
39552
41099
|
/**
|
|
39553
41100
|
* <a href="https://corefork.telegram.org/api/offsets">Offsets
|
|
39554
|
-
* for pagination, for more info click here</a
|
|
41101
|
+
* for pagination, for more info click here</a>, ID of the last
|
|
41102
|
+
* message of the last found topic (or initially
|
|
41103
|
+
* <code>0</code>).
|
|
39555
41104
|
*/
|
|
39556
41105
|
offsetId: number;
|
|
41106
|
+
/**
|
|
41107
|
+
* <a href="https://corefork.telegram.org/api/offsets">Offsets
|
|
41108
|
+
* for pagination, for more info click here</a>, ID of the last
|
|
41109
|
+
* found topic (or initially <code>0</code>).
|
|
41110
|
+
*/
|
|
39557
41111
|
offsetTopic: number;
|
|
39558
41112
|
/**
|
|
39559
41113
|
* Maximum number of results to return,
|
|
39560
41114
|
* <a href="https://corefork.telegram.org/api/offsets">see
|
|
39561
|
-
* pagination</a
|
|
41115
|
+
* pagination</a>. For optimal performance, the number of
|
|
41116
|
+
* returned topics is chosen by the server and can be smaller
|
|
41117
|
+
* than the specified limit.
|
|
39562
41118
|
*/
|
|
39563
41119
|
limit: number;
|
|
39564
41120
|
}
|
|
39565
41121
|
/**
|
|
41122
|
+
* Get forum topics by their ID
|
|
41123
|
+
*
|
|
39566
41124
|
* RPC method returns {@link tl.messages.TypeForumTopics}
|
|
39567
41125
|
*/
|
|
39568
41126
|
interface RawGetForumTopicsByIDRequest {
|
|
39569
41127
|
_: 'messages.getForumTopicsByID';
|
|
41128
|
+
/**
|
|
41129
|
+
* The supergroup forum, private chat (for forum-enabled bots)
|
|
41130
|
+
* or bot forum (for users) where the topic is located.
|
|
41131
|
+
*/
|
|
39570
41132
|
peer: tl.TypeInputPeer;
|
|
41133
|
+
/**
|
|
41134
|
+
* Topic IDs
|
|
41135
|
+
*/
|
|
39571
41136
|
topics: number[];
|
|
39572
41137
|
}
|
|
39573
41138
|
/**
|
|
41139
|
+
* Edit <a href="https://corefork.telegram.org/api/forum">forum
|
|
41140
|
+
* topic</a>.
|
|
41141
|
+
*
|
|
39574
41142
|
* RPC method returns {@link tl.TypeUpdates}
|
|
39575
41143
|
*/
|
|
39576
41144
|
interface RawEditForumTopicRequest {
|
|
39577
41145
|
_: 'messages.editForumTopic';
|
|
41146
|
+
/**
|
|
41147
|
+
* The supergroup forum, private chat (for forum-enabled bots)
|
|
41148
|
+
* or bot forum (for users) where the topic is located.
|
|
41149
|
+
*/
|
|
39578
41150
|
peer: tl.TypeInputPeer;
|
|
41151
|
+
/**
|
|
41152
|
+
* Topic ID
|
|
41153
|
+
*/
|
|
39579
41154
|
topicId: number;
|
|
41155
|
+
/**
|
|
41156
|
+
* If present, will update the topic title (maximum UTF-8
|
|
41157
|
+
* length: 128).
|
|
41158
|
+
*/
|
|
39580
41159
|
title?: string;
|
|
41160
|
+
/**
|
|
41161
|
+
* If present, updates the
|
|
41162
|
+
* <a href="https://corefork.telegram.org/api/custom-emoji">custom
|
|
41163
|
+
* emoji</a> used as topic icon.
|
|
41164
|
+
* <a href="https://corefork.telegram.org/api/premium">Telegram
|
|
41165
|
+
* Premium</a> users can use any custom emoji, other users can
|
|
41166
|
+
* only use the custom emojis contained in the
|
|
41167
|
+
* {@link RawInputStickerSetEmojiDefaultTopicIcons} emoji pack.
|
|
41168
|
+
* Pass 0 to switch to the fallback topic icon.
|
|
41169
|
+
*/
|
|
39581
41170
|
iconEmojiId?: Long;
|
|
41171
|
+
/**
|
|
41172
|
+
* If present, will update the open/closed status of the topic.
|
|
41173
|
+
*/
|
|
39582
41174
|
closed?: boolean;
|
|
41175
|
+
/**
|
|
41176
|
+
* If present, will hide/unhide the topic (only valid for the
|
|
41177
|
+
* "General" topic, <code>id=1</code>).
|
|
41178
|
+
*/
|
|
39583
41179
|
hidden?: boolean;
|
|
39584
41180
|
}
|
|
39585
41181
|
/**
|
|
41182
|
+
* Pin or unpin
|
|
41183
|
+
* <a href="https://corefork.telegram.org/api/forum">forum
|
|
41184
|
+
* topics</a>
|
|
41185
|
+
*
|
|
39586
41186
|
* RPC method returns {@link tl.TypeUpdates}
|
|
39587
41187
|
*/
|
|
39588
41188
|
interface RawUpdatePinnedForumTopicRequest {
|
|
39589
41189
|
_: 'messages.updatePinnedForumTopic';
|
|
41190
|
+
/**
|
|
41191
|
+
* The supergroup forum, private chat (for forum-enabled bots)
|
|
41192
|
+
* or bot forum (for users) where the topic is located.
|
|
41193
|
+
*/
|
|
39590
41194
|
peer: tl.TypeInputPeer;
|
|
41195
|
+
/**
|
|
41196
|
+
* <a href="https://corefork.telegram.org/api/forum">Forum
|
|
41197
|
+
* topic ID</a>
|
|
41198
|
+
*/
|
|
39591
41199
|
topicId: number;
|
|
41200
|
+
/**
|
|
41201
|
+
* Whether to pin or unpin the topic
|
|
41202
|
+
*/
|
|
39592
41203
|
pinned: boolean;
|
|
39593
41204
|
}
|
|
39594
41205
|
/**
|
|
41206
|
+
* Reorder pinned forum topics
|
|
41207
|
+
*
|
|
39595
41208
|
* RPC method returns {@link tl.TypeUpdates}
|
|
39596
41209
|
*/
|
|
39597
41210
|
interface RawReorderPinnedForumTopicsRequest {
|
|
39598
41211
|
_: 'messages.reorderPinnedForumTopics';
|
|
41212
|
+
/**
|
|
41213
|
+
* If not set, the order of only the topics present both
|
|
41214
|
+
* server-side and in <code>order</code> will be changed (i.e.
|
|
41215
|
+
* mentioning topics not pinned server-side in
|
|
41216
|
+
* <code>order</code> will not pin them, and not mentioning
|
|
41217
|
+
* topics pinned server-side will not unpin them).
|
|
41218
|
+
*
|
|
41219
|
+
* If set, the entire server-side pinned topic list will be
|
|
41220
|
+
* replaced with <code>order</code> (i.e. mentioning topics not
|
|
41221
|
+
* pinned server-side in <code>order</code> will pin them, and
|
|
41222
|
+
* not mentioning topics pinned server-side will unpin them)
|
|
41223
|
+
*/
|
|
39599
41224
|
force?: boolean;
|
|
41225
|
+
/**
|
|
41226
|
+
* The supergroup forum, private chat (for forum-enabled bots)
|
|
41227
|
+
* or bot forum (for users) where the topic is located.
|
|
41228
|
+
*/
|
|
39600
41229
|
peer: tl.TypeInputPeer;
|
|
41230
|
+
/**
|
|
41231
|
+
* <a href="https://corefork.telegram.org/api/forum">Topic IDs
|
|
41232
|
+
* »</a>
|
|
41233
|
+
*/
|
|
39601
41234
|
order: number[];
|
|
39602
41235
|
}
|
|
39603
41236
|
/**
|
|
41237
|
+
* Create a
|
|
41238
|
+
* <a href="https://corefork.telegram.org/api/forum">forum
|
|
41239
|
+
* topic</a>.
|
|
41240
|
+
*
|
|
39604
41241
|
* RPC method returns {@link tl.TypeUpdates}
|
|
39605
41242
|
*/
|
|
39606
41243
|
interface RawCreateForumTopicRequest {
|
|
39607
41244
|
_: 'messages.createForumTopic';
|
|
39608
41245
|
titleMissing?: boolean;
|
|
41246
|
+
/**
|
|
41247
|
+
* The supergroup, private chat (for forum-enabled bots) or
|
|
41248
|
+
* forum bot (for users) where to create the topic.
|
|
41249
|
+
*/
|
|
39609
41250
|
peer: tl.TypeInputPeer;
|
|
41251
|
+
/**
|
|
41252
|
+
* Topic title (maximum UTF-8 length: 128)
|
|
41253
|
+
*/
|
|
39610
41254
|
title: string;
|
|
41255
|
+
/**
|
|
41256
|
+
* If no custom emoji icon is specified, specifies the color of
|
|
41257
|
+
* the fallback topic icon (RGB), one of <code>0x6FB9F0</code>,
|
|
41258
|
+
* <code>0xFFD67E</code>, <code>0xCB86DB</code>,
|
|
41259
|
+
* <code>0x8EEE98</code>, <code>0xFF93B2</code>, or
|
|
41260
|
+
* <code>0xFB6F5F</code>.
|
|
41261
|
+
*/
|
|
39611
41262
|
iconColor?: number;
|
|
41263
|
+
/**
|
|
41264
|
+
* ID of the
|
|
41265
|
+
* <a href="https://corefork.telegram.org/api/custom-emoji">custom
|
|
41266
|
+
* emoji</a> used as topic icon.
|
|
41267
|
+
* <a href="https://corefork.telegram.org/api/premium">Telegram
|
|
41268
|
+
* Premium</a> users can use any custom emoji, other users can
|
|
41269
|
+
* only use the custom emojis contained in the
|
|
41270
|
+
* {@link RawInputStickerSetEmojiDefaultTopicIcons} emoji pack.
|
|
41271
|
+
*/
|
|
39612
41272
|
iconEmojiId?: Long;
|
|
41273
|
+
/**
|
|
41274
|
+
* Unique client message ID to prevent duplicate sending of the
|
|
41275
|
+
* same event
|
|
41276
|
+
*/
|
|
39613
41277
|
randomId: Long;
|
|
41278
|
+
/**
|
|
41279
|
+
* Create the topic as the specified peer
|
|
41280
|
+
*/
|
|
39614
41281
|
sendAs?: tl.TypeInputPeer;
|
|
39615
41282
|
}
|
|
39616
41283
|
/**
|
|
41284
|
+
* Delete message history of a
|
|
41285
|
+
* <a href="https://corefork.telegram.org/api/forum">forum
|
|
41286
|
+
* topic</a>
|
|
41287
|
+
*
|
|
39617
41288
|
* RPC method returns {@link tl.messages.TypeAffectedHistory}
|
|
39618
41289
|
*/
|
|
39619
41290
|
interface RawDeleteTopicHistoryRequest {
|
|
39620
41291
|
_: 'messages.deleteTopicHistory';
|
|
41292
|
+
/**
|
|
41293
|
+
* The supergroup forum, private chat (for forum-enabled bots)
|
|
41294
|
+
* or bot forum (for users) where the topic is located.
|
|
41295
|
+
*/
|
|
39621
41296
|
peer: tl.TypeInputPeer;
|
|
41297
|
+
/**
|
|
41298
|
+
* Topic ID
|
|
41299
|
+
*/
|
|
39622
41300
|
topMsgId: number;
|
|
39623
41301
|
}
|
|
39624
41302
|
/**
|
|
@@ -39628,11 +41306,21 @@ export class RpcError extends Error {
|
|
|
39628
41306
|
_: 'messages.getEmojiGameInfo';
|
|
39629
41307
|
}
|
|
39630
41308
|
/**
|
|
41309
|
+
* Summarize the contents of a message with AI, see
|
|
41310
|
+
* <a href="https://corefork.telegram.org/api/ai#summarize-messages">here
|
|
41311
|
+
* »</a> for more info.
|
|
41312
|
+
*
|
|
39631
41313
|
* RPC method returns {@link tl.TypeTextWithEntities}
|
|
39632
41314
|
*/
|
|
39633
41315
|
interface RawSummarizeTextRequest {
|
|
39634
41316
|
_: 'messages.summarizeText';
|
|
41317
|
+
/**
|
|
41318
|
+
* The peer where the message is located.
|
|
41319
|
+
*/
|
|
39635
41320
|
peer: tl.TypeInputPeer;
|
|
41321
|
+
/**
|
|
41322
|
+
* Message ID.
|
|
41323
|
+
*/
|
|
39636
41324
|
id: number;
|
|
39637
41325
|
toLang?: string;
|
|
39638
41326
|
tone?: string;
|
|
@@ -39654,12 +41342,24 @@ export class RpcError extends Error {
|
|
|
39654
41342
|
peer: tl.TypeInputPeer;
|
|
39655
41343
|
}
|
|
39656
41344
|
/**
|
|
41345
|
+
* Edit a group participant's
|
|
41346
|
+
* <a href="https://corefork.telegram.org/api/rank">tag »</a>.
|
|
41347
|
+
*
|
|
39657
41348
|
* RPC method returns {@link tl.TypeUpdates}
|
|
39658
41349
|
*/
|
|
39659
41350
|
interface RawEditChatParticipantRankRequest {
|
|
39660
41351
|
_: 'messages.editChatParticipantRank';
|
|
41352
|
+
/**
|
|
41353
|
+
* The basic group/supergroup.
|
|
41354
|
+
*/
|
|
39661
41355
|
peer: tl.TypeInputPeer;
|
|
41356
|
+
/**
|
|
41357
|
+
* The participant.
|
|
41358
|
+
*/
|
|
39662
41359
|
participant: tl.TypeInputPeer;
|
|
41360
|
+
/**
|
|
41361
|
+
* The new tag.
|
|
41362
|
+
*/
|
|
39663
41363
|
rank: string;
|
|
39664
41364
|
}
|
|
39665
41365
|
/**
|
|
@@ -39678,16 +41378,37 @@ export class RpcError extends Error {
|
|
|
39678
41378
|
matchCode: string;
|
|
39679
41379
|
}
|
|
39680
41380
|
/**
|
|
41381
|
+
* Invokes telegram's AI Editor that can translate, transform,
|
|
41382
|
+
* fixup and/or emojify your message in a number of different
|
|
41383
|
+
* ways, privately powered by
|
|
41384
|
+
* <a href="https://cocoon.org/">Cocoon</a>, see
|
|
41385
|
+
* <a href="https://corefork.telegram.org/api/ai#compose-messages">here
|
|
41386
|
+
* »</a> for more info!
|
|
41387
|
+
*
|
|
41388
|
+
* All of the modes specified below can be combined.
|
|
41389
|
+
*
|
|
39681
41390
|
* RPC method returns
|
|
39682
41391
|
* {@link tl.messages.TypeComposedMessageWithAI}
|
|
39683
41392
|
*/
|
|
39684
41393
|
interface RawComposeMessageWithAIRequest {
|
|
39685
41394
|
_: 'messages.composeMessageWithAI';
|
|
41395
|
+
/**
|
|
41396
|
+
* If set, proofreads and fixes mistakes in the message
|
|
41397
|
+
*/
|
|
39686
41398
|
proofread?: boolean;
|
|
41399
|
+
/**
|
|
41400
|
+
* If set, adds emojis to the message
|
|
41401
|
+
*/
|
|
39687
41402
|
emojify?: boolean;
|
|
41403
|
+
/**
|
|
41404
|
+
* The message
|
|
41405
|
+
*/
|
|
39688
41406
|
text: tl.TypeTextWithEntities;
|
|
41407
|
+
/**
|
|
41408
|
+
* If set, translates the message to the specified language
|
|
41409
|
+
*/
|
|
39689
41410
|
translateToLang?: string;
|
|
39690
|
-
|
|
41411
|
+
tone?: tl.TypeInputAiComposeTone;
|
|
39691
41412
|
}
|
|
39692
41413
|
/**
|
|
39693
41414
|
* RPC method returns boolean
|
|
@@ -39730,8 +41451,21 @@ export class RpcError extends Error {
|
|
|
39730
41451
|
_: 'messages.getUnreadPollVotes';
|
|
39731
41452
|
peer: tl.TypeInputPeer;
|
|
39732
41453
|
topMsgId?: number;
|
|
41454
|
+
/**
|
|
41455
|
+
* <a href="https://corefork.telegram.org/api/offsets">Offsets
|
|
41456
|
+
* for pagination, for more info click here</a>
|
|
41457
|
+
*/
|
|
39733
41458
|
offsetId: number;
|
|
41459
|
+
/**
|
|
41460
|
+
* <a href="https://corefork.telegram.org/api/offsets">Offsets
|
|
41461
|
+
* for pagination, for more info click here</a>
|
|
41462
|
+
*/
|
|
39734
41463
|
addOffset: number;
|
|
41464
|
+
/**
|
|
41465
|
+
* Maximum number of results to return,
|
|
41466
|
+
* <a href="https://corefork.telegram.org/api/offsets">see
|
|
41467
|
+
* pagination</a>
|
|
41468
|
+
*/
|
|
39735
41469
|
limit: number;
|
|
39736
41470
|
maxId: number;
|
|
39737
41471
|
minId: number;
|
|
@@ -39744,6 +41478,50 @@ export class RpcError extends Error {
|
|
|
39744
41478
|
peer: tl.TypeInputPeer;
|
|
39745
41479
|
topMsgId?: number;
|
|
39746
41480
|
}
|
|
41481
|
+
/**
|
|
41482
|
+
* RPC method returns {@link tl.TypeInputBotInlineMessageID}
|
|
41483
|
+
*/
|
|
41484
|
+
interface RawSetBotGuestChatResultRequest {
|
|
41485
|
+
_: 'messages.setBotGuestChatResult';
|
|
41486
|
+
queryId: Long;
|
|
41487
|
+
result: tl.TypeInputBotInlineResult;
|
|
41488
|
+
}
|
|
41489
|
+
/**
|
|
41490
|
+
* RPC method returns boolean
|
|
41491
|
+
*/
|
|
41492
|
+
interface RawDeleteParticipantReactionsRequest {
|
|
41493
|
+
_: 'messages.deleteParticipantReactions';
|
|
41494
|
+
peer: tl.TypeInputPeer;
|
|
41495
|
+
participant: tl.TypeInputPeer;
|
|
41496
|
+
}
|
|
41497
|
+
/**
|
|
41498
|
+
* RPC method returns {@link tl.TypeUpdates}
|
|
41499
|
+
*/
|
|
41500
|
+
interface RawDeleteParticipantReactionRequest {
|
|
41501
|
+
_: 'messages.deleteParticipantReaction';
|
|
41502
|
+
peer: tl.TypeInputPeer;
|
|
41503
|
+
msgId: number;
|
|
41504
|
+
participant: tl.TypeInputPeer;
|
|
41505
|
+
}
|
|
41506
|
+
/**
|
|
41507
|
+
* RPC method returns {@link tl.messages.TypeMessages}
|
|
41508
|
+
*/
|
|
41509
|
+
interface RawGetPersonalChannelHistoryRequest {
|
|
41510
|
+
_: 'messages.getPersonalChannelHistory';
|
|
41511
|
+
userId: tl.TypeInputUser;
|
|
41512
|
+
limit: number;
|
|
41513
|
+
maxId: number;
|
|
41514
|
+
minId: number;
|
|
41515
|
+
hash: Long;
|
|
41516
|
+
}
|
|
41517
|
+
/**
|
|
41518
|
+
* RPC method returns {@link tl.messages.TypeMessages}
|
|
41519
|
+
*/
|
|
41520
|
+
interface RawGetRichMessageRequest {
|
|
41521
|
+
_: 'messages.getRichMessage';
|
|
41522
|
+
peer: tl.TypeInputPeer;
|
|
41523
|
+
id: number;
|
|
41524
|
+
}
|
|
39747
41525
|
interface RpcCallReturn {
|
|
39748
41526
|
'messages.getMessages': tl.messages.TypeMessages
|
|
39749
41527
|
'messages.getDialogs': tl.messages.TypeDialogs
|
|
@@ -39784,7 +41562,7 @@ export class RpcError extends Error {
|
|
|
39784
41562
|
'messages.getWebPagePreview': tl.messages.TypeWebPagePreview
|
|
39785
41563
|
'messages.exportChatInvite': tl.TypeExportedChatInvite
|
|
39786
41564
|
'messages.checkChatInvite': tl.TypeChatInvite
|
|
39787
|
-
'messages.importChatInvite': tl.
|
|
41565
|
+
'messages.importChatInvite': tl.messages.TypeChatInviteJoinResult
|
|
39788
41566
|
'messages.getStickerSet': tl.messages.TypeStickerSet
|
|
39789
41567
|
'messages.installStickerSet': tl.messages.TypeStickerSetInstallResult
|
|
39790
41568
|
'messages.uninstallStickerSet': boolean
|
|
@@ -39996,6 +41774,11 @@ export class RpcError extends Error {
|
|
|
39996
41774
|
'messages.deletePollAnswer': tl.TypeUpdates
|
|
39997
41775
|
'messages.getUnreadPollVotes': tl.messages.TypeMessages
|
|
39998
41776
|
'messages.readPollVotes': tl.messages.TypeAffectedHistory
|
|
41777
|
+
'messages.setBotGuestChatResult': tl.TypeInputBotInlineMessageID
|
|
41778
|
+
'messages.deleteParticipantReactions': boolean
|
|
41779
|
+
'messages.deleteParticipantReaction': tl.TypeUpdates
|
|
41780
|
+
'messages.getPersonalChannelHistory': tl.messages.TypeMessages
|
|
41781
|
+
'messages.getRichMessage': tl.messages.TypeMessages
|
|
39999
41782
|
}
|
|
40000
41783
|
/**
|
|
40001
41784
|
* Object contains a list of chats with messages and auxiliary
|
|
@@ -40350,8 +42133,13 @@ export class RpcError extends Error {
|
|
|
40350
42133
|
function isAnyEmojiGameOutcome(o: object): o is TypeEmojiGameOutcome
|
|
40351
42134
|
type TypeEmojiGameInfo = tl.messages.RawEmojiGameUnavailable | tl.messages.RawEmojiGameDiceInfo
|
|
40352
42135
|
function isAnyEmojiGameInfo(o: object): o is TypeEmojiGameInfo
|
|
42136
|
+
/**
|
|
42137
|
+
* Represents a message modified by AI.
|
|
42138
|
+
*/
|
|
40353
42139
|
type TypeComposedMessageWithAI = tl.messages.RawComposedMessageWithAI
|
|
40354
42140
|
function isAnyComposedMessageWithAI(o: object): o is TypeComposedMessageWithAI
|
|
42141
|
+
type TypeChatInviteJoinResult = tl.messages.RawChatInviteJoinResultOk | tl.messages.RawChatInviteJoinResultWebView
|
|
42142
|
+
function isAnyChatInviteJoinResult(o: object): o is TypeChatInviteJoinResult
|
|
40355
42143
|
}
|
|
40356
42144
|
|
|
40357
42145
|
namespace updates {
|
|
@@ -41742,9 +43530,9 @@ export class RpcError extends Error {
|
|
|
41742
43530
|
* inclusive, in which case a palette containing a single color
|
|
41743
43531
|
* from the following colors should be used: red, orange,
|
|
41744
43532
|
* violet, green, cyan, blue, pink for indexes 0 to 6 (i.e. the
|
|
41745
|
-
* same colors used for
|
|
41746
|
-
* <a href="https://corefork.telegram.org/api/colors">
|
|
41747
|
-
*
|
|
43533
|
+
* same colors used for the
|
|
43534
|
+
* <a href="https://corefork.telegram.org/api/colors#randomized-fallback-color-palette">randomized
|
|
43535
|
+
* fallback color palette</a>).
|
|
41748
43536
|
*/
|
|
41749
43537
|
colors?: tl.help.TypePeerColorSet;
|
|
41750
43538
|
/**
|
|
@@ -42913,14 +44701,45 @@ export class RpcError extends Error {
|
|
|
42913
44701
|
*/
|
|
42914
44702
|
ids: Long[];
|
|
42915
44703
|
}
|
|
44704
|
+
/**
|
|
44705
|
+
* List of
|
|
44706
|
+
* <a href="https://corefork.telegram.org/api/passkeys#list-passkeys">passkeys
|
|
44707
|
+
* »</a> associated to the current account.
|
|
44708
|
+
*/
|
|
42916
44709
|
interface RawPasskeys {
|
|
42917
44710
|
_: 'account.passkeys';
|
|
44711
|
+
/**
|
|
44712
|
+
* List of passkeys that can be used to log into the current
|
|
44713
|
+
* account
|
|
44714
|
+
*/
|
|
42918
44715
|
passkeys: tl.TypePasskey[];
|
|
42919
44716
|
}
|
|
44717
|
+
/**
|
|
44718
|
+
* Passkey registration options, see
|
|
44719
|
+
* <a href="https://corefork.telegram.org/api/passkeys#creating-a-passkey">here
|
|
44720
|
+
* »</a> for more info on the full flow.
|
|
44721
|
+
*/
|
|
42920
44722
|
interface RawPasskeyRegistrationOptions {
|
|
42921
44723
|
_: 'account.passkeyRegistrationOptions';
|
|
44724
|
+
/**
|
|
44725
|
+
* JSON-encoded object whose <code>publicKey</code> field
|
|
44726
|
+
* contains a
|
|
44727
|
+
* <a href="https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredentialCreationOptions"><code>PublicKeyCredentialCreationOptions</code></a>
|
|
44728
|
+
* object.
|
|
44729
|
+
*/
|
|
42922
44730
|
options: tl.TypeDataJSON;
|
|
42923
44731
|
}
|
|
44732
|
+
interface RawWebBrowserSettingsNotModified {
|
|
44733
|
+
_: 'account.webBrowserSettingsNotModified';
|
|
44734
|
+
}
|
|
44735
|
+
interface RawWebBrowserSettings {
|
|
44736
|
+
_: 'account.webBrowserSettings';
|
|
44737
|
+
openExternalBrowser?: boolean;
|
|
44738
|
+
displayCloseButton?: boolean;
|
|
44739
|
+
externalExceptions: tl.TypeWebDomainException[];
|
|
44740
|
+
inappExceptions: tl.TypeWebDomainException[];
|
|
44741
|
+
hash: Long;
|
|
44742
|
+
}
|
|
42924
44743
|
/**
|
|
42925
44744
|
* Register device to receive
|
|
42926
44745
|
* <a href="https://corefork.telegram.org/api/push-updates">PUSH
|
|
@@ -45029,13 +46848,20 @@ export class RpcError extends Error {
|
|
|
45029
46848
|
_: 'account.getUniqueGiftChatThemes';
|
|
45030
46849
|
/**
|
|
45031
46850
|
* Offset for
|
|
45032
|
-
* <a href="https://corefork.telegram.org/api/offsets">pagination</a
|
|
46851
|
+
* <a href="https://corefork.telegram.org/api/offsets">pagination</a>,
|
|
46852
|
+
* intially an empty string, then equal the value of the last
|
|
46853
|
+
* returned
|
|
46854
|
+
* {@link account.RawChatThemes}.<code>next_offset</code> (if
|
|
46855
|
+
* set).
|
|
45033
46856
|
*/
|
|
45034
46857
|
offset: string;
|
|
45035
46858
|
/**
|
|
45036
46859
|
* Maximum number of results to return,
|
|
45037
46860
|
* <a href="https://corefork.telegram.org/api/offsets">see
|
|
45038
|
-
* pagination</a
|
|
46861
|
+
* pagination</a>. Note that the server may return less than
|
|
46862
|
+
* <code>limit</code> results, even if the actual number of
|
|
46863
|
+
* remaining results is <code>>= limit</code>, paginate to
|
|
46864
|
+
* fetch them all.
|
|
45039
46865
|
*/
|
|
45040
46866
|
limit: number;
|
|
45041
46867
|
/**
|
|
@@ -45046,6 +46872,10 @@ export class RpcError extends Error {
|
|
|
45046
46872
|
hash: Long;
|
|
45047
46873
|
}
|
|
45048
46874
|
/**
|
|
46875
|
+
* Initialize passkey registration for the current account, see
|
|
46876
|
+
* <a href="https://corefork.telegram.org/api/passkeys#creating-a-passkey">here
|
|
46877
|
+
* »</a> for more info on the full flow.
|
|
46878
|
+
*
|
|
45049
46879
|
* RPC method returns
|
|
45050
46880
|
* {@link tl.account.TypePasskeyRegistrationOptions}
|
|
45051
46881
|
*/
|
|
@@ -45053,25 +46883,83 @@ export class RpcError extends Error {
|
|
|
45053
46883
|
_: 'account.initPasskeyRegistration';
|
|
45054
46884
|
}
|
|
45055
46885
|
/**
|
|
46886
|
+
* Complete passkey registration for the current account, see
|
|
46887
|
+
* <a href="https://corefork.telegram.org/api/passkeys#creating-a-passkey">here
|
|
46888
|
+
* »</a> for more info on the full flow.
|
|
46889
|
+
*
|
|
45056
46890
|
* RPC method returns {@link tl.TypePasskey}
|
|
45057
46891
|
*/
|
|
45058
46892
|
interface RawRegisterPasskeyRequest {
|
|
45059
46893
|
_: 'account.registerPasskey';
|
|
46894
|
+
/**
|
|
46895
|
+
* Registration result.
|
|
46896
|
+
*/
|
|
45060
46897
|
credential: tl.TypeInputPasskeyCredential;
|
|
45061
46898
|
}
|
|
45062
46899
|
/**
|
|
46900
|
+
* List the passkeys associated to the current account that can
|
|
46901
|
+
* be used to log in, see
|
|
46902
|
+
* <a href="https://corefork.telegram.org/api/passkeys#list-passkeys">here
|
|
46903
|
+
* »</a> for more info on passkeys.
|
|
46904
|
+
*
|
|
45063
46905
|
* RPC method returns {@link tl.account.TypePasskeys}
|
|
45064
46906
|
*/
|
|
45065
46907
|
interface RawGetPasskeysRequest {
|
|
45066
46908
|
_: 'account.getPasskeys';
|
|
45067
46909
|
}
|
|
45068
46910
|
/**
|
|
46911
|
+
* Delete a passkey associated to the current account, see
|
|
46912
|
+
* <a href="https://corefork.telegram.org/api/passkeys#delete-passkeys">here
|
|
46913
|
+
* »</a> for more info.
|
|
46914
|
+
*
|
|
45069
46915
|
* RPC method returns boolean
|
|
45070
46916
|
*/
|
|
45071
46917
|
interface RawDeletePasskeyRequest {
|
|
45072
46918
|
_: 'account.deletePasskey';
|
|
46919
|
+
/**
|
|
46920
|
+
* Identifier of the passkey to delete, taken from
|
|
46921
|
+
* {@link RawPasskey}.<code>id</code>, usually obtained using
|
|
46922
|
+
* {@link account.RawGetPasskeysRequest}.
|
|
46923
|
+
*/
|
|
45073
46924
|
id: string;
|
|
45074
46925
|
}
|
|
46926
|
+
/**
|
|
46927
|
+
* RPC method returns boolean
|
|
46928
|
+
*/
|
|
46929
|
+
interface RawConfirmBotConnectionRequest {
|
|
46930
|
+
_: 'account.confirmBotConnection';
|
|
46931
|
+
botId: tl.TypeInputUser;
|
|
46932
|
+
}
|
|
46933
|
+
/**
|
|
46934
|
+
* RPC method returns {@link tl.account.TypeWebBrowserSettings}
|
|
46935
|
+
*/
|
|
46936
|
+
interface RawGetWebBrowserSettingsRequest {
|
|
46937
|
+
_: 'account.getWebBrowserSettings';
|
|
46938
|
+
hash: Long;
|
|
46939
|
+
}
|
|
46940
|
+
/**
|
|
46941
|
+
* RPC method returns {@link tl.account.TypeWebBrowserSettings}
|
|
46942
|
+
*/
|
|
46943
|
+
interface RawUpdateWebBrowserSettingsRequest {
|
|
46944
|
+
_: 'account.updateWebBrowserSettings';
|
|
46945
|
+
openExternalBrowser?: boolean;
|
|
46946
|
+
displayCloseButton?: boolean;
|
|
46947
|
+
}
|
|
46948
|
+
/**
|
|
46949
|
+
* RPC method returns {@link tl.TypeUpdates}
|
|
46950
|
+
*/
|
|
46951
|
+
interface RawToggleWebBrowserSettingsExceptionRequest {
|
|
46952
|
+
_: 'account.toggleWebBrowserSettingsException';
|
|
46953
|
+
delete?: boolean;
|
|
46954
|
+
openExternalBrowser?: boolean;
|
|
46955
|
+
url: string;
|
|
46956
|
+
}
|
|
46957
|
+
/**
|
|
46958
|
+
* RPC method returns {@link tl.account.TypeWebBrowserSettings}
|
|
46959
|
+
*/
|
|
46960
|
+
interface RawDeleteWebBrowserSettingsExceptionsRequest {
|
|
46961
|
+
_: 'account.deleteWebBrowserSettingsExceptions';
|
|
46962
|
+
}
|
|
45075
46963
|
interface RpcCallReturn {
|
|
45076
46964
|
'account.registerDevice': boolean
|
|
45077
46965
|
'account.unregisterDevice': boolean
|
|
@@ -45196,6 +47084,11 @@ export class RpcError extends Error {
|
|
|
45196
47084
|
'account.registerPasskey': tl.TypePasskey
|
|
45197
47085
|
'account.getPasskeys': tl.account.TypePasskeys
|
|
45198
47086
|
'account.deletePasskey': boolean
|
|
47087
|
+
'account.confirmBotConnection': boolean
|
|
47088
|
+
'account.getWebBrowserSettings': tl.account.TypeWebBrowserSettings
|
|
47089
|
+
'account.updateWebBrowserSettings': tl.account.TypeWebBrowserSettings
|
|
47090
|
+
'account.toggleWebBrowserSettingsException': tl.TypeUpdates
|
|
47091
|
+
'account.deleteWebBrowserSettingsExceptions': tl.account.TypeWebBrowserSettings
|
|
45199
47092
|
}
|
|
45200
47093
|
/**
|
|
45201
47094
|
* Privacy rules
|
|
@@ -45349,10 +47242,22 @@ export class RpcError extends Error {
|
|
|
45349
47242
|
*/
|
|
45350
47243
|
type TypeSavedMusicIds = tl.account.RawSavedMusicIdsNotModified | tl.account.RawSavedMusicIds
|
|
45351
47244
|
function isAnySavedMusicIds(o: object): o is TypeSavedMusicIds
|
|
47245
|
+
/**
|
|
47246
|
+
* List of
|
|
47247
|
+
* <a href="https://corefork.telegram.org/api/passkeys#list-passkeys">passkeys
|
|
47248
|
+
* »</a> associated to the current account.
|
|
47249
|
+
*/
|
|
45352
47250
|
type TypePasskeys = tl.account.RawPasskeys
|
|
45353
47251
|
function isAnyPasskeys(o: object): o is TypePasskeys
|
|
47252
|
+
/**
|
|
47253
|
+
* Passkey registration options, see
|
|
47254
|
+
* <a href="https://corefork.telegram.org/api/passkeys#creating-a-passkey">here
|
|
47255
|
+
* »</a> for more info on the full flow.
|
|
47256
|
+
*/
|
|
45354
47257
|
type TypePasskeyRegistrationOptions = tl.account.RawPasskeyRegistrationOptions
|
|
45355
47258
|
function isAnyPasskeyRegistrationOptions(o: object): o is TypePasskeyRegistrationOptions
|
|
47259
|
+
type TypeWebBrowserSettings = tl.account.RawWebBrowserSettingsNotModified | tl.account.RawWebBrowserSettings
|
|
47260
|
+
function isAnyWebBrowserSettings(o: object): o is TypeWebBrowserSettings
|
|
45356
47261
|
}
|
|
45357
47262
|
|
|
45358
47263
|
namespace channels {
|
|
@@ -45710,7 +47615,8 @@ export class RpcError extends Error {
|
|
|
45710
47615
|
adminRights: tl.TypeChatAdminRights;
|
|
45711
47616
|
/**
|
|
45712
47617
|
* Indicates the role (rank) of the admin in the group: just an
|
|
45713
|
-
* arbitrary string
|
|
47618
|
+
* arbitrary string. If the flag is not set, the rank is left
|
|
47619
|
+
* unchanged.
|
|
45714
47620
|
*/
|
|
45715
47621
|
rank?: string;
|
|
45716
47622
|
}
|
|
@@ -45786,7 +47692,8 @@ export class RpcError extends Error {
|
|
|
45786
47692
|
/**
|
|
45787
47693
|
* Join a channel/supergroup
|
|
45788
47694
|
*
|
|
45789
|
-
* RPC method returns
|
|
47695
|
+
* RPC method returns
|
|
47696
|
+
* {@link tl.messages.TypeChatInviteJoinResult}
|
|
45790
47697
|
*/
|
|
45791
47698
|
interface RawJoinChannelRequest {
|
|
45792
47699
|
_: 'channels.joinChannel';
|
|
@@ -46253,6 +48160,7 @@ export class RpcError extends Error {
|
|
|
46253
48160
|
*/
|
|
46254
48161
|
interface RawToggleJoinRequestRequest {
|
|
46255
48162
|
_: 'channels.toggleJoinRequest';
|
|
48163
|
+
applyToInvites?: boolean;
|
|
46256
48164
|
/**
|
|
46257
48165
|
* Group
|
|
46258
48166
|
*/
|
|
@@ -46261,6 +48169,7 @@ export class RpcError extends Error {
|
|
|
46261
48169
|
* Toggle
|
|
46262
48170
|
*/
|
|
46263
48171
|
enabled: boolean;
|
|
48172
|
+
guardBot?: tl.TypeInputUser;
|
|
46264
48173
|
}
|
|
46265
48174
|
/**
|
|
46266
48175
|
* Reorder active usernames
|
|
@@ -46770,9 +48679,7 @@ export class RpcError extends Error {
|
|
|
46770
48679
|
/**
|
|
46771
48680
|
* Create a
|
|
46772
48681
|
* <a href="https://corefork.telegram.org/api/forum">forum
|
|
46773
|
-
* topic</a
|
|
46774
|
-
* <a href="https://corefork.telegram.org/api/rights"><code>manage_topics</code>
|
|
46775
|
-
* rights</a>.
|
|
48682
|
+
* topic</a>.
|
|
46776
48683
|
*
|
|
46777
48684
|
* RPC method returns {@link tl.TypeUpdates}
|
|
46778
48685
|
*/
|
|
@@ -46878,9 +48785,7 @@ export class RpcError extends Error {
|
|
|
46878
48785
|
}
|
|
46879
48786
|
/**
|
|
46880
48787
|
* Edit <a href="https://corefork.telegram.org/api/forum">forum
|
|
46881
|
-
* topic</a
|
|
46882
|
-
* <a href="https://corefork.telegram.org/api/rights"><code>manage_topics</code>
|
|
46883
|
-
* rights</a>.
|
|
48788
|
+
* topic</a>.
|
|
46884
48789
|
*
|
|
46885
48790
|
* RPC method returns {@link tl.TypeUpdates}
|
|
46886
48791
|
*/
|
|
@@ -47006,7 +48911,7 @@ export class RpcError extends Error {
|
|
|
47006
48911
|
'channels.editPhoto': tl.TypeUpdates
|
|
47007
48912
|
'channels.checkUsername': boolean
|
|
47008
48913
|
'channels.updateUsername': boolean
|
|
47009
|
-
'channels.joinChannel': tl.
|
|
48914
|
+
'channels.joinChannel': tl.messages.TypeChatInviteJoinResult
|
|
47010
48915
|
'channels.leaveChannel': tl.TypeUpdates
|
|
47011
48916
|
'channels.inviteToChannel': tl.messages.TypeInvitedUsers
|
|
47012
48917
|
'channels.deleteChannel': tl.TypeUpdates
|
|
@@ -47780,7 +49685,21 @@ export class RpcError extends Error {
|
|
|
47780
49685
|
* Possible gift attributes
|
|
47781
49686
|
*/
|
|
47782
49687
|
sampleAttributes: tl.TypeStarGiftAttribute[];
|
|
49688
|
+
/**
|
|
49689
|
+
* Contains a similar list of upgrade prices and timestamps,
|
|
49690
|
+
* not as granular as in <code>next_prices</code> (i.e. prices
|
|
49691
|
+
* are approximately 1 month apart), to be used mainly to scale
|
|
49692
|
+
* the price graph, and to show a more general future overview
|
|
49693
|
+
* of the upgrade price.
|
|
49694
|
+
*/
|
|
47783
49695
|
prices: tl.TypeStarGiftUpgradePrice[];
|
|
49696
|
+
/**
|
|
49697
|
+
* Contains the current upgrade price and a list of future
|
|
49698
|
+
* prices, each associated to a UNIX timestamp that indicates
|
|
49699
|
+
* when the price comes in effect (the current price is valid
|
|
49700
|
+
* only until the next one comes into effect, and so on for all
|
|
49701
|
+
* prices in the list).
|
|
49702
|
+
*/
|
|
47784
49703
|
nextPrices: tl.TypeStarGiftUpgradePrice[];
|
|
47785
49704
|
}
|
|
47786
49705
|
/**
|
|
@@ -48026,28 +49945,91 @@ export class RpcError extends Error {
|
|
|
48026
49945
|
*/
|
|
48027
49946
|
reason: tl.TypeTextWithEntities;
|
|
48028
49947
|
}
|
|
49948
|
+
/**
|
|
49949
|
+
* Describes a
|
|
49950
|
+
* <a href="https://corefork.telegram.org/api/auctions">collectible
|
|
49951
|
+
* gift auction »</a>.
|
|
49952
|
+
*/
|
|
48029
49953
|
interface RawStarGiftAuctionState {
|
|
48030
49954
|
_: 'payments.starGiftAuctionState';
|
|
49955
|
+
/**
|
|
49956
|
+
* The gift currently being distributed in the auction.
|
|
49957
|
+
*/
|
|
48031
49958
|
gift: tl.TypeStarGift;
|
|
49959
|
+
/**
|
|
49960
|
+
* Auction state.
|
|
49961
|
+
*/
|
|
48032
49962
|
state: tl.TypeStarGiftAuctionState;
|
|
49963
|
+
/**
|
|
49964
|
+
* Auction state related to the current user (i.e. info about
|
|
49965
|
+
* placed bids, won gifts, and so on).
|
|
49966
|
+
*/
|
|
48033
49967
|
userState: tl.TypeStarGiftAuctionUserState;
|
|
49968
|
+
/**
|
|
49969
|
+
* Re-invoke the
|
|
49970
|
+
* {@link payments.RawGetStarGiftAuctionStateRequest} method
|
|
49971
|
+
* after <code>timeout</code> seconds to keep receiving auction
|
|
49972
|
+
* updates, see
|
|
49973
|
+
* <a href="https://corefork.telegram.org/api/auctions">here
|
|
49974
|
+
* »</a> for more info on the full flow.
|
|
49975
|
+
*/
|
|
48034
49976
|
timeout: number;
|
|
49977
|
+
/**
|
|
49978
|
+
* Mentioned users
|
|
49979
|
+
*/
|
|
48035
49980
|
users: tl.TypeUser[];
|
|
49981
|
+
/**
|
|
49982
|
+
* Mentioned chats
|
|
49983
|
+
*/
|
|
48036
49984
|
chats: tl.TypeChat[];
|
|
48037
49985
|
}
|
|
49986
|
+
/**
|
|
49987
|
+
* Describes all the gifts that the current user won in an
|
|
49988
|
+
* <a href="https://corefork.telegram.org/api/auctions">auction</a>.
|
|
49989
|
+
*/
|
|
48038
49990
|
interface RawStarGiftAuctionAcquiredGifts {
|
|
48039
49991
|
_: 'payments.starGiftAuctionAcquiredGifts';
|
|
49992
|
+
/**
|
|
49993
|
+
* The gifts
|
|
49994
|
+
*/
|
|
48040
49995
|
gifts: tl.TypeStarGiftAuctionAcquiredGift[];
|
|
49996
|
+
/**
|
|
49997
|
+
* Mentioned users
|
|
49998
|
+
*/
|
|
48041
49999
|
users: tl.TypeUser[];
|
|
50000
|
+
/**
|
|
50001
|
+
* Mentioned chats
|
|
50002
|
+
*/
|
|
48042
50003
|
chats: tl.TypeChat[];
|
|
48043
50004
|
}
|
|
50005
|
+
/**
|
|
50006
|
+
* The list of currently active
|
|
50007
|
+
* <a href="https://corefork.telegram.org/api/auctions">gift
|
|
50008
|
+
* auctions</a> <strong>where the user has placed a
|
|
50009
|
+
* bid</strong> hasn't changed.
|
|
50010
|
+
*/
|
|
48044
50011
|
interface RawStarGiftActiveAuctionsNotModified {
|
|
48045
50012
|
_: 'payments.starGiftActiveAuctionsNotModified';
|
|
48046
50013
|
}
|
|
50014
|
+
/**
|
|
50015
|
+
* Describes all currently active
|
|
50016
|
+
* <a href="https://corefork.telegram.org/api/auctions">gift
|
|
50017
|
+
* auctions</a> <strong>where the user has placed a
|
|
50018
|
+
* bid</strong>.
|
|
50019
|
+
*/
|
|
48047
50020
|
interface RawStarGiftActiveAuctions {
|
|
48048
50021
|
_: 'payments.starGiftActiveAuctions';
|
|
50022
|
+
/**
|
|
50023
|
+
* Auctions where the user has placed a bid
|
|
50024
|
+
*/
|
|
48049
50025
|
auctions: tl.TypeStarGiftActiveAuctionState[];
|
|
50026
|
+
/**
|
|
50027
|
+
* Mentioned users
|
|
50028
|
+
*/
|
|
48050
50029
|
users: tl.TypeUser[];
|
|
50030
|
+
/**
|
|
50031
|
+
* Mentioned chats
|
|
50032
|
+
*/
|
|
48051
50033
|
chats: tl.TypeChat[];
|
|
48052
50034
|
}
|
|
48053
50035
|
interface RawStarGiftUpgradeAttributes {
|
|
@@ -48331,7 +50313,7 @@ export class RpcError extends Error {
|
|
|
48331
50313
|
* <a href="https://corefork.telegram.org/api/stars">Telegram
|
|
48332
50314
|
* Stars balance</a> of the current account (with
|
|
48333
50315
|
* peer={@link RawInputPeerSelf}), or the stars balance of the
|
|
48334
|
-
* bot specified in <code>peer</code>.
|
|
50316
|
+
* bot or channel specified in <code>peer</code>.
|
|
48335
50317
|
*
|
|
48336
50318
|
* RPC method returns {@link tl.payments.TypeStarsStatus}
|
|
48337
50319
|
*/
|
|
@@ -49143,6 +51125,7 @@ export class RpcError extends Error {
|
|
|
49143
51125
|
*/
|
|
49144
51126
|
sortByNum?: boolean;
|
|
49145
51127
|
forCraft?: boolean;
|
|
51128
|
+
starsOnly?: boolean;
|
|
49146
51129
|
/**
|
|
49147
51130
|
* If a previous call to the method was made and
|
|
49148
51131
|
* {@link payments.RawResaleStarGifts}.<code>attributes_hash</code>
|
|
@@ -49168,7 +51151,6 @@ export class RpcError extends Error {
|
|
|
49168
51151
|
* of that type are allowed.
|
|
49169
51152
|
*/
|
|
49170
51153
|
attributes?: tl.TypeStarGiftAttributeId[];
|
|
49171
|
-
starsOnly?: boolean;
|
|
49172
51154
|
/**
|
|
49173
51155
|
* Offset for pagination. If not equal to an empty string,
|
|
49174
51156
|
* {@link payments.RawResaleStarGifts}.<code>counters</code>
|
|
@@ -49353,28 +51335,61 @@ export class RpcError extends Error {
|
|
|
49353
51335
|
giftId: Long;
|
|
49354
51336
|
}
|
|
49355
51337
|
/**
|
|
51338
|
+
* Returns info about a
|
|
51339
|
+
* <a href="https://corefork.telegram.org/api/auctions">collectible
|
|
51340
|
+
* gift auction »</a>; also subscribes the user to auction
|
|
51341
|
+
* updates, see
|
|
51342
|
+
* <a href="https://corefork.telegram.org/api/auctions">here
|
|
51343
|
+
* »</a> for more info on the full flow.
|
|
51344
|
+
*
|
|
49356
51345
|
* RPC method returns
|
|
49357
51346
|
* {@link tl.payments.TypeStarGiftAuctionState}
|
|
49358
51347
|
*/
|
|
49359
51348
|
interface RawGetStarGiftAuctionStateRequest {
|
|
49360
51349
|
_: 'payments.getStarGiftAuctionState';
|
|
51350
|
+
/**
|
|
51351
|
+
* Either the ID of the gift linked to the auction, or an
|
|
51352
|
+
* <a href="https://corefork.telegram.org/api/links#auction-links">auction
|
|
51353
|
+
* deep link slug »</a>.
|
|
51354
|
+
*/
|
|
49361
51355
|
auction: tl.TypeInputStarGiftAuction;
|
|
51356
|
+
/**
|
|
51357
|
+
* Initially <code>0</code>, then set to the returned
|
|
51358
|
+
* {@link RawStarGiftAuctionState}.<code>version</code>, to
|
|
51359
|
+
* avoid refetching results if they haven't changed.
|
|
51360
|
+
*/
|
|
49362
51361
|
version: number;
|
|
49363
51362
|
}
|
|
49364
51363
|
/**
|
|
51364
|
+
* Fetches all the gifts that the current user won in an
|
|
51365
|
+
* <a href="https://corefork.telegram.org/api/auctions">auction</a>.
|
|
51366
|
+
*
|
|
49365
51367
|
* RPC method returns
|
|
49366
51368
|
* {@link tl.payments.TypeStarGiftAuctionAcquiredGifts}
|
|
49367
51369
|
*/
|
|
49368
51370
|
interface RawGetStarGiftAuctionAcquiredGiftsRequest {
|
|
49369
51371
|
_: 'payments.getStarGiftAuctionAcquiredGifts';
|
|
51372
|
+
/**
|
|
51373
|
+
* The gift ID linked to the auction.
|
|
51374
|
+
*/
|
|
49370
51375
|
giftId: Long;
|
|
49371
51376
|
}
|
|
49372
51377
|
/**
|
|
51378
|
+
* Fetches all currently active
|
|
51379
|
+
* <a href="https://corefork.telegram.org/api/auctions">gift
|
|
51380
|
+
* auctions</a> <strong>where the user has placed a
|
|
51381
|
+
* bid</strong>.
|
|
51382
|
+
*
|
|
49373
51383
|
* RPC method returns
|
|
49374
51384
|
* {@link tl.payments.TypeStarGiftActiveAuctions}
|
|
49375
51385
|
*/
|
|
49376
51386
|
interface RawGetStarGiftActiveAuctionsRequest {
|
|
49377
51387
|
_: 'payments.getStarGiftActiveAuctions';
|
|
51388
|
+
/**
|
|
51389
|
+
* Hash generated
|
|
51390
|
+
* <a href="https://corefork.telegram.org/api/auctions">as
|
|
51391
|
+
* specified here »</a>
|
|
51392
|
+
*/
|
|
49378
51393
|
hash: Long;
|
|
49379
51394
|
}
|
|
49380
51395
|
/**
|
|
@@ -49651,8 +51666,17 @@ export class RpcError extends Error {
|
|
|
49651
51666
|
*/
|
|
49652
51667
|
type TypeCheckCanSendGiftResult = tl.payments.RawCheckCanSendGiftResultOk | tl.payments.RawCheckCanSendGiftResultFail
|
|
49653
51668
|
function isAnyCheckCanSendGiftResult(o: object): o is TypeCheckCanSendGiftResult
|
|
51669
|
+
/**
|
|
51670
|
+
* Describes a
|
|
51671
|
+
* <a href="https://corefork.telegram.org/api/auctions">collectible
|
|
51672
|
+
* gift auction »</a>.
|
|
51673
|
+
*/
|
|
49654
51674
|
type TypeStarGiftAuctionState = tl.payments.RawStarGiftAuctionState
|
|
49655
51675
|
function isAnyStarGiftAuctionState(o: object): o is TypeStarGiftAuctionState
|
|
51676
|
+
/**
|
|
51677
|
+
* Describes all the gifts that the current user won in an
|
|
51678
|
+
* <a href="https://corefork.telegram.org/api/auctions">auction</a>.
|
|
51679
|
+
*/
|
|
49656
51680
|
type TypeStarGiftAuctionAcquiredGifts = tl.payments.RawStarGiftAuctionAcquiredGifts
|
|
49657
51681
|
function isAnyStarGiftAuctionAcquiredGifts(o: object): o is TypeStarGiftAuctionAcquiredGifts
|
|
49658
51682
|
type TypeStarGiftActiveAuctions = tl.payments.RawStarGiftActiveAuctionsNotModified | tl.payments.RawStarGiftActiveAuctions
|
|
@@ -49798,8 +51822,8 @@ export class RpcError extends Error {
|
|
|
49798
51822
|
users: tl.TypeUser[];
|
|
49799
51823
|
}
|
|
49800
51824
|
/**
|
|
49801
|
-
* Get phone call configuration to be passed to
|
|
49802
|
-
* shared config
|
|
51825
|
+
* DEPRECATED: Get phone call configuration to be passed to the
|
|
51826
|
+
* libtgvoip (deprecated) shared config.
|
|
49803
51827
|
*
|
|
49804
51828
|
* RPC method returns {@link tl.TypeDataJSON}
|
|
49805
51829
|
*/
|
|
@@ -49807,7 +51831,9 @@ export class RpcError extends Error {
|
|
|
49807
51831
|
_: 'phone.getCallConfig';
|
|
49808
51832
|
}
|
|
49809
51833
|
/**
|
|
49810
|
-
* Start a telegram phone call
|
|
51834
|
+
* Start a telegram phone call, see
|
|
51835
|
+
* <a href="https://corefork.telegram.org/api/calls#one-to-one-calls">here
|
|
51836
|
+
* »</a> for more info on the full flow.
|
|
49811
51837
|
*
|
|
49812
51838
|
* RPC method returns {@link tl.phone.TypePhoneCall}
|
|
49813
51839
|
*/
|
|
@@ -49836,7 +51862,9 @@ export class RpcError extends Error {
|
|
|
49836
51862
|
protocol: tl.TypePhoneCallProtocol;
|
|
49837
51863
|
}
|
|
49838
51864
|
/**
|
|
49839
|
-
* Accept incoming call
|
|
51865
|
+
* Accept incoming call, see
|
|
51866
|
+
* <a href="https://corefork.telegram.org/api/calls#one-to-one-calls">here
|
|
51867
|
+
* »</a> for more info on the full flow.
|
|
49840
51868
|
*
|
|
49841
51869
|
* RPC method returns {@link tl.phone.TypePhoneCall}
|
|
49842
51870
|
*/
|
|
@@ -49858,7 +51886,9 @@ export class RpcError extends Error {
|
|
|
49858
51886
|
}
|
|
49859
51887
|
/**
|
|
49860
51888
|
* <a href="https://corefork.telegram.org/api/end-to-end/voice-calls">Complete
|
|
49861
|
-
* phone call E2E encryption key exchange »</a
|
|
51889
|
+
* phone call E2E encryption key exchange »</a>, see
|
|
51890
|
+
* <a href="https://corefork.telegram.org/api/calls#one-to-one-calls">here
|
|
51891
|
+
* »</a> for more info on the full flow.
|
|
49862
51892
|
*
|
|
49863
51893
|
* RPC method returns {@link tl.phone.TypePhoneCall}
|
|
49864
51894
|
*/
|
|
@@ -49885,7 +51915,9 @@ export class RpcError extends Error {
|
|
|
49885
51915
|
/**
|
|
49886
51916
|
* Optional: notify the server that the user is currently busy
|
|
49887
51917
|
* in a call: this will automatically refuse all incoming phone
|
|
49888
|
-
* calls until the current phone call is ended
|
|
51918
|
+
* calls until the current phone call is ended, see
|
|
51919
|
+
* <a href="https://corefork.telegram.org/api/calls#one-to-one-calls">here
|
|
51920
|
+
* »</a> for more info on the full flow.
|
|
49889
51921
|
*
|
|
49890
51922
|
* RPC method returns boolean
|
|
49891
51923
|
*/
|
|
@@ -49897,7 +51929,9 @@ export class RpcError extends Error {
|
|
|
49897
51929
|
peer: tl.TypeInputPhoneCall;
|
|
49898
51930
|
}
|
|
49899
51931
|
/**
|
|
49900
|
-
* Refuse or end running call
|
|
51932
|
+
* Refuse or end running call, see
|
|
51933
|
+
* <a href="https://corefork.telegram.org/api/calls#one-to-one-calls">here
|
|
51934
|
+
* »</a> for more info on the full flow.
|
|
49901
51935
|
*
|
|
49902
51936
|
* RPC method returns {@link tl.TypeUpdates}
|
|
49903
51937
|
*/
|
|
@@ -49926,7 +51960,9 @@ export class RpcError extends Error {
|
|
|
49926
51960
|
}
|
|
49927
51961
|
/**
|
|
49928
51962
|
* Rate a call, returns info about the rating message sent to
|
|
49929
|
-
* the official VoIP bot
|
|
51963
|
+
* the official VoIP bot, see
|
|
51964
|
+
* <a href="https://corefork.telegram.org/api/calls#call-rating">here
|
|
51965
|
+
* »</a> for more info on the full flow.
|
|
49930
51966
|
*
|
|
49931
51967
|
* RPC method returns {@link tl.TypeUpdates}
|
|
49932
51968
|
*/
|
|
@@ -49934,7 +51970,8 @@ export class RpcError extends Error {
|
|
|
49934
51970
|
_: 'phone.setCallRating';
|
|
49935
51971
|
/**
|
|
49936
51972
|
* Whether the user decided on their own initiative to rate the
|
|
49937
|
-
* call
|
|
51973
|
+
* call, must NOT be set if rating was requested by the server
|
|
51974
|
+
* with {@link RawPhoneCallDiscarded}.<code>need_rating</code>.
|
|
49938
51975
|
*/
|
|
49939
51976
|
userInitiative?: boolean;
|
|
49940
51977
|
/**
|
|
@@ -49946,7 +51983,9 @@ export class RpcError extends Error {
|
|
|
49946
51983
|
*/
|
|
49947
51984
|
rating: number;
|
|
49948
51985
|
/**
|
|
49949
|
-
* An additional comment
|
|
51986
|
+
* An additional comment with problem hashtags, see
|
|
51987
|
+
* <a href="https://corefork.telegram.org/api/calls#call-rating">here
|
|
51988
|
+
* »</a> for more info on the full flow.
|
|
49950
51989
|
*/
|
|
49951
51990
|
comment: string;
|
|
49952
51991
|
}
|
|
@@ -49962,7 +52001,7 @@ export class RpcError extends Error {
|
|
|
49962
52001
|
*/
|
|
49963
52002
|
peer: tl.TypeInputPhoneCall;
|
|
49964
52003
|
/**
|
|
49965
|
-
* Debug statistics obtained from
|
|
52004
|
+
* Debug statistics obtained from tgcalls
|
|
49966
52005
|
*/
|
|
49967
52006
|
debug: tl.TypeDataJSON;
|
|
49968
52007
|
}
|
|
@@ -50457,7 +52496,7 @@ export class RpcError extends Error {
|
|
|
50457
52496
|
revoke: boolean;
|
|
50458
52497
|
}
|
|
50459
52498
|
/**
|
|
50460
|
-
*
|
|
52499
|
+
* Deprecated: send libtgvoip phone call debug information
|
|
50461
52500
|
*
|
|
50462
52501
|
* RPC method returns boolean
|
|
50463
52502
|
*/
|
|
@@ -50468,7 +52507,7 @@ export class RpcError extends Error {
|
|
|
50468
52507
|
*/
|
|
50469
52508
|
peer: tl.TypeInputPhoneCall;
|
|
50470
52509
|
/**
|
|
50471
|
-
*
|
|
52510
|
+
* Libtgvoip logs
|
|
50472
52511
|
*/
|
|
50473
52512
|
file: tl.TypeInputFile;
|
|
50474
52513
|
}
|
|
@@ -51050,6 +53089,10 @@ export class RpcError extends Error {
|
|
|
51050
53089
|
*/
|
|
51051
53090
|
users: tl.TypeUser[];
|
|
51052
53091
|
}
|
|
53092
|
+
interface RawPollStats {
|
|
53093
|
+
_: 'stats.pollStats';
|
|
53094
|
+
votesGraph: tl.TypeStatsGraph;
|
|
53095
|
+
}
|
|
51053
53096
|
/**
|
|
51054
53097
|
* Get
|
|
51055
53098
|
* <a href="https://corefork.telegram.org/api/stats">channel
|
|
@@ -51216,6 +53259,15 @@ export class RpcError extends Error {
|
|
|
51216
53259
|
*/
|
|
51217
53260
|
limit: number;
|
|
51218
53261
|
}
|
|
53262
|
+
/**
|
|
53263
|
+
* RPC method returns {@link tl.stats.TypePollStats}
|
|
53264
|
+
*/
|
|
53265
|
+
interface RawGetPollStatsRequest {
|
|
53266
|
+
_: 'stats.getPollStats';
|
|
53267
|
+
dark?: boolean;
|
|
53268
|
+
peer: tl.TypeInputPeer;
|
|
53269
|
+
msgId: number;
|
|
53270
|
+
}
|
|
51219
53271
|
interface RpcCallReturn {
|
|
51220
53272
|
'stats.getBroadcastStats': tl.stats.TypeBroadcastStats
|
|
51221
53273
|
'stats.loadAsyncGraph': tl.TypeStatsGraph
|
|
@@ -51224,6 +53276,7 @@ export class RpcError extends Error {
|
|
|
51224
53276
|
'stats.getMessageStats': tl.stats.TypeMessageStats
|
|
51225
53277
|
'stats.getStoryStats': tl.stats.TypeStoryStats
|
|
51226
53278
|
'stats.getStoryPublicForwards': tl.stats.TypePublicForwards
|
|
53279
|
+
'stats.getPollStats': tl.stats.TypePollStats
|
|
51227
53280
|
}
|
|
51228
53281
|
/**
|
|
51229
53282
|
* Channel statistics
|
|
@@ -51255,6 +53308,8 @@ export class RpcError extends Error {
|
|
|
51255
53308
|
*/
|
|
51256
53309
|
type TypePublicForwards = tl.stats.RawPublicForwards
|
|
51257
53310
|
function isAnyPublicForwards(o: object): o is TypePublicForwards
|
|
53311
|
+
type TypePollStats = tl.stats.RawPollStats
|
|
53312
|
+
function isAnyPollStats(o: object): o is TypePollStats
|
|
51258
53313
|
}
|
|
51259
53314
|
|
|
51260
53315
|
namespace stickers {
|
|
@@ -51723,11 +53778,21 @@ export class RpcError extends Error {
|
|
|
51723
53778
|
documents: tl.TypeInputDocument[];
|
|
51724
53779
|
}
|
|
51725
53780
|
/**
|
|
53781
|
+
* Suggest a birthday to another user, see
|
|
53782
|
+
* <a href="https://corefork.telegram.org/api/profile#birthday">here
|
|
53783
|
+
* »</a> for more info on birthdays in the API.
|
|
53784
|
+
*
|
|
51726
53785
|
* RPC method returns {@link tl.TypeUpdates}
|
|
51727
53786
|
*/
|
|
51728
53787
|
interface RawSuggestBirthdayRequest {
|
|
51729
53788
|
_: 'users.suggestBirthday';
|
|
53789
|
+
/**
|
|
53790
|
+
* The user that will receive the suggested birthday date.
|
|
53791
|
+
*/
|
|
51730
53792
|
id: tl.TypeInputUser;
|
|
53793
|
+
/**
|
|
53794
|
+
* The birthday to suggest.
|
|
53795
|
+
*/
|
|
51731
53796
|
birthday: tl.TypeBirthday;
|
|
51732
53797
|
}
|
|
51733
53798
|
interface RpcCallReturn {
|
|
@@ -52212,6 +54277,11 @@ export class RpcError extends Error {
|
|
|
52212
54277
|
_: 'bots.requestedButton';
|
|
52213
54278
|
webappReqId: string;
|
|
52214
54279
|
}
|
|
54280
|
+
interface RawAccessSettings {
|
|
54281
|
+
_: 'bots.accessSettings';
|
|
54282
|
+
restricted?: boolean;
|
|
54283
|
+
addUsers?: tl.TypeUser[];
|
|
54284
|
+
}
|
|
52215
54285
|
/**
|
|
52216
54286
|
* Sends a custom request; for bots only
|
|
52217
54287
|
*
|
|
@@ -52909,6 +54979,30 @@ export class RpcError extends Error {
|
|
|
52909
54979
|
bot: tl.TypeInputUser;
|
|
52910
54980
|
webappReqId: string;
|
|
52911
54981
|
}
|
|
54982
|
+
/**
|
|
54983
|
+
* RPC method returns {@link tl.bots.TypeAccessSettings}
|
|
54984
|
+
*/
|
|
54985
|
+
interface RawGetAccessSettingsRequest {
|
|
54986
|
+
_: 'bots.getAccessSettings';
|
|
54987
|
+
bot: tl.TypeInputUser;
|
|
54988
|
+
}
|
|
54989
|
+
/**
|
|
54990
|
+
* RPC method returns boolean
|
|
54991
|
+
*/
|
|
54992
|
+
interface RawEditAccessSettingsRequest {
|
|
54993
|
+
_: 'bots.editAccessSettings';
|
|
54994
|
+
restricted?: boolean;
|
|
54995
|
+
bot: tl.TypeInputUser;
|
|
54996
|
+
addUsers?: tl.TypeInputUser[];
|
|
54997
|
+
}
|
|
54998
|
+
/**
|
|
54999
|
+
* RPC method returns boolean
|
|
55000
|
+
*/
|
|
55001
|
+
interface RawSetJoinChatResultsRequest {
|
|
55002
|
+
_: 'bots.setJoinChatResults';
|
|
55003
|
+
queryId: Long;
|
|
55004
|
+
result: tl.TypeJoinChatBotResult;
|
|
55005
|
+
}
|
|
52912
55006
|
interface RpcCallReturn {
|
|
52913
55007
|
'bots.sendCustomRequest': tl.TypeDataJSON
|
|
52914
55008
|
'bots.answerWebhookJSONQuery': boolean
|
|
@@ -52945,6 +55039,9 @@ export class RpcError extends Error {
|
|
|
52945
55039
|
'bots.exportBotToken': tl.bots.TypeExportedBotToken
|
|
52946
55040
|
'bots.requestWebViewButton': tl.bots.TypeRequestedButton
|
|
52947
55041
|
'bots.getRequestedWebViewButton': tl.TypeKeyboardButton
|
|
55042
|
+
'bots.getAccessSettings': tl.bots.TypeAccessSettings
|
|
55043
|
+
'bots.editAccessSettings': boolean
|
|
55044
|
+
'bots.setJoinChatResults': boolean
|
|
52948
55045
|
}
|
|
52949
55046
|
/**
|
|
52950
55047
|
* Localized name, about text and description of a bot.
|
|
@@ -52971,6 +55068,8 @@ export class RpcError extends Error {
|
|
|
52971
55068
|
function isAnyExportedBotToken(o: object): o is TypeExportedBotToken
|
|
52972
55069
|
type TypeRequestedButton = tl.bots.RawRequestedButton
|
|
52973
55070
|
function isAnyRequestedButton(o: object): o is TypeRequestedButton
|
|
55071
|
+
type TypeAccessSettings = tl.bots.RawAccessSettings
|
|
55072
|
+
function isAnyAccessSettings(o: object): o is TypeAccessSettings
|
|
52974
55073
|
}
|
|
52975
55074
|
|
|
52976
55075
|
namespace stories {
|
|
@@ -54641,6 +56740,87 @@ export class RpcError extends Error {
|
|
|
54641
56740
|
function isAnyCollectibleInfo(o: object): o is TypeCollectibleInfo
|
|
54642
56741
|
}
|
|
54643
56742
|
|
|
56743
|
+
namespace aicompose {
|
|
56744
|
+
interface RawTonesNotModified {
|
|
56745
|
+
_: 'aicompose.tonesNotModified';
|
|
56746
|
+
}
|
|
56747
|
+
interface RawTones {
|
|
56748
|
+
_: 'aicompose.tones';
|
|
56749
|
+
hash: Long;
|
|
56750
|
+
tones: tl.TypeAiComposeTone[];
|
|
56751
|
+
users: tl.TypeUser[];
|
|
56752
|
+
}
|
|
56753
|
+
/**
|
|
56754
|
+
* RPC method returns {@link tl.TypeAiComposeTone}
|
|
56755
|
+
*/
|
|
56756
|
+
interface RawCreateToneRequest {
|
|
56757
|
+
_: 'aicompose.createTone';
|
|
56758
|
+
displayAuthor?: boolean;
|
|
56759
|
+
emojiId: Long;
|
|
56760
|
+
title: string;
|
|
56761
|
+
prompt: string;
|
|
56762
|
+
}
|
|
56763
|
+
/**
|
|
56764
|
+
* RPC method returns {@link tl.TypeAiComposeTone}
|
|
56765
|
+
*/
|
|
56766
|
+
interface RawUpdateToneRequest {
|
|
56767
|
+
_: 'aicompose.updateTone';
|
|
56768
|
+
tone: tl.TypeInputAiComposeTone;
|
|
56769
|
+
displayAuthor?: boolean;
|
|
56770
|
+
emojiId?: Long;
|
|
56771
|
+
title?: string;
|
|
56772
|
+
prompt?: string;
|
|
56773
|
+
}
|
|
56774
|
+
/**
|
|
56775
|
+
* RPC method returns boolean
|
|
56776
|
+
*/
|
|
56777
|
+
interface RawSaveToneRequest {
|
|
56778
|
+
_: 'aicompose.saveTone';
|
|
56779
|
+
tone: tl.TypeInputAiComposeTone;
|
|
56780
|
+
unsave: boolean;
|
|
56781
|
+
}
|
|
56782
|
+
/**
|
|
56783
|
+
* RPC method returns boolean
|
|
56784
|
+
*/
|
|
56785
|
+
interface RawDeleteToneRequest {
|
|
56786
|
+
_: 'aicompose.deleteTone';
|
|
56787
|
+
tone: tl.TypeInputAiComposeTone;
|
|
56788
|
+
}
|
|
56789
|
+
/**
|
|
56790
|
+
* RPC method returns {@link tl.aicompose.TypeTones}
|
|
56791
|
+
*/
|
|
56792
|
+
interface RawGetToneRequest {
|
|
56793
|
+
_: 'aicompose.getTone';
|
|
56794
|
+
tone: tl.TypeInputAiComposeTone;
|
|
56795
|
+
}
|
|
56796
|
+
/**
|
|
56797
|
+
* RPC method returns {@link tl.aicompose.TypeTones}
|
|
56798
|
+
*/
|
|
56799
|
+
interface RawGetTonesRequest {
|
|
56800
|
+
_: 'aicompose.getTones';
|
|
56801
|
+
hash: Long;
|
|
56802
|
+
}
|
|
56803
|
+
/**
|
|
56804
|
+
* RPC method returns {@link tl.TypeAiComposeToneExample}
|
|
56805
|
+
*/
|
|
56806
|
+
interface RawGetToneExampleRequest {
|
|
56807
|
+
_: 'aicompose.getToneExample';
|
|
56808
|
+
tone: tl.TypeInputAiComposeTone;
|
|
56809
|
+
num: number;
|
|
56810
|
+
}
|
|
56811
|
+
interface RpcCallReturn {
|
|
56812
|
+
'aicompose.createTone': tl.TypeAiComposeTone
|
|
56813
|
+
'aicompose.updateTone': tl.TypeAiComposeTone
|
|
56814
|
+
'aicompose.saveTone': boolean
|
|
56815
|
+
'aicompose.deleteTone': boolean
|
|
56816
|
+
'aicompose.getTone': tl.aicompose.TypeTones
|
|
56817
|
+
'aicompose.getTones': tl.aicompose.TypeTones
|
|
56818
|
+
'aicompose.getToneExample': tl.TypeAiComposeToneExample
|
|
56819
|
+
}
|
|
56820
|
+
type TypeTones = tl.aicompose.RawTonesNotModified | tl.aicompose.RawTones
|
|
56821
|
+
function isAnyTones(o: object): o is TypeTones
|
|
56822
|
+
}
|
|
56823
|
+
|
|
54644
56824
|
namespace mtcute {
|
|
54645
56825
|
interface RawDummyUpdate {
|
|
54646
56826
|
_: 'mtcute.dummyUpdate';
|
|
@@ -54671,7 +56851,7 @@ export class RpcError extends Error {
|
|
|
54671
56851
|
/**
|
|
54672
56852
|
* Object contains info on events occurred.
|
|
54673
56853
|
*/
|
|
54674
|
-
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.RawUpdateUser | tl.RawUpdateAutoSaveSettings | 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.RawUpdateBotBusinessConnect | tl.RawUpdateBotNewBusinessMessage | tl.RawUpdateBotEditBusinessMessage | tl.RawUpdateBotDeleteBusinessMessage | tl.RawUpdateNewStoryReaction | tl.RawUpdateStarsBalance | tl.RawUpdateBusinessBotCallbackQuery | tl.RawUpdateStarsRevenueStatus | tl.RawUpdateBotPurchasedPaidMedia | tl.RawUpdatePaidReactionPrivacy | tl.RawUpdateSentPhoneCode | tl.RawUpdateGroupCallChainBlocks | tl.RawUpdateReadMonoForumInbox | tl.RawUpdateReadMonoForumOutbox | tl.RawUpdateMonoForumNoPaidException | tl.RawUpdateGroupCallMessage | tl.RawUpdateGroupCallEncryptedMessage | tl.RawUpdatePinnedForumTopic | tl.RawUpdatePinnedForumTopics | tl.RawUpdateDeleteGroupCallMessages | tl.RawUpdateStarGiftAuctionState | tl.RawUpdateStarGiftAuctionUserState | tl.RawUpdateEmojiGameInfo | tl.RawUpdateStarGiftCraftFail | tl.RawUpdateChatParticipantRank | tl.RawUpdateManagedBot | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.mtcute.RawDummyUpdate
|
|
56854
|
+
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.RawUpdateUser | tl.RawUpdateAutoSaveSettings | 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.RawUpdateBotBusinessConnect | tl.RawUpdateBotNewBusinessMessage | tl.RawUpdateBotEditBusinessMessage | tl.RawUpdateBotDeleteBusinessMessage | tl.RawUpdateNewStoryReaction | tl.RawUpdateStarsBalance | tl.RawUpdateBusinessBotCallbackQuery | tl.RawUpdateStarsRevenueStatus | tl.RawUpdateBotPurchasedPaidMedia | tl.RawUpdatePaidReactionPrivacy | tl.RawUpdateSentPhoneCode | tl.RawUpdateGroupCallChainBlocks | tl.RawUpdateReadMonoForumInbox | tl.RawUpdateReadMonoForumOutbox | tl.RawUpdateMonoForumNoPaidException | tl.RawUpdateGroupCallMessage | tl.RawUpdateGroupCallEncryptedMessage | tl.RawUpdatePinnedForumTopic | tl.RawUpdatePinnedForumTopics | tl.RawUpdateDeleteGroupCallMessages | tl.RawUpdateStarGiftAuctionState | tl.RawUpdateStarGiftAuctionUserState | tl.RawUpdateEmojiGameInfo | tl.RawUpdateStarGiftCraftFail | tl.RawUpdateChatParticipantRank | tl.RawUpdateManagedBot | tl.RawUpdateBotGuestChatQuery | tl.RawUpdateAiComposeTones | tl.RawUpdateJoinChatWebViewDecision | tl.RawUpdateNewBotConnection | tl.RawUpdateWebBrowserSettings | tl.RawUpdateWebBrowserException | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.mtcute.RawDummyUpdate
|
|
54675
56855
|
function isAnyUpdate(o: object): o is TypeUpdate
|
|
54676
56856
|
/**
|
|
54677
56857
|
* Peer
|
|
@@ -55250,6 +57430,17 @@ export class RpcError extends Error {
|
|
|
55250
57430
|
| tl.messages.RawEditChatParticipantRankRequest
|
|
55251
57431
|
| tl.messages.RawDeclineUrlAuthRequest
|
|
55252
57432
|
| tl.messages.RawCheckUrlAuthMatchCodeRequest
|
|
57433
|
+
| tl.messages.RawComposeMessageWithAIRequest
|
|
57434
|
+
| tl.messages.RawReportReadMetricsRequest
|
|
57435
|
+
| tl.messages.RawReportMusicListenRequest
|
|
57436
|
+
| tl.messages.RawAddPollAnswerRequest
|
|
57437
|
+
| tl.messages.RawDeletePollAnswerRequest
|
|
57438
|
+
| tl.messages.RawGetUnreadPollVotesRequest
|
|
57439
|
+
| tl.messages.RawReadPollVotesRequest
|
|
57440
|
+
| tl.messages.RawSetBotGuestChatResultRequest
|
|
57441
|
+
| tl.messages.RawDeleteParticipantReactionsRequest
|
|
57442
|
+
| tl.messages.RawDeleteParticipantReactionRequest
|
|
57443
|
+
| tl.messages.RawGetPersonalChannelHistoryRequest
|
|
55253
57444
|
| tl.updates.RawGetStateRequest
|
|
55254
57445
|
| tl.updates.RawGetDifferenceRequest
|
|
55255
57446
|
| tl.updates.RawGetChannelDifferenceRequest
|
|
@@ -55379,6 +57570,13 @@ export class RpcError extends Error {
|
|
|
55379
57570
|
| tl.bots.RawUpdateStarRefProgramRequest
|
|
55380
57571
|
| tl.bots.RawSetCustomVerificationRequest
|
|
55381
57572
|
| tl.bots.RawGetBotRecommendationsRequest
|
|
57573
|
+
| tl.bots.RawCheckUsernameRequest
|
|
57574
|
+
| tl.bots.RawCreateBotRequest
|
|
57575
|
+
| tl.bots.RawExportBotTokenRequest
|
|
57576
|
+
| tl.bots.RawRequestWebViewButtonRequest
|
|
57577
|
+
| tl.bots.RawGetRequestedWebViewButtonRequest
|
|
57578
|
+
| tl.bots.RawGetAccessSettingsRequest
|
|
57579
|
+
| tl.bots.RawEditAccessSettingsRequest
|
|
55382
57580
|
| tl.payments.RawGetPaymentFormRequest
|
|
55383
57581
|
| tl.payments.RawGetPaymentReceiptRequest
|
|
55384
57582
|
| tl.payments.RawValidateRequestedInfoRequest
|
|
@@ -55511,6 +57709,7 @@ export class RpcError extends Error {
|
|
|
55511
57709
|
| tl.stats.RawGetMessageStatsRequest
|
|
55512
57710
|
| tl.stats.RawGetStoryStatsRequest
|
|
55513
57711
|
| tl.stats.RawGetStoryPublicForwardsRequest
|
|
57712
|
+
| tl.stats.RawGetPollStatsRequest
|
|
55514
57713
|
| tl.chatlists.RawExportChatlistInviteRequest
|
|
55515
57714
|
| tl.chatlists.RawDeleteExportedInviteRequest
|
|
55516
57715
|
| tl.chatlists.RawEditExportedInviteRequest
|
|
@@ -55568,18 +57767,20 @@ export class RpcError extends Error {
|
|
|
55568
57767
|
| tl.smsjobs.RawGetSmsJobRequest
|
|
55569
57768
|
| tl.smsjobs.RawFinishJobRequest
|
|
55570
57769
|
| tl.fragment.RawGetCollectibleInfoRequest
|
|
55571
|
-
| tl.
|
|
55572
|
-
| tl.
|
|
55573
|
-
| tl.
|
|
55574
|
-
| tl.
|
|
55575
|
-
| tl.
|
|
55576
|
-
| tl.
|
|
55577
|
-
| tl.
|
|
55578
|
-
| tl.
|
|
55579
|
-
| tl.
|
|
55580
|
-
| tl.
|
|
55581
|
-
| tl.
|
|
55582
|
-
| tl.
|
|
57770
|
+
| tl.aicompose.RawCreateToneRequest
|
|
57771
|
+
| tl.aicompose.RawUpdateToneRequest
|
|
57772
|
+
| tl.aicompose.RawSaveToneRequest
|
|
57773
|
+
| tl.aicompose.RawDeleteToneRequest
|
|
57774
|
+
| tl.aicompose.RawGetToneRequest
|
|
57775
|
+
| tl.aicompose.RawGetTonesRequest
|
|
57776
|
+
| tl.aicompose.RawGetToneExampleRequest
|
|
57777
|
+
| tl.account.RawConfirmBotConnectionRequest
|
|
57778
|
+
| tl.account.RawGetWebBrowserSettingsRequest
|
|
57779
|
+
| tl.account.RawUpdateWebBrowserSettingsRequest
|
|
57780
|
+
| tl.account.RawToggleWebBrowserSettingsExceptionRequest
|
|
57781
|
+
| tl.account.RawDeleteWebBrowserSettingsExceptionsRequest
|
|
57782
|
+
| tl.messages.RawGetRichMessageRequest
|
|
57783
|
+
| tl.bots.RawSetJoinChatResultsRequest
|
|
55583
57784
|
| tl.channels.RawEditCreatorRequest
|
|
55584
57785
|
| tl.channels.RawCreateForumTopicRequest
|
|
55585
57786
|
| tl.channels.RawGetForumTopicsRequest
|
|
@@ -55769,6 +57970,9 @@ export class RpcError extends Error {
|
|
|
55769
57970
|
| tl.RawMessageActionChangeCreator
|
|
55770
57971
|
| tl.RawMessageActionNoForwardsToggle
|
|
55771
57972
|
| tl.RawMessageActionNoForwardsRequest
|
|
57973
|
+
| tl.RawMessageActionPollAppendAnswer
|
|
57974
|
+
| tl.RawMessageActionPollDeleteAnswer
|
|
57975
|
+
| tl.RawMessageActionManagedBotCreated
|
|
55772
57976
|
| tl.RawDialog
|
|
55773
57977
|
| tl.RawDialogFolder
|
|
55774
57978
|
| tl.RawPhotoEmpty
|
|
@@ -55844,6 +58048,7 @@ export class RpcError extends Error {
|
|
|
55844
58048
|
| tl.RawInputMessagesFilterGeo
|
|
55845
58049
|
| tl.RawInputMessagesFilterContacts
|
|
55846
58050
|
| tl.RawInputMessagesFilterPinned
|
|
58051
|
+
| tl.RawInputMessagesFilterPoll
|
|
55847
58052
|
| tl.RawUpdateNewMessage
|
|
55848
58053
|
| tl.RawUpdateMessageID
|
|
55849
58054
|
| tl.RawUpdateDeleteMessages
|
|
@@ -55997,6 +58202,9 @@ export class RpcError extends Error {
|
|
|
55997
58202
|
| tl.RawUpdateEmojiGameInfo
|
|
55998
58203
|
| tl.RawUpdateStarGiftCraftFail
|
|
55999
58204
|
| tl.RawUpdateChatParticipantRank
|
|
58205
|
+
| tl.RawUpdateManagedBot
|
|
58206
|
+
| tl.RawUpdateBotGuestChatQuery
|
|
58207
|
+
| tl.RawUpdateAiComposeTones
|
|
56000
58208
|
| tl.updates.RawState
|
|
56001
58209
|
| tl.updates.RawDifferenceEmpty
|
|
56002
58210
|
| tl.updates.RawDifference
|
|
@@ -56214,6 +58422,9 @@ export class RpcError extends Error {
|
|
|
56214
58422
|
| tl.RawMessageEntityCustomEmoji
|
|
56215
58423
|
| tl.RawMessageEntityBlockquote
|
|
56216
58424
|
| tl.RawMessageEntityFormattedDate
|
|
58425
|
+
| tl.RawMessageEntityDiffInsert
|
|
58426
|
+
| tl.RawMessageEntityDiffReplace
|
|
58427
|
+
| tl.RawMessageEntityDiffDelete
|
|
56217
58428
|
| tl.RawInputChannelEmpty
|
|
56218
58429
|
| tl.RawInputChannel
|
|
56219
58430
|
| tl.RawInputChannelFromMessage
|
|
@@ -56300,6 +58511,7 @@ export class RpcError extends Error {
|
|
|
56300
58511
|
| tl.RawTopPeerCategoryForwardUsers
|
|
56301
58512
|
| tl.RawTopPeerCategoryForwardChats
|
|
56302
58513
|
| tl.RawTopPeerCategoryBotsApp
|
|
58514
|
+
| tl.RawTopPeerCategoryBotsGuestChat
|
|
56303
58515
|
| tl.RawTopPeerCategoryPeers
|
|
56304
58516
|
| tl.contacts.RawTopPeersNotModified
|
|
56305
58517
|
| tl.contacts.RawTopPeers
|
|
@@ -56578,6 +58790,7 @@ export class RpcError extends Error {
|
|
|
56578
58790
|
| tl.help.RawUserInfoEmpty
|
|
56579
58791
|
| tl.help.RawUserInfo
|
|
56580
58792
|
| tl.RawPollAnswer
|
|
58793
|
+
| tl.RawInputPollAnswer
|
|
56581
58794
|
| tl.RawPoll
|
|
56582
58795
|
| tl.RawPollAnswerVoters
|
|
56583
58796
|
| tl.RawPollResults
|
|
@@ -56634,6 +58847,7 @@ export class RpcError extends Error {
|
|
|
56634
58847
|
| tl.RawWebPageAttributeUniqueStarGift
|
|
56635
58848
|
| tl.RawWebPageAttributeStarGiftCollection
|
|
56636
58849
|
| tl.RawWebPageAttributeStarGiftAuction
|
|
58850
|
+
| tl.RawWebPageAttributeAiComposeTone
|
|
56637
58851
|
| tl.messages.RawVotesList
|
|
56638
58852
|
| tl.RawBankCardOpenUrl
|
|
56639
58853
|
| tl.payments.RawBankCardData
|
|
@@ -56823,6 +59037,7 @@ export class RpcError extends Error {
|
|
|
56823
59037
|
| tl.RawRequestPeerTypeUser
|
|
56824
59038
|
| tl.RawRequestPeerTypeChat
|
|
56825
59039
|
| tl.RawRequestPeerTypeBroadcast
|
|
59040
|
+
| tl.RawRequestPeerTypeCreateBot
|
|
56826
59041
|
| tl.RawEmojiListNotModified
|
|
56827
59042
|
| tl.RawEmojiList
|
|
56828
59043
|
| tl.RawEmojiGroup
|
|
@@ -57134,20 +59349,64 @@ export class RpcError extends Error {
|
|
|
57134
59349
|
| tl.RawStarGiftAttributeRarityEpic
|
|
57135
59350
|
| tl.RawStarGiftAttributeRarityLegendary
|
|
57136
59351
|
| tl.RawKeyboardButtonStyle
|
|
57137
|
-
| tl.RawMessageActionPollAppendAnswer
|
|
57138
|
-
| tl.RawMessageActionPollDeleteAnswer
|
|
57139
|
-
| tl.RawMessageActionManagedBotCreated
|
|
57140
|
-
| tl.RawInputMessagesFilterPoll
|
|
57141
|
-
| tl.RawUpdateManagedBot
|
|
57142
|
-
| tl.RawMessageEntityDiffInsert
|
|
57143
|
-
| tl.RawMessageEntityDiffReplace
|
|
57144
|
-
| tl.RawMessageEntityDiffDelete
|
|
57145
|
-
| tl.RawInputPollAnswer
|
|
57146
|
-
| tl.RawRequestPeerTypeCreateBot
|
|
57147
59352
|
| tl.RawInputMessageReadMetric
|
|
57148
59353
|
| tl.bots.RawExportedBotToken
|
|
57149
59354
|
| tl.bots.RawRequestedButton
|
|
57150
59355
|
| tl.messages.RawComposedMessageWithAI
|
|
59356
|
+
| tl.stats.RawPollStats
|
|
59357
|
+
| tl.RawInputAiComposeToneDefault
|
|
59358
|
+
| tl.RawInputAiComposeToneID
|
|
59359
|
+
| tl.RawInputAiComposeToneSlug
|
|
59360
|
+
| tl.RawAiComposeTone
|
|
59361
|
+
| tl.RawAiComposeToneDefault
|
|
59362
|
+
| tl.aicompose.RawTonesNotModified
|
|
59363
|
+
| tl.aicompose.RawTones
|
|
59364
|
+
| tl.RawAiComposeToneExample
|
|
59365
|
+
| tl.bots.RawAccessSettings
|
|
59366
|
+
| tl.RawUpdateJoinChatWebViewDecision
|
|
59367
|
+
| tl.RawUpdateNewBotConnection
|
|
59368
|
+
| tl.RawUpdateWebBrowserSettings
|
|
59369
|
+
| tl.RawUpdateWebBrowserException
|
|
59370
|
+
| tl.RawInputSendMessageRichMessageDraftAction
|
|
59371
|
+
| tl.RawSendMessageRichMessageDraftAction
|
|
59372
|
+
| tl.RawInputBotInlineMessageRichMessage
|
|
59373
|
+
| tl.RawBotInlineMessageRichMessage
|
|
59374
|
+
| tl.RawTextMath
|
|
59375
|
+
| tl.RawTextCustomEmoji
|
|
59376
|
+
| tl.RawTextSpoiler
|
|
59377
|
+
| tl.RawTextMention
|
|
59378
|
+
| tl.RawTextHashtag
|
|
59379
|
+
| tl.RawTextBotCommand
|
|
59380
|
+
| tl.RawTextCashtag
|
|
59381
|
+
| tl.RawTextAutoUrl
|
|
59382
|
+
| tl.RawTextAutoEmail
|
|
59383
|
+
| tl.RawTextAutoPhone
|
|
59384
|
+
| tl.RawTextBankCard
|
|
59385
|
+
| tl.RawTextMentionName
|
|
59386
|
+
| tl.RawTextDate
|
|
59387
|
+
| tl.RawPageBlockHeading1
|
|
59388
|
+
| tl.RawPageBlockHeading2
|
|
59389
|
+
| tl.RawPageBlockHeading3
|
|
59390
|
+
| tl.RawPageBlockHeading4
|
|
59391
|
+
| tl.RawPageBlockHeading5
|
|
59392
|
+
| tl.RawPageBlockHeading6
|
|
59393
|
+
| tl.RawPageBlockMath
|
|
59394
|
+
| tl.RawPageBlockThinking
|
|
59395
|
+
| tl.RawInputPageBlockMap
|
|
59396
|
+
| tl.RawPageBlockBlockquoteBlocks
|
|
59397
|
+
| tl.messages.RawChatInviteJoinResultOk
|
|
59398
|
+
| tl.messages.RawChatInviteJoinResultWebView
|
|
59399
|
+
| tl.RawJoinChatBotResultApproved
|
|
59400
|
+
| tl.RawJoinChatBotResultDeclined
|
|
59401
|
+
| tl.RawJoinChatBotResultQueued
|
|
59402
|
+
| tl.RawJoinChatBotResultWebView
|
|
59403
|
+
| tl.RawWebDomainException
|
|
59404
|
+
| tl.account.RawWebBrowserSettingsNotModified
|
|
59405
|
+
| tl.account.RawWebBrowserSettings
|
|
59406
|
+
| tl.RawRichMessage
|
|
59407
|
+
| tl.RawInputRichMessage
|
|
59408
|
+
| tl.RawInputRichMessageHTML
|
|
59409
|
+
| tl.RawInputRichMessageMarkdown
|
|
57151
59410
|
| tl.RawUpdateChannelPinnedTopic
|
|
57152
59411
|
| tl.RawUpdateChannelPinnedTopics
|
|
57153
59412
|
| tl.mtcute.RawDummyUpdate
|
|
@@ -57592,6 +59851,17 @@ export class RpcError extends Error {
|
|
|
57592
59851
|
| tl.messages.RawEditChatParticipantRankRequest
|
|
57593
59852
|
| tl.messages.RawDeclineUrlAuthRequest
|
|
57594
59853
|
| tl.messages.RawCheckUrlAuthMatchCodeRequest
|
|
59854
|
+
| tl.messages.RawComposeMessageWithAIRequest
|
|
59855
|
+
| tl.messages.RawReportReadMetricsRequest
|
|
59856
|
+
| tl.messages.RawReportMusicListenRequest
|
|
59857
|
+
| tl.messages.RawAddPollAnswerRequest
|
|
59858
|
+
| tl.messages.RawDeletePollAnswerRequest
|
|
59859
|
+
| tl.messages.RawGetUnreadPollVotesRequest
|
|
59860
|
+
| tl.messages.RawReadPollVotesRequest
|
|
59861
|
+
| tl.messages.RawSetBotGuestChatResultRequest
|
|
59862
|
+
| tl.messages.RawDeleteParticipantReactionsRequest
|
|
59863
|
+
| tl.messages.RawDeleteParticipantReactionRequest
|
|
59864
|
+
| tl.messages.RawGetPersonalChannelHistoryRequest
|
|
57595
59865
|
| tl.updates.RawGetStateRequest
|
|
57596
59866
|
| tl.updates.RawGetDifferenceRequest
|
|
57597
59867
|
| tl.updates.RawGetChannelDifferenceRequest
|
|
@@ -57721,6 +59991,13 @@ export class RpcError extends Error {
|
|
|
57721
59991
|
| tl.bots.RawUpdateStarRefProgramRequest
|
|
57722
59992
|
| tl.bots.RawSetCustomVerificationRequest
|
|
57723
59993
|
| tl.bots.RawGetBotRecommendationsRequest
|
|
59994
|
+
| tl.bots.RawCheckUsernameRequest
|
|
59995
|
+
| tl.bots.RawCreateBotRequest
|
|
59996
|
+
| tl.bots.RawExportBotTokenRequest
|
|
59997
|
+
| tl.bots.RawRequestWebViewButtonRequest
|
|
59998
|
+
| tl.bots.RawGetRequestedWebViewButtonRequest
|
|
59999
|
+
| tl.bots.RawGetAccessSettingsRequest
|
|
60000
|
+
| tl.bots.RawEditAccessSettingsRequest
|
|
57724
60001
|
| tl.payments.RawGetPaymentFormRequest
|
|
57725
60002
|
| tl.payments.RawGetPaymentReceiptRequest
|
|
57726
60003
|
| tl.payments.RawValidateRequestedInfoRequest
|
|
@@ -57853,6 +60130,7 @@ export class RpcError extends Error {
|
|
|
57853
60130
|
| tl.stats.RawGetMessageStatsRequest
|
|
57854
60131
|
| tl.stats.RawGetStoryStatsRequest
|
|
57855
60132
|
| tl.stats.RawGetStoryPublicForwardsRequest
|
|
60133
|
+
| tl.stats.RawGetPollStatsRequest
|
|
57856
60134
|
| tl.chatlists.RawExportChatlistInviteRequest
|
|
57857
60135
|
| tl.chatlists.RawDeleteExportedInviteRequest
|
|
57858
60136
|
| tl.chatlists.RawEditExportedInviteRequest
|
|
@@ -57910,18 +60188,20 @@ export class RpcError extends Error {
|
|
|
57910
60188
|
| tl.smsjobs.RawGetSmsJobRequest
|
|
57911
60189
|
| tl.smsjobs.RawFinishJobRequest
|
|
57912
60190
|
| tl.fragment.RawGetCollectibleInfoRequest
|
|
57913
|
-
| tl.
|
|
57914
|
-
| tl.
|
|
57915
|
-
| tl.
|
|
57916
|
-
| tl.
|
|
57917
|
-
| tl.
|
|
57918
|
-
| tl.
|
|
57919
|
-
| tl.
|
|
57920
|
-
| tl.
|
|
57921
|
-
| tl.
|
|
57922
|
-
| tl.
|
|
57923
|
-
| tl.
|
|
57924
|
-
| tl.
|
|
60191
|
+
| tl.aicompose.RawCreateToneRequest
|
|
60192
|
+
| tl.aicompose.RawUpdateToneRequest
|
|
60193
|
+
| tl.aicompose.RawSaveToneRequest
|
|
60194
|
+
| tl.aicompose.RawDeleteToneRequest
|
|
60195
|
+
| tl.aicompose.RawGetToneRequest
|
|
60196
|
+
| tl.aicompose.RawGetTonesRequest
|
|
60197
|
+
| tl.aicompose.RawGetToneExampleRequest
|
|
60198
|
+
| tl.account.RawConfirmBotConnectionRequest
|
|
60199
|
+
| tl.account.RawGetWebBrowserSettingsRequest
|
|
60200
|
+
| tl.account.RawUpdateWebBrowserSettingsRequest
|
|
60201
|
+
| tl.account.RawToggleWebBrowserSettingsExceptionRequest
|
|
60202
|
+
| tl.account.RawDeleteWebBrowserSettingsExceptionsRequest
|
|
60203
|
+
| tl.messages.RawGetRichMessageRequest
|
|
60204
|
+
| tl.bots.RawSetJoinChatResultsRequest
|
|
57925
60205
|
| tl.channels.RawEditCreatorRequest
|
|
57926
60206
|
| tl.channels.RawCreateForumTopicRequest
|
|
57927
60207
|
| tl.channels.RawGetForumTopicsRequest
|
|
@@ -58306,6 +60586,13 @@ export declare function isAnyStarGiftAuctionRound(o: object): o is tl.TypeStarGi
|
|
|
58306
60586
|
export declare function isAnyStarGiftAttributeRarity(o: object): o is tl.TypeStarGiftAttributeRarity
|
|
58307
60587
|
export declare function isAnyKeyboardButtonStyle(o: object): o is tl.TypeKeyboardButtonStyle
|
|
58308
60588
|
export declare function isAnyInputMessageReadMetric(o: object): o is tl.TypeInputMessageReadMetric
|
|
60589
|
+
export declare function isAnyInputAiComposeTone(o: object): o is tl.TypeInputAiComposeTone
|
|
60590
|
+
export declare function isAnyAiComposeTone(o: object): o is tl.TypeAiComposeTone
|
|
60591
|
+
export declare function isAnyAiComposeToneExample(o: object): o is tl.TypeAiComposeToneExample
|
|
60592
|
+
export declare function isAnyJoinChatBotResult(o: object): o is tl.TypeJoinChatBotResult
|
|
60593
|
+
export declare function isAnyWebDomainException(o: object): o is tl.TypeWebDomainException
|
|
60594
|
+
export declare function isAnyRichMessage(o: object): o is tl.TypeRichMessage
|
|
60595
|
+
export declare function isAnyInputRichMessage(o: object): o is tl.TypeInputRichMessage
|
|
58309
60596
|
export declare function isAnyStorage_FileType(o: object): o is tl.storage.TypeFileType
|
|
58310
60597
|
export declare function isAnyAuth_SentCode(o: object): o is tl.auth.TypeSentCode
|
|
58311
60598
|
export declare function isAnyAuth_Authorization(o: object): o is tl.auth.TypeAuthorization
|
|
@@ -58387,6 +60674,7 @@ export declare function isAnyMessages_WebPagePreview(o: object): o is tl.message
|
|
|
58387
60674
|
export declare function isAnyMessages_EmojiGameOutcome(o: object): o is tl.messages.TypeEmojiGameOutcome
|
|
58388
60675
|
export declare function isAnyMessages_EmojiGameInfo(o: object): o is tl.messages.TypeEmojiGameInfo
|
|
58389
60676
|
export declare function isAnyMessages_ComposedMessageWithAI(o: object): o is tl.messages.TypeComposedMessageWithAI
|
|
60677
|
+
export declare function isAnyMessages_ChatInviteJoinResult(o: object): o is tl.messages.TypeChatInviteJoinResult
|
|
58390
60678
|
export declare function isAnyUpdates_State(o: object): o is tl.updates.TypeState
|
|
58391
60679
|
export declare function isAnyUpdates_Difference(o: object): o is tl.updates.TypeDifference
|
|
58392
60680
|
export declare function isAnyUpdates_ChannelDifference(o: object): o is tl.updates.TypeChannelDifference
|
|
@@ -58443,6 +60731,7 @@ export declare function isAnyAccount_PaidMessagesRevenue(o: object): o is tl.acc
|
|
|
58443
60731
|
export declare function isAnyAccount_SavedMusicIds(o: object): o is tl.account.TypeSavedMusicIds
|
|
58444
60732
|
export declare function isAnyAccount_Passkeys(o: object): o is tl.account.TypePasskeys
|
|
58445
60733
|
export declare function isAnyAccount_PasskeyRegistrationOptions(o: object): o is tl.account.TypePasskeyRegistrationOptions
|
|
60734
|
+
export declare function isAnyAccount_WebBrowserSettings(o: object): o is tl.account.TypeWebBrowserSettings
|
|
58446
60735
|
export declare function isAnyChannels_ChannelParticipants(o: object): o is tl.channels.TypeChannelParticipants
|
|
58447
60736
|
export declare function isAnyChannels_ChannelParticipant(o: object): o is tl.channels.TypeChannelParticipant
|
|
58448
60737
|
export declare function isAnyChannels_AdminLogResults(o: object): o is tl.channels.TypeAdminLogResults
|
|
@@ -58489,6 +60778,7 @@ export declare function isAnyStats_MegagroupStats(o: object): o is tl.stats.Type
|
|
|
58489
60778
|
export declare function isAnyStats_MessageStats(o: object): o is tl.stats.TypeMessageStats
|
|
58490
60779
|
export declare function isAnyStats_StoryStats(o: object): o is tl.stats.TypeStoryStats
|
|
58491
60780
|
export declare function isAnyStats_PublicForwards(o: object): o is tl.stats.TypePublicForwards
|
|
60781
|
+
export declare function isAnyStats_PollStats(o: object): o is tl.stats.TypePollStats
|
|
58492
60782
|
export declare function isAnyStickers_SuggestedShortName(o: object): o is tl.stickers.TypeSuggestedShortName
|
|
58493
60783
|
export declare function isAnyUsers_UserFull(o: object): o is tl.users.TypeUserFull
|
|
58494
60784
|
export declare function isAnyUsers_Users(o: object): o is tl.users.TypeUsers
|
|
@@ -58502,6 +60792,7 @@ export declare function isAnyBots_PopularAppBots(o: object): o is tl.bots.TypePo
|
|
|
58502
60792
|
export declare function isAnyBots_PreviewInfo(o: object): o is tl.bots.TypePreviewInfo
|
|
58503
60793
|
export declare function isAnyBots_ExportedBotToken(o: object): o is tl.bots.TypeExportedBotToken
|
|
58504
60794
|
export declare function isAnyBots_RequestedButton(o: object): o is tl.bots.TypeRequestedButton
|
|
60795
|
+
export declare function isAnyBots_AccessSettings(o: object): o is tl.bots.TypeAccessSettings
|
|
58505
60796
|
export declare function isAnyStories_AllStories(o: object): o is tl.stories.TypeAllStories
|
|
58506
60797
|
export declare function isAnyStories_Stories(o: object): o is tl.stories.TypeStories
|
|
58507
60798
|
export declare function isAnyStories_StoryViewsList(o: object): o is tl.stories.TypeStoryViewsList
|
|
@@ -58517,6 +60808,7 @@ export declare function isAnyPremium_BoostsStatus(o: object): o is tl.premium.Ty
|
|
|
58517
60808
|
export declare function isAnySmsjobs_EligibilityToJoin(o: object): o is tl.smsjobs.TypeEligibilityToJoin
|
|
58518
60809
|
export declare function isAnySmsjobs_Status(o: object): o is tl.smsjobs.TypeStatus
|
|
58519
60810
|
export declare function isAnyFragment_CollectibleInfo(o: object): o is tl.fragment.TypeCollectibleInfo
|
|
60811
|
+
export declare function isAnyAicompose_Tones(o: object): o is tl.aicompose.TypeTones
|
|
58520
60812
|
export declare function isAnyMtcute_Update(o: object): o is tl.mtcute.TypeUpdate
|
|
58521
60813
|
export declare function isAnyMtcute_InputPeer(o: object): o is tl.mtcute.TypeInputPeer
|
|
58522
60814
|
|