@mtcute/tl 206.0.0 → 208.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/api-schema.json +1 -1
- package/binary/reader.js +5 -5
- package/binary/writer.js +5 -5
- package/compat/index.d.ts +77 -4
- package/compat/reader.js +3 -0
- package/index.d.ts +54 -236
- package/index.js +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _Long from 'long';
|
|
2
2
|
export declare namespace tl {
|
|
3
|
-
const LAYER =
|
|
3
|
+
const LAYER = 208;
|
|
4
4
|
|
|
5
5
|
function $extendTypes(types: Record<string, string>): void
|
|
6
6
|
|
|
@@ -972,8 +972,10 @@ export class RpcError extends Error {
|
|
|
972
972
|
interface RawInputMediaUploadedDocument {
|
|
973
973
|
_: 'inputMediaUploadedDocument';
|
|
974
974
|
/**
|
|
975
|
-
* Whether the
|
|
976
|
-
*
|
|
975
|
+
* Whether to send the file as a video even if it doesn't have
|
|
976
|
+
* an audio track (i.e. if set, the
|
|
977
|
+
* {@link RawDocumentAttributeAnimated} attribute will
|
|
978
|
+
* <strong>not</strong> be set even for videos without audio)
|
|
977
979
|
*/
|
|
978
980
|
nosoundVideo?: boolean;
|
|
979
981
|
/**
|
|
@@ -8839,13 +8841,7 @@ export class RpcError extends Error {
|
|
|
8839
8841
|
*/
|
|
8840
8842
|
interface RawUpdateBroadcastRevenueTransactions {
|
|
8841
8843
|
_: 'updateBroadcastRevenueTransactions';
|
|
8842
|
-
/**
|
|
8843
|
-
* Channel
|
|
8844
|
-
*/
|
|
8845
8844
|
peer: tl.TypePeer;
|
|
8846
|
-
/**
|
|
8847
|
-
* New ad revenue balance.
|
|
8848
|
-
*/
|
|
8849
8845
|
balances: tl.TypeBroadcastRevenueBalances;
|
|
8850
8846
|
}
|
|
8851
8847
|
/**
|
|
@@ -10605,7 +10601,7 @@ export class RpcError extends Error {
|
|
|
10605
10601
|
supportsStreaming?: boolean;
|
|
10606
10602
|
/**
|
|
10607
10603
|
* Whether the specified document is a video file with no audio
|
|
10608
|
-
* tracks
|
|
10604
|
+
* tracks
|
|
10609
10605
|
*/
|
|
10610
10606
|
nosound?: boolean;
|
|
10611
10607
|
/**
|
|
@@ -10831,6 +10827,8 @@ export class RpcError extends Error {
|
|
|
10831
10827
|
*
|
|
10832
10828
|
* - <code>telegram_livestream</code>
|
|
10833
10829
|
*
|
|
10830
|
+
* - <code>telegram_call</code>
|
|
10831
|
+
*
|
|
10834
10832
|
* - <code>telegram_user</code>
|
|
10835
10833
|
*
|
|
10836
10834
|
* - <code>telegram_botapp</code>
|
|
@@ -18482,6 +18480,12 @@ export class RpcError extends Error {
|
|
|
18482
18480
|
* (<code>ios-android</code>, <code>ios-wp</code>), unknown
|
|
18483
18481
|
* platforms are to be ignored. The <code>text</code> is the
|
|
18484
18482
|
* error message that should be shown to the user.
|
|
18483
|
+
*
|
|
18484
|
+
* The
|
|
18485
|
+
* <a href="https://corefork.telegram.org/api/config#restriction-add-platforms">restriction_add_platforms
|
|
18486
|
+
* »</a> client configuration parameter contains an array of
|
|
18487
|
+
* platform identifiers that must also be treated as our own,
|
|
18488
|
+
* in additional to the one hardcoded in the client.
|
|
18485
18489
|
*/
|
|
18486
18490
|
interface RawRestrictionReason {
|
|
18487
18491
|
_: 'restrictionReason';
|
|
@@ -18493,7 +18497,10 @@ export class RpcError extends Error {
|
|
|
18493
18497
|
platform: string;
|
|
18494
18498
|
/**
|
|
18495
18499
|
* Restriction reason (<code>porno</code>, <code>terms</code>,
|
|
18496
|
-
* etc.)
|
|
18500
|
+
* etc.). Ignore this restriction reason if it is contained in
|
|
18501
|
+
* the
|
|
18502
|
+
* <a href="https://corefork.telegram.org/api/config#ignore-restriction-reasons">ignore_restriction_reasons
|
|
18503
|
+
* »</a> client configuration parameter.
|
|
18497
18504
|
*/
|
|
18498
18505
|
reason: string;
|
|
18499
18506
|
/**
|
|
@@ -19230,8 +19237,16 @@ export class RpcError extends Error {
|
|
|
19230
19237
|
* in the UI, returning a list of booleans that directly
|
|
19231
19238
|
* specify whether we can or cannot write to each user.
|
|
19232
19239
|
*
|
|
19240
|
+
* This option may be enabled by both
|
|
19241
|
+
* non-<a href="https://corefork.telegram.org/api/premium">Premium</a>
|
|
19242
|
+
* and
|
|
19233
19243
|
* <a href="https://corefork.telegram.org/api/premium">Premium</a>
|
|
19234
|
-
* users only
|
|
19244
|
+
* users only if the
|
|
19245
|
+
* <a href="https://corefork.telegram.org/api/config#new-noncontact-peers-require-premium-without-ownpremium">new_noncontact_peers_require_premium_without_ownpremium
|
|
19246
|
+
* client configuration flag »</a> is equal to true, otherwise
|
|
19247
|
+
* it may be enabled only by
|
|
19248
|
+
* <a href="https://corefork.telegram.org/api/premium">Premium</a>
|
|
19249
|
+
* users and non-Premium users will receive a
|
|
19235
19250
|
* <code>PREMIUM_ACCOUNT_REQUIRED</code> error when trying to
|
|
19236
19251
|
* enable this flag.
|
|
19237
19252
|
*/
|
|
@@ -19328,6 +19343,7 @@ export class RpcError extends Error {
|
|
|
19328
19343
|
* code units</a>).
|
|
19329
19344
|
*/
|
|
19330
19345
|
quoteOffset?: number;
|
|
19346
|
+
todoItemId?: number;
|
|
19331
19347
|
}
|
|
19332
19348
|
/**
|
|
19333
19349
|
* Represents a reply to a
|
|
@@ -22161,6 +22177,7 @@ export class RpcError extends Error {
|
|
|
22161
22177
|
*/
|
|
22162
22178
|
quoteOffset?: number;
|
|
22163
22179
|
monoforumPeerId?: tl.TypeInputPeer;
|
|
22180
|
+
todoItemId?: number;
|
|
22164
22181
|
}
|
|
22165
22182
|
/**
|
|
22166
22183
|
* Reply to a story.
|
|
@@ -23758,17 +23775,8 @@ export class RpcError extends Error {
|
|
|
23758
23775
|
*/
|
|
23759
23776
|
interface RawBroadcastRevenueTransactionProceeds {
|
|
23760
23777
|
_: 'broadcastRevenueTransactionProceeds';
|
|
23761
|
-
/**
|
|
23762
|
-
* Amount in the smallest unit of the cryptocurrency.
|
|
23763
|
-
*/
|
|
23764
23778
|
amount: Long;
|
|
23765
|
-
/**
|
|
23766
|
-
* Start unixtime for the timeframe.
|
|
23767
|
-
*/
|
|
23768
23779
|
fromDate: number;
|
|
23769
|
-
/**
|
|
23770
|
-
* End unixtime for the timeframe.
|
|
23771
|
-
*/
|
|
23772
23780
|
toDate: number;
|
|
23773
23781
|
}
|
|
23774
23782
|
/**
|
|
@@ -23778,39 +23786,12 @@ export class RpcError extends Error {
|
|
|
23778
23786
|
*/
|
|
23779
23787
|
interface RawBroadcastRevenueTransactionWithdrawal {
|
|
23780
23788
|
_: 'broadcastRevenueTransactionWithdrawal';
|
|
23781
|
-
/**
|
|
23782
|
-
* Whether the withdrawal is currently pending
|
|
23783
|
-
*/
|
|
23784
23789
|
pending?: boolean;
|
|
23785
|
-
/**
|
|
23786
|
-
* Whether the withdrawal has failed
|
|
23787
|
-
*/
|
|
23788
23790
|
failed?: boolean;
|
|
23789
|
-
/**
|
|
23790
|
-
* Amount withdrawn
|
|
23791
|
-
*/
|
|
23792
23791
|
amount: Long;
|
|
23793
|
-
/**
|
|
23794
|
-
* Withdrawal date
|
|
23795
|
-
*/
|
|
23796
23792
|
date: number;
|
|
23797
|
-
/**
|
|
23798
|
-
* Payment provider name
|
|
23799
|
-
*/
|
|
23800
23793
|
provider: string;
|
|
23801
|
-
/**
|
|
23802
|
-
* If neither <code>pending</code> nor <code>failed</code> are
|
|
23803
|
-
* set, the transaction was completed successfully, and this
|
|
23804
|
-
* field will contain the point in time (UNIX timestamp in
|
|
23805
|
-
* seconds) when the withdrawal was completed successfully.
|
|
23806
|
-
*/
|
|
23807
23794
|
transactionDate?: number;
|
|
23808
|
-
/**
|
|
23809
|
-
* If neither <code>pending</code> nor <code>failed</code> are
|
|
23810
|
-
* set, the transaction was completed successfully, and this
|
|
23811
|
-
* field will contain a URL where the withdrawal transaction
|
|
23812
|
-
* can be viewed.
|
|
23813
|
-
*/
|
|
23814
23795
|
transactionUrl?: string;
|
|
23815
23796
|
}
|
|
23816
23797
|
/**
|
|
@@ -23820,17 +23801,8 @@ export class RpcError extends Error {
|
|
|
23820
23801
|
*/
|
|
23821
23802
|
interface RawBroadcastRevenueTransactionRefund {
|
|
23822
23803
|
_: 'broadcastRevenueTransactionRefund';
|
|
23823
|
-
/**
|
|
23824
|
-
* Amount refunded.
|
|
23825
|
-
*/
|
|
23826
23804
|
amount: Long;
|
|
23827
|
-
/**
|
|
23828
|
-
* Date of refund.
|
|
23829
|
-
*/
|
|
23830
23805
|
date: number;
|
|
23831
|
-
/**
|
|
23832
|
-
* Payment provider name.
|
|
23833
|
-
*/
|
|
23834
23806
|
provider: string;
|
|
23835
23807
|
}
|
|
23836
23808
|
/**
|
|
@@ -23893,25 +23865,9 @@ export class RpcError extends Error {
|
|
|
23893
23865
|
*/
|
|
23894
23866
|
interface RawBroadcastRevenueBalances {
|
|
23895
23867
|
_: 'broadcastRevenueBalances';
|
|
23896
|
-
/**
|
|
23897
|
-
* If set, the available balance can be
|
|
23898
|
-
* <a href="https://corefork.telegram.org/api/revenue#withdrawing-revenue">withdrawn
|
|
23899
|
-
* »</a>.
|
|
23900
|
-
*/
|
|
23901
23868
|
withdrawalEnabled?: boolean;
|
|
23902
|
-
/**
|
|
23903
|
-
* Amount of not-yet-withdrawn cryptocurrency.
|
|
23904
|
-
*/
|
|
23905
23869
|
currentBalance: Long;
|
|
23906
|
-
/**
|
|
23907
|
-
* Amount of withdrawable cryptocurrency, out of the currently
|
|
23908
|
-
* available balance (<code>available_balance <=
|
|
23909
|
-
* current_balance</code>).
|
|
23910
|
-
*/
|
|
23911
23870
|
availableBalance: Long;
|
|
23912
|
-
/**
|
|
23913
|
-
* Total amount of earned cryptocurrency.
|
|
23914
|
-
*/
|
|
23915
23871
|
overallRevenue: Long;
|
|
23916
23872
|
}
|
|
23917
23873
|
/**
|
|
@@ -24682,6 +24638,7 @@ export class RpcError extends Error {
|
|
|
24682
24638
|
upgradeStars?: Long;
|
|
24683
24639
|
resellMinStars?: Long;
|
|
24684
24640
|
title?: string;
|
|
24641
|
+
releasedBy?: tl.TypePeer;
|
|
24685
24642
|
}
|
|
24686
24643
|
interface RawStarGiftUnique {
|
|
24687
24644
|
_: 'starGiftUnique';
|
|
@@ -24697,6 +24654,7 @@ export class RpcError extends Error {
|
|
|
24697
24654
|
availabilityTotal: number;
|
|
24698
24655
|
giftAddress?: string;
|
|
24699
24656
|
resellStars?: Long;
|
|
24657
|
+
releasedBy?: tl.TypePeer;
|
|
24700
24658
|
}
|
|
24701
24659
|
/**
|
|
24702
24660
|
* Report menu option
|
|
@@ -24823,7 +24781,11 @@ export class RpcError extends Error {
|
|
|
24823
24781
|
endDate?: number;
|
|
24824
24782
|
/**
|
|
24825
24783
|
* The amount of daily revenue per user in Telegram Stars of
|
|
24826
|
-
* the bot that created the affiliate program
|
|
24784
|
+
* the bot that created the affiliate program.
|
|
24785
|
+
*
|
|
24786
|
+
* To obtain the approximated revenue per referred user,
|
|
24787
|
+
* multiply this value by <code>commission_permille</code> and
|
|
24788
|
+
* divide by <code>1000</code>.
|
|
24827
24789
|
*/
|
|
24828
24790
|
dailyRevenuePerUser?: tl.TypeStarsAmount;
|
|
24829
24791
|
}
|
|
@@ -25106,38 +25068,10 @@ export class RpcError extends Error {
|
|
|
25106
25068
|
*/
|
|
25107
25069
|
interface RawPremiumGiftOption {
|
|
25108
25070
|
_: 'premiumGiftOption';
|
|
25109
|
-
/**
|
|
25110
|
-
* Duration of gifted Telegram Premium subscription
|
|
25111
|
-
*/
|
|
25112
25071
|
months: number;
|
|
25113
|
-
/**
|
|
25114
|
-
* Three-letter ISO 4217
|
|
25115
|
-
* <a href="https://corefork.telegram.org/bots/payments#supported-currencies">currency</a>
|
|
25116
|
-
* code
|
|
25117
|
-
*/
|
|
25118
25072
|
currency: string;
|
|
25119
|
-
/**
|
|
25120
|
-
* Price of the product in the smallest units of the currency
|
|
25121
|
-
* (integer, not float/double). For example, for a price of
|
|
25122
|
-
* <code>US$ 1.45</code> pass <code>amount = 145</code>. See
|
|
25123
|
-
* the exp parameter in
|
|
25124
|
-
* <a href="https://corefork.telegram.org/bots/payments/currencies.json">currencies.json</a>,
|
|
25125
|
-
* it shows the number of digits past the decimal point for
|
|
25126
|
-
* each currency (2 for the majority of currencies).
|
|
25127
|
-
*/
|
|
25128
25073
|
amount: Long;
|
|
25129
|
-
/**
|
|
25130
|
-
* An
|
|
25131
|
-
* <a href="https://corefork.telegram.org/api/links#invoice-links">invoice
|
|
25132
|
-
* deep link »</a> to an invoice for in-app payment, using the
|
|
25133
|
-
* official Premium bot; may be empty if direct payment isn't
|
|
25134
|
-
* available.
|
|
25135
|
-
*/
|
|
25136
25074
|
botUrl: string;
|
|
25137
|
-
/**
|
|
25138
|
-
* An identifier for the App Store/Play Store product
|
|
25139
|
-
* associated with the Premium gift.
|
|
25140
|
-
*/
|
|
25141
25075
|
storeProduct?: string;
|
|
25142
25076
|
}
|
|
25143
25077
|
/**
|
|
@@ -25147,14 +25081,7 @@ export class RpcError extends Error {
|
|
|
25147
25081
|
*/
|
|
25148
25082
|
interface RawEmojiStatusUntil {
|
|
25149
25083
|
_: 'emojiStatusUntil';
|
|
25150
|
-
/**
|
|
25151
|
-
* <a href="https://corefork.telegram.org/api/custom-emoji">Custom
|
|
25152
|
-
* emoji document ID</a>
|
|
25153
|
-
*/
|
|
25154
25084
|
documentId: Long;
|
|
25155
|
-
/**
|
|
25156
|
-
* This status is valid until this date
|
|
25157
|
-
*/
|
|
25158
25085
|
until: number;
|
|
25159
25086
|
}
|
|
25160
25087
|
/**
|
|
@@ -25164,51 +25091,13 @@ export class RpcError extends Error {
|
|
|
25164
25091
|
*/
|
|
25165
25092
|
interface RawUserStarGift {
|
|
25166
25093
|
_: 'userStarGift';
|
|
25167
|
-
/**
|
|
25168
|
-
* If set, <code>from_id</code> will not be visible to users
|
|
25169
|
-
* (it will still be visible to the receiver of the gift).
|
|
25170
|
-
*/
|
|
25171
25094
|
nameHidden?: boolean;
|
|
25172
|
-
/**
|
|
25173
|
-
* If set, indicates this is a gift sent by
|
|
25174
|
-
* <code>from_id</code>, received by the current user and
|
|
25175
|
-
* currently hidden from our profile page.
|
|
25176
|
-
*/
|
|
25177
25095
|
unsaved?: boolean;
|
|
25178
|
-
/**
|
|
25179
|
-
* Sender of the gift (may be empty for anonymous senders; will
|
|
25180
|
-
* always be set if this gift was sent to us).
|
|
25181
|
-
*/
|
|
25182
25096
|
fromId?: number;
|
|
25183
|
-
/**
|
|
25184
|
-
* When was this gift sent.
|
|
25185
|
-
*/
|
|
25186
25097
|
date: number;
|
|
25187
|
-
/**
|
|
25188
|
-
* The gift.
|
|
25189
|
-
*/
|
|
25190
25098
|
gift: tl.TypeStarGift;
|
|
25191
|
-
/**
|
|
25192
|
-
* Message attached to the gift by the sender.
|
|
25193
|
-
*/
|
|
25194
25099
|
message?: tl.TypeTextWithEntities;
|
|
25195
|
-
/**
|
|
25196
|
-
* Only visible to the receiver of the gift, contains the ID of
|
|
25197
|
-
* the {@link RawMessageService} with the
|
|
25198
|
-
* {@link RawMessageActionStarGift} in the chat with
|
|
25199
|
-
* <code>from_id</code>.
|
|
25200
|
-
*/
|
|
25201
25100
|
msgId?: number;
|
|
25202
|
-
/**
|
|
25203
|
-
* The receiver of this gift may convert it to this many
|
|
25204
|
-
* Telegram Stars, instead of displaying it on their profile
|
|
25205
|
-
* page.
|
|
25206
|
-
*
|
|
25207
|
-
* <code>convert_stars</code> will be equal to the buying price
|
|
25208
|
-
* of the gift only if the gift was bought using recently
|
|
25209
|
-
* bought Telegram Stars, otherwise it will be less than
|
|
25210
|
-
* <code>stars</code>.
|
|
25211
|
-
*/
|
|
25212
25101
|
convertStars?: Long;
|
|
25213
25102
|
}
|
|
25214
25103
|
/**
|
|
@@ -37427,7 +37316,7 @@ export class RpcError extends Error {
|
|
|
37427
37316
|
*
|
|
37428
37317
|
*
|
|
37429
37318
|
* If the user explicitly chose to make their paid reaction(s)
|
|
37430
|
-
* private, pass true to
|
|
37319
|
+
* not private, pass true to
|
|
37431
37320
|
* {@link messages.RawSendPaidReactionRequest}.<code>private</code>.
|
|
37432
37321
|
*
|
|
37433
37322
|
*
|
|
@@ -44182,6 +44071,8 @@ export class RpcError extends Error {
|
|
|
44182
44071
|
* List of available gifts.
|
|
44183
44072
|
*/
|
|
44184
44073
|
gifts: tl.TypeStarGift[];
|
|
44074
|
+
chats: tl.TypeChat[];
|
|
44075
|
+
users: tl.TypeUser[];
|
|
44185
44076
|
}
|
|
44186
44077
|
/**
|
|
44187
44078
|
* Active
|
|
@@ -44269,22 +44160,9 @@ export class RpcError extends Error {
|
|
|
44269
44160
|
*/
|
|
44270
44161
|
interface RawUserStarGifts {
|
|
44271
44162
|
_: 'payments.userStarGifts';
|
|
44272
|
-
/**
|
|
44273
|
-
* Total number of gifts displayed on the profile.
|
|
44274
|
-
*/
|
|
44275
44163
|
count: number;
|
|
44276
|
-
/**
|
|
44277
|
-
* The gifts.
|
|
44278
|
-
*/
|
|
44279
44164
|
gifts: tl.TypeUserStarGift[];
|
|
44280
|
-
/**
|
|
44281
|
-
* Offset for
|
|
44282
|
-
* <a href="https://corefork.telegram.org/api/offsets">pagination</a>.
|
|
44283
|
-
*/
|
|
44284
44165
|
nextOffset?: string;
|
|
44285
|
-
/**
|
|
44286
|
-
* Users mentioned in the <code>gifts</code> vector.
|
|
44287
|
-
*/
|
|
44288
44166
|
users: tl.TypeUser[];
|
|
44289
44167
|
}
|
|
44290
44168
|
/**
|
|
@@ -45104,6 +44982,11 @@ export class RpcError extends Error {
|
|
|
45104
44982
|
sortByValue?: boolean;
|
|
45105
44983
|
peer: tl.TypeInputPeer;
|
|
45106
44984
|
offset: string;
|
|
44985
|
+
/**
|
|
44986
|
+
* Maximum number of results to return,
|
|
44987
|
+
* <a href="https://corefork.telegram.org/api/offsets">see
|
|
44988
|
+
* pagination</a>
|
|
44989
|
+
*/
|
|
45107
44990
|
limit: number;
|
|
45108
44991
|
}
|
|
45109
44992
|
/**
|
|
@@ -45156,6 +45039,11 @@ export class RpcError extends Error {
|
|
|
45156
45039
|
giftId: Long;
|
|
45157
45040
|
attributes?: tl.TypeStarGiftAttributeId[];
|
|
45158
45041
|
offset: string;
|
|
45042
|
+
/**
|
|
45043
|
+
* Maximum number of results to return,
|
|
45044
|
+
* <a href="https://corefork.telegram.org/api/offsets">see
|
|
45045
|
+
* pagination</a>
|
|
45046
|
+
*/
|
|
45159
45047
|
limit: number;
|
|
45160
45048
|
}
|
|
45161
45049
|
/**
|
|
@@ -45175,9 +45063,6 @@ export class RpcError extends Error {
|
|
|
45175
45063
|
*/
|
|
45176
45064
|
interface RawCanPurchasePremiumRequest {
|
|
45177
45065
|
_: 'payments.canPurchasePremium';
|
|
45178
|
-
/**
|
|
45179
|
-
* Payment purpose
|
|
45180
|
-
*/
|
|
45181
45066
|
purpose: tl.TypeInputStorePaymentPurpose;
|
|
45182
45067
|
}
|
|
45183
45068
|
/**
|
|
@@ -45192,23 +45077,8 @@ export class RpcError extends Error {
|
|
|
45192
45077
|
*/
|
|
45193
45078
|
interface RawGetUserStarGiftsRequest {
|
|
45194
45079
|
_: 'payments.getUserStarGifts';
|
|
45195
|
-
/**
|
|
45196
|
-
* Identifier of the user (can be the current user to fetch all
|
|
45197
|
-
* gifts received by the current user).
|
|
45198
|
-
*/
|
|
45199
45080
|
userId: tl.TypeInputUser;
|
|
45200
|
-
/**
|
|
45201
|
-
* Offset for
|
|
45202
|
-
* <a href="https://corefork.telegram.org/api/offsets">pagination</a>,
|
|
45203
|
-
* taken from {@link payments.RawUserStarGifts} (initially
|
|
45204
|
-
* empty).
|
|
45205
|
-
*/
|
|
45206
45081
|
offset: string;
|
|
45207
|
-
/**
|
|
45208
|
-
* Maximum number of results to return,
|
|
45209
|
-
* <a href="https://corefork.telegram.org/api/offsets">see
|
|
45210
|
-
* pagination</a>
|
|
45211
|
-
*/
|
|
45212
45082
|
limit: number;
|
|
45213
45083
|
}
|
|
45214
45084
|
interface RpcCallReturn {
|
|
@@ -46233,6 +46103,11 @@ export class RpcError extends Error {
|
|
|
46233
46103
|
call: tl.TypeInputGroupCall;
|
|
46234
46104
|
subChainId: number;
|
|
46235
46105
|
offset: number;
|
|
46106
|
+
/**
|
|
46107
|
+
* Maximum number of results to return,
|
|
46108
|
+
* <a href="https://corefork.telegram.org/api/offsets">see
|
|
46109
|
+
* pagination</a>
|
|
46110
|
+
*/
|
|
46236
46111
|
limit: number;
|
|
46237
46112
|
}
|
|
46238
46113
|
interface RpcCallReturn {
|
|
@@ -46607,25 +46482,9 @@ export class RpcError extends Error {
|
|
|
46607
46482
|
*/
|
|
46608
46483
|
interface RawBroadcastRevenueStats {
|
|
46609
46484
|
_: 'stats.broadcastRevenueStats';
|
|
46610
|
-
/**
|
|
46611
|
-
* Ad impressions graph
|
|
46612
|
-
*/
|
|
46613
46485
|
topHoursGraph: tl.TypeStatsGraph;
|
|
46614
|
-
/**
|
|
46615
|
-
* Ad revenue graph (in the smallest unit of the cryptocurrency
|
|
46616
|
-
* in which revenue is calculated)
|
|
46617
|
-
*/
|
|
46618
46486
|
revenueGraph: tl.TypeStatsGraph;
|
|
46619
|
-
/**
|
|
46620
|
-
* Current balance, current withdrawable balance and overall
|
|
46621
|
-
* revenue
|
|
46622
|
-
*/
|
|
46623
46487
|
balances: tl.TypeBroadcastRevenueBalances;
|
|
46624
|
-
/**
|
|
46625
|
-
* Current conversion rate of the cryptocurrency
|
|
46626
|
-
* (<strong>not</strong> in the smallest unit) in which revenue
|
|
46627
|
-
* is calculated to USD
|
|
46628
|
-
*/
|
|
46629
46488
|
usdRate: Double;
|
|
46630
46489
|
}
|
|
46631
46490
|
/**
|
|
@@ -46635,11 +46494,6 @@ export class RpcError extends Error {
|
|
|
46635
46494
|
*/
|
|
46636
46495
|
interface RawBroadcastRevenueWithdrawalUrl {
|
|
46637
46496
|
_: 'stats.broadcastRevenueWithdrawalUrl';
|
|
46638
|
-
/**
|
|
46639
|
-
* A unique URL to a Fragment page where the user will be able
|
|
46640
|
-
* to specify and submit the address of the TON wallet where
|
|
46641
|
-
* the funds will be sent.
|
|
46642
|
-
*/
|
|
46643
46497
|
url: string;
|
|
46644
46498
|
}
|
|
46645
46499
|
/**
|
|
@@ -46648,13 +46502,7 @@ export class RpcError extends Error {
|
|
|
46648
46502
|
*/
|
|
46649
46503
|
interface RawBroadcastRevenueTransactions {
|
|
46650
46504
|
_: 'stats.broadcastRevenueTransactions';
|
|
46651
|
-
/**
|
|
46652
|
-
* Total number of transactions.
|
|
46653
|
-
*/
|
|
46654
46505
|
count: number;
|
|
46655
|
-
/**
|
|
46656
|
-
* Transactions
|
|
46657
|
-
*/
|
|
46658
46506
|
transactions: tl.TypeBroadcastRevenueTransaction[];
|
|
46659
46507
|
}
|
|
46660
46508
|
/**
|
|
@@ -46833,13 +46681,7 @@ export class RpcError extends Error {
|
|
|
46833
46681
|
*/
|
|
46834
46682
|
interface RawGetBroadcastRevenueStatsRequest {
|
|
46835
46683
|
_: 'stats.getBroadcastRevenueStats';
|
|
46836
|
-
/**
|
|
46837
|
-
* Whether to enable dark theme for graph colors
|
|
46838
|
-
*/
|
|
46839
46684
|
dark?: boolean;
|
|
46840
|
-
/**
|
|
46841
|
-
* Get ad revenue stats for the specified channel or bot
|
|
46842
|
-
*/
|
|
46843
46685
|
peer: tl.TypeInputPeer;
|
|
46844
46686
|
}
|
|
46845
46687
|
/**
|
|
@@ -46852,16 +46694,7 @@ export class RpcError extends Error {
|
|
|
46852
46694
|
*/
|
|
46853
46695
|
interface RawGetBroadcastRevenueWithdrawalUrlRequest {
|
|
46854
46696
|
_: 'stats.getBroadcastRevenueWithdrawalUrl';
|
|
46855
|
-
/**
|
|
46856
|
-
* Get ad revenue withdrawal URL for the specified channel or
|
|
46857
|
-
* bot
|
|
46858
|
-
*/
|
|
46859
46697
|
peer: tl.TypeInputPeer;
|
|
46860
|
-
/**
|
|
46861
|
-
* 2FA password, see
|
|
46862
|
-
* <a href="https://corefork.telegram.org/api/srp#using-the-2fa-password">here
|
|
46863
|
-
* »</a> for more info.
|
|
46864
|
-
*/
|
|
46865
46698
|
password: tl.TypeInputCheckPasswordSRP;
|
|
46866
46699
|
}
|
|
46867
46700
|
/**
|
|
@@ -46874,20 +46707,8 @@ export class RpcError extends Error {
|
|
|
46874
46707
|
*/
|
|
46875
46708
|
interface RawGetBroadcastRevenueTransactionsRequest {
|
|
46876
46709
|
_: 'stats.getBroadcastRevenueTransactions';
|
|
46877
|
-
/**
|
|
46878
|
-
* Get ad revenue transactions for the specified channel or bot
|
|
46879
|
-
*/
|
|
46880
46710
|
peer: tl.TypeInputPeer;
|
|
46881
|
-
/**
|
|
46882
|
-
* <a href="https://corefork.telegram.org/api/offsets">Offset
|
|
46883
|
-
* for pagination</a>
|
|
46884
|
-
*/
|
|
46885
46711
|
offset: number;
|
|
46886
|
-
/**
|
|
46887
|
-
* Maximum number of results to return,
|
|
46888
|
-
* <a href="https://corefork.telegram.org/api/offsets">see
|
|
46889
|
-
* pagination</a>
|
|
46890
|
-
*/
|
|
46891
46712
|
limit: number;
|
|
46892
46713
|
}
|
|
46893
46714
|
interface RpcCallReturn {
|
|
@@ -47316,9 +47137,6 @@ export class RpcError extends Error {
|
|
|
47316
47137
|
*/
|
|
47317
47138
|
interface RawGetIsPremiumRequiredToContactRequest {
|
|
47318
47139
|
_: 'users.getIsPremiumRequiredToContact';
|
|
47319
|
-
/**
|
|
47320
|
-
* Users to fetch info about.
|
|
47321
|
-
*/
|
|
47322
47140
|
id: tl.TypeInputUser[];
|
|
47323
47141
|
}
|
|
47324
47142
|
interface RpcCallReturn {
|