@mtcute/tl 187.0.0 → 195.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 +50 -24
- package/binary/writer.js +107 -48
- package/index.d.ts +2482 -232
- package/index.js +17 -5
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import _Long from 'long';
|
|
3
3
|
|
|
4
4
|
export declare namespace tl {
|
|
5
|
-
const LAYER =
|
|
5
|
+
const LAYER = 195;
|
|
6
6
|
|
|
7
7
|
function $extendTypes(types: Record<string, string>): void
|
|
8
8
|
|
|
@@ -1307,6 +1307,11 @@ export class RpcError extends Error {
|
|
|
1307
1307
|
* Photos or videos.
|
|
1308
1308
|
*/
|
|
1309
1309
|
extendedMedia: tl.TypeInputMedia[];
|
|
1310
|
+
/**
|
|
1311
|
+
* Bots only, specifies a custom payload that will then be
|
|
1312
|
+
* passed in {@link RawUpdateBotPurchasedPaidMedia} when a
|
|
1313
|
+
* payment is made (this field will not be visible to the user)
|
|
1314
|
+
*/
|
|
1310
1315
|
payload?: string;
|
|
1311
1316
|
}
|
|
1312
1317
|
/**
|
|
@@ -1900,10 +1905,10 @@ export class RpcError extends Error {
|
|
|
1900
1905
|
*
|
|
1901
1906
|
* - Set to <code>true</code> if <code>min</code> is set AND
|
|
1902
1907
|
*
|
|
1903
|
-
*
|
|
1904
|
-
*
|
|
1908
|
+
* -- The <code>phone</code> flag is <strong>not</strong> set
|
|
1909
|
+
* OR
|
|
1905
1910
|
*
|
|
1906
|
-
*
|
|
1911
|
+
* -- The <code>phone</code> flag is set and the associated
|
|
1907
1912
|
* phone number string is non-empty
|
|
1908
1913
|
*
|
|
1909
1914
|
* - Set to <code>false</code> otherwise.
|
|
@@ -1917,14 +1922,16 @@ export class RpcError extends Error {
|
|
|
1917
1922
|
*
|
|
1918
1923
|
* - <code>min_access_hash</code> is true AND
|
|
1919
1924
|
*
|
|
1920
|
-
*
|
|
1925
|
+
* -- There is no locally cached object for this user OR
|
|
1921
1926
|
*
|
|
1922
|
-
*
|
|
1927
|
+
* -- There is no <code>access_hash</code> in the local cache
|
|
1928
|
+
* OR
|
|
1923
1929
|
*
|
|
1924
|
-
*
|
|
1925
|
-
* - The cached object's <code>min_access_hash</code> is also
|
|
1930
|
+
* -- The cached object's <code>min_access_hash</code> is also
|
|
1926
1931
|
* true
|
|
1927
1932
|
*
|
|
1933
|
+
*
|
|
1934
|
+
*
|
|
1928
1935
|
* If the final merged object stored to the database has the
|
|
1929
1936
|
* <code>min_access_hash</code> field set to true, the related
|
|
1930
1937
|
* <code>access_hash</code> is <strong>only</strong> suitable
|
|
@@ -1950,8 +1957,8 @@ export class RpcError extends Error {
|
|
|
1950
1957
|
*
|
|
1951
1958
|
* - The <code>min</code> flag is set AND
|
|
1952
1959
|
*
|
|
1953
|
-
*
|
|
1954
|
-
* is set.
|
|
1960
|
+
* -- The <code>min</code> flag of the locally cached user
|
|
1961
|
+
* entry is set.
|
|
1955
1962
|
*/
|
|
1956
1963
|
firstName?: string;
|
|
1957
1964
|
/**
|
|
@@ -1965,8 +1972,8 @@ export class RpcError extends Error {
|
|
|
1965
1972
|
*
|
|
1966
1973
|
* - The <code>min</code> flag is set AND
|
|
1967
1974
|
*
|
|
1968
|
-
*
|
|
1969
|
-
* is set.
|
|
1975
|
+
* -- The <code>min</code> flag of the locally cached user
|
|
1976
|
+
* entry is set.
|
|
1970
1977
|
*/
|
|
1971
1978
|
lastName?: string;
|
|
1972
1979
|
/**
|
|
@@ -1980,8 +1987,8 @@ export class RpcError extends Error {
|
|
|
1980
1987
|
*
|
|
1981
1988
|
* - The <code>min</code> flag is set AND
|
|
1982
1989
|
*
|
|
1983
|
-
*
|
|
1984
|
-
* is set.
|
|
1990
|
+
* -- The <code>min</code> flag of the locally cached user
|
|
1991
|
+
* entry is set.
|
|
1985
1992
|
*
|
|
1986
1993
|
* Changes to this flag should invalidate the local
|
|
1987
1994
|
* {@link RawUserFull} cache for this user ID if the above
|
|
@@ -2000,8 +2007,8 @@ export class RpcError extends Error {
|
|
|
2000
2007
|
*
|
|
2001
2008
|
* - The <code>min</code> flag is set AND
|
|
2002
2009
|
*
|
|
2003
|
-
*
|
|
2004
|
-
* is set.
|
|
2010
|
+
* -- The <code>min</code> flag of the locally cached user
|
|
2011
|
+
* entry is set.
|
|
2005
2012
|
*/
|
|
2006
2013
|
phone?: string;
|
|
2007
2014
|
/**
|
|
@@ -2015,10 +2022,10 @@ export class RpcError extends Error {
|
|
|
2015
2022
|
*
|
|
2016
2023
|
* - The <code>min</code> flag is set AND
|
|
2017
2024
|
*
|
|
2018
|
-
*
|
|
2025
|
+
* -- The <code>apply_min_photo</code> flag is set OR
|
|
2019
2026
|
*
|
|
2020
|
-
*
|
|
2021
|
-
* is set.
|
|
2027
|
+
* -- The <code>min</code> flag of the locally cached user
|
|
2028
|
+
* entry is set.
|
|
2022
2029
|
*/
|
|
2023
2030
|
photo?: tl.TypeUserProfilePhoto;
|
|
2024
2031
|
/**
|
|
@@ -2032,10 +2039,10 @@ export class RpcError extends Error {
|
|
|
2032
2039
|
*
|
|
2033
2040
|
* - The <code>min</code> flag is set AND
|
|
2034
2041
|
*
|
|
2035
|
-
*
|
|
2036
|
-
* is set OR
|
|
2042
|
+
* -- The <code>min</code> flag of the locally cached user
|
|
2043
|
+
* entry is set OR
|
|
2037
2044
|
*
|
|
2038
|
-
*
|
|
2045
|
+
* -- The locally cached user entry is equal to
|
|
2039
2046
|
* {@link RawUserStatusEmpty}.
|
|
2040
2047
|
*/
|
|
2041
2048
|
status?: tl.TypeUserStatus;
|
|
@@ -2078,8 +2085,8 @@ export class RpcError extends Error {
|
|
|
2078
2085
|
*
|
|
2079
2086
|
* - The <code>min</code> flag is set AND
|
|
2080
2087
|
*
|
|
2081
|
-
*
|
|
2082
|
-
* is set.
|
|
2088
|
+
* -- The <code>min</code> flag of the locally cached user
|
|
2089
|
+
* entry is set.
|
|
2083
2090
|
*
|
|
2084
2091
|
* Changes to this flag (if the above conditions are respected)
|
|
2085
2092
|
* should invalidate the local {@link RawUserFull} cache for
|
|
@@ -2538,6 +2545,10 @@ export class RpcError extends Error {
|
|
|
2538
2545
|
* No stories from the channel are visible.
|
|
2539
2546
|
*/
|
|
2540
2547
|
storiesUnavailable?: boolean;
|
|
2548
|
+
/**
|
|
2549
|
+
* If set, messages sent by admins to this channel will link to
|
|
2550
|
+
* the admin's profile (just like with groups).
|
|
2551
|
+
*/
|
|
2541
2552
|
signatureProfiles?: boolean;
|
|
2542
2553
|
/**
|
|
2543
2554
|
* ID of the channel, see
|
|
@@ -2635,6 +2646,12 @@ export class RpcError extends Error {
|
|
|
2635
2646
|
* »</a> for more info.
|
|
2636
2647
|
*/
|
|
2637
2648
|
level?: number;
|
|
2649
|
+
/**
|
|
2650
|
+
* Expiration date of the
|
|
2651
|
+
* <a href="https://corefork.telegram.org/api/stars#star-subscriptions">Telegram
|
|
2652
|
+
* Star subscription »</a> the current user has bought to gain
|
|
2653
|
+
* access to this channel.
|
|
2654
|
+
*/
|
|
2638
2655
|
subscriptionUntilDate?: number;
|
|
2639
2656
|
}
|
|
2640
2657
|
/**
|
|
@@ -2898,6 +2915,11 @@ export class RpcError extends Error {
|
|
|
2898
2915
|
* Star revenue statistics »</a> for this channel.
|
|
2899
2916
|
*/
|
|
2900
2917
|
canViewStarsRevenue?: boolean;
|
|
2918
|
+
/**
|
|
2919
|
+
* If set, users may send
|
|
2920
|
+
* <a href="https://corefork.telegram.org/api/reactions#paid-reactions">paid
|
|
2921
|
+
* Telegram Star reactions »</a> to messages of this channel.
|
|
2922
|
+
*/
|
|
2901
2923
|
paidReactionsAvailable?: boolean;
|
|
2902
2924
|
/**
|
|
2903
2925
|
* ID of the channel
|
|
@@ -3056,7 +3078,7 @@ export class RpcError extends Error {
|
|
|
3056
3078
|
/**
|
|
3057
3079
|
* IDs of users who requested to join recently
|
|
3058
3080
|
*/
|
|
3059
|
-
recentRequesters?:
|
|
3081
|
+
recentRequesters?: number[];
|
|
3060
3082
|
/**
|
|
3061
3083
|
* Default peer used for sending messages to this channel
|
|
3062
3084
|
*/
|
|
@@ -3297,6 +3319,24 @@ export class RpcError extends Error {
|
|
|
3297
3319
|
* service message.
|
|
3298
3320
|
*/
|
|
3299
3321
|
offline?: boolean;
|
|
3322
|
+
/**
|
|
3323
|
+
* The video contained in the message is currently being
|
|
3324
|
+
* processed by the server (i.e. to generate alternative
|
|
3325
|
+
* qualities, that will be contained in the final
|
|
3326
|
+
* {@link RawMessageMediaDocument}.<code>alt_document</code>),
|
|
3327
|
+
* and will be sent once the video is processed, which will
|
|
3328
|
+
* happen approximately at the specified <code>date</code>
|
|
3329
|
+
* (i.e. messages with this flag set should be treated
|
|
3330
|
+
* similarly to
|
|
3331
|
+
* <a href="https://corefork.telegram.org/api/scheduled-messages">scheduled
|
|
3332
|
+
* messages</a>, but instead of the scheduled date,
|
|
3333
|
+
* <code>date</code> contains the estimated conversion date).
|
|
3334
|
+
*
|
|
3335
|
+
* See
|
|
3336
|
+
* <a href="https://corefork.telegram.org/api/files#video-qualities">here
|
|
3337
|
+
* »</a> for more info.
|
|
3338
|
+
*/
|
|
3339
|
+
videoProcessingPending?: boolean;
|
|
3300
3340
|
/**
|
|
3301
3341
|
* ID of the message
|
|
3302
3342
|
*/
|
|
@@ -3612,12 +3652,9 @@ export class RpcError extends Error {
|
|
|
3612
3652
|
*/
|
|
3613
3653
|
document?: tl.TypeDocument;
|
|
3614
3654
|
/**
|
|
3615
|
-
*
|
|
3616
|
-
* alternative version of the story video, explicitly encoded
|
|
3617
|
-
* using H.264 (in MPEG4 transport) at a lower resolution than
|
|
3618
|
-
* <code>document</code>.
|
|
3655
|
+
* Videos only, contains alternative qualities of the video.
|
|
3619
3656
|
*/
|
|
3620
|
-
|
|
3657
|
+
altDocuments?: tl.TypeDocument[];
|
|
3621
3658
|
/**
|
|
3622
3659
|
* Time to live of self-destructing document
|
|
3623
3660
|
*/
|
|
@@ -3900,6 +3937,12 @@ export class RpcError extends Error {
|
|
|
3900
3937
|
* Premium</a> subscription in the giveaway.
|
|
3901
3938
|
*/
|
|
3902
3939
|
months?: number;
|
|
3940
|
+
/**
|
|
3941
|
+
* For
|
|
3942
|
+
* <a href="https://corefork.telegram.org/api/stars#star-giveaways">Telegram
|
|
3943
|
+
* Star giveaways</a>, the total number of Telegram Stars being
|
|
3944
|
+
* given away.
|
|
3945
|
+
*/
|
|
3903
3946
|
stars?: Long;
|
|
3904
3947
|
/**
|
|
3905
3948
|
* The end date of the giveaway.
|
|
@@ -3957,6 +4000,12 @@ export class RpcError extends Error {
|
|
|
3957
4000
|
* Premium</a> subscription in the giveaway.
|
|
3958
4001
|
*/
|
|
3959
4002
|
months?: number;
|
|
4003
|
+
/**
|
|
4004
|
+
* For
|
|
4005
|
+
* <a href="https://corefork.telegram.org/api/stars#star-giveaways">Telegram
|
|
4006
|
+
* Star giveaways</a>, the total number of Telegram Stars being
|
|
4007
|
+
* given away.
|
|
4008
|
+
*/
|
|
3960
4009
|
stars?: Long;
|
|
3961
4010
|
/**
|
|
3962
4011
|
* Can contain a textual description of additional giveaway
|
|
@@ -4178,6 +4227,12 @@ export class RpcError extends Error {
|
|
|
4178
4227
|
* Provider payment identifier
|
|
4179
4228
|
*/
|
|
4180
4229
|
charge: tl.TypePaymentCharge;
|
|
4230
|
+
/**
|
|
4231
|
+
* Expiration date of the
|
|
4232
|
+
* <a href="https://corefork.telegram.org/api/stars#star-subscriptions">Telegram
|
|
4233
|
+
* Star subscription »</a>.
|
|
4234
|
+
*/
|
|
4235
|
+
subscriptionUntilDate?: number;
|
|
4181
4236
|
}
|
|
4182
4237
|
/**
|
|
4183
4238
|
* A payment was sent
|
|
@@ -4219,6 +4274,12 @@ export class RpcError extends Error {
|
|
|
4219
4274
|
* app config parameter »</a>
|
|
4220
4275
|
*/
|
|
4221
4276
|
invoiceSlug?: string;
|
|
4277
|
+
/**
|
|
4278
|
+
* Expiration date of the
|
|
4279
|
+
* <a href="https://corefork.telegram.org/api/stars#star-subscriptions">Telegram
|
|
4280
|
+
* Star subscription »</a>.
|
|
4281
|
+
*/
|
|
4282
|
+
subscriptionUntilDate?: number;
|
|
4222
4283
|
}
|
|
4223
4284
|
/**
|
|
4224
4285
|
* A phone call
|
|
@@ -4502,6 +4563,10 @@ export class RpcError extends Error {
|
|
|
4502
4563
|
* gift in the smallest units of a cryptocurrency.
|
|
4503
4564
|
*/
|
|
4504
4565
|
cryptoAmount?: Long;
|
|
4566
|
+
/**
|
|
4567
|
+
* Message attached with the gift
|
|
4568
|
+
*/
|
|
4569
|
+
message?: tl.TypeTextWithEntities;
|
|
4505
4570
|
}
|
|
4506
4571
|
/**
|
|
4507
4572
|
* A
|
|
@@ -4684,6 +4749,10 @@ export class RpcError extends Error {
|
|
|
4684
4749
|
* amount, in the smallest units of the cryptocurrency.
|
|
4685
4750
|
*/
|
|
4686
4751
|
cryptoAmount?: Long;
|
|
4752
|
+
/**
|
|
4753
|
+
* Message attached with the gift
|
|
4754
|
+
*/
|
|
4755
|
+
message?: tl.TypeTextWithEntities;
|
|
4687
4756
|
}
|
|
4688
4757
|
/**
|
|
4689
4758
|
* A
|
|
@@ -4692,6 +4761,12 @@ export class RpcError extends Error {
|
|
|
4692
4761
|
*/
|
|
4693
4762
|
interface RawMessageActionGiveawayLaunch {
|
|
4694
4763
|
_: 'messageActionGiveawayLaunch';
|
|
4764
|
+
/**
|
|
4765
|
+
* For
|
|
4766
|
+
* <a href="https://corefork.telegram.org/api/stars#star-giveaways">Telegram
|
|
4767
|
+
* Star giveaways</a>, the total number of Telegram Stars being
|
|
4768
|
+
* given away.
|
|
4769
|
+
*/
|
|
4695
4770
|
stars?: Long;
|
|
4696
4771
|
}
|
|
4697
4772
|
/**
|
|
@@ -4701,6 +4776,11 @@ export class RpcError extends Error {
|
|
|
4701
4776
|
*/
|
|
4702
4777
|
interface RawMessageActionGiveawayResults {
|
|
4703
4778
|
_: 'messageActionGiveawayResults';
|
|
4779
|
+
/**
|
|
4780
|
+
* If set, this is a
|
|
4781
|
+
* <a href="https://corefork.telegram.org/api/stars#star-giveaways">Telegram
|
|
4782
|
+
* Star giveaway</a>
|
|
4783
|
+
*/
|
|
4704
4784
|
stars?: boolean;
|
|
4705
4785
|
/**
|
|
4706
4786
|
* Number of winners in the giveaway
|
|
@@ -4818,14 +4898,87 @@ export class RpcError extends Error {
|
|
|
4818
4898
|
*/
|
|
4819
4899
|
transactionId?: string;
|
|
4820
4900
|
}
|
|
4901
|
+
/**
|
|
4902
|
+
* You won some
|
|
4903
|
+
* <a href="https://corefork.telegram.org/api/stars">Telegram
|
|
4904
|
+
* Stars</a> in a
|
|
4905
|
+
* <a href="https://corefork.telegram.org/api/giveaways#star-giveaways">Telegram
|
|
4906
|
+
* Star giveaway »</a>.
|
|
4907
|
+
*/
|
|
4821
4908
|
interface RawMessageActionPrizeStars {
|
|
4822
4909
|
_: 'messageActionPrizeStars';
|
|
4910
|
+
/**
|
|
4911
|
+
* If set, this indicates the reverse transaction that refunds
|
|
4912
|
+
* the remaining stars to the creator of a giveaway if, when
|
|
4913
|
+
* the giveaway ends, the number of members in the channel is
|
|
4914
|
+
* smaller than the number of winners in the giveaway.
|
|
4915
|
+
*/
|
|
4823
4916
|
unclaimed?: boolean;
|
|
4917
|
+
/**
|
|
4918
|
+
* The number of Telegram Stars you won
|
|
4919
|
+
*/
|
|
4824
4920
|
stars: Long;
|
|
4921
|
+
/**
|
|
4922
|
+
* ID of the telegram star transaction.
|
|
4923
|
+
*/
|
|
4825
4924
|
transactionId: string;
|
|
4925
|
+
/**
|
|
4926
|
+
* Identifier of the peer that was automatically boosted by the
|
|
4927
|
+
* winners of the giveaway.
|
|
4928
|
+
*/
|
|
4826
4929
|
boostPeer: tl.TypePeer;
|
|
4930
|
+
/**
|
|
4931
|
+
* ID of the message containing the
|
|
4932
|
+
* {@link RawMessageMediaGiveaway}
|
|
4933
|
+
*/
|
|
4827
4934
|
giveawayMsgId: number;
|
|
4828
4935
|
}
|
|
4936
|
+
/**
|
|
4937
|
+
* You received a
|
|
4938
|
+
* <a href="https://corefork.telegram.org/api/gifts">gift, see
|
|
4939
|
+
* here »</a> for more info.
|
|
4940
|
+
*/
|
|
4941
|
+
interface RawMessageActionStarGift {
|
|
4942
|
+
_: 'messageActionStarGift';
|
|
4943
|
+
/**
|
|
4944
|
+
* If set, the name of the sender of the gift will be hidden if
|
|
4945
|
+
* the destination user decides to display the gift on their
|
|
4946
|
+
* profile
|
|
4947
|
+
*/
|
|
4948
|
+
nameHidden?: boolean;
|
|
4949
|
+
/**
|
|
4950
|
+
* Whether this gift was added to the destination user's
|
|
4951
|
+
* profile (may be toggled using
|
|
4952
|
+
* {@link payments.RawSaveStarGiftRequest} and fetched using
|
|
4953
|
+
* {@link payments.RawGetUserStarGiftsRequest})
|
|
4954
|
+
*/
|
|
4955
|
+
saved?: boolean;
|
|
4956
|
+
/**
|
|
4957
|
+
* Whether this gift was converted to
|
|
4958
|
+
* <a href="https://corefork.telegram.org/api/stars">Telegram
|
|
4959
|
+
* Stars</a> and cannot be displayed on the profile anymore.
|
|
4960
|
+
*/
|
|
4961
|
+
converted?: boolean;
|
|
4962
|
+
/**
|
|
4963
|
+
* Info about the gift
|
|
4964
|
+
*/
|
|
4965
|
+
gift: tl.TypeStarGift;
|
|
4966
|
+
/**
|
|
4967
|
+
* Additional message from the sender of the gift
|
|
4968
|
+
*/
|
|
4969
|
+
message?: tl.TypeTextWithEntities;
|
|
4970
|
+
/**
|
|
4971
|
+
* The receiver of this gift may convert it to this many
|
|
4972
|
+
* Telegram Stars, instead of displaying it on their profile
|
|
4973
|
+
* page.
|
|
4974
|
+
*
|
|
4975
|
+
* <code>convert_stars</code> will be equal to
|
|
4976
|
+
* <code>stars</code> only if the gift was bought using
|
|
4977
|
+
* recently bought Telegram Stars, otherwise it will be less
|
|
4978
|
+
* than <code>stars</code>.
|
|
4979
|
+
*/
|
|
4980
|
+
convertStars?: Long;
|
|
4981
|
+
}
|
|
4829
4982
|
/**
|
|
4830
4983
|
* Chat
|
|
4831
4984
|
*/
|
|
@@ -5624,6 +5777,18 @@ export class RpcError extends Error {
|
|
|
5624
5777
|
* »</a> for more info.
|
|
5625
5778
|
*/
|
|
5626
5779
|
sponsoredEnabled?: boolean;
|
|
5780
|
+
/**
|
|
5781
|
+
* If set, this user can view
|
|
5782
|
+
* <a href="https://corefork.telegram.org/api/revenue#revenue-statistics">ad
|
|
5783
|
+
* revenue statistics »</a> for this bot.
|
|
5784
|
+
*/
|
|
5785
|
+
canViewRevenue?: boolean;
|
|
5786
|
+
/**
|
|
5787
|
+
* If set, this is a bot that can
|
|
5788
|
+
* <a href="https://corefork.telegram.org/api/emoji-status#setting-an-emoji-status-from-a-bot">change
|
|
5789
|
+
* our emoji status »</a>
|
|
5790
|
+
*/
|
|
5791
|
+
botCanManageEmojiStatus?: boolean;
|
|
5627
5792
|
/**
|
|
5628
5793
|
* User ID
|
|
5629
5794
|
*/
|
|
@@ -5769,6 +5934,18 @@ export class RpcError extends Error {
|
|
|
5769
5934
|
* page</a>.
|
|
5770
5935
|
*/
|
|
5771
5936
|
personalChannelMessage?: number;
|
|
5937
|
+
/**
|
|
5938
|
+
* Number of
|
|
5939
|
+
* <a href="https://corefork.telegram.org/api/gifts">gifts</a>
|
|
5940
|
+
* the user has chosen to display on their profile
|
|
5941
|
+
*/
|
|
5942
|
+
stargiftsCount?: number;
|
|
5943
|
+
/**
|
|
5944
|
+
* This bot has an active
|
|
5945
|
+
* <a href="https://corefork.telegram.org/api/bots/referrals">referral
|
|
5946
|
+
* program »</a>
|
|
5947
|
+
*/
|
|
5948
|
+
starrefProgram?: tl.TypeStarRefProgram;
|
|
5772
5949
|
}
|
|
5773
5950
|
/**
|
|
5774
5951
|
* A contact of the current user that is registered in the
|
|
@@ -7236,7 +7413,8 @@ export class RpcError extends Error {
|
|
|
7236
7413
|
/**
|
|
7237
7414
|
* Some
|
|
7238
7415
|
* <a href="https://corefork.telegram.org/api/scheduled-messages">scheduled
|
|
7239
|
-
* messages</a> were deleted from the schedule queue
|
|
7416
|
+
* messages</a> were deleted (or sent) from the schedule queue
|
|
7417
|
+
* of a chat
|
|
7240
7418
|
*/
|
|
7241
7419
|
interface RawUpdateDeleteScheduledMessages {
|
|
7242
7420
|
_: 'updateDeleteScheduledMessages';
|
|
@@ -7248,6 +7426,17 @@ export class RpcError extends Error {
|
|
|
7248
7426
|
* Deleted scheduled messages
|
|
7249
7427
|
*/
|
|
7250
7428
|
messages: number[];
|
|
7429
|
+
/**
|
|
7430
|
+
* If set, this update indicates that some scheduled messages
|
|
7431
|
+
* were sent (not simply deleted from the schedule queue).
|
|
7432
|
+
*
|
|
7433
|
+
* In this case, the <code>messages</code> field will contain
|
|
7434
|
+
* the scheduled message IDs for the sent messages (initially
|
|
7435
|
+
* returned in {@link RawUpdateNewScheduledMessage}), and
|
|
7436
|
+
* <code>sent_messages</code> will contain the real message IDs
|
|
7437
|
+
* for the sent messages.
|
|
7438
|
+
*/
|
|
7439
|
+
sentMessages?: number[];
|
|
7251
7440
|
}
|
|
7252
7441
|
/**
|
|
7253
7442
|
* A cloud theme was updated
|
|
@@ -8571,7 +8760,7 @@ export class RpcError extends Error {
|
|
|
8571
8760
|
/**
|
|
8572
8761
|
* New balance.
|
|
8573
8762
|
*/
|
|
8574
|
-
balance:
|
|
8763
|
+
balance: tl.TypeStarsAmount;
|
|
8575
8764
|
}
|
|
8576
8765
|
/**
|
|
8577
8766
|
* A callback button sent via a
|
|
@@ -8630,14 +8819,45 @@ export class RpcError extends Error {
|
|
|
8630
8819
|
*/
|
|
8631
8820
|
status: tl.TypeStarsRevenueStatus;
|
|
8632
8821
|
}
|
|
8822
|
+
/**
|
|
8823
|
+
* Bots only: a user has purchased a
|
|
8824
|
+
* <a href="https://corefork.telegram.org/api/paid-media">paid
|
|
8825
|
+
* media</a>.
|
|
8826
|
+
*/
|
|
8633
8827
|
interface RawUpdateBotPurchasedPaidMedia {
|
|
8634
8828
|
_: 'updateBotPurchasedPaidMedia';
|
|
8829
|
+
/**
|
|
8830
|
+
* The user that bought the media
|
|
8831
|
+
*/
|
|
8635
8832
|
userId: number;
|
|
8833
|
+
/**
|
|
8834
|
+
* Payload passed by the bot in
|
|
8835
|
+
* {@link RawInputMediaPaidMedia}.<code>payload</code>
|
|
8836
|
+
*/
|
|
8636
8837
|
payload: string;
|
|
8838
|
+
/**
|
|
8839
|
+
* New <strong>qts</strong> value, see
|
|
8840
|
+
* <a href="https://corefork.telegram.org/api/updates">updates
|
|
8841
|
+
* »</a> for more info.
|
|
8842
|
+
*/
|
|
8637
8843
|
qts: number;
|
|
8638
8844
|
}
|
|
8845
|
+
/**
|
|
8846
|
+
* Contains the current
|
|
8847
|
+
* <a href="https://corefork.telegram.org/api/reactions#paid-reactions">default
|
|
8848
|
+
* paid reaction privacy, see here »</a> for more info.
|
|
8849
|
+
*
|
|
8850
|
+
* Clients should invoke
|
|
8851
|
+
* {@link messages.RawGetPaidReactionPrivacyRequest} on startup
|
|
8852
|
+
* to fetch the current default reaction privacy because this
|
|
8853
|
+
* update is only sent to currently online sessions and cannot
|
|
8854
|
+
* be fetched using getDifference on client startup.
|
|
8855
|
+
*/
|
|
8639
8856
|
interface RawUpdatePaidReactionPrivacy {
|
|
8640
8857
|
_: 'updatePaidReactionPrivacy';
|
|
8858
|
+
/**
|
|
8859
|
+
* Whether paid reaction privacy is enabled or disabled.
|
|
8860
|
+
*/
|
|
8641
8861
|
private: boolean;
|
|
8642
8862
|
}
|
|
8643
8863
|
/**
|
|
@@ -9895,6 +10115,14 @@ export class RpcError extends Error {
|
|
|
9895
10115
|
interface RawInputPrivacyKeyBirthday {
|
|
9896
10116
|
_: 'inputPrivacyKeyBirthday';
|
|
9897
10117
|
}
|
|
10118
|
+
/**
|
|
10119
|
+
* Whether received
|
|
10120
|
+
* <a href="https://corefork.telegram.org/api/gifts">gifts</a>
|
|
10121
|
+
* will be automatically displayed on our profile
|
|
10122
|
+
*/
|
|
10123
|
+
interface RawInputPrivacyKeyStarGiftsAutoSave {
|
|
10124
|
+
_: 'inputPrivacyKeyStarGiftsAutoSave';
|
|
10125
|
+
}
|
|
9898
10126
|
/**
|
|
9899
10127
|
* Whether we can see the last online timestamp of this user.
|
|
9900
10128
|
*
|
|
@@ -9980,6 +10208,14 @@ export class RpcError extends Error {
|
|
|
9980
10208
|
interface RawPrivacyKeyBirthday {
|
|
9981
10209
|
_: 'privacyKeyBirthday';
|
|
9982
10210
|
}
|
|
10211
|
+
/**
|
|
10212
|
+
* Whether received
|
|
10213
|
+
* <a href="https://corefork.telegram.org/api/gifts">gifts</a>
|
|
10214
|
+
* will be automatically displayed on our profile
|
|
10215
|
+
*/
|
|
10216
|
+
interface RawPrivacyKeyStarGiftsAutoSave {
|
|
10217
|
+
_: 'privacyKeyStarGiftsAutoSave';
|
|
10218
|
+
}
|
|
9983
10219
|
/**
|
|
9984
10220
|
* Allow only contacts
|
|
9985
10221
|
*/
|
|
@@ -10061,6 +10297,18 @@ export class RpcError extends Error {
|
|
|
10061
10297
|
interface RawInputPrivacyValueAllowPremium {
|
|
10062
10298
|
_: 'inputPrivacyValueAllowPremium';
|
|
10063
10299
|
}
|
|
10300
|
+
/**
|
|
10301
|
+
* Allow bots and mini apps
|
|
10302
|
+
*/
|
|
10303
|
+
interface RawInputPrivacyValueAllowBots {
|
|
10304
|
+
_: 'inputPrivacyValueAllowBots';
|
|
10305
|
+
}
|
|
10306
|
+
/**
|
|
10307
|
+
* Disallow bots and mini apps
|
|
10308
|
+
*/
|
|
10309
|
+
interface RawInputPrivacyValueDisallowBots {
|
|
10310
|
+
_: 'inputPrivacyValueDisallowBots';
|
|
10311
|
+
}
|
|
10064
10312
|
/**
|
|
10065
10313
|
* Allow all contacts
|
|
10066
10314
|
*/
|
|
@@ -10142,6 +10390,18 @@ export class RpcError extends Error {
|
|
|
10142
10390
|
interface RawPrivacyValueAllowPremium {
|
|
10143
10391
|
_: 'privacyValueAllowPremium';
|
|
10144
10392
|
}
|
|
10393
|
+
/**
|
|
10394
|
+
* Allow bots and mini apps
|
|
10395
|
+
*/
|
|
10396
|
+
interface RawPrivacyValueAllowBots {
|
|
10397
|
+
_: 'privacyValueAllowBots';
|
|
10398
|
+
}
|
|
10399
|
+
/**
|
|
10400
|
+
* Disallow bots and mini apps
|
|
10401
|
+
*/
|
|
10402
|
+
interface RawPrivacyValueDisallowBots {
|
|
10403
|
+
_: 'privacyValueDisallowBots';
|
|
10404
|
+
}
|
|
10145
10405
|
/**
|
|
10146
10406
|
* Time to live in days of the current account
|
|
10147
10407
|
*/
|
|
@@ -10240,6 +10500,10 @@ export class RpcError extends Error {
|
|
|
10240
10500
|
* thumbnail.
|
|
10241
10501
|
*/
|
|
10242
10502
|
videoStartTs?: Double;
|
|
10503
|
+
/**
|
|
10504
|
+
* Codec used for the video, i.e. "h264", "h265", or "av1"
|
|
10505
|
+
*/
|
|
10506
|
+
videoCodec?: string;
|
|
10243
10507
|
}
|
|
10244
10508
|
/**
|
|
10245
10509
|
* Represents an audio file
|
|
@@ -10390,10 +10654,64 @@ export class RpcError extends Error {
|
|
|
10390
10654
|
*/
|
|
10391
10655
|
hash: number;
|
|
10392
10656
|
/**
|
|
10393
|
-
* Type of the web page.
|
|
10394
|
-
*
|
|
10395
|
-
*
|
|
10396
|
-
*
|
|
10657
|
+
* Type of the web page. One of the following: <!-- start type
|
|
10658
|
+
* -->
|
|
10659
|
+
*
|
|
10660
|
+
*
|
|
10661
|
+
*
|
|
10662
|
+
* - <code>video</code>
|
|
10663
|
+
*
|
|
10664
|
+
* - <code>gif</code>
|
|
10665
|
+
*
|
|
10666
|
+
* - <code>photo</code>
|
|
10667
|
+
*
|
|
10668
|
+
* - <code>document</code>
|
|
10669
|
+
*
|
|
10670
|
+
* - <code>profile</code>
|
|
10671
|
+
*
|
|
10672
|
+
* - <code>telegram_background</code>
|
|
10673
|
+
*
|
|
10674
|
+
* - <code>telegram_theme</code>
|
|
10675
|
+
*
|
|
10676
|
+
* - <code>telegram_story</code>
|
|
10677
|
+
*
|
|
10678
|
+
* - <code>telegram_channel</code>
|
|
10679
|
+
*
|
|
10680
|
+
* - <code>telegram_channel_request</code>
|
|
10681
|
+
*
|
|
10682
|
+
* - <code>telegram_megagroup</code>
|
|
10683
|
+
*
|
|
10684
|
+
* - <code>telegram_chat</code>
|
|
10685
|
+
*
|
|
10686
|
+
* - <code>telegram_megagroup_request</code>
|
|
10687
|
+
*
|
|
10688
|
+
* - <code>telegram_chat_request</code>
|
|
10689
|
+
*
|
|
10690
|
+
* - <code>telegram_album</code>
|
|
10691
|
+
*
|
|
10692
|
+
* - <code>telegram_message</code>
|
|
10693
|
+
*
|
|
10694
|
+
* - <code>telegram_bot</code>
|
|
10695
|
+
*
|
|
10696
|
+
* - <code>telegram_voicechat</code>
|
|
10697
|
+
*
|
|
10698
|
+
* - <code>telegram_livestream</code>
|
|
10699
|
+
*
|
|
10700
|
+
* - <code>telegram_user</code>
|
|
10701
|
+
*
|
|
10702
|
+
* - <code>telegram_botapp</code>
|
|
10703
|
+
*
|
|
10704
|
+
* - <code>telegram_channel_boost</code>
|
|
10705
|
+
*
|
|
10706
|
+
* - <code>telegram_group_boost</code>
|
|
10707
|
+
*
|
|
10708
|
+
* - <code>telegram_giftcode</code>
|
|
10709
|
+
*
|
|
10710
|
+
* - <code>telegram_stickerset</code>
|
|
10711
|
+
*
|
|
10712
|
+
*
|
|
10713
|
+
*
|
|
10714
|
+
* <!-- end type -->
|
|
10397
10715
|
*/
|
|
10398
10716
|
type?: string;
|
|
10399
10717
|
/**
|
|
@@ -10607,12 +10925,27 @@ export class RpcError extends Error {
|
|
|
10607
10925
|
* Number of users that have already used this link to join
|
|
10608
10926
|
*/
|
|
10609
10927
|
requested?: number;
|
|
10928
|
+
/**
|
|
10929
|
+
* For
|
|
10930
|
+
* <a href="https://corefork.telegram.org/api/stars#star-subscriptions">Telegram
|
|
10931
|
+
* Star subscriptions »</a>, contains the number of chat
|
|
10932
|
+
* members which have already joined the chat using the link,
|
|
10933
|
+
* but have already left due to expiration of their
|
|
10934
|
+
* subscription.
|
|
10935
|
+
*/
|
|
10610
10936
|
subscriptionExpired?: number;
|
|
10611
10937
|
/**
|
|
10612
10938
|
* Custom description for the invite link, visible only to
|
|
10613
10939
|
* admins
|
|
10614
10940
|
*/
|
|
10615
10941
|
title?: string;
|
|
10942
|
+
/**
|
|
10943
|
+
* For
|
|
10944
|
+
* <a href="https://corefork.telegram.org/api/stars#star-subscriptions">Telegram
|
|
10945
|
+
* Star subscriptions »</a>, contains the pricing of the
|
|
10946
|
+
* subscription the user must activate to join the private
|
|
10947
|
+
* channel.
|
|
10948
|
+
*/
|
|
10616
10949
|
subscriptionPricing?: tl.TypeStarsSubscriptionPricing;
|
|
10617
10950
|
}
|
|
10618
10951
|
/**
|
|
@@ -10681,6 +11014,15 @@ export class RpcError extends Error {
|
|
|
10681
11014
|
* scam: be careful when interacting with it.
|
|
10682
11015
|
*/
|
|
10683
11016
|
fake?: boolean;
|
|
11017
|
+
/**
|
|
11018
|
+
* If set, indicates that the user has already paid for the
|
|
11019
|
+
* associated
|
|
11020
|
+
* <a href="https://corefork.telegram.org/api/stars#star-subscriptions">Telegram
|
|
11021
|
+
* Star subscriptions »</a> and it hasn't expired yet, so they
|
|
11022
|
+
* may re-join the channel using
|
|
11023
|
+
* {@link messages.RawImportChatInviteRequest} without
|
|
11024
|
+
* repeating the payment.
|
|
11025
|
+
*/
|
|
10684
11026
|
canRefulfillSubscription?: boolean;
|
|
10685
11027
|
/**
|
|
10686
11028
|
* Chat/supergroup/channel title
|
|
@@ -10707,7 +11049,20 @@ export class RpcError extends Error {
|
|
|
10707
11049
|
* color palette ID</a>
|
|
10708
11050
|
*/
|
|
10709
11051
|
color: number;
|
|
11052
|
+
/**
|
|
11053
|
+
* For
|
|
11054
|
+
* <a href="https://corefork.telegram.org/api/stars#star-subscriptions">Telegram
|
|
11055
|
+
* Star subscriptions »</a>, contains the pricing of the
|
|
11056
|
+
* subscription the user must activate to join the private
|
|
11057
|
+
* channel.
|
|
11058
|
+
*/
|
|
10710
11059
|
subscriptionPricing?: tl.TypeStarsSubscriptionPricing;
|
|
11060
|
+
/**
|
|
11061
|
+
* For
|
|
11062
|
+
* <a href="https://corefork.telegram.org/api/stars#star-subscriptions">Telegram
|
|
11063
|
+
* Star subscriptions »</a>, the ID of the payment form for the
|
|
11064
|
+
* subscription.
|
|
11065
|
+
*/
|
|
10711
11066
|
subscriptionFormId?: Long;
|
|
10712
11067
|
}
|
|
10713
11068
|
/**
|
|
@@ -10912,8 +11267,6 @@ export class RpcError extends Error {
|
|
|
10912
11267
|
* using {@link messages.RawGetCustomEmojiDocumentsRequest}
|
|
10913
11268
|
*/
|
|
10914
11269
|
thumbDocumentId?: Long;
|
|
10915
|
-
animated?: boolean;
|
|
10916
|
-
videos?: boolean;
|
|
10917
11270
|
/**
|
|
10918
11271
|
* Number of stickers in pack
|
|
10919
11272
|
*/
|
|
@@ -10974,7 +11327,22 @@ export class RpcError extends Error {
|
|
|
10974
11327
|
* button for bots
|
|
10975
11328
|
*/
|
|
10976
11329
|
menuButton?: tl.TypeBotMenuButton;
|
|
11330
|
+
/**
|
|
11331
|
+
* The HTTP link to the privacy policy of the bot. If not set,
|
|
11332
|
+
* then the <code>/privacy</code> command must be used, if
|
|
11333
|
+
* supported by the bot (i.e. if it's present in the
|
|
11334
|
+
* <code>commands</code> vector). If it isn't supported, then
|
|
11335
|
+
* <a href="https://telegram.org/privacy-tpa">https://telegram.org/privacy-tpa</a>
|
|
11336
|
+
* must be opened, instead.
|
|
11337
|
+
*/
|
|
10977
11338
|
privacyPolicyUrl?: string;
|
|
11339
|
+
/**
|
|
11340
|
+
* <a href="https://corefork.telegram.org/api/bots/webapps">Mini
|
|
11341
|
+
* app »</a> settings
|
|
11342
|
+
*
|
|
11343
|
+
*
|
|
11344
|
+
*/
|
|
11345
|
+
appSettings?: tl.TypeBotAppSettings;
|
|
10978
11346
|
}
|
|
10979
11347
|
/**
|
|
10980
11348
|
* Bot keyboard button
|
|
@@ -11365,6 +11733,21 @@ export class RpcError extends Error {
|
|
|
11365
11733
|
*/
|
|
11366
11734
|
maxQuantity: number;
|
|
11367
11735
|
}
|
|
11736
|
+
/**
|
|
11737
|
+
* Clipboard button: when clicked, the attached text must be
|
|
11738
|
+
* copied to the clipboard.
|
|
11739
|
+
*/
|
|
11740
|
+
interface RawKeyboardButtonCopy {
|
|
11741
|
+
_: 'keyboardButtonCopy';
|
|
11742
|
+
/**
|
|
11743
|
+
* Title of the button
|
|
11744
|
+
*/
|
|
11745
|
+
text: string;
|
|
11746
|
+
/**
|
|
11747
|
+
* The text that will be copied to the clipboard
|
|
11748
|
+
*/
|
|
11749
|
+
copyText: string;
|
|
11750
|
+
}
|
|
11368
11751
|
/**
|
|
11369
11752
|
* Inline keyboard row
|
|
11370
11753
|
*/
|
|
@@ -12011,6 +12394,12 @@ export class RpcError extends Error {
|
|
|
12011
12394
|
* Date joined
|
|
12012
12395
|
*/
|
|
12013
12396
|
date: number;
|
|
12397
|
+
/**
|
|
12398
|
+
* If set, contains the expiration date of the current
|
|
12399
|
+
* <a href="https://corefork.telegram.org/api/stars#star-subscriptions">Telegram
|
|
12400
|
+
* Star subscription period »</a> for the specified
|
|
12401
|
+
* participant.
|
|
12402
|
+
*/
|
|
12014
12403
|
subscriptionUntilDate?: number;
|
|
12015
12404
|
}
|
|
12016
12405
|
/**
|
|
@@ -12034,6 +12423,12 @@ export class RpcError extends Error {
|
|
|
12034
12423
|
* When did I join the channel/supergroup
|
|
12035
12424
|
*/
|
|
12036
12425
|
date: number;
|
|
12426
|
+
/**
|
|
12427
|
+
* If set, contains the expiration date of the current
|
|
12428
|
+
* <a href="https://corefork.telegram.org/api/stars#star-subscriptions">Telegram
|
|
12429
|
+
* Star subscription period »</a> for the specified
|
|
12430
|
+
* participant.
|
|
12431
|
+
*/
|
|
12037
12432
|
subscriptionUntilDate?: number;
|
|
12038
12433
|
}
|
|
12039
12434
|
/**
|
|
@@ -14171,6 +14566,13 @@ export class RpcError extends Error {
|
|
|
14171
14566
|
* Terms of service URL
|
|
14172
14567
|
*/
|
|
14173
14568
|
termsUrl?: string;
|
|
14569
|
+
/**
|
|
14570
|
+
* The number of seconds between consecutive Telegram Star
|
|
14571
|
+
* debiting for
|
|
14572
|
+
* <a href="https://corefork.telegram.org/api/subscriptions#bot-subscriptions">bot
|
|
14573
|
+
* subscription</a> invoices
|
|
14574
|
+
*/
|
|
14575
|
+
subscriptionPeriod?: number;
|
|
14174
14576
|
}
|
|
14175
14577
|
/**
|
|
14176
14578
|
* Payment identifier
|
|
@@ -15619,13 +16021,30 @@ export class RpcError extends Error {
|
|
|
15619
16021
|
*/
|
|
15620
16022
|
newStickerset: tl.TypeInputStickerSet;
|
|
15621
16023
|
}
|
|
16024
|
+
/**
|
|
16025
|
+
* Channel signature profiles were enabled/disabled.
|
|
16026
|
+
*/
|
|
15622
16027
|
interface RawChannelAdminLogEventActionToggleSignatureProfiles {
|
|
15623
16028
|
_: 'channelAdminLogEventActionToggleSignatureProfiles';
|
|
16029
|
+
/**
|
|
16030
|
+
* New value
|
|
16031
|
+
*/
|
|
15624
16032
|
newValue: boolean;
|
|
15625
16033
|
}
|
|
16034
|
+
/**
|
|
16035
|
+
* A paid subscriber has extended their
|
|
16036
|
+
* <a href="https://corefork.telegram.org/api/stars#star-subscriptions">Telegram
|
|
16037
|
+
* Star subscription »</a>.
|
|
16038
|
+
*/
|
|
15626
16039
|
interface RawChannelAdminLogEventActionParticipantSubExtend {
|
|
15627
16040
|
_: 'channelAdminLogEventActionParticipantSubExtend';
|
|
16041
|
+
/**
|
|
16042
|
+
* Same as <code>new_participant</code>.
|
|
16043
|
+
*/
|
|
15628
16044
|
prevParticipant: tl.TypeChannelParticipant;
|
|
16045
|
+
/**
|
|
16046
|
+
* The subscriber that extended the subscription.
|
|
16047
|
+
*/
|
|
15629
16048
|
newParticipant: tl.TypeChannelParticipant;
|
|
15630
16049
|
}
|
|
15631
16050
|
/**
|
|
@@ -15747,6 +16166,9 @@ export class RpcError extends Error {
|
|
|
15747
16166
|
* events
|
|
15748
16167
|
*/
|
|
15749
16168
|
forums?: boolean;
|
|
16169
|
+
/**
|
|
16170
|
+
* {@link RawChannelAdminLogEventActionParticipantSubExtend}
|
|
16171
|
+
*/
|
|
15750
16172
|
subExtend?: boolean;
|
|
15751
16173
|
}
|
|
15752
16174
|
/**
|
|
@@ -19288,6 +19710,9 @@ export class RpcError extends Error {
|
|
|
19288
19710
|
* sent in groups.
|
|
19289
19711
|
*/
|
|
19290
19712
|
photo?: tl.TypePhoto;
|
|
19713
|
+
/**
|
|
19714
|
+
* If set, contains some media.
|
|
19715
|
+
*/
|
|
19291
19716
|
media?: tl.TypeMessageMedia;
|
|
19292
19717
|
/**
|
|
19293
19718
|
* If set, the sponsored message should use the
|
|
@@ -19420,6 +19845,10 @@ export class RpcError extends Error {
|
|
|
19420
19845
|
* List of recent peers and their reactions
|
|
19421
19846
|
*/
|
|
19422
19847
|
recentReactions?: tl.TypeMessagePeerReaction[];
|
|
19848
|
+
/**
|
|
19849
|
+
* <a href="https://corefork.telegram.org/api/reactions#paid-reactions">Paid
|
|
19850
|
+
* Telegram Star reactions leaderboard »</a> for this message.
|
|
19851
|
+
*/
|
|
19423
19852
|
topReactors?: tl.TypeMessageReactor[];
|
|
19424
19853
|
}
|
|
19425
19854
|
/**
|
|
@@ -19753,6 +20182,10 @@ export class RpcError extends Error {
|
|
|
19753
20182
|
* compact mode.
|
|
19754
20183
|
*/
|
|
19755
20184
|
fullsize?: boolean;
|
|
20185
|
+
/**
|
|
20186
|
+
* If set, the app must be opened in fullscreen
|
|
20187
|
+
*/
|
|
20188
|
+
fullscreen?: boolean;
|
|
19756
20189
|
/**
|
|
19757
20190
|
* Webview session ID (only returned by
|
|
19758
20191
|
* <a href="https://corefork.telegram.org/api/bots/webapps#inline-button-mini-apps">inline
|
|
@@ -19953,20 +20386,64 @@ export class RpcError extends Error {
|
|
|
19953
20386
|
* Used to top up the
|
|
19954
20387
|
* <a href="https://corefork.telegram.org/api/stars">Telegram
|
|
19955
20388
|
* Stars</a> balance of the current account or someone else's
|
|
19956
|
-
* account
|
|
20389
|
+
* account, or to start a
|
|
20390
|
+
* <a href="https://corefork.telegram.org/api/giveaways#star-giveaways">Telegram
|
|
20391
|
+
* Star giveaway »</a>.
|
|
19957
20392
|
*/
|
|
19958
20393
|
interface RawInputInvoiceStars {
|
|
19959
20394
|
_: 'inputInvoiceStars';
|
|
19960
20395
|
/**
|
|
19961
|
-
*
|
|
20396
|
+
* An {@link RawInputStorePaymentStarsGiveaway},
|
|
20397
|
+
* {@link RawInputStorePaymentStarsTopup} or
|
|
19962
20398
|
* {@link RawInputStorePaymentStarsGift}.
|
|
19963
20399
|
*/
|
|
19964
20400
|
purpose: tl.TypeInputStorePaymentPurpose;
|
|
19965
20401
|
}
|
|
20402
|
+
/**
|
|
20403
|
+
* Used to pay for a
|
|
20404
|
+
* <a href="https://corefork.telegram.org/api/stars#star-subscriptions">Telegram
|
|
20405
|
+
* Star subscription »</a>.
|
|
20406
|
+
*/
|
|
19966
20407
|
interface RawInputInvoiceChatInviteSubscription {
|
|
19967
20408
|
_: 'inputInvoiceChatInviteSubscription';
|
|
20409
|
+
/**
|
|
20410
|
+
* The
|
|
20411
|
+
* <a href="https://corefork.telegram.org/api/stars#star-subscriptions">invitation
|
|
20412
|
+
* link of the Telegram Star subscription »</a>
|
|
20413
|
+
*/
|
|
19968
20414
|
hash: string;
|
|
19969
20415
|
}
|
|
20416
|
+
/**
|
|
20417
|
+
* Used to buy a
|
|
20418
|
+
* <a href="https://corefork.telegram.org/api/gifts">Telegram
|
|
20419
|
+
* Star Gift, see here »</a> for more info.
|
|
20420
|
+
*/
|
|
20421
|
+
interface RawInputInvoiceStarGift {
|
|
20422
|
+
_: 'inputInvoiceStarGift';
|
|
20423
|
+
/**
|
|
20424
|
+
* If set, your name will be hidden if the destination user
|
|
20425
|
+
* decides to display the gift on their profile (they will
|
|
20426
|
+
* still see that you sent the gift)
|
|
20427
|
+
*/
|
|
20428
|
+
hideName?: boolean;
|
|
20429
|
+
/**
|
|
20430
|
+
* Identifier of the user that will receive the gift
|
|
20431
|
+
*/
|
|
20432
|
+
userId: tl.TypeInputUser;
|
|
20433
|
+
/**
|
|
20434
|
+
* Identifier of the gift, from
|
|
20435
|
+
* {@link RawStarGift}.<code>id</code>
|
|
20436
|
+
*/
|
|
20437
|
+
giftId: Long;
|
|
20438
|
+
/**
|
|
20439
|
+
* Optional message, attached with the gift.
|
|
20440
|
+
*
|
|
20441
|
+
* The maximum length for this field is specified in the
|
|
20442
|
+
* <a href="https://corefork.telegram.org/api/config#stargifts-message-length-max">stargifts_message_length_max
|
|
20443
|
+
* client configuration value »</a>.
|
|
20444
|
+
*/
|
|
20445
|
+
message?: tl.TypeTextWithEntities;
|
|
20446
|
+
}
|
|
19970
20447
|
/**
|
|
19971
20448
|
* Info about a Telegram Premium purchase
|
|
19972
20449
|
*/
|
|
@@ -20055,6 +20532,10 @@ export class RpcError extends Error {
|
|
|
20055
20532
|
* each currency (2 for the majority of currencies).
|
|
20056
20533
|
*/
|
|
20057
20534
|
amount: Long;
|
|
20535
|
+
/**
|
|
20536
|
+
* Message attached with the gift
|
|
20537
|
+
*/
|
|
20538
|
+
message?: tl.TypeTextWithEntities;
|
|
20058
20539
|
}
|
|
20059
20540
|
/**
|
|
20060
20541
|
* Used to pay for a
|
|
@@ -20190,19 +20671,87 @@ export class RpcError extends Error {
|
|
|
20190
20671
|
*/
|
|
20191
20672
|
amount: Long;
|
|
20192
20673
|
}
|
|
20674
|
+
/**
|
|
20675
|
+
* Used to pay for a
|
|
20676
|
+
* <a href="https://corefork.telegram.org/api/giveaways#star-giveaways">star
|
|
20677
|
+
* giveaway, see here »</a> for more info.
|
|
20678
|
+
*/
|
|
20193
20679
|
interface RawInputStorePaymentStarsGiveaway {
|
|
20194
20680
|
_: 'inputStorePaymentStarsGiveaway';
|
|
20681
|
+
/**
|
|
20682
|
+
* If set, only new subscribers starting from the giveaway
|
|
20683
|
+
* creation date will be able to participate to the giveaway.
|
|
20684
|
+
*/
|
|
20195
20685
|
onlyNewSubscribers?: boolean;
|
|
20686
|
+
/**
|
|
20687
|
+
* If set, giveaway winners are public and will be listed in a
|
|
20688
|
+
* {@link RawMessageMediaGiveawayResults} message that will be
|
|
20689
|
+
* automatically sent to the channel once the giveaway ends.
|
|
20690
|
+
*/
|
|
20196
20691
|
winnersAreVisible?: boolean;
|
|
20692
|
+
/**
|
|
20693
|
+
* Total number of Telegram Stars being given away (each user
|
|
20694
|
+
* will receive <code>stars/users</code> stars).
|
|
20695
|
+
*/
|
|
20197
20696
|
stars: Long;
|
|
20697
|
+
/**
|
|
20698
|
+
* The channel/supergroup starting the giveaway, that the user
|
|
20699
|
+
* must join to participate, that will receive the giveaway
|
|
20700
|
+
* <a href="https://corefork.telegram.org/api/boost">boosts</a>;
|
|
20701
|
+
* see
|
|
20702
|
+
* <a href="https://corefork.telegram.org/api/giveaways">here
|
|
20703
|
+
* »</a> for more info on giveaways.
|
|
20704
|
+
*/
|
|
20198
20705
|
boostPeer: tl.TypeInputPeer;
|
|
20706
|
+
/**
|
|
20707
|
+
* Additional channels that the user must join to participate
|
|
20708
|
+
* to the giveaway can be specified here.
|
|
20709
|
+
*/
|
|
20199
20710
|
additionalPeers?: tl.TypeInputPeer[];
|
|
20711
|
+
/**
|
|
20712
|
+
* The set of users that can participate to the giveaway can be
|
|
20713
|
+
* restricted by passing here an explicit whitelist of up to
|
|
20714
|
+
* <a href="https://corefork.telegram.org/api/config#giveaway-countries-max">giveaway_countries_max</a>
|
|
20715
|
+
* countries, specified as two-letter ISO 3166-1 alpha-2
|
|
20716
|
+
* country codes.
|
|
20717
|
+
*/
|
|
20200
20718
|
countriesIso2?: string[];
|
|
20719
|
+
/**
|
|
20720
|
+
* Can contain a textual description of additional giveaway
|
|
20721
|
+
* prizes.
|
|
20722
|
+
*/
|
|
20201
20723
|
prizeDescription?: string;
|
|
20724
|
+
/**
|
|
20725
|
+
* Random ID to avoid resending the giveaway
|
|
20726
|
+
*/
|
|
20202
20727
|
randomId: Long;
|
|
20728
|
+
/**
|
|
20729
|
+
* The end date of the giveaway, must be at most
|
|
20730
|
+
* <a href="https://corefork.telegram.org/api/config#giveaway-period-max">giveaway_period_max</a>
|
|
20731
|
+
* seconds in the future; see
|
|
20732
|
+
* <a href="https://corefork.telegram.org/api/giveaways">here
|
|
20733
|
+
* »</a> for more info on giveaways.
|
|
20734
|
+
*/
|
|
20203
20735
|
untilDate: number;
|
|
20736
|
+
/**
|
|
20737
|
+
* Three-letter ISO 4217
|
|
20738
|
+
* <a href="https://corefork.telegram.org/bots/payments#supported-currencies">currency</a>
|
|
20739
|
+
* code
|
|
20740
|
+
*/
|
|
20204
20741
|
currency: string;
|
|
20742
|
+
/**
|
|
20743
|
+
* Total price in the smallest units of the currency (integer,
|
|
20744
|
+
* not float/double). For example, for a price of <code>US$
|
|
20745
|
+
* 1.45</code> pass <code>amount = 145</code>. See the exp
|
|
20746
|
+
* parameter in
|
|
20747
|
+
* <a href="https://corefork.telegram.org/bots/payments/currencies.json">currencies.json</a>,
|
|
20748
|
+
* it shows the number of digits past the decimal point for
|
|
20749
|
+
* each currency (2 for the majority of currencies).
|
|
20750
|
+
*/
|
|
20205
20751
|
amount: Long;
|
|
20752
|
+
/**
|
|
20753
|
+
* Number of winners.
|
|
20754
|
+
*/
|
|
20206
20755
|
users: number;
|
|
20207
20756
|
}
|
|
20208
20757
|
/**
|
|
@@ -20322,6 +20871,11 @@ export class RpcError extends Error {
|
|
|
20322
20871
|
*/
|
|
20323
20872
|
documentId: Long;
|
|
20324
20873
|
}
|
|
20874
|
+
/**
|
|
20875
|
+
* Represents a
|
|
20876
|
+
* <a href="https://corefork.telegram.org/api/reactions#paid-reactions">paid
|
|
20877
|
+
* Telegram Star reaction »</a>.
|
|
20878
|
+
*/
|
|
20325
20879
|
interface RawReactionPaid {
|
|
20326
20880
|
_: 'reactionPaid';
|
|
20327
20881
|
}
|
|
@@ -21809,12 +22363,35 @@ export class RpcError extends Error {
|
|
|
21809
22363
|
*/
|
|
21810
22364
|
date: number;
|
|
21811
22365
|
}
|
|
22366
|
+
/**
|
|
22367
|
+
* Contains info about a
|
|
22368
|
+
* <a href="https://corefork.telegram.org/api/giveaways#star-giveaways">prepaid
|
|
22369
|
+
* Telegram Star giveaway »</a>.
|
|
22370
|
+
*/
|
|
21812
22371
|
interface RawPrepaidStarsGiveaway {
|
|
21813
22372
|
_: 'prepaidStarsGiveaway';
|
|
22373
|
+
/**
|
|
22374
|
+
* Prepaid giveaway ID.
|
|
22375
|
+
*/
|
|
21814
22376
|
id: Long;
|
|
22377
|
+
/**
|
|
22378
|
+
* Number of given away
|
|
22379
|
+
* <a href="https://corefork.telegram.org/api/stars">Telegram
|
|
22380
|
+
* Stars »</a>
|
|
22381
|
+
*/
|
|
21815
22382
|
stars: Long;
|
|
22383
|
+
/**
|
|
22384
|
+
* Number of giveaway winners
|
|
22385
|
+
*/
|
|
21816
22386
|
quantity: number;
|
|
22387
|
+
/**
|
|
22388
|
+
* Number of boosts the channel will gain by launching the
|
|
22389
|
+
* giveaway.
|
|
22390
|
+
*/
|
|
21817
22391
|
boosts: number;
|
|
22392
|
+
/**
|
|
22393
|
+
* When was the giveaway paid for
|
|
22394
|
+
*/
|
|
21818
22395
|
date: number;
|
|
21819
22396
|
}
|
|
21820
22397
|
/**
|
|
@@ -21879,6 +22456,10 @@ export class RpcError extends Error {
|
|
|
21879
22456
|
* otherwise it counts as a single boost.
|
|
21880
22457
|
*/
|
|
21881
22458
|
multiplier?: number;
|
|
22459
|
+
/**
|
|
22460
|
+
* Number of Telegram Stars distributed among the winners of
|
|
22461
|
+
* the giveaway.
|
|
22462
|
+
*/
|
|
21882
22463
|
stars?: Long;
|
|
21883
22464
|
}
|
|
21884
22465
|
/**
|
|
@@ -23134,6 +23715,11 @@ export class RpcError extends Error {
|
|
|
23134
23715
|
*/
|
|
23135
23716
|
interface RawBroadcastRevenueBalances {
|
|
23136
23717
|
_: 'broadcastRevenueBalances';
|
|
23718
|
+
/**
|
|
23719
|
+
* If set, the available balance can be
|
|
23720
|
+
* <a href="https://corefork.telegram.org/api/revenue#withdrawing-revenue">withdrawn
|
|
23721
|
+
* »</a>.
|
|
23722
|
+
*/
|
|
23137
23723
|
withdrawalEnabled?: boolean;
|
|
23138
23724
|
/**
|
|
23139
23725
|
* Amount of not-yet-withdrawn cryptocurrency.
|
|
@@ -23308,6 +23894,16 @@ export class RpcError extends Error {
|
|
|
23308
23894
|
interface RawStarsTransactionPeerAds {
|
|
23309
23895
|
_: 'starsTransactionPeerAds';
|
|
23310
23896
|
}
|
|
23897
|
+
/**
|
|
23898
|
+
* Describes a
|
|
23899
|
+
* <a href="https://corefork.telegram.org/api/stars">Telegram
|
|
23900
|
+
* Star</a> transaction used to pay for paid API usage, such as
|
|
23901
|
+
* <a href="https://corefork.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once">paid
|
|
23902
|
+
* bot broadcasts</a>.
|
|
23903
|
+
*/
|
|
23904
|
+
interface RawStarsTransactionPeerAPI {
|
|
23905
|
+
_: 'starsTransactionPeerAPI';
|
|
23906
|
+
}
|
|
23311
23907
|
/**
|
|
23312
23908
|
* <a href="https://corefork.telegram.org/api/stars">Telegram
|
|
23313
23909
|
* Stars topup option</a>.
|
|
@@ -23369,6 +23965,11 @@ export class RpcError extends Error {
|
|
|
23369
23965
|
* <code>peer.peer</code>.
|
|
23370
23966
|
*/
|
|
23371
23967
|
gift?: boolean;
|
|
23968
|
+
/**
|
|
23969
|
+
* This transaction is a
|
|
23970
|
+
* <a href="https://corefork.telegram.org/api/reactions#paid-reactions">paid
|
|
23971
|
+
* reaction »</a>.
|
|
23972
|
+
*/
|
|
23372
23973
|
reaction?: boolean;
|
|
23373
23974
|
/**
|
|
23374
23975
|
* Transaction ID.
|
|
@@ -23377,7 +23978,7 @@ export class RpcError extends Error {
|
|
|
23377
23978
|
/**
|
|
23378
23979
|
* Amount of Stars (negative for outgoing transactions).
|
|
23379
23980
|
*/
|
|
23380
|
-
stars:
|
|
23981
|
+
stars: tl.TypeStarsAmount;
|
|
23381
23982
|
/**
|
|
23382
23983
|
* Date of the transaction (unixtime).
|
|
23383
23984
|
*/
|
|
@@ -23436,8 +24037,65 @@ export class RpcError extends Error {
|
|
|
23436
24037
|
* media »</a>.
|
|
23437
24038
|
*/
|
|
23438
24039
|
extendedMedia?: tl.TypeMessageMedia[];
|
|
24040
|
+
/**
|
|
24041
|
+
* The number of seconds between consecutive Telegram Star
|
|
24042
|
+
* debiting for
|
|
24043
|
+
* <a href="https://corefork.telegram.org/api/stars#star-subscriptions">Telegram
|
|
24044
|
+
* Star subscriptions »</a>.
|
|
24045
|
+
*/
|
|
23439
24046
|
subscriptionPeriod?: number;
|
|
24047
|
+
/**
|
|
24048
|
+
* ID of the message containing the
|
|
24049
|
+
* {@link RawMessageMediaGiveaway}, for incoming
|
|
24050
|
+
* <a href="https://corefork.telegram.org/api/giveaways#star-giveaways">star
|
|
24051
|
+
* giveaway prizes</a>.
|
|
24052
|
+
*/
|
|
23440
24053
|
giveawayPostId?: number;
|
|
24054
|
+
/**
|
|
24055
|
+
* This transaction indicates a purchase or a sale (conversion
|
|
24056
|
+
* back to Stars) of a
|
|
24057
|
+
* <a href="https://corefork.telegram.org/api/stars">gift
|
|
24058
|
+
* »</a>.
|
|
24059
|
+
*/
|
|
24060
|
+
stargift?: tl.TypeStarGift;
|
|
24061
|
+
/**
|
|
24062
|
+
* This transaction is payment for
|
|
24063
|
+
* <a href="https://corefork.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once">paid
|
|
24064
|
+
* bot broadcasts</a>.
|
|
24065
|
+
*
|
|
24066
|
+
* Paid broadcasts are only allowed if the
|
|
24067
|
+
* <code>allow_paid_floodskip</code> parameter of
|
|
24068
|
+
* {@link messages.RawSendMessageRequest} and other message
|
|
24069
|
+
* sending methods is set while trying to broadcast more than
|
|
24070
|
+
* 30 messages per second to bot users.
|
|
24071
|
+
*
|
|
24072
|
+
* The integer value returned by this flag indicates the number
|
|
24073
|
+
* of billed API calls.
|
|
24074
|
+
*/
|
|
24075
|
+
floodskipNumber?: number;
|
|
24076
|
+
/**
|
|
24077
|
+
* This transaction is the receival (or refund) of an
|
|
24078
|
+
* <a href="https://corefork.telegram.org/api/bots/referrals">affiliate
|
|
24079
|
+
* commission</a> (i.e. this is the transaction received by the
|
|
24080
|
+
* peer that created the
|
|
24081
|
+
* <a href="https://corefork.telegram.org/api/links#referral-links">referral
|
|
24082
|
+
* link</a>, flag 17 is for transactions made by users that
|
|
24083
|
+
* imported the referral link).
|
|
24084
|
+
*/
|
|
24085
|
+
starrefCommissionPermille?: number;
|
|
24086
|
+
/**
|
|
24087
|
+
* For transactions made by
|
|
24088
|
+
* <a href="https://corefork.telegram.org/api/bots/referrals">referred
|
|
24089
|
+
* users</a>, the peer that received the affiliate commission.
|
|
24090
|
+
*/
|
|
24091
|
+
starrefPeer?: tl.TypePeer;
|
|
24092
|
+
/**
|
|
24093
|
+
* For transactions made by
|
|
24094
|
+
* <a href="https://corefork.telegram.org/api/bots/referrals">referred
|
|
24095
|
+
* users</a>, the amount of Telegram Stars received by the
|
|
24096
|
+
* affiliate, can be negative for refunds.
|
|
24097
|
+
*/
|
|
24098
|
+
starrefAmount?: tl.TypeStarsAmount;
|
|
23441
24099
|
}
|
|
23442
24100
|
/**
|
|
23443
24101
|
* A story found using
|
|
@@ -23486,22 +24144,22 @@ export class RpcError extends Error {
|
|
|
23486
24144
|
_: 'starsRevenueStatus';
|
|
23487
24145
|
/**
|
|
23488
24146
|
* If set, the user may
|
|
23489
|
-
* <a href="https://corefork.telegram.org/api/stars#withdrawing-
|
|
24147
|
+
* <a href="https://corefork.telegram.org/api/stars#withdrawing-stars">withdraw</a>
|
|
23490
24148
|
* up to <code>available_balance</code> stars.
|
|
23491
24149
|
*/
|
|
23492
24150
|
withdrawalEnabled?: boolean;
|
|
23493
24151
|
/**
|
|
23494
24152
|
* Amount of not-yet-withdrawn Telegram Stars.
|
|
23495
24153
|
*/
|
|
23496
|
-
currentBalance:
|
|
24154
|
+
currentBalance: tl.TypeStarsAmount;
|
|
23497
24155
|
/**
|
|
23498
24156
|
* Amount of withdrawable Telegram Stars.
|
|
23499
24157
|
*/
|
|
23500
|
-
availableBalance:
|
|
24158
|
+
availableBalance: tl.TypeStarsAmount;
|
|
23501
24159
|
/**
|
|
23502
24160
|
* Total amount of earned Telegram Stars.
|
|
23503
24161
|
*/
|
|
23504
|
-
overallRevenue:
|
|
24162
|
+
overallRevenue: tl.TypeStarsAmount;
|
|
23505
24163
|
/**
|
|
23506
24164
|
* Unixtime indicating when will withdrawal be available to the
|
|
23507
24165
|
* user. If not set, withdrawal can be started now.
|
|
@@ -23578,104 +24236,517 @@ export class RpcError extends Error {
|
|
|
23578
24236
|
*/
|
|
23579
24237
|
media: tl.TypeMessageMedia;
|
|
23580
24238
|
}
|
|
24239
|
+
/**
|
|
24240
|
+
* Pricing of a
|
|
24241
|
+
* <a href="https://corefork.telegram.org/api/invites#paid-invite-links">Telegram
|
|
24242
|
+
* Star subscription »</a>.
|
|
24243
|
+
*/
|
|
23581
24244
|
interface RawStarsSubscriptionPricing {
|
|
23582
24245
|
_: 'starsSubscriptionPricing';
|
|
24246
|
+
/**
|
|
24247
|
+
* The user should pay <code>amount</code> stars every
|
|
24248
|
+
* <code>period</code> seconds to gain and maintain access to
|
|
24249
|
+
* the channel.
|
|
24250
|
+
*
|
|
24251
|
+
* Currently the only allowed subscription period is
|
|
24252
|
+
* <code>30*24*60*60</code>, i.e. the user will be debited
|
|
24253
|
+
* amount stars every month.
|
|
24254
|
+
*/
|
|
23583
24255
|
period: number;
|
|
24256
|
+
/**
|
|
24257
|
+
* Price of the subscription in Telegram Stars.
|
|
24258
|
+
*/
|
|
23584
24259
|
amount: Long;
|
|
23585
24260
|
}
|
|
24261
|
+
/**
|
|
24262
|
+
* Represents a
|
|
24263
|
+
* <a href="https://corefork.telegram.org/api/invites#paid-invite-links">Telegram
|
|
24264
|
+
* Star subscription »</a>.
|
|
24265
|
+
*/
|
|
23586
24266
|
interface RawStarsSubscription {
|
|
23587
24267
|
_: 'starsSubscription';
|
|
24268
|
+
/**
|
|
24269
|
+
* Whether this subscription was cancelled.
|
|
24270
|
+
*/
|
|
23588
24271
|
canceled?: boolean;
|
|
24272
|
+
/**
|
|
24273
|
+
* Whether we left the associated private channel, but we can
|
|
24274
|
+
* still rejoin it using
|
|
24275
|
+
* {@link payments.RawFulfillStarsSubscriptionRequest} because
|
|
24276
|
+
* the current subscription period hasn't expired yet.
|
|
24277
|
+
*/
|
|
23589
24278
|
canRefulfill?: boolean;
|
|
24279
|
+
/**
|
|
24280
|
+
* Whether this subscription has expired because there are not
|
|
24281
|
+
* enough stars on the user's balance to extend it.
|
|
24282
|
+
*/
|
|
23590
24283
|
missingBalance?: boolean;
|
|
24284
|
+
/**
|
|
24285
|
+
* Set if this
|
|
24286
|
+
* <a href="https://corefork.telegram.org/api/subscriptions#bot-subscriptions">bot
|
|
24287
|
+
* subscription</a> was cancelled by the bot
|
|
24288
|
+
*/
|
|
24289
|
+
botCanceled?: boolean;
|
|
24290
|
+
/**
|
|
24291
|
+
* Subscription ID.
|
|
24292
|
+
*/
|
|
23591
24293
|
id: string;
|
|
24294
|
+
/**
|
|
24295
|
+
* Identifier of the associated private chat.
|
|
24296
|
+
*/
|
|
23592
24297
|
peer: tl.TypePeer;
|
|
24298
|
+
/**
|
|
24299
|
+
* Expiration date of the current subscription period.
|
|
24300
|
+
*/
|
|
23593
24301
|
untilDate: number;
|
|
24302
|
+
/**
|
|
24303
|
+
* Pricing of the subscription in Telegram Stars.
|
|
24304
|
+
*/
|
|
23594
24305
|
pricing: tl.TypeStarsSubscriptionPricing;
|
|
24306
|
+
/**
|
|
24307
|
+
* Invitation link, used to renew the subscription after
|
|
24308
|
+
* cancellation or expiration.
|
|
24309
|
+
*/
|
|
23595
24310
|
chatInviteHash?: string;
|
|
24311
|
+
/**
|
|
24312
|
+
* For bot subscriptions, the title of the subscription invoice
|
|
24313
|
+
*/
|
|
24314
|
+
title?: string;
|
|
24315
|
+
/**
|
|
24316
|
+
* For bot subscriptions, the photo from the subscription
|
|
24317
|
+
* invoice
|
|
24318
|
+
*/
|
|
24319
|
+
photo?: tl.TypeWebDocument;
|
|
24320
|
+
/**
|
|
24321
|
+
* For bot subscriptions, the
|
|
24322
|
+
* <a href="https://corefork.telegram.org/api/links#invoice-links">identifier</a>
|
|
24323
|
+
* of the subscription invoice
|
|
24324
|
+
*/
|
|
24325
|
+
invoiceSlug?: string;
|
|
23596
24326
|
}
|
|
24327
|
+
/**
|
|
24328
|
+
* Info about a user in the
|
|
24329
|
+
* <a href="https://corefork.telegram.org/api/reactions#paid-reactions">paid
|
|
24330
|
+
* Star reactions leaderboard</a> for a message.
|
|
24331
|
+
*/
|
|
23597
24332
|
interface RawMessageReactor {
|
|
23598
24333
|
_: 'messageReactor';
|
|
24334
|
+
/**
|
|
24335
|
+
* If set, the reactor is one of the most active reactors; may
|
|
24336
|
+
* be unset if the reactor is the current user.
|
|
24337
|
+
*/
|
|
23599
24338
|
top?: boolean;
|
|
24339
|
+
/**
|
|
24340
|
+
* If set, this reactor is the current user.
|
|
24341
|
+
*/
|
|
23600
24342
|
my?: boolean;
|
|
24343
|
+
/**
|
|
24344
|
+
* If set, the reactor is anonymous.
|
|
24345
|
+
*/
|
|
23601
24346
|
anonymous?: boolean;
|
|
24347
|
+
/**
|
|
24348
|
+
* Identifier of the peer that reacted: may be unset for
|
|
24349
|
+
* anonymous reactors different from the current user (i.e. if
|
|
24350
|
+
* the current user sent an anonymous reaction
|
|
24351
|
+
* <code>anonymous</code> will be set but this field will also
|
|
24352
|
+
* be set).
|
|
24353
|
+
*/
|
|
23602
24354
|
peerId?: tl.TypePeer;
|
|
24355
|
+
/**
|
|
24356
|
+
* The number of sent Telegram Stars.
|
|
24357
|
+
*/
|
|
23603
24358
|
count: number;
|
|
23604
24359
|
}
|
|
24360
|
+
/**
|
|
24361
|
+
* Contains info about a
|
|
24362
|
+
* <a href="https://corefork.telegram.org/api/giveaways#star-giveaways">Telegram
|
|
24363
|
+
* Star giveaway</a> option.
|
|
24364
|
+
*/
|
|
23605
24365
|
interface RawStarsGiveawayOption {
|
|
23606
24366
|
_: 'starsGiveawayOption';
|
|
24367
|
+
/**
|
|
24368
|
+
* If set, this option must only be shown in the full list of
|
|
24369
|
+
* giveaway options (i.e. they must be added to the list only
|
|
24370
|
+
* when the user clicks on the expand button).
|
|
24371
|
+
*/
|
|
23607
24372
|
extended?: boolean;
|
|
24373
|
+
/**
|
|
24374
|
+
* If set, this option must be pre-selected by default in the
|
|
24375
|
+
* option list.
|
|
24376
|
+
*/
|
|
23608
24377
|
default?: boolean;
|
|
24378
|
+
/**
|
|
24379
|
+
* The number of Telegram Stars that will be distributed among
|
|
24380
|
+
* winners
|
|
24381
|
+
*/
|
|
23609
24382
|
stars: Long;
|
|
24383
|
+
/**
|
|
24384
|
+
* Number of times the chat will be boosted for one year if the
|
|
24385
|
+
* {@link RawInputStorePaymentStarsGiveaway}.<code>boost_peer</code>
|
|
24386
|
+
* flag is populated
|
|
24387
|
+
*/
|
|
23610
24388
|
yearlyBoosts: number;
|
|
24389
|
+
/**
|
|
24390
|
+
* Identifier of the store product associated with the option,
|
|
24391
|
+
* official apps only.
|
|
24392
|
+
*/
|
|
23611
24393
|
storeProduct?: string;
|
|
24394
|
+
/**
|
|
24395
|
+
* Three-letter ISO 4217
|
|
24396
|
+
* <a href="https://corefork.telegram.org/bots/payments#supported-currencies">currency</a>
|
|
24397
|
+
* code
|
|
24398
|
+
*/
|
|
23612
24399
|
currency: string;
|
|
24400
|
+
/**
|
|
24401
|
+
* Total price in the smallest units of the currency (integer,
|
|
24402
|
+
* not float/double). For example, for a price of <code>US$
|
|
24403
|
+
* 1.45</code> pass <code>amount = 145</code>. See the exp
|
|
24404
|
+
* parameter in
|
|
24405
|
+
* <a href="https://corefork.telegram.org/bots/payments/currencies.json">currencies.json</a>,
|
|
24406
|
+
* it shows the number of digits past the decimal point for
|
|
24407
|
+
* each currency (2 for the majority of currencies).
|
|
24408
|
+
*/
|
|
23613
24409
|
amount: Long;
|
|
24410
|
+
/**
|
|
24411
|
+
* Allowed options for the number of giveaway winners.
|
|
24412
|
+
*/
|
|
23614
24413
|
winners: tl.TypeStarsGiveawayWinnersOption[];
|
|
23615
24414
|
}
|
|
24415
|
+
/**
|
|
24416
|
+
* Allowed options for the number of giveaway winners.
|
|
24417
|
+
*/
|
|
23616
24418
|
interface RawStarsGiveawayWinnersOption {
|
|
23617
24419
|
_: 'starsGiveawayWinnersOption';
|
|
24420
|
+
/**
|
|
24421
|
+
* If set, this option must be pre-selected by default in the
|
|
24422
|
+
* option list.
|
|
24423
|
+
*/
|
|
23618
24424
|
default?: boolean;
|
|
24425
|
+
/**
|
|
24426
|
+
* The number of users that will be randomly chosen as winners.
|
|
24427
|
+
*/
|
|
23619
24428
|
users: number;
|
|
24429
|
+
/**
|
|
24430
|
+
* The number of
|
|
24431
|
+
* <a href="https://corefork.telegram.org/api/stars">Telegram
|
|
24432
|
+
* Stars</a> each winner will receive.
|
|
24433
|
+
*/
|
|
23620
24434
|
perUserStars: Long;
|
|
23621
24435
|
}
|
|
23622
24436
|
/**
|
|
23623
|
-
*
|
|
23624
|
-
*
|
|
23625
|
-
*
|
|
23626
|
-
* {@link messages.RawCreateChatRequest}: it indicates we
|
|
23627
|
-
* couldn't add a user to a chat because of their privacy
|
|
23628
|
-
* settings; if required, an
|
|
23629
|
-
* <a href="https://corefork.telegram.org/api/invites">invite
|
|
23630
|
-
* link</a> can be shared with the user, instead.
|
|
24437
|
+
* Represents a
|
|
24438
|
+
* <a href="https://corefork.telegram.org/api/gifts">star gift,
|
|
24439
|
+
* see here »</a> for more info.
|
|
23631
24440
|
*/
|
|
23632
|
-
interface
|
|
23633
|
-
_: '
|
|
24441
|
+
interface RawStarGift {
|
|
24442
|
+
_: 'starGift';
|
|
23634
24443
|
/**
|
|
23635
|
-
*
|
|
24444
|
+
* Whether this is a limited-supply gift.
|
|
23636
24445
|
*/
|
|
23637
|
-
|
|
24446
|
+
limited?: boolean;
|
|
24447
|
+
/**
|
|
24448
|
+
* Whether this gift sold out and cannot be bought anymore.
|
|
24449
|
+
*/
|
|
24450
|
+
soldOut?: boolean;
|
|
24451
|
+
/**
|
|
24452
|
+
* Whether this is a birthday-themed gift
|
|
24453
|
+
*/
|
|
24454
|
+
birthday?: boolean;
|
|
24455
|
+
/**
|
|
24456
|
+
* Identifier of the gift
|
|
24457
|
+
*/
|
|
24458
|
+
id: Long;
|
|
24459
|
+
/**
|
|
24460
|
+
* <a href="https://corefork.telegram.org/api/stickers">Sticker</a>
|
|
24461
|
+
* that represents the gift.
|
|
24462
|
+
*/
|
|
24463
|
+
sticker: tl.TypeDocument;
|
|
24464
|
+
/**
|
|
24465
|
+
* Price of the gift in
|
|
24466
|
+
* <a href="https://corefork.telegram.org/api/stars">Telegram
|
|
24467
|
+
* Stars</a>.
|
|
24468
|
+
*/
|
|
24469
|
+
stars: Long;
|
|
24470
|
+
/**
|
|
24471
|
+
* For limited-supply gifts: the remaining number of gifts that
|
|
24472
|
+
* may be bought.
|
|
24473
|
+
*/
|
|
24474
|
+
availabilityRemains?: number;
|
|
24475
|
+
/**
|
|
24476
|
+
* For limited-supply gifts: the total number of gifts that was
|
|
24477
|
+
* available in the initial supply.
|
|
24478
|
+
*/
|
|
24479
|
+
availabilityTotal?: number;
|
|
24480
|
+
/**
|
|
24481
|
+
* The receiver of this gift may convert it to this many
|
|
24482
|
+
* Telegram Stars, instead of displaying it on their profile
|
|
24483
|
+
* page.
|
|
24484
|
+
*
|
|
24485
|
+
* <code>convert_stars</code> will be equal to
|
|
24486
|
+
* <code>stars</code> only if the gift was bought using
|
|
24487
|
+
* recently bought Telegram Stars, otherwise it will be less
|
|
24488
|
+
* than <code>stars</code>.
|
|
24489
|
+
*/
|
|
24490
|
+
convertStars: Long;
|
|
24491
|
+
/**
|
|
24492
|
+
* For sold out gifts only: when was the gift first bought.
|
|
24493
|
+
*/
|
|
24494
|
+
firstSaleDate?: number;
|
|
24495
|
+
/**
|
|
24496
|
+
* For sold out gifts only: when was the gift last bought.
|
|
24497
|
+
*/
|
|
24498
|
+
lastSaleDate?: number;
|
|
23638
24499
|
}
|
|
23639
24500
|
/**
|
|
23640
|
-
*
|
|
23641
|
-
*
|
|
24501
|
+
* Represents a
|
|
24502
|
+
* <a href="https://corefork.telegram.org/api/gifts">gift</a>,
|
|
24503
|
+
* displayed on a user's profile page.
|
|
23642
24504
|
*/
|
|
23643
|
-
interface
|
|
23644
|
-
_: '
|
|
24505
|
+
interface RawUserStarGift {
|
|
24506
|
+
_: 'userStarGift';
|
|
23645
24507
|
/**
|
|
23646
|
-
*
|
|
24508
|
+
* If set, <code>from_id</code> will not be visible to users
|
|
24509
|
+
* (it will still be visible to the receiver of the gift).
|
|
23647
24510
|
*/
|
|
23648
|
-
|
|
24511
|
+
nameHidden?: boolean;
|
|
24512
|
+
/**
|
|
24513
|
+
* If set, indicates this is a gift sent by
|
|
24514
|
+
* <code>from_id</code>, received by the current user and
|
|
24515
|
+
* currently hidden from our profile page.
|
|
24516
|
+
*/
|
|
24517
|
+
unsaved?: boolean;
|
|
24518
|
+
/**
|
|
24519
|
+
* Sender of the gift (may be empty for anonymous senders; will
|
|
24520
|
+
* always be set if this gift was sent to us).
|
|
24521
|
+
*/
|
|
24522
|
+
fromId?: number;
|
|
24523
|
+
/**
|
|
24524
|
+
* When was this gift sent.
|
|
24525
|
+
*/
|
|
24526
|
+
date: number;
|
|
24527
|
+
/**
|
|
24528
|
+
* The gift.
|
|
24529
|
+
*/
|
|
24530
|
+
gift: tl.TypeStarGift;
|
|
24531
|
+
/**
|
|
24532
|
+
* Message attached to the gift by the sender.
|
|
24533
|
+
*/
|
|
24534
|
+
message?: tl.TypeTextWithEntities;
|
|
24535
|
+
/**
|
|
24536
|
+
* Only visible to the receiver of the gift, contains the ID of
|
|
24537
|
+
* the {@link RawMessageService} with the
|
|
24538
|
+
* {@link RawMessageActionStarGift} in the chat with
|
|
24539
|
+
* <code>from_id</code>.
|
|
24540
|
+
*/
|
|
24541
|
+
msgId?: number;
|
|
24542
|
+
/**
|
|
24543
|
+
* The receiver of this gift may convert it to this many
|
|
24544
|
+
* Telegram Stars, instead of displaying it on their profile
|
|
24545
|
+
* page.
|
|
24546
|
+
*
|
|
24547
|
+
* <code>convert_stars</code> will be equal to the buying price
|
|
24548
|
+
* of the gift only if the gift was bought using recently
|
|
24549
|
+
* bought Telegram Stars, otherwise it will be less than
|
|
24550
|
+
* <code>stars</code>.
|
|
24551
|
+
*/
|
|
24552
|
+
convertStars?: Long;
|
|
23649
24553
|
}
|
|
23650
24554
|
/**
|
|
23651
|
-
*
|
|
23652
|
-
* <a href="https://corefork.telegram.org/api/bots/webapps#direct-link-mini-apps">direct
|
|
23653
|
-
* link Mini App</a>.
|
|
24555
|
+
* Report menu option
|
|
23654
24556
|
*/
|
|
23655
|
-
interface
|
|
23656
|
-
_: '
|
|
24557
|
+
interface RawMessageReportOption {
|
|
24558
|
+
_: 'messageReportOption';
|
|
23657
24559
|
/**
|
|
23658
|
-
*
|
|
24560
|
+
* Option title
|
|
23659
24561
|
*/
|
|
23660
|
-
|
|
24562
|
+
text: string;
|
|
24563
|
+
/**
|
|
24564
|
+
* Option identifier: if the user selects this option,
|
|
24565
|
+
* re-invoke {@link messages.RawReportRequest}, passing this
|
|
24566
|
+
* option to <code>option</code>
|
|
24567
|
+
*/
|
|
24568
|
+
option: Uint8Array;
|
|
24569
|
+
}
|
|
24570
|
+
/**
|
|
24571
|
+
* The user must choose one of the following options, and then
|
|
24572
|
+
* {@link messages.RawReportRequest} must be re-invoked,
|
|
24573
|
+
* passing the option's <code>option</code> identifier to
|
|
24574
|
+
* {@link messages.RawReportRequest}.<code>option</code>.
|
|
24575
|
+
*/
|
|
24576
|
+
interface RawReportResultChooseOption {
|
|
24577
|
+
_: 'reportResultChooseOption';
|
|
24578
|
+
/**
|
|
24579
|
+
* Title of the option popup
|
|
24580
|
+
*/
|
|
24581
|
+
title: string;
|
|
24582
|
+
/**
|
|
24583
|
+
* Available options, rendered as menu entries.
|
|
24584
|
+
*/
|
|
24585
|
+
options: tl.TypeMessageReportOption[];
|
|
24586
|
+
}
|
|
24587
|
+
/**
|
|
24588
|
+
* The user should enter an additional comment for the
|
|
24589
|
+
* moderators, and then {@link messages.RawReportRequest} must
|
|
24590
|
+
* be re-invoked, passing the comment to
|
|
24591
|
+
* {@link messages.RawReportRequest}.<code>message</code>.
|
|
24592
|
+
*/
|
|
24593
|
+
interface RawReportResultAddComment {
|
|
24594
|
+
_: 'reportResultAddComment';
|
|
24595
|
+
/**
|
|
24596
|
+
* Whether this step can be skipped by the user, passing an
|
|
24597
|
+
* empty <code>message</code> to
|
|
24598
|
+
* {@link messages.RawReportRequest}, or if a non-empty
|
|
24599
|
+
* <code>message</code> is mandatory.
|
|
24600
|
+
*/
|
|
24601
|
+
optional?: boolean;
|
|
24602
|
+
/**
|
|
24603
|
+
* The {@link messages.RawReportRequest} method must be
|
|
24604
|
+
* re-invoked, passing this option to <code>option</code>
|
|
24605
|
+
*/
|
|
24606
|
+
option: Uint8Array;
|
|
24607
|
+
}
|
|
24608
|
+
/**
|
|
24609
|
+
* The report was sent successfully, no further actions are
|
|
24610
|
+
* required.
|
|
24611
|
+
*/
|
|
24612
|
+
interface RawReportResultReported {
|
|
24613
|
+
_: 'reportResultReported';
|
|
24614
|
+
}
|
|
24615
|
+
/**
|
|
24616
|
+
* <a href="https://corefork.telegram.org/api/bots/webapps">Mini
|
|
24617
|
+
* app »</a> settings
|
|
24618
|
+
*/
|
|
24619
|
+
interface RawBotAppSettings {
|
|
24620
|
+
_: 'botAppSettings';
|
|
24621
|
+
/**
|
|
24622
|
+
* SVG placeholder logo, compressed using the same format used
|
|
24623
|
+
* for
|
|
24624
|
+
* <a href="https://corefork.telegram.org/api/files#vector-thumbnails">vector
|
|
24625
|
+
* thumbnails »</a>.
|
|
24626
|
+
*/
|
|
24627
|
+
placeholderPath?: Uint8Array;
|
|
24628
|
+
/**
|
|
24629
|
+
* Default light mode background color
|
|
24630
|
+
*/
|
|
24631
|
+
backgroundColor?: number;
|
|
24632
|
+
/**
|
|
24633
|
+
* Default dark mode background color
|
|
24634
|
+
*/
|
|
24635
|
+
backgroundDarkColor?: number;
|
|
24636
|
+
/**
|
|
24637
|
+
* Default light mode header color
|
|
24638
|
+
*/
|
|
24639
|
+
headerColor?: number;
|
|
24640
|
+
/**
|
|
24641
|
+
* Default dark mode header color
|
|
24642
|
+
*/
|
|
24643
|
+
headerDarkColor?: number;
|
|
24644
|
+
}
|
|
24645
|
+
/**
|
|
24646
|
+
* Indo about an
|
|
24647
|
+
* <a href="https://corefork.telegram.org/api/bots/referrals">affiliate
|
|
24648
|
+
* program offered by a bot</a>
|
|
24649
|
+
*/
|
|
24650
|
+
interface RawStarRefProgram {
|
|
24651
|
+
_: 'starRefProgram';
|
|
24652
|
+
/**
|
|
24653
|
+
* ID of the bot that offers the program
|
|
24654
|
+
*/
|
|
24655
|
+
botId: number;
|
|
24656
|
+
/**
|
|
24657
|
+
* An affiliate gets a commission of
|
|
24658
|
+
* {@link RawStarRefProgram}.<code>commission_permille</code>‰
|
|
24659
|
+
* <a href="https://corefork.telegram.org/api/stars">Telegram
|
|
24660
|
+
* Stars</a> for every mini app transaction made by users they
|
|
24661
|
+
* refer
|
|
24662
|
+
*/
|
|
24663
|
+
commissionPermille: number;
|
|
24664
|
+
/**
|
|
24665
|
+
* An affiliate gets a commission for every mini app
|
|
24666
|
+
* transaction made by users they refer, for
|
|
24667
|
+
* <code>duration_months</code> months after a referral link is
|
|
24668
|
+
* imported, starting the bot for the first time
|
|
24669
|
+
*/
|
|
24670
|
+
durationMonths?: number;
|
|
24671
|
+
/**
|
|
24672
|
+
* Point in time (UNIX timestamp in seconds) when the affiliate
|
|
24673
|
+
* program will be closed (optional, if not set the affiliate
|
|
24674
|
+
* program isn't scheduled to be closed)
|
|
24675
|
+
*/
|
|
24676
|
+
endDate?: number;
|
|
24677
|
+
/**
|
|
24678
|
+
* The amount of daily revenue per user in Telegram Stars of
|
|
24679
|
+
* the bot that created the affiliate program
|
|
24680
|
+
*/
|
|
24681
|
+
dailyRevenuePerUser?: tl.TypeStarsAmount;
|
|
23661
24682
|
}
|
|
23662
24683
|
/**
|
|
23663
|
-
*
|
|
24684
|
+
* Info about an
|
|
24685
|
+
* <a href="https://corefork.telegram.org/api/bots/referrals#becoming-an-affiliate">active
|
|
24686
|
+
* affiliate program we have with a Mini App</a>
|
|
23664
24687
|
*/
|
|
23665
|
-
interface
|
|
23666
|
-
_: '
|
|
24688
|
+
interface RawConnectedBotStarRef {
|
|
24689
|
+
_: 'connectedBotStarRef';
|
|
23667
24690
|
/**
|
|
23668
|
-
*
|
|
24691
|
+
* If set, this affiliation was revoked by the affiliate using
|
|
24692
|
+
* {@link payments.RawEditConnectedStarRefBotRequest}, or by
|
|
24693
|
+
* the affiliation program owner using
|
|
24694
|
+
* {@link bots.RawUpdateStarRefProgramRequest}
|
|
24695
|
+
*/
|
|
24696
|
+
revoked?: boolean;
|
|
24697
|
+
/**
|
|
24698
|
+
* <a href="https://corefork.telegram.org/api/links#referral-links">Referral
|
|
24699
|
+
* link</a> to be shared
|
|
23669
24700
|
*/
|
|
23670
24701
|
url: string;
|
|
23671
24702
|
/**
|
|
23672
|
-
*
|
|
24703
|
+
* When did we affiliate with <code>bot_id</code>
|
|
24704
|
+
*/
|
|
24705
|
+
date: number;
|
|
24706
|
+
/**
|
|
24707
|
+
* ID of the mini app that created the affiliate program
|
|
23673
24708
|
*/
|
|
23674
|
-
|
|
24709
|
+
botId: number;
|
|
23675
24710
|
/**
|
|
23676
|
-
*
|
|
24711
|
+
* The number of Telegram Stars received by the affiliate for
|
|
24712
|
+
* each 1000 Telegram Stars received by <code>bot_id</code>
|
|
23677
24713
|
*/
|
|
23678
|
-
|
|
24714
|
+
commissionPermille: number;
|
|
24715
|
+
/**
|
|
24716
|
+
* Number of months the program will be active; if not set,
|
|
24717
|
+
* there is no expiration date.
|
|
24718
|
+
*/
|
|
24719
|
+
durationMonths?: number;
|
|
24720
|
+
/**
|
|
24721
|
+
* The number of users that used the affiliate program
|
|
24722
|
+
*/
|
|
24723
|
+
participants: Long;
|
|
24724
|
+
/**
|
|
24725
|
+
* The number of Telegram Stars that were earned by the
|
|
24726
|
+
* affiliate program
|
|
24727
|
+
*/
|
|
24728
|
+
revenue: Long;
|
|
24729
|
+
}
|
|
24730
|
+
/**
|
|
24731
|
+
* Describes a real (i.e. possibly decimal) amount of
|
|
24732
|
+
* <a href="https://corefork.telegram.org/api/stars">Telegram
|
|
24733
|
+
* Stars</a>.
|
|
24734
|
+
*/
|
|
24735
|
+
interface RawStarsAmount {
|
|
24736
|
+
_: 'starsAmount';
|
|
24737
|
+
/**
|
|
24738
|
+
* The integer amount of Telegram Stars.
|
|
24739
|
+
*/
|
|
24740
|
+
amount: Long;
|
|
24741
|
+
/**
|
|
24742
|
+
* The decimal amount of Telegram Stars, expressed as nanostars
|
|
24743
|
+
* (i.e. 1 nanostar is equal to <code>1/1'000'000'000</code>th
|
|
24744
|
+
* of a Telegram Star).
|
|
24745
|
+
*
|
|
24746
|
+
* This field may also be negative (the allowed range is
|
|
24747
|
+
* -999999999 to 999999999).
|
|
24748
|
+
*/
|
|
24749
|
+
nanos: number;
|
|
23679
24750
|
}
|
|
23680
24751
|
/**
|
|
23681
24752
|
* RPC method returns {@link tl.TypeError}
|
|
@@ -24041,7 +25112,7 @@ export class RpcError extends Error {
|
|
|
24041
25112
|
/**
|
|
24042
25113
|
* Object describing actions connected to a service message.
|
|
24043
25114
|
*/
|
|
24044
|
-
type TypeMessageAction = tl.RawMessageActionEmpty | tl.RawMessageActionChatCreate | tl.RawMessageActionChatEditTitle | tl.RawMessageActionChatEditPhoto | tl.RawMessageActionChatDeletePhoto | tl.RawMessageActionChatAddUser | tl.RawMessageActionChatDeleteUser | tl.RawMessageActionChatJoinedByLink | tl.RawMessageActionChannelCreate | tl.RawMessageActionChatMigrateTo | tl.RawMessageActionChannelMigrateFrom | tl.RawMessageActionPinMessage | tl.RawMessageActionHistoryClear | tl.RawMessageActionGameScore | tl.RawMessageActionPaymentSentMe | tl.RawMessageActionPaymentSent | tl.RawMessageActionPhoneCall | tl.RawMessageActionScreenshotTaken | tl.RawMessageActionCustomAction | tl.RawMessageActionBotAllowed | tl.RawMessageActionSecureValuesSentMe | tl.RawMessageActionSecureValuesSent | tl.RawMessageActionContactSignUp | tl.RawMessageActionGeoProximityReached | tl.RawMessageActionGroupCall | tl.RawMessageActionInviteToGroupCall | tl.RawMessageActionSetMessagesTTL | tl.RawMessageActionGroupCallScheduled | tl.RawMessageActionSetChatTheme | tl.RawMessageActionChatJoinedByRequest | tl.RawMessageActionWebViewDataSentMe | tl.RawMessageActionWebViewDataSent | tl.RawMessageActionGiftPremium | tl.RawMessageActionTopicCreate | tl.RawMessageActionTopicEdit | tl.RawMessageActionSuggestProfilePhoto | tl.RawMessageActionRequestedPeer | tl.RawMessageActionSetChatWallPaper | tl.RawMessageActionGiftCode | tl.RawMessageActionGiveawayLaunch | tl.RawMessageActionGiveawayResults | tl.RawMessageActionBoostApply | tl.RawMessageActionRequestedPeerSentMe | tl.RawMessageActionPaymentRefunded | tl.RawMessageActionGiftStars | tl.RawMessageActionPrizeStars
|
|
25115
|
+
type TypeMessageAction = tl.RawMessageActionEmpty | tl.RawMessageActionChatCreate | tl.RawMessageActionChatEditTitle | tl.RawMessageActionChatEditPhoto | tl.RawMessageActionChatDeletePhoto | tl.RawMessageActionChatAddUser | tl.RawMessageActionChatDeleteUser | tl.RawMessageActionChatJoinedByLink | tl.RawMessageActionChannelCreate | tl.RawMessageActionChatMigrateTo | tl.RawMessageActionChannelMigrateFrom | tl.RawMessageActionPinMessage | tl.RawMessageActionHistoryClear | tl.RawMessageActionGameScore | tl.RawMessageActionPaymentSentMe | tl.RawMessageActionPaymentSent | tl.RawMessageActionPhoneCall | tl.RawMessageActionScreenshotTaken | tl.RawMessageActionCustomAction | tl.RawMessageActionBotAllowed | tl.RawMessageActionSecureValuesSentMe | tl.RawMessageActionSecureValuesSent | tl.RawMessageActionContactSignUp | tl.RawMessageActionGeoProximityReached | tl.RawMessageActionGroupCall | tl.RawMessageActionInviteToGroupCall | tl.RawMessageActionSetMessagesTTL | tl.RawMessageActionGroupCallScheduled | tl.RawMessageActionSetChatTheme | tl.RawMessageActionChatJoinedByRequest | tl.RawMessageActionWebViewDataSentMe | tl.RawMessageActionWebViewDataSent | tl.RawMessageActionGiftPremium | tl.RawMessageActionTopicCreate | tl.RawMessageActionTopicEdit | tl.RawMessageActionSuggestProfilePhoto | tl.RawMessageActionRequestedPeer | tl.RawMessageActionSetChatWallPaper | tl.RawMessageActionGiftCode | tl.RawMessageActionGiveawayLaunch | tl.RawMessageActionGiveawayResults | tl.RawMessageActionBoostApply | tl.RawMessageActionRequestedPeerSentMe | tl.RawMessageActionPaymentRefunded | tl.RawMessageActionGiftStars | tl.RawMessageActionPrizeStars | tl.RawMessageActionStarGift
|
|
24045
25116
|
function isAnyMessageAction(o: object): o is TypeMessageAction
|
|
24046
25117
|
/**
|
|
24047
25118
|
* Chat info.
|
|
@@ -24124,7 +25195,7 @@ export class RpcError extends Error {
|
|
|
24124
25195
|
/**
|
|
24125
25196
|
* Object contains info on events occurred.
|
|
24126
25197
|
*/
|
|
24127
|
-
type TypeUpdate = tl.RawUpdateNewMessage | tl.RawUpdateMessageID | tl.RawUpdateDeleteMessages | tl.RawUpdateUserTyping | tl.RawUpdateChatUserTyping | tl.RawUpdateChatParticipants | tl.RawUpdateUserStatus | tl.RawUpdateUserName | tl.RawUpdateNewAuthorization | tl.RawUpdateNewEncryptedMessage | tl.RawUpdateEncryptedChatTyping | tl.RawUpdateEncryption | tl.RawUpdateEncryptedMessagesRead | tl.RawUpdateChatParticipantAdd | tl.RawUpdateChatParticipantDelete | tl.RawUpdateDcOptions | tl.RawUpdateNotifySettings | tl.RawUpdateServiceNotification | tl.RawUpdatePrivacy | tl.RawUpdateUserPhone | tl.RawUpdateReadHistoryInbox | tl.RawUpdateReadHistoryOutbox | tl.RawUpdateWebPage | tl.RawUpdateReadMessagesContents | tl.RawUpdateChannelTooLong | tl.RawUpdateChannel | tl.RawUpdateNewChannelMessage | tl.RawUpdateReadChannelInbox | tl.RawUpdateDeleteChannelMessages | tl.RawUpdateChannelMessageViews | tl.RawUpdateChatParticipantAdmin | tl.RawUpdateNewStickerSet | tl.RawUpdateStickerSetsOrder | tl.RawUpdateStickerSets | tl.RawUpdateSavedGifs | tl.RawUpdateBotInlineQuery | tl.RawUpdateBotInlineSend | tl.RawUpdateEditChannelMessage | tl.RawUpdateBotCallbackQuery | tl.RawUpdateEditMessage | tl.RawUpdateInlineBotCallbackQuery | tl.RawUpdateReadChannelOutbox | tl.RawUpdateDraftMessage | tl.RawUpdateReadFeaturedStickers | tl.RawUpdateRecentStickers | tl.RawUpdateConfig | tl.RawUpdatePtsChanged | tl.RawUpdateChannelWebPage | tl.RawUpdateDialogPinned | tl.RawUpdatePinnedDialogs | tl.RawUpdateBotWebhookJSON | tl.RawUpdateBotWebhookJSONQuery | tl.RawUpdateBotShippingQuery | tl.RawUpdateBotPrecheckoutQuery | tl.RawUpdatePhoneCall | tl.RawUpdateLangPackTooLong | tl.RawUpdateLangPack | tl.RawUpdateFavedStickers | tl.RawUpdateChannelReadMessagesContents | tl.RawUpdateContactsReset | tl.RawUpdateChannelAvailableMessages | tl.RawUpdateDialogUnreadMark | tl.RawUpdateMessagePoll | tl.RawUpdateChatDefaultBannedRights | tl.RawUpdateFolderPeers | tl.RawUpdatePeerSettings | tl.RawUpdatePeerLocated | tl.RawUpdateNewScheduledMessage | tl.RawUpdateDeleteScheduledMessages | tl.RawUpdateTheme | tl.RawUpdateGeoLiveViewed | tl.RawUpdateLoginToken | tl.RawUpdateMessagePollVote | tl.RawUpdateDialogFilter | tl.RawUpdateDialogFilterOrder | tl.RawUpdateDialogFilters | tl.RawUpdatePhoneCallSignalingData | tl.RawUpdateChannelMessageForwards | tl.RawUpdateReadChannelDiscussionInbox | tl.RawUpdateReadChannelDiscussionOutbox | tl.RawUpdatePeerBlocked | tl.RawUpdateChannelUserTyping | tl.RawUpdatePinnedMessages | tl.RawUpdatePinnedChannelMessages | tl.RawUpdateChat | tl.RawUpdateGroupCallParticipants | tl.RawUpdateGroupCall | tl.RawUpdatePeerHistoryTTL | tl.RawUpdateChatParticipant | tl.RawUpdateChannelParticipant | tl.RawUpdateBotStopped | tl.RawUpdateGroupCallConnection | tl.RawUpdateBotCommands | tl.RawUpdatePendingJoinRequests | tl.RawUpdateBotChatInviteRequester | tl.RawUpdateMessageReactions | tl.RawUpdateAttachMenuBots | tl.RawUpdateWebViewResultSent | tl.RawUpdateBotMenuButton | tl.RawUpdateSavedRingtones | tl.RawUpdateTranscribedAudio | tl.RawUpdateReadFeaturedEmojiStickers | tl.RawUpdateUserEmojiStatus | tl.RawUpdateRecentEmojiStatuses | tl.RawUpdateRecentReactions | tl.RawUpdateMoveStickerSetToTop | tl.RawUpdateMessageExtendedMedia | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.RawUpdateUser | tl.RawUpdateAutoSaveSettings | tl.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.RawUpdateBroadcastRevenueTransactions | tl.RawUpdateStarsBalance | tl.RawUpdateBusinessBotCallbackQuery | tl.RawUpdateStarsRevenueStatus | tl.RawUpdateBotPurchasedPaidMedia | tl.RawUpdatePaidReactionPrivacy | tl.
|
|
25198
|
+
type TypeUpdate = tl.RawUpdateNewMessage | tl.RawUpdateMessageID | tl.RawUpdateDeleteMessages | tl.RawUpdateUserTyping | tl.RawUpdateChatUserTyping | tl.RawUpdateChatParticipants | tl.RawUpdateUserStatus | tl.RawUpdateUserName | tl.RawUpdateNewAuthorization | tl.RawUpdateNewEncryptedMessage | tl.RawUpdateEncryptedChatTyping | tl.RawUpdateEncryption | tl.RawUpdateEncryptedMessagesRead | tl.RawUpdateChatParticipantAdd | tl.RawUpdateChatParticipantDelete | tl.RawUpdateDcOptions | tl.RawUpdateNotifySettings | tl.RawUpdateServiceNotification | tl.RawUpdatePrivacy | tl.RawUpdateUserPhone | tl.RawUpdateReadHistoryInbox | tl.RawUpdateReadHistoryOutbox | tl.RawUpdateWebPage | tl.RawUpdateReadMessagesContents | tl.RawUpdateChannelTooLong | tl.RawUpdateChannel | tl.RawUpdateNewChannelMessage | tl.RawUpdateReadChannelInbox | tl.RawUpdateDeleteChannelMessages | tl.RawUpdateChannelMessageViews | tl.RawUpdateChatParticipantAdmin | tl.RawUpdateNewStickerSet | tl.RawUpdateStickerSetsOrder | tl.RawUpdateStickerSets | tl.RawUpdateSavedGifs | tl.RawUpdateBotInlineQuery | tl.RawUpdateBotInlineSend | tl.RawUpdateEditChannelMessage | tl.RawUpdateBotCallbackQuery | tl.RawUpdateEditMessage | tl.RawUpdateInlineBotCallbackQuery | tl.RawUpdateReadChannelOutbox | tl.RawUpdateDraftMessage | tl.RawUpdateReadFeaturedStickers | tl.RawUpdateRecentStickers | tl.RawUpdateConfig | tl.RawUpdatePtsChanged | tl.RawUpdateChannelWebPage | tl.RawUpdateDialogPinned | tl.RawUpdatePinnedDialogs | tl.RawUpdateBotWebhookJSON | tl.RawUpdateBotWebhookJSONQuery | tl.RawUpdateBotShippingQuery | tl.RawUpdateBotPrecheckoutQuery | tl.RawUpdatePhoneCall | tl.RawUpdateLangPackTooLong | tl.RawUpdateLangPack | tl.RawUpdateFavedStickers | tl.RawUpdateChannelReadMessagesContents | tl.RawUpdateContactsReset | tl.RawUpdateChannelAvailableMessages | tl.RawUpdateDialogUnreadMark | tl.RawUpdateMessagePoll | tl.RawUpdateChatDefaultBannedRights | tl.RawUpdateFolderPeers | tl.RawUpdatePeerSettings | tl.RawUpdatePeerLocated | tl.RawUpdateNewScheduledMessage | tl.RawUpdateDeleteScheduledMessages | tl.RawUpdateTheme | tl.RawUpdateGeoLiveViewed | tl.RawUpdateLoginToken | tl.RawUpdateMessagePollVote | tl.RawUpdateDialogFilter | tl.RawUpdateDialogFilterOrder | tl.RawUpdateDialogFilters | tl.RawUpdatePhoneCallSignalingData | tl.RawUpdateChannelMessageForwards | tl.RawUpdateReadChannelDiscussionInbox | tl.RawUpdateReadChannelDiscussionOutbox | tl.RawUpdatePeerBlocked | tl.RawUpdateChannelUserTyping | tl.RawUpdatePinnedMessages | tl.RawUpdatePinnedChannelMessages | tl.RawUpdateChat | tl.RawUpdateGroupCallParticipants | tl.RawUpdateGroupCall | tl.RawUpdatePeerHistoryTTL | tl.RawUpdateChatParticipant | tl.RawUpdateChannelParticipant | tl.RawUpdateBotStopped | tl.RawUpdateGroupCallConnection | tl.RawUpdateBotCommands | tl.RawUpdatePendingJoinRequests | tl.RawUpdateBotChatInviteRequester | tl.RawUpdateMessageReactions | tl.RawUpdateAttachMenuBots | tl.RawUpdateWebViewResultSent | tl.RawUpdateBotMenuButton | tl.RawUpdateSavedRingtones | tl.RawUpdateTranscribedAudio | tl.RawUpdateReadFeaturedEmojiStickers | tl.RawUpdateUserEmojiStatus | tl.RawUpdateRecentEmojiStatuses | tl.RawUpdateRecentReactions | tl.RawUpdateMoveStickerSetToTop | tl.RawUpdateMessageExtendedMedia | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.RawUpdateUser | tl.RawUpdateAutoSaveSettings | tl.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.RawUpdateBroadcastRevenueTransactions | tl.RawUpdateStarsBalance | tl.RawUpdateBusinessBotCallbackQuery | tl.RawUpdateStarsRevenueStatus | tl.RawUpdateBotPurchasedPaidMedia | tl.RawUpdatePaidReactionPrivacy | tl.mtcute.RawDummyUpdate
|
|
24128
25199
|
function isAnyUpdate(o: object): o is TypeUpdate
|
|
24129
25200
|
/**
|
|
24130
25201
|
* Object which is perceived by the client without a call on
|
|
@@ -24208,7 +25279,7 @@ export class RpcError extends Error {
|
|
|
24208
25279
|
* <a href="https://corefork.telegram.org/api/privacy">privacy
|
|
24209
25280
|
* documentation »</a> for more info.
|
|
24210
25281
|
*/
|
|
24211
|
-
type TypeInputPrivacyKey = tl.RawInputPrivacyKeyStatusTimestamp | tl.RawInputPrivacyKeyChatInvite | tl.RawInputPrivacyKeyPhoneCall | tl.RawInputPrivacyKeyPhoneP2P | tl.RawInputPrivacyKeyForwards | tl.RawInputPrivacyKeyProfilePhoto | tl.RawInputPrivacyKeyPhoneNumber | tl.RawInputPrivacyKeyAddedByPhone | tl.RawInputPrivacyKeyVoiceMessages | tl.RawInputPrivacyKeyAbout | tl.RawInputPrivacyKeyBirthday
|
|
25282
|
+
type TypeInputPrivacyKey = tl.RawInputPrivacyKeyStatusTimestamp | tl.RawInputPrivacyKeyChatInvite | tl.RawInputPrivacyKeyPhoneCall | tl.RawInputPrivacyKeyPhoneP2P | tl.RawInputPrivacyKeyForwards | tl.RawInputPrivacyKeyProfilePhoto | tl.RawInputPrivacyKeyPhoneNumber | tl.RawInputPrivacyKeyAddedByPhone | tl.RawInputPrivacyKeyVoiceMessages | tl.RawInputPrivacyKeyAbout | tl.RawInputPrivacyKeyBirthday | tl.RawInputPrivacyKeyStarGiftsAutoSave
|
|
24212
25283
|
function isAnyInputPrivacyKey(o: object): o is TypeInputPrivacyKey
|
|
24213
25284
|
/**
|
|
24214
25285
|
* Privacy <strong>keys</strong> together with
|
|
@@ -24223,7 +25294,7 @@ export class RpcError extends Error {
|
|
|
24223
25294
|
* <a href="https://corefork.telegram.org/api/privacy">privacy
|
|
24224
25295
|
* documentation »</a> for more info.
|
|
24225
25296
|
*/
|
|
24226
|
-
type TypePrivacyKey = tl.RawPrivacyKeyStatusTimestamp | tl.RawPrivacyKeyChatInvite | tl.RawPrivacyKeyPhoneCall | tl.RawPrivacyKeyPhoneP2P | tl.RawPrivacyKeyForwards | tl.RawPrivacyKeyProfilePhoto | tl.RawPrivacyKeyPhoneNumber | tl.RawPrivacyKeyAddedByPhone | tl.RawPrivacyKeyVoiceMessages | tl.RawPrivacyKeyAbout | tl.RawPrivacyKeyBirthday
|
|
25297
|
+
type TypePrivacyKey = tl.RawPrivacyKeyStatusTimestamp | tl.RawPrivacyKeyChatInvite | tl.RawPrivacyKeyPhoneCall | tl.RawPrivacyKeyPhoneP2P | tl.RawPrivacyKeyForwards | tl.RawPrivacyKeyProfilePhoto | tl.RawPrivacyKeyPhoneNumber | tl.RawPrivacyKeyAddedByPhone | tl.RawPrivacyKeyVoiceMessages | tl.RawPrivacyKeyAbout | tl.RawPrivacyKeyBirthday | tl.RawPrivacyKeyStarGiftsAutoSave
|
|
24227
25298
|
function isAnyPrivacyKey(o: object): o is TypePrivacyKey
|
|
24228
25299
|
/**
|
|
24229
25300
|
* Privacy <strong>rules</strong> indicate <em>who</em> can or
|
|
@@ -24236,7 +25307,7 @@ export class RpcError extends Error {
|
|
|
24236
25307
|
* <a href="https://corefork.telegram.org/api/privacy">privacy
|
|
24237
25308
|
* documentation »</a> for more info.
|
|
24238
25309
|
*/
|
|
24239
|
-
type TypeInputPrivacyRule = tl.RawInputPrivacyValueAllowContacts | tl.RawInputPrivacyValueAllowAll | tl.RawInputPrivacyValueAllowUsers | tl.RawInputPrivacyValueDisallowContacts | tl.RawInputPrivacyValueDisallowAll | tl.RawInputPrivacyValueDisallowUsers | tl.RawInputPrivacyValueAllowChatParticipants | tl.RawInputPrivacyValueDisallowChatParticipants | tl.RawInputPrivacyValueAllowCloseFriends | tl.RawInputPrivacyValueAllowPremium
|
|
25310
|
+
type TypeInputPrivacyRule = tl.RawInputPrivacyValueAllowContacts | tl.RawInputPrivacyValueAllowAll | tl.RawInputPrivacyValueAllowUsers | tl.RawInputPrivacyValueDisallowContacts | tl.RawInputPrivacyValueDisallowAll | tl.RawInputPrivacyValueDisallowUsers | tl.RawInputPrivacyValueAllowChatParticipants | tl.RawInputPrivacyValueDisallowChatParticipants | tl.RawInputPrivacyValueAllowCloseFriends | tl.RawInputPrivacyValueAllowPremium | tl.RawInputPrivacyValueAllowBots | tl.RawInputPrivacyValueDisallowBots
|
|
24240
25311
|
function isAnyInputPrivacyRule(o: object): o is TypeInputPrivacyRule
|
|
24241
25312
|
/**
|
|
24242
25313
|
* Privacy <strong>rules</strong> together with
|
|
@@ -24251,7 +25322,7 @@ export class RpcError extends Error {
|
|
|
24251
25322
|
* <a href="https://corefork.telegram.org/api/privacy">privacy
|
|
24252
25323
|
* documentation »</a> for more info.
|
|
24253
25324
|
*/
|
|
24254
|
-
type TypePrivacyRule = tl.RawPrivacyValueAllowContacts | tl.RawPrivacyValueAllowAll | tl.RawPrivacyValueAllowUsers | tl.RawPrivacyValueDisallowContacts | tl.RawPrivacyValueDisallowAll | tl.RawPrivacyValueDisallowUsers | tl.RawPrivacyValueAllowChatParticipants | tl.RawPrivacyValueDisallowChatParticipants | tl.RawPrivacyValueAllowCloseFriends | tl.RawPrivacyValueAllowPremium
|
|
25325
|
+
type TypePrivacyRule = tl.RawPrivacyValueAllowContacts | tl.RawPrivacyValueAllowAll | tl.RawPrivacyValueAllowUsers | tl.RawPrivacyValueDisallowContacts | tl.RawPrivacyValueDisallowAll | tl.RawPrivacyValueDisallowUsers | tl.RawPrivacyValueAllowChatParticipants | tl.RawPrivacyValueDisallowChatParticipants | tl.RawPrivacyValueAllowCloseFriends | tl.RawPrivacyValueAllowPremium | tl.RawPrivacyValueAllowBots | tl.RawPrivacyValueDisallowBots
|
|
24255
25326
|
function isAnyPrivacyRule(o: object): o is TypePrivacyRule
|
|
24256
25327
|
/**
|
|
24257
25328
|
* Time-to-live of current account
|
|
@@ -24319,7 +25390,7 @@ export class RpcError extends Error {
|
|
|
24319
25390
|
/**
|
|
24320
25391
|
* Bot or inline keyboard buttons
|
|
24321
25392
|
*/
|
|
24322
|
-
type TypeKeyboardButton = tl.RawKeyboardButton | tl.RawKeyboardButtonUrl | tl.RawKeyboardButtonCallback | tl.RawKeyboardButtonRequestPhone | tl.RawKeyboardButtonRequestGeoLocation | tl.RawKeyboardButtonSwitchInline | tl.RawKeyboardButtonGame | tl.RawKeyboardButtonBuy | tl.RawKeyboardButtonUrlAuth | tl.RawInputKeyboardButtonUrlAuth | tl.RawKeyboardButtonRequestPoll | tl.RawInputKeyboardButtonUserProfile | tl.RawKeyboardButtonUserProfile | tl.RawKeyboardButtonWebView | tl.RawKeyboardButtonSimpleWebView | tl.RawKeyboardButtonRequestPeer | tl.RawInputKeyboardButtonRequestPeer
|
|
25393
|
+
type TypeKeyboardButton = tl.RawKeyboardButton | tl.RawKeyboardButtonUrl | tl.RawKeyboardButtonCallback | tl.RawKeyboardButtonRequestPhone | tl.RawKeyboardButtonRequestGeoLocation | tl.RawKeyboardButtonSwitchInline | tl.RawKeyboardButtonGame | tl.RawKeyboardButtonBuy | tl.RawKeyboardButtonUrlAuth | tl.RawInputKeyboardButtonUrlAuth | tl.RawKeyboardButtonRequestPoll | tl.RawInputKeyboardButtonUserProfile | tl.RawKeyboardButtonUserProfile | tl.RawKeyboardButtonWebView | tl.RawKeyboardButtonSimpleWebView | tl.RawKeyboardButtonRequestPeer | tl.RawInputKeyboardButtonRequestPeer | tl.RawKeyboardButtonCopy
|
|
24323
25394
|
function isAnyKeyboardButton(o: object): o is TypeKeyboardButton
|
|
24324
25395
|
/**
|
|
24325
25396
|
* Bot or inline keyboard rows
|
|
@@ -25216,7 +26287,7 @@ export class RpcError extends Error {
|
|
|
25216
26287
|
/**
|
|
25217
26288
|
* An invoice
|
|
25218
26289
|
*/
|
|
25219
|
-
type TypeInputInvoice = tl.RawInputInvoiceMessage | tl.RawInputInvoiceSlug | tl.RawInputInvoicePremiumGiftCode | tl.RawInputInvoiceStars | tl.RawInputInvoiceChatInviteSubscription
|
|
26290
|
+
type TypeInputInvoice = tl.RawInputInvoiceMessage | tl.RawInputInvoiceSlug | tl.RawInputInvoicePremiumGiftCode | tl.RawInputInvoiceStars | tl.RawInputInvoiceChatInviteSubscription | tl.RawInputInvoiceStarGift
|
|
25220
26291
|
function isAnyInputInvoice(o: object): o is TypeInputInvoice
|
|
25221
26292
|
/**
|
|
25222
26293
|
* Info about a Telegram Premium purchase
|
|
@@ -25776,7 +26847,7 @@ export class RpcError extends Error {
|
|
|
25776
26847
|
* <a href="https://corefork.telegram.org/api/stars">Telegram
|
|
25777
26848
|
* Star transactions</a>.
|
|
25778
26849
|
*/
|
|
25779
|
-
type TypeStarsTransactionPeer = tl.RawStarsTransactionPeerUnsupported | tl.RawStarsTransactionPeerAppStore | tl.RawStarsTransactionPeerPlayMarket | tl.RawStarsTransactionPeerPremiumBot | tl.RawStarsTransactionPeerFragment | tl.RawStarsTransactionPeer | tl.RawStarsTransactionPeerAds
|
|
26850
|
+
type TypeStarsTransactionPeer = tl.RawStarsTransactionPeerUnsupported | tl.RawStarsTransactionPeerAppStore | tl.RawStarsTransactionPeerPlayMarket | tl.RawStarsTransactionPeerPremiumBot | tl.RawStarsTransactionPeerFragment | tl.RawStarsTransactionPeer | tl.RawStarsTransactionPeerAds | tl.RawStarsTransactionPeerAPI
|
|
25780
26851
|
function isAnyStarsTransactionPeer(o: object): o is TypeStarsTransactionPeer
|
|
25781
26852
|
/**
|
|
25782
26853
|
* <a href="https://corefork.telegram.org/api/stars">Telegram
|
|
@@ -25830,34 +26901,91 @@ export class RpcError extends Error {
|
|
|
25830
26901
|
*/
|
|
25831
26902
|
type TypeBotPreviewMedia = tl.RawBotPreviewMedia
|
|
25832
26903
|
function isAnyBotPreviewMedia(o: object): o is TypeBotPreviewMedia
|
|
26904
|
+
/**
|
|
26905
|
+
* Pricing of a
|
|
26906
|
+
* <a href="https://corefork.telegram.org/api/invites#paid-invite-links">Telegram
|
|
26907
|
+
* Star subscription »</a>.
|
|
26908
|
+
*/
|
|
25833
26909
|
type TypeStarsSubscriptionPricing = tl.RawStarsSubscriptionPricing
|
|
25834
26910
|
function isAnyStarsSubscriptionPricing(o: object): o is TypeStarsSubscriptionPricing
|
|
26911
|
+
/**
|
|
26912
|
+
* Represents a
|
|
26913
|
+
* <a href="https://corefork.telegram.org/api/invites#paid-invite-links">Telegram
|
|
26914
|
+
* Star subscription »</a>.
|
|
26915
|
+
*/
|
|
25835
26916
|
type TypeStarsSubscription = tl.RawStarsSubscription
|
|
25836
26917
|
function isAnyStarsSubscription(o: object): o is TypeStarsSubscription
|
|
26918
|
+
/**
|
|
26919
|
+
* Info about a user in the
|
|
26920
|
+
* <a href="https://corefork.telegram.org/api/reactions#paid-reactions">paid
|
|
26921
|
+
* Star reactions leaderboard</a> for a message.
|
|
26922
|
+
*/
|
|
25837
26923
|
type TypeMessageReactor = tl.RawMessageReactor
|
|
25838
26924
|
function isAnyMessageReactor(o: object): o is TypeMessageReactor
|
|
26925
|
+
/**
|
|
26926
|
+
* Contains info about a
|
|
26927
|
+
* <a href="https://corefork.telegram.org/api/giveaways#star-giveaways">Telegram
|
|
26928
|
+
* Star giveaway</a> option.
|
|
26929
|
+
*/
|
|
25839
26930
|
type TypeStarsGiveawayOption = tl.RawStarsGiveawayOption
|
|
25840
26931
|
function isAnyStarsGiveawayOption(o: object): o is TypeStarsGiveawayOption
|
|
26932
|
+
/**
|
|
26933
|
+
* Represents a possible option for the number of winners in a
|
|
26934
|
+
* star giveaway
|
|
26935
|
+
*/
|
|
25841
26936
|
type TypeStarsGiveawayWinnersOption = tl.RawStarsGiveawayWinnersOption
|
|
25842
26937
|
function isAnyStarsGiveawayWinnersOption(o: object): o is TypeStarsGiveawayWinnersOption
|
|
25843
26938
|
/**
|
|
25844
|
-
*
|
|
25845
|
-
*
|
|
26939
|
+
* Represents a
|
|
26940
|
+
* <a href="https://corefork.telegram.org/api/gifts">star gift,
|
|
26941
|
+
* see here »</a> for more info.
|
|
25846
26942
|
*/
|
|
25847
|
-
type
|
|
25848
|
-
function
|
|
26943
|
+
type TypeStarGift = tl.RawStarGift
|
|
26944
|
+
function isAnyStarGift(o: object): o is TypeStarGift
|
|
25849
26945
|
/**
|
|
25850
|
-
*
|
|
25851
|
-
* <a href="https://corefork.telegram.org/api/
|
|
25852
|
-
*
|
|
26946
|
+
* Represents a
|
|
26947
|
+
* <a href="https://corefork.telegram.org/api/gifts">gift</a>,
|
|
26948
|
+
* displayed on a user's profile page.
|
|
26949
|
+
*/
|
|
26950
|
+
type TypeUserStarGift = tl.RawUserStarGift
|
|
26951
|
+
function isAnyUserStarGift(o: object): o is TypeUserStarGift
|
|
26952
|
+
/**
|
|
26953
|
+
* Report menu option
|
|
26954
|
+
*/
|
|
26955
|
+
type TypeMessageReportOption = tl.RawMessageReportOption
|
|
26956
|
+
function isAnyMessageReportOption(o: object): o is TypeMessageReportOption
|
|
26957
|
+
/**
|
|
26958
|
+
* Represents a report menu or result
|
|
26959
|
+
*/
|
|
26960
|
+
type TypeReportResult = tl.RawReportResultChooseOption | tl.RawReportResultAddComment | tl.RawReportResultReported
|
|
26961
|
+
function isAnyReportResult(o: object): o is TypeReportResult
|
|
26962
|
+
/**
|
|
26963
|
+
* <a href="https://corefork.telegram.org/api/bots/webapps">Mini
|
|
26964
|
+
* app »</a> settings
|
|
26965
|
+
*/
|
|
26966
|
+
type TypeBotAppSettings = tl.RawBotAppSettings
|
|
26967
|
+
function isAnyBotAppSettings(o: object): o is TypeBotAppSettings
|
|
26968
|
+
/**
|
|
26969
|
+
* Indo about an
|
|
26970
|
+
* <a href="https://corefork.telegram.org/api/bots/referrals">affiliate
|
|
26971
|
+
* program offered by a bot</a>
|
|
26972
|
+
*/
|
|
26973
|
+
type TypeStarRefProgram = tl.RawStarRefProgram
|
|
26974
|
+
function isAnyStarRefProgram(o: object): o is TypeStarRefProgram
|
|
26975
|
+
/**
|
|
26976
|
+
* Info about an
|
|
26977
|
+
* <a href="https://corefork.telegram.org/api/bots/referrals#becoming-an-affiliate">active
|
|
26978
|
+
* affiliate program we have with a Mini App</a>
|
|
25853
26979
|
*/
|
|
25854
|
-
type
|
|
25855
|
-
function
|
|
26980
|
+
type TypeConnectedBotStarRef = tl.RawConnectedBotStarRef
|
|
26981
|
+
function isAnyConnectedBotStarRef(o: object): o is TypeConnectedBotStarRef
|
|
25856
26982
|
/**
|
|
25857
|
-
*
|
|
26983
|
+
* Describes a real (i.e. possibly decimal) amount of
|
|
26984
|
+
* <a href="https://corefork.telegram.org/api/stars">Telegram
|
|
26985
|
+
* Stars</a>.
|
|
25858
26986
|
*/
|
|
25859
|
-
type
|
|
25860
|
-
function
|
|
26987
|
+
type TypeStarsAmount = tl.RawStarsAmount
|
|
26988
|
+
function isAnyStarsAmount(o: object): o is TypeStarsAmount
|
|
25861
26989
|
|
|
25862
26990
|
namespace help {
|
|
25863
26991
|
interface RawConfigSimple {
|
|
@@ -28308,6 +29436,11 @@ export class RpcError extends Error {
|
|
|
28308
29436
|
* @username to resolve
|
|
28309
29437
|
*/
|
|
28310
29438
|
username: string;
|
|
29439
|
+
/**
|
|
29440
|
+
* <a href="https://corefork.telegram.org/api/links#referral-links">Referrer
|
|
29441
|
+
* ID from referral links »</a>.
|
|
29442
|
+
*/
|
|
29443
|
+
referer?: string;
|
|
28311
29444
|
}
|
|
28312
29445
|
/**
|
|
28313
29446
|
* Get most used peers
|
|
@@ -30233,6 +31366,87 @@ export class RpcError extends Error {
|
|
|
30233
31366
|
*/
|
|
30234
31367
|
documents: tl.TypeDocument[];
|
|
30235
31368
|
}
|
|
31369
|
+
/**
|
|
31370
|
+
* Represents a
|
|
31371
|
+
* <a href="https://corefork.telegram.org/api/bots/inline#21-using-a-prepared-inline-message">prepared
|
|
31372
|
+
* inline message saved by a bot, to be sent to the user via a
|
|
31373
|
+
* web app »</a>
|
|
31374
|
+
*/
|
|
31375
|
+
interface RawBotPreparedInlineMessage {
|
|
31376
|
+
_: 'messages.botPreparedInlineMessage';
|
|
31377
|
+
/**
|
|
31378
|
+
* The ID of the saved message, to be passed to the
|
|
31379
|
+
* <code>id</code> field of the
|
|
31380
|
+
* <a href="https://corefork.telegram.org/api/web-events#web-app-send-prepared-message">web_app_send_prepared_message
|
|
31381
|
+
* event »</a>
|
|
31382
|
+
*/
|
|
31383
|
+
id: string;
|
|
31384
|
+
/**
|
|
31385
|
+
* Expiration date of the message
|
|
31386
|
+
*/
|
|
31387
|
+
expireDate: number;
|
|
31388
|
+
}
|
|
31389
|
+
/**
|
|
31390
|
+
* Represents a
|
|
31391
|
+
* <a href="https://corefork.telegram.org/api/bots/inline#21-using-a-prepared-inline-message">prepared
|
|
31392
|
+
* inline message received via a bot's mini app, that can be
|
|
31393
|
+
* sent to some chats »</a>
|
|
31394
|
+
*/
|
|
31395
|
+
interface RawPreparedInlineMessage {
|
|
31396
|
+
_: 'messages.preparedInlineMessage';
|
|
31397
|
+
/**
|
|
31398
|
+
* The <code>query_id</code> to pass to
|
|
31399
|
+
* {@link messages.RawSendInlineBotResultRequest}
|
|
31400
|
+
*/
|
|
31401
|
+
queryId: Long;
|
|
31402
|
+
/**
|
|
31403
|
+
* The contents of the message, to be shown in a preview
|
|
31404
|
+
*/
|
|
31405
|
+
result: tl.TypeBotInlineResult;
|
|
31406
|
+
/**
|
|
31407
|
+
* Types of chats where this message can be sent
|
|
31408
|
+
*/
|
|
31409
|
+
peerTypes: tl.TypeInlineQueryPeerType[];
|
|
31410
|
+
/**
|
|
31411
|
+
* Caching validity of the results
|
|
31412
|
+
*/
|
|
31413
|
+
cacheTime: number;
|
|
31414
|
+
/**
|
|
31415
|
+
* Users mentioned in the results
|
|
31416
|
+
*/
|
|
31417
|
+
users: tl.TypeUser[];
|
|
31418
|
+
}
|
|
31419
|
+
/**
|
|
31420
|
+
* No new stickers were found for the specified query
|
|
31421
|
+
*/
|
|
31422
|
+
interface RawFoundStickersNotModified {
|
|
31423
|
+
_: 'messages.foundStickersNotModified';
|
|
31424
|
+
/**
|
|
31425
|
+
* Offset for
|
|
31426
|
+
* <a href="https://corefork.telegram.org/api/offsets">pagination</a>
|
|
31427
|
+
*/
|
|
31428
|
+
nextOffset?: number;
|
|
31429
|
+
}
|
|
31430
|
+
/**
|
|
31431
|
+
* Found stickers
|
|
31432
|
+
*/
|
|
31433
|
+
interface RawFoundStickers {
|
|
31434
|
+
_: 'messages.foundStickers';
|
|
31435
|
+
/**
|
|
31436
|
+
* Offset for
|
|
31437
|
+
* <a href="https://corefork.telegram.org/api/offsets">pagination</a>
|
|
31438
|
+
*/
|
|
31439
|
+
nextOffset?: number;
|
|
31440
|
+
/**
|
|
31441
|
+
* <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
|
|
31442
|
+
* used for caching, for more info click here</a>
|
|
31443
|
+
*/
|
|
31444
|
+
hash: Long;
|
|
31445
|
+
/**
|
|
31446
|
+
* Found stickers
|
|
31447
|
+
*/
|
|
31448
|
+
stickers: tl.TypeDocument[];
|
|
31449
|
+
}
|
|
30236
31450
|
/**
|
|
30237
31451
|
* Returns the list of messages by their IDs.
|
|
30238
31452
|
*
|
|
@@ -30402,7 +31616,8 @@ export class RpcError extends Error {
|
|
|
30402
31616
|
addOffset: number;
|
|
30403
31617
|
/**
|
|
30404
31618
|
* <a href="https://corefork.telegram.org/api/offsets">Number
|
|
30405
|
-
* of results to return</a
|
|
31619
|
+
* of results to return</a>, can be 0 to only return the
|
|
31620
|
+
* message counter.
|
|
30406
31621
|
*/
|
|
30407
31622
|
limit: number;
|
|
30408
31623
|
/**
|
|
@@ -30566,6 +31781,14 @@ export class RpcError extends Error {
|
|
|
30566
31781
|
* the message instead of at the bottom.
|
|
30567
31782
|
*/
|
|
30568
31783
|
invertMedia?: boolean;
|
|
31784
|
+
/**
|
|
31785
|
+
* Bots only: if set, allows sending up to 1000 messages per
|
|
31786
|
+
* second, ignoring
|
|
31787
|
+
* <a href="https://corefork.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once">broadcasting
|
|
31788
|
+
* limits</a> for a fee of 0.1 Telegram Stars per message. The
|
|
31789
|
+
* relevant Stars will be withdrawn from the bot's balance.
|
|
31790
|
+
*/
|
|
31791
|
+
allowPaidFloodskip?: boolean;
|
|
30569
31792
|
/**
|
|
30570
31793
|
* The destination where the message will be sent
|
|
30571
31794
|
*/
|
|
@@ -30656,6 +31879,14 @@ export class RpcError extends Error {
|
|
|
30656
31879
|
* the message instead of at the bottom.
|
|
30657
31880
|
*/
|
|
30658
31881
|
invertMedia?: boolean;
|
|
31882
|
+
/**
|
|
31883
|
+
* Bots only: if set, allows sending up to 1000 messages per
|
|
31884
|
+
* second, ignoring
|
|
31885
|
+
* <a href="https://corefork.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once">broadcasting
|
|
31886
|
+
* limits</a> for a fee of 0.1 Telegram Stars per message. The
|
|
31887
|
+
* relevant Stars will be withdrawn from the bot's balance.
|
|
31888
|
+
*/
|
|
31889
|
+
allowPaidFloodskip?: boolean;
|
|
30659
31890
|
/**
|
|
30660
31891
|
* Destination
|
|
30661
31892
|
*/
|
|
@@ -30747,6 +31978,14 @@ export class RpcError extends Error {
|
|
|
30747
31978
|
* protection</a> enabled
|
|
30748
31979
|
*/
|
|
30749
31980
|
noforwards?: boolean;
|
|
31981
|
+
/**
|
|
31982
|
+
* Bots only: if set, allows sending up to 1000 messages per
|
|
31983
|
+
* second, ignoring
|
|
31984
|
+
* <a href="https://corefork.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once">broadcasting
|
|
31985
|
+
* limits</a> for a fee of 0.1 Telegram Stars per message. The
|
|
31986
|
+
* relevant Stars will be withdrawn from the bot's balance.
|
|
31987
|
+
*/
|
|
31988
|
+
allowPaidFloodskip?: boolean;
|
|
30750
31989
|
/**
|
|
30751
31990
|
* Source of messages
|
|
30752
31991
|
*/
|
|
@@ -30813,7 +32052,7 @@ export class RpcError extends Error {
|
|
|
30813
32052
|
* Report a message in a chat for violation of telegram's Terms
|
|
30814
32053
|
* of Service
|
|
30815
32054
|
*
|
|
30816
|
-
* RPC method returns
|
|
32055
|
+
* RPC method returns {@link tl.TypeReportResult}
|
|
30817
32056
|
*/
|
|
30818
32057
|
interface RawReportRequest {
|
|
30819
32058
|
_: 'messages.report';
|
|
@@ -30826,9 +32065,9 @@ export class RpcError extends Error {
|
|
|
30826
32065
|
*/
|
|
30827
32066
|
id: number[];
|
|
30828
32067
|
/**
|
|
30829
|
-
*
|
|
32068
|
+
* Menu option, intially empty
|
|
30830
32069
|
*/
|
|
30831
|
-
|
|
32070
|
+
option: Uint8Array;
|
|
30832
32071
|
/**
|
|
30833
32072
|
* Comment for report moderation
|
|
30834
32073
|
*/
|
|
@@ -31290,6 +32529,13 @@ export class RpcError extends Error {
|
|
|
31290
32529
|
* administrators
|
|
31291
32530
|
*/
|
|
31292
32531
|
title?: string;
|
|
32532
|
+
/**
|
|
32533
|
+
* For
|
|
32534
|
+
* <a href="https://corefork.telegram.org/api/stars#star-subscriptions">Telegram
|
|
32535
|
+
* Star subscriptions »</a>, contains the pricing of the
|
|
32536
|
+
* subscription the user must activate to join the private
|
|
32537
|
+
* channel.
|
|
32538
|
+
*/
|
|
31293
32539
|
subscriptionPricing?: tl.TypeStarsSubscriptionPricing;
|
|
31294
32540
|
}
|
|
31295
32541
|
/**
|
|
@@ -31474,6 +32720,14 @@ export class RpcError extends Error {
|
|
|
31474
32720
|
* folder ID, for more info click here</a>
|
|
31475
32721
|
*/
|
|
31476
32722
|
folderId?: number;
|
|
32723
|
+
/**
|
|
32724
|
+
* Whether to search only in groups
|
|
32725
|
+
*/
|
|
32726
|
+
groupsOnly?: boolean;
|
|
32727
|
+
/**
|
|
32728
|
+
* Whether to search only in private chats
|
|
32729
|
+
*/
|
|
32730
|
+
usersOnly?: boolean;
|
|
31477
32731
|
/**
|
|
31478
32732
|
* Query
|
|
31479
32733
|
*/
|
|
@@ -32575,6 +33829,14 @@ export class RpcError extends Error {
|
|
|
32575
33829
|
* the message instead of at the bottom.
|
|
32576
33830
|
*/
|
|
32577
33831
|
invertMedia?: boolean;
|
|
33832
|
+
/**
|
|
33833
|
+
* Bots only: if set, allows sending up to 1000 messages per
|
|
33834
|
+
* second, ignoring
|
|
33835
|
+
* <a href="https://corefork.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once">broadcasting
|
|
33836
|
+
* limits</a> for a fee of 0.1 Telegram Stars per message. The
|
|
33837
|
+
* relevant Stars will be withdrawn from the bot's balance.
|
|
33838
|
+
*/
|
|
33839
|
+
allowPaidFloodskip?: boolean;
|
|
32578
33840
|
/**
|
|
32579
33841
|
* The destination chat
|
|
32580
33842
|
*/
|
|
@@ -33587,6 +34849,12 @@ export class RpcError extends Error {
|
|
|
33587
34849
|
* requests »</a>
|
|
33588
34850
|
*/
|
|
33589
34851
|
requested?: boolean;
|
|
34852
|
+
/**
|
|
34853
|
+
* Set this flag if the link is a
|
|
34854
|
+
* <a href="https://corefork.telegram.org/api/stars#star-subscriptions">Telegram
|
|
34855
|
+
* Star subscription link »</a> and only members with already
|
|
34856
|
+
* expired subscription must be returned.
|
|
34857
|
+
*/
|
|
33590
34858
|
subscriptionExpired?: boolean;
|
|
33591
34859
|
/**
|
|
33592
34860
|
* Chat
|
|
@@ -33987,9 +35255,20 @@ export class RpcError extends Error {
|
|
|
33987
35255
|
* <a href="https://corefork.telegram.org/api/config#reactions-uniq-max">appConfig.reactions_uniq_max</a>);
|
|
33988
35256
|
* this field and the other info set by the method will then be
|
|
33989
35257
|
* available to users in {@link RawChannelFull} and
|
|
33990
|
-
* {@link RawChatFull}.
|
|
35258
|
+
* {@link RawChatFull}.
|
|
35259
|
+
*
|
|
35260
|
+
* If this flag is not set, the previously configured
|
|
35261
|
+
* <code>reactions_limit</code> will not be altered.
|
|
33991
35262
|
*/
|
|
33992
35263
|
reactionsLimit?: number;
|
|
35264
|
+
/**
|
|
35265
|
+
* If this flag is set and a
|
|
35266
|
+
* <a href="https://corefork.telegram.org/type/Bool">Bool</a>
|
|
35267
|
+
* is passed, the method will enable or disable
|
|
35268
|
+
* <a href="https://corefork.telegram.org/api/reactions#paid-reactions">paid
|
|
35269
|
+
* message reactions »</a>. If this flag is not set, the
|
|
35270
|
+
* previously stored setting will not be changed.
|
|
35271
|
+
*/
|
|
33993
35272
|
paidEnabled?: boolean;
|
|
33994
35273
|
}
|
|
33995
35274
|
/**
|
|
@@ -34221,12 +35500,20 @@ export class RpcError extends Error {
|
|
|
34221
35500
|
silent?: boolean;
|
|
34222
35501
|
/**
|
|
34223
35502
|
* If set, requests to open the mini app in compact mode (as
|
|
34224
|
-
* opposed to
|
|
35503
|
+
* opposed to normal or fullscreen mode). Must be set if the
|
|
34225
35504
|
* <code>mode</code> parameter of the
|
|
34226
35505
|
* <a href="https://corefork.telegram.org/api/links#bot-attachment-or-side-menu-links">attachment
|
|
34227
35506
|
* menu deep link</a> is equal to <code>compact</code>.
|
|
34228
35507
|
*/
|
|
34229
35508
|
compact?: boolean;
|
|
35509
|
+
/**
|
|
35510
|
+
* If set, requests to open the mini app in fullscreen mode (as
|
|
35511
|
+
* opposed to normal or compact mode). Must be set if the
|
|
35512
|
+
* <code>mode</code> parameter of the
|
|
35513
|
+
* <a href="https://corefork.telegram.org/api/links#bot-attachment-or-side-menu-links">attachment
|
|
35514
|
+
* menu deep link</a> is equal to <code>fullscreen</code>.
|
|
35515
|
+
*/
|
|
35516
|
+
fullscreen?: boolean;
|
|
34230
35517
|
/**
|
|
34231
35518
|
* Dialog where the web app is being opened, and where the
|
|
34232
35519
|
* resulting message will be sent (see the
|
|
@@ -34349,6 +35636,10 @@ export class RpcError extends Error {
|
|
|
34349
35636
|
* Deprecated.
|
|
34350
35637
|
*/
|
|
34351
35638
|
compact?: boolean;
|
|
35639
|
+
/**
|
|
35640
|
+
* Requests to open the app in fullscreen mode.
|
|
35641
|
+
*/
|
|
35642
|
+
fullscreen?: boolean;
|
|
34352
35643
|
/**
|
|
34353
35644
|
* Bot that owns the mini app
|
|
34354
35645
|
*/
|
|
@@ -34625,7 +35916,7 @@ export class RpcError extends Error {
|
|
|
34625
35916
|
_: 'messages.setDefaultHistoryTTL';
|
|
34626
35917
|
/**
|
|
34627
35918
|
* The new default Time-To-Live of all messages sent in new
|
|
34628
|
-
* chats.
|
|
35919
|
+
* chats, in seconds.
|
|
34629
35920
|
*/
|
|
34630
35921
|
period: number;
|
|
34631
35922
|
}
|
|
@@ -34800,12 +36091,20 @@ export class RpcError extends Error {
|
|
|
34800
36091
|
writeAllowed?: boolean;
|
|
34801
36092
|
/**
|
|
34802
36093
|
* If set, requests to open the mini app in compact mode (as
|
|
34803
|
-
* opposed to
|
|
36094
|
+
* opposed to normal or fullscreen mode). Must be set if the
|
|
34804
36095
|
* <code>mode</code> parameter of the
|
|
34805
36096
|
* <a href="https://corefork.telegram.org/api/links#direct-mini-app-links">direct
|
|
34806
36097
|
* Mini App deep link</a> is equal to <code>compact</code>.
|
|
34807
36098
|
*/
|
|
34808
36099
|
compact?: boolean;
|
|
36100
|
+
/**
|
|
36101
|
+
* If set, requests to open the mini app in fullscreen mode (as
|
|
36102
|
+
* opposed to compact or normal mode). Must be set if the
|
|
36103
|
+
* <code>mode</code> parameter of the
|
|
36104
|
+
* <a href="https://corefork.telegram.org/api/links#direct-mini-app-links">direct
|
|
36105
|
+
* Mini App deep link</a> is equal to <code>fullscreen</code>.
|
|
36106
|
+
*/
|
|
36107
|
+
fullscreen?: boolean;
|
|
34809
36108
|
/**
|
|
34810
36109
|
* If the client has clicked on the link in a Telegram chat,
|
|
34811
36110
|
* pass the chat's peer information; otherwise pass the bot's
|
|
@@ -35483,12 +36782,20 @@ export class RpcError extends Error {
|
|
|
35483
36782
|
_: 'messages.requestMainWebView';
|
|
35484
36783
|
/**
|
|
35485
36784
|
* If set, requests to open the mini app in compact mode (as
|
|
35486
|
-
* opposed to
|
|
36785
|
+
* opposed to normal or fullscreen mode). Must be set if the
|
|
35487
36786
|
* <code>mode</code> parameter of the
|
|
35488
36787
|
* <a href="https://corefork.telegram.org/api/links#main-mini-app-links">Main
|
|
35489
36788
|
* Mini App link</a> is equal to <code>compact</code>.
|
|
35490
36789
|
*/
|
|
35491
36790
|
compact?: boolean;
|
|
36791
|
+
/**
|
|
36792
|
+
* If set, requests to open the mini app in fullscreen mode (as
|
|
36793
|
+
* opposed to compact or normal mode). Must be set if the
|
|
36794
|
+
* <code>mode</code> parameter of the
|
|
36795
|
+
* <a href="https://corefork.telegram.org/api/links#main-mini-app-links">Main
|
|
36796
|
+
* Mini App link</a> is equal to <code>fullscreen</code>.
|
|
36797
|
+
*/
|
|
36798
|
+
fullscreen?: boolean;
|
|
35492
36799
|
/**
|
|
35493
36800
|
* Currently open chat, may be {@link RawInputPeerEmpty} if no
|
|
35494
36801
|
* chat is currently open.
|
|
@@ -35516,31 +36823,282 @@ export class RpcError extends Error {
|
|
|
35516
36823
|
platform: string;
|
|
35517
36824
|
}
|
|
35518
36825
|
/**
|
|
36826
|
+
* Sends one or more
|
|
36827
|
+
* <a href="https://corefork.telegram.org/api/reactions#paid-reactions">paid
|
|
36828
|
+
* Telegram Star reactions »</a>, transferring
|
|
36829
|
+
* <a href="https://corefork.telegram.org/api/stars">Telegram
|
|
36830
|
+
* Stars »</a> to a channel's balance.
|
|
36831
|
+
*
|
|
35519
36832
|
* RPC method returns {@link tl.TypeUpdates}
|
|
35520
36833
|
*/
|
|
35521
36834
|
interface RawSendPaidReactionRequest {
|
|
35522
36835
|
_: 'messages.sendPaidReaction';
|
|
36836
|
+
/**
|
|
36837
|
+
* The channel
|
|
36838
|
+
*/
|
|
35523
36839
|
peer: tl.TypeInputPeer;
|
|
36840
|
+
/**
|
|
36841
|
+
* The message to react to
|
|
36842
|
+
*/
|
|
35524
36843
|
msgId: number;
|
|
36844
|
+
/**
|
|
36845
|
+
* The number of
|
|
36846
|
+
* <a href="https://corefork.telegram.org/api/stars">stars</a>
|
|
36847
|
+
* to send (each will increment the reaction counter by one).
|
|
36848
|
+
*/
|
|
35525
36849
|
count: number;
|
|
36850
|
+
/**
|
|
36851
|
+
* Unique client message ID required to prevent message
|
|
36852
|
+
* resending
|
|
36853
|
+
*/
|
|
35526
36854
|
randomId: Long;
|
|
36855
|
+
/**
|
|
36856
|
+
* Each post with star reactions has a leaderboard with the top
|
|
36857
|
+
* senders, but users can opt out of appearing there if they
|
|
36858
|
+
* prefer more privacy.
|
|
36859
|
+
*
|
|
36860
|
+
* If the user explicitly chose to make their paid reaction(s)
|
|
36861
|
+
* private, pass true to
|
|
36862
|
+
* {@link messages.RawSendPaidReactionRequest}.<code>private</code>.
|
|
36863
|
+
*
|
|
36864
|
+
*
|
|
36865
|
+
* If the user explicitly chose to make their paid reaction(s)
|
|
36866
|
+
* private, pass true to
|
|
36867
|
+
* {@link messages.RawSendPaidReactionRequest}.<code>private</code>.
|
|
36868
|
+
*
|
|
36869
|
+
*
|
|
36870
|
+
* If the user did not make any explicit choice about the
|
|
36871
|
+
* privacy of their paid reaction(s) (i.e. when reacting by
|
|
36872
|
+
* clicking on an existing star reaction on a message), do not
|
|
36873
|
+
* populate the
|
|
36874
|
+
* {@link messages.RawSendPaidReactionRequest}.<code>private</code>
|
|
36875
|
+
* flag.
|
|
36876
|
+
*/
|
|
35527
36877
|
private?: boolean;
|
|
35528
36878
|
}
|
|
35529
36879
|
/**
|
|
36880
|
+
* Changes the privacy of already sent
|
|
36881
|
+
* <a href="https://corefork.telegram.org/api/reactions#paid-reactions">paid
|
|
36882
|
+
* reactions</a> on a specific message.
|
|
36883
|
+
*
|
|
35530
36884
|
* RPC method returns boolean
|
|
35531
36885
|
*/
|
|
35532
36886
|
interface RawTogglePaidReactionPrivacyRequest {
|
|
35533
36887
|
_: 'messages.togglePaidReactionPrivacy';
|
|
36888
|
+
/**
|
|
36889
|
+
* The channel
|
|
36890
|
+
*/
|
|
35534
36891
|
peer: tl.TypeInputPeer;
|
|
36892
|
+
/**
|
|
36893
|
+
* The ID of the message to which we sent the paid reactions
|
|
36894
|
+
*/
|
|
35535
36895
|
msgId: number;
|
|
36896
|
+
/**
|
|
36897
|
+
* If true, makes the current anonymous in the top sender
|
|
36898
|
+
* leaderboard for this message; otherwise, does the opposite.
|
|
36899
|
+
*/
|
|
35536
36900
|
private: boolean;
|
|
35537
36901
|
}
|
|
35538
36902
|
/**
|
|
36903
|
+
* Fetches an {@link RawUpdatePaidReactionPrivacy} update with
|
|
36904
|
+
* the current
|
|
36905
|
+
* <a href="https://corefork.telegram.org/api/reactions#paid-reactions">default
|
|
36906
|
+
* paid reaction privacy, see here »</a> for more info.
|
|
36907
|
+
*
|
|
35539
36908
|
* RPC method returns {@link tl.TypeUpdates}
|
|
35540
36909
|
*/
|
|
35541
36910
|
interface RawGetPaidReactionPrivacyRequest {
|
|
35542
36911
|
_: 'messages.getPaidReactionPrivacy';
|
|
35543
36912
|
}
|
|
36913
|
+
/**
|
|
36914
|
+
* Mark a specific
|
|
36915
|
+
* <a href="https://corefork.telegram.org/api/sponsored-messages">sponsored
|
|
36916
|
+
* message »</a> as read
|
|
36917
|
+
*
|
|
36918
|
+
* RPC method returns boolean
|
|
36919
|
+
*/
|
|
36920
|
+
interface RawViewSponsoredMessageRequest {
|
|
36921
|
+
_: 'messages.viewSponsoredMessage';
|
|
36922
|
+
/**
|
|
36923
|
+
* The channel/bot where the ad is located
|
|
36924
|
+
*/
|
|
36925
|
+
peer: tl.TypeInputPeer;
|
|
36926
|
+
/**
|
|
36927
|
+
* The ad's unique ID.
|
|
36928
|
+
*/
|
|
36929
|
+
randomId: Uint8Array;
|
|
36930
|
+
}
|
|
36931
|
+
/**
|
|
36932
|
+
* Informs the server that the user has interacted with a
|
|
36933
|
+
* sponsored message in
|
|
36934
|
+
* <a href="https://corefork.telegram.org/api/sponsored-messages#clicking-on-sponsored-messages">one
|
|
36935
|
+
* of the ways listed here »</a>.
|
|
36936
|
+
*
|
|
36937
|
+
* RPC method returns boolean
|
|
36938
|
+
*/
|
|
36939
|
+
interface RawClickSponsoredMessageRequest {
|
|
36940
|
+
_: 'messages.clickSponsoredMessage';
|
|
36941
|
+
/**
|
|
36942
|
+
* The user clicked on the media
|
|
36943
|
+
*/
|
|
36944
|
+
media?: boolean;
|
|
36945
|
+
/**
|
|
36946
|
+
* The user expanded the video to full screen, and then clicked
|
|
36947
|
+
* on it.
|
|
36948
|
+
*/
|
|
36949
|
+
fullscreen?: boolean;
|
|
36950
|
+
/**
|
|
36951
|
+
* The channel/bot where the ad is located
|
|
36952
|
+
*/
|
|
36953
|
+
peer: tl.TypeInputPeer;
|
|
36954
|
+
/**
|
|
36955
|
+
* The ad's unique ID.
|
|
36956
|
+
*/
|
|
36957
|
+
randomId: Uint8Array;
|
|
36958
|
+
}
|
|
36959
|
+
/**
|
|
36960
|
+
* Report a
|
|
36961
|
+
* <a href="https://corefork.telegram.org/api/sponsored-messages">sponsored
|
|
36962
|
+
* message »</a>, see
|
|
36963
|
+
* <a href="https://corefork.telegram.org/api/sponsored-messages#reporting-sponsored-messages">here
|
|
36964
|
+
* »</a> for more info on the full flow.
|
|
36965
|
+
*
|
|
36966
|
+
* RPC method returns
|
|
36967
|
+
* {@link tl.channels.TypeSponsoredMessageReportResult}
|
|
36968
|
+
*/
|
|
36969
|
+
interface RawReportSponsoredMessageRequest {
|
|
36970
|
+
_: 'messages.reportSponsoredMessage';
|
|
36971
|
+
/**
|
|
36972
|
+
* The channel/bot where the ad is located
|
|
36973
|
+
*/
|
|
36974
|
+
peer: tl.TypeInputPeer;
|
|
36975
|
+
/**
|
|
36976
|
+
* The ad's unique ID.
|
|
36977
|
+
*/
|
|
36978
|
+
randomId: Uint8Array;
|
|
36979
|
+
/**
|
|
36980
|
+
* Chosen report option, initially an empty string, see
|
|
36981
|
+
* <a href="https://corefork.telegram.org/api/sponsored-messages#reporting-sponsored-messages">here
|
|
36982
|
+
* »</a> for more info on the full flow.
|
|
36983
|
+
*/
|
|
36984
|
+
option: Uint8Array;
|
|
36985
|
+
}
|
|
36986
|
+
/**
|
|
36987
|
+
* Get a list of
|
|
36988
|
+
* <a href="https://corefork.telegram.org/api/sponsored-messages">sponsored
|
|
36989
|
+
* messages for a peer, see here »</a> for more info.
|
|
36990
|
+
*
|
|
36991
|
+
* RPC method returns {@link tl.messages.TypeSponsoredMessages}
|
|
36992
|
+
*/
|
|
36993
|
+
interface RawGetSponsoredMessagesRequest {
|
|
36994
|
+
_: 'messages.getSponsoredMessages';
|
|
36995
|
+
/**
|
|
36996
|
+
* The currently open channel/bot.
|
|
36997
|
+
*/
|
|
36998
|
+
peer: tl.TypeInputPeer;
|
|
36999
|
+
}
|
|
37000
|
+
/**
|
|
37001
|
+
* Save a
|
|
37002
|
+
* <a href="https://corefork.telegram.org/api/bots/inline#21-using-a-prepared-inline-message">prepared
|
|
37003
|
+
* inline message</a>, to be shared by the user of the mini app
|
|
37004
|
+
* using a
|
|
37005
|
+
* <a href="https://corefork.telegram.org/api/web-events#web-app-send-prepared-message">web_app_send_prepared_message
|
|
37006
|
+
* event</a>
|
|
37007
|
+
*
|
|
37008
|
+
* RPC method returns
|
|
37009
|
+
* {@link tl.messages.TypeBotPreparedInlineMessage}
|
|
37010
|
+
*/
|
|
37011
|
+
interface RawSavePreparedInlineMessageRequest {
|
|
37012
|
+
_: 'messages.savePreparedInlineMessage';
|
|
37013
|
+
/**
|
|
37014
|
+
* The message
|
|
37015
|
+
*/
|
|
37016
|
+
result: tl.TypeInputBotInlineResult;
|
|
37017
|
+
/**
|
|
37018
|
+
* The user to whom the
|
|
37019
|
+
* <a href="https://corefork.telegram.org/api/web-events#web-app-send-prepared-message">web_app_send_prepared_message
|
|
37020
|
+
* event</a> event will be sent
|
|
37021
|
+
*/
|
|
37022
|
+
userId: tl.TypeInputUser;
|
|
37023
|
+
/**
|
|
37024
|
+
* Types of chats where this message can be sent
|
|
37025
|
+
*/
|
|
37026
|
+
peerTypes?: tl.TypeInlineQueryPeerType[];
|
|
37027
|
+
}
|
|
37028
|
+
/**
|
|
37029
|
+
* Obtain a
|
|
37030
|
+
* <a href="https://corefork.telegram.org/api/bots/inline#21-using-a-prepared-inline-message">prepared
|
|
37031
|
+
* inline message</a> generated by a
|
|
37032
|
+
* <a href="https://corefork.telegram.org/api/bots/webapps">mini
|
|
37033
|
+
* app</a>: invoked when handling
|
|
37034
|
+
* <a href="https://corefork.telegram.org/api/web-events#web-app-send-prepared-message">web_app_send_prepared_message
|
|
37035
|
+
* events</a>
|
|
37036
|
+
*
|
|
37037
|
+
* RPC method returns
|
|
37038
|
+
* {@link tl.messages.TypePreparedInlineMessage}
|
|
37039
|
+
*/
|
|
37040
|
+
interface RawGetPreparedInlineMessageRequest {
|
|
37041
|
+
_: 'messages.getPreparedInlineMessage';
|
|
37042
|
+
/**
|
|
37043
|
+
* The bot that owns the mini app that emitted the
|
|
37044
|
+
* <a href="https://corefork.telegram.org/api/web-events#web-app-send-prepared-message">web_app_send_prepared_message
|
|
37045
|
+
* event</a>
|
|
37046
|
+
*/
|
|
37047
|
+
bot: tl.TypeInputUser;
|
|
37048
|
+
/**
|
|
37049
|
+
* The <code>id</code> from the
|
|
37050
|
+
* <a href="https://corefork.telegram.org/api/web-events#web-app-send-prepared-message">web_app_send_prepared_message
|
|
37051
|
+
* event</a>
|
|
37052
|
+
*/
|
|
37053
|
+
id: string;
|
|
37054
|
+
}
|
|
37055
|
+
/**
|
|
37056
|
+
* Search for stickers using AI-powered keyword search
|
|
37057
|
+
*
|
|
37058
|
+
* RPC method returns {@link tl.messages.TypeFoundStickers}
|
|
37059
|
+
*/
|
|
37060
|
+
interface RawSearchStickersRequest {
|
|
37061
|
+
_: 'messages.searchStickers';
|
|
37062
|
+
/**
|
|
37063
|
+
* If set, returns
|
|
37064
|
+
* <a href="https://corefork.telegram.org/api/custom-emoji">custom
|
|
37065
|
+
* emoji stickers</a>
|
|
37066
|
+
*/
|
|
37067
|
+
emojis?: boolean;
|
|
37068
|
+
/**
|
|
37069
|
+
* The search term
|
|
37070
|
+
*/
|
|
37071
|
+
q: string;
|
|
37072
|
+
/**
|
|
37073
|
+
* Space-separated list of emojis to search for
|
|
37074
|
+
*/
|
|
37075
|
+
emoticon: string;
|
|
37076
|
+
/**
|
|
37077
|
+
* List of possible IETF language tags of the user's input
|
|
37078
|
+
* language; may be empty if unknown
|
|
37079
|
+
*/
|
|
37080
|
+
langCode: string[];
|
|
37081
|
+
/**
|
|
37082
|
+
* <a href="https://corefork.telegram.org/api/offsets">Offset
|
|
37083
|
+
* for pagination</a>
|
|
37084
|
+
*/
|
|
37085
|
+
offset: number;
|
|
37086
|
+
/**
|
|
37087
|
+
* Maximum number of results to return,
|
|
37088
|
+
* <a href="https://corefork.telegram.org/api/offsets">see
|
|
37089
|
+
* pagination</a>
|
|
37090
|
+
*/
|
|
37091
|
+
limit: number;
|
|
37092
|
+
/**
|
|
37093
|
+
* <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
|
|
37094
|
+
* used for caching, for more info click here</a>.
|
|
37095
|
+
*
|
|
37096
|
+
* The hash may be generated locally by using the
|
|
37097
|
+
* <code>id</code>s of the returned or stored sticker
|
|
37098
|
+
* {@link RawDocument}s.
|
|
37099
|
+
*/
|
|
37100
|
+
hash: Long;
|
|
37101
|
+
}
|
|
35544
37102
|
interface RpcCallReturn {
|
|
35545
37103
|
'messages.getMessages': tl.messages.TypeMessages
|
|
35546
37104
|
'messages.getDialogs': tl.messages.TypeDialogs
|
|
@@ -35556,7 +37114,7 @@ export class RpcError extends Error {
|
|
|
35556
37114
|
'messages.forwardMessages': tl.TypeUpdates
|
|
35557
37115
|
'messages.reportSpam': boolean
|
|
35558
37116
|
'messages.getPeerSettings': tl.messages.TypePeerSettings
|
|
35559
|
-
'messages.report':
|
|
37117
|
+
'messages.report': tl.TypeReportResult
|
|
35560
37118
|
'messages.getChats': tl.messages.TypeChats
|
|
35561
37119
|
'messages.getFullChat': tl.messages.TypeChatFull
|
|
35562
37120
|
'messages.editChatTitle': tl.TypeUpdates
|
|
@@ -35759,6 +37317,13 @@ export class RpcError extends Error {
|
|
|
35759
37317
|
'messages.sendPaidReaction': tl.TypeUpdates
|
|
35760
37318
|
'messages.togglePaidReactionPrivacy': boolean
|
|
35761
37319
|
'messages.getPaidReactionPrivacy': tl.TypeUpdates
|
|
37320
|
+
'messages.viewSponsoredMessage': boolean
|
|
37321
|
+
'messages.clickSponsoredMessage': boolean
|
|
37322
|
+
'messages.reportSponsoredMessage': tl.channels.TypeSponsoredMessageReportResult
|
|
37323
|
+
'messages.getSponsoredMessages': tl.messages.TypeSponsoredMessages
|
|
37324
|
+
'messages.savePreparedInlineMessage': tl.messages.TypeBotPreparedInlineMessage
|
|
37325
|
+
'messages.getPreparedInlineMessage': tl.messages.TypePreparedInlineMessage
|
|
37326
|
+
'messages.searchStickers': tl.messages.TypeFoundStickers
|
|
35762
37327
|
}
|
|
35763
37328
|
/**
|
|
35764
37329
|
* Object contains a list of chats with messages and auxiliary
|
|
@@ -36082,6 +37647,28 @@ export class RpcError extends Error {
|
|
|
36082
37647
|
*/
|
|
36083
37648
|
type TypeAvailableEffects = tl.messages.RawAvailableEffectsNotModified | tl.messages.RawAvailableEffects
|
|
36084
37649
|
function isAnyAvailableEffects(o: object): o is TypeAvailableEffects
|
|
37650
|
+
/**
|
|
37651
|
+
* Represents a
|
|
37652
|
+
* <a href="https://corefork.telegram.org/api/bots/inline#21-using-a-prepared-inline-message">prepared
|
|
37653
|
+
* inline message saved by a bot, to be sent to the user via a
|
|
37654
|
+
* web app »</a>
|
|
37655
|
+
*/
|
|
37656
|
+
type TypeBotPreparedInlineMessage = tl.messages.RawBotPreparedInlineMessage
|
|
37657
|
+
function isAnyBotPreparedInlineMessage(o: object): o is TypeBotPreparedInlineMessage
|
|
37658
|
+
/**
|
|
37659
|
+
* Represents a
|
|
37660
|
+
* <a href="https://corefork.telegram.org/api/bots/inline#21-using-a-prepared-inline-message">prepared
|
|
37661
|
+
* inline message received via a bot's mini app, that can be
|
|
37662
|
+
* sent to some chats »</a>
|
|
37663
|
+
*/
|
|
37664
|
+
type TypePreparedInlineMessage = tl.messages.RawPreparedInlineMessage
|
|
37665
|
+
function isAnyPreparedInlineMessage(o: object): o is TypePreparedInlineMessage
|
|
37666
|
+
/**
|
|
37667
|
+
* Found
|
|
37668
|
+
* <a href="https://corefork.telegram.org/api/stickers">stickers</a>
|
|
37669
|
+
*/
|
|
37670
|
+
type TypeFoundStickers = tl.messages.RawFoundStickersNotModified | tl.messages.RawFoundStickers
|
|
37671
|
+
function isAnyFoundStickers(o: object): o is TypeFoundStickers
|
|
36085
37672
|
}
|
|
36086
37673
|
|
|
36087
37674
|
namespace updates {
|
|
@@ -40220,7 +41807,15 @@ export class RpcError extends Error {
|
|
|
40220
41807
|
*/
|
|
40221
41808
|
interface RawToggleSignaturesRequest {
|
|
40222
41809
|
_: 'channels.toggleSignatures';
|
|
41810
|
+
/**
|
|
41811
|
+
* If set, enables message signatures.
|
|
41812
|
+
*/
|
|
40223
41813
|
signaturesEnabled?: boolean;
|
|
41814
|
+
/**
|
|
41815
|
+
* If set, messages from channel admins will link to their
|
|
41816
|
+
* profiles, just like for group messages: can only be set if
|
|
41817
|
+
* the <code>signatures_enabled</code> flag is set.
|
|
41818
|
+
*/
|
|
40224
41819
|
profilesEnabled?: boolean;
|
|
40225
41820
|
/**
|
|
40226
41821
|
* Channel
|
|
@@ -40549,34 +42144,6 @@ export class RpcError extends Error {
|
|
|
40549
42144
|
*/
|
|
40550
42145
|
channel: tl.TypeInputChannel;
|
|
40551
42146
|
}
|
|
40552
|
-
/**
|
|
40553
|
-
* Mark a specific sponsored message as read
|
|
40554
|
-
*
|
|
40555
|
-
* RPC method returns boolean
|
|
40556
|
-
*/
|
|
40557
|
-
interface RawViewSponsoredMessageRequest {
|
|
40558
|
-
_: 'channels.viewSponsoredMessage';
|
|
40559
|
-
/**
|
|
40560
|
-
* Peer
|
|
40561
|
-
*/
|
|
40562
|
-
channel: tl.TypeInputChannel;
|
|
40563
|
-
/**
|
|
40564
|
-
* Message ID
|
|
40565
|
-
*/
|
|
40566
|
-
randomId: Uint8Array;
|
|
40567
|
-
}
|
|
40568
|
-
/**
|
|
40569
|
-
* Get a list of sponsored messages
|
|
40570
|
-
*
|
|
40571
|
-
* RPC method returns {@link tl.messages.TypeSponsoredMessages}
|
|
40572
|
-
*/
|
|
40573
|
-
interface RawGetSponsoredMessagesRequest {
|
|
40574
|
-
_: 'channels.getSponsoredMessages';
|
|
40575
|
-
/**
|
|
40576
|
-
* Peer
|
|
40577
|
-
*/
|
|
40578
|
-
channel: tl.TypeInputChannel;
|
|
40579
|
-
}
|
|
40580
42147
|
/**
|
|
40581
42148
|
* Obtains a list of peers that can be used to send messages in
|
|
40582
42149
|
* a specific group
|
|
@@ -41007,22 +42574,6 @@ export class RpcError extends Error {
|
|
|
41007
42574
|
*/
|
|
41008
42575
|
enabled: boolean;
|
|
41009
42576
|
}
|
|
41010
|
-
/**
|
|
41011
|
-
* Informs the server that the user has either:
|
|
41012
|
-
*
|
|
41013
|
-
* RPC method returns boolean
|
|
41014
|
-
*/
|
|
41015
|
-
interface RawClickSponsoredMessageRequest {
|
|
41016
|
-
_: 'channels.clickSponsoredMessage';
|
|
41017
|
-
/**
|
|
41018
|
-
* Channel where the sponsored message was posted
|
|
41019
|
-
*/
|
|
41020
|
-
channel: tl.TypeInputChannel;
|
|
41021
|
-
/**
|
|
41022
|
-
* Message ID
|
|
41023
|
-
*/
|
|
41024
|
-
randomId: Uint8Array;
|
|
41025
|
-
}
|
|
41026
42577
|
/**
|
|
41027
42578
|
* Update the
|
|
41028
42579
|
* <a href="https://corefork.telegram.org/api/colors">accent
|
|
@@ -41173,33 +42724,6 @@ export class RpcError extends Error {
|
|
|
41173
42724
|
*/
|
|
41174
42725
|
stickerset: tl.TypeInputStickerSet;
|
|
41175
42726
|
}
|
|
41176
|
-
/**
|
|
41177
|
-
* Report a
|
|
41178
|
-
* <a href="https://corefork.telegram.org/api/sponsored-messages">sponsored
|
|
41179
|
-
* message »</a>, see
|
|
41180
|
-
* <a href="https://corefork.telegram.org/api/sponsored-messages#reporting-sponsored-messages">here
|
|
41181
|
-
* »</a> for more info on the full flow.
|
|
41182
|
-
*
|
|
41183
|
-
* RPC method returns
|
|
41184
|
-
* {@link tl.channels.TypeSponsoredMessageReportResult}
|
|
41185
|
-
*/
|
|
41186
|
-
interface RawReportSponsoredMessageRequest {
|
|
41187
|
-
_: 'channels.reportSponsoredMessage';
|
|
41188
|
-
/**
|
|
41189
|
-
* The channel where the sponsored message can be seen.
|
|
41190
|
-
*/
|
|
41191
|
-
channel: tl.TypeInputChannel;
|
|
41192
|
-
/**
|
|
41193
|
-
* ID of the sponsored message.
|
|
41194
|
-
*/
|
|
41195
|
-
randomId: Uint8Array;
|
|
41196
|
-
/**
|
|
41197
|
-
* Chosen report option, initially an empty string, see
|
|
41198
|
-
* <a href="https://corefork.telegram.org/api/sponsored-messages#reporting-sponsored-messages">here
|
|
41199
|
-
* »</a> for more info on the full flow.
|
|
41200
|
-
*/
|
|
41201
|
-
option: Uint8Array;
|
|
41202
|
-
}
|
|
41203
42727
|
/**
|
|
41204
42728
|
* Disable ads on the specified channel, for all users.
|
|
41205
42729
|
*
|
|
@@ -41258,6 +42782,60 @@ export class RpcError extends Error {
|
|
|
41258
42782
|
*/
|
|
41259
42783
|
limit: number;
|
|
41260
42784
|
}
|
|
42785
|
+
/**
|
|
42786
|
+
* Mark a specific sponsored message as read
|
|
42787
|
+
*
|
|
42788
|
+
* RPC method returns boolean
|
|
42789
|
+
*/
|
|
42790
|
+
interface RawViewSponsoredMessageRequest {
|
|
42791
|
+
_: 'channels.viewSponsoredMessage';
|
|
42792
|
+
/**
|
|
42793
|
+
* Peer
|
|
42794
|
+
*/
|
|
42795
|
+
channel: tl.TypeInputChannel;
|
|
42796
|
+
/**
|
|
42797
|
+
* Message ID
|
|
42798
|
+
*/
|
|
42799
|
+
randomId: Uint8Array;
|
|
42800
|
+
}
|
|
42801
|
+
/**
|
|
42802
|
+
* Get a list of sponsored messages
|
|
42803
|
+
*
|
|
42804
|
+
* RPC method returns {@link tl.messages.TypeSponsoredMessages}
|
|
42805
|
+
*/
|
|
42806
|
+
interface RawGetSponsoredMessagesRequest {
|
|
42807
|
+
_: 'channels.getSponsoredMessages';
|
|
42808
|
+
/**
|
|
42809
|
+
* Peer
|
|
42810
|
+
*/
|
|
42811
|
+
channel: tl.TypeInputChannel;
|
|
42812
|
+
}
|
|
42813
|
+
/**
|
|
42814
|
+
* Informs the server that the user has either:
|
|
42815
|
+
*
|
|
42816
|
+
* RPC method returns boolean
|
|
42817
|
+
*/
|
|
42818
|
+
interface RawClickSponsoredMessageRequest {
|
|
42819
|
+
_: 'channels.clickSponsoredMessage';
|
|
42820
|
+
channel: tl.TypeInputChannel;
|
|
42821
|
+
randomId: Uint8Array;
|
|
42822
|
+
}
|
|
42823
|
+
/**
|
|
42824
|
+
* Report a
|
|
42825
|
+
* <a href="https://corefork.telegram.org/api/sponsored-messages">sponsored
|
|
42826
|
+
* message »</a>, see
|
|
42827
|
+
* <a href="https://corefork.telegram.org/api/sponsored-messages#reporting-sponsored-messages">here
|
|
42828
|
+
* »</a> for more info on the full flow.
|
|
42829
|
+
*
|
|
42830
|
+
* RPC method returns
|
|
42831
|
+
* {@link tl.channels.TypeSponsoredMessageReportResult}
|
|
42832
|
+
*/
|
|
42833
|
+
interface RawReportSponsoredMessageRequest {
|
|
42834
|
+
_: 'channels.reportSponsoredMessage';
|
|
42835
|
+
channel: tl.TypeInputChannel;
|
|
42836
|
+
randomId: Uint8Array;
|
|
42837
|
+
option: Uint8Array;
|
|
42838
|
+
}
|
|
41261
42839
|
interface RpcCallReturn {
|
|
41262
42840
|
'channels.readHistory': boolean
|
|
41263
42841
|
'channels.deleteMessages': tl.messages.TypeAffectedMessages
|
|
@@ -41294,8 +42872,6 @@ export class RpcError extends Error {
|
|
|
41294
42872
|
'channels.toggleSlowMode': tl.TypeUpdates
|
|
41295
42873
|
'channels.getInactiveChannels': tl.messages.TypeInactiveChats
|
|
41296
42874
|
'channels.convertToGigagroup': tl.TypeUpdates
|
|
41297
|
-
'channels.viewSponsoredMessage': boolean
|
|
41298
|
-
'channels.getSponsoredMessages': tl.messages.TypeSponsoredMessages
|
|
41299
42875
|
'channels.getSendAs': tl.channels.TypeSendAsPeers
|
|
41300
42876
|
'channels.deleteParticipantHistory': tl.messages.TypeAffectedHistory
|
|
41301
42877
|
'channels.toggleJoinToSend': tl.TypeUpdates
|
|
@@ -41314,16 +42890,18 @@ export class RpcError extends Error {
|
|
|
41314
42890
|
'channels.toggleAntiSpam': tl.TypeUpdates
|
|
41315
42891
|
'channels.reportAntiSpamFalsePositive': boolean
|
|
41316
42892
|
'channels.toggleParticipantsHidden': tl.TypeUpdates
|
|
41317
|
-
'channels.clickSponsoredMessage': boolean
|
|
41318
42893
|
'channels.updateColor': tl.TypeUpdates
|
|
41319
42894
|
'channels.toggleViewForumAsMessages': tl.TypeUpdates
|
|
41320
42895
|
'channels.getChannelRecommendations': tl.messages.TypeChats
|
|
41321
42896
|
'channels.updateEmojiStatus': tl.TypeUpdates
|
|
41322
42897
|
'channels.setBoostsToUnblockRestrictions': tl.TypeUpdates
|
|
41323
42898
|
'channels.setEmojiStickers': boolean
|
|
41324
|
-
'channels.reportSponsoredMessage': tl.channels.TypeSponsoredMessageReportResult
|
|
41325
42899
|
'channels.restrictSponsoredMessages': tl.TypeUpdates
|
|
41326
42900
|
'channels.searchPosts': tl.messages.TypeMessages
|
|
42901
|
+
'channels.viewSponsoredMessage': boolean
|
|
42902
|
+
'channels.getSponsoredMessages': tl.messages.TypeSponsoredMessages
|
|
42903
|
+
'channels.clickSponsoredMessage': boolean
|
|
42904
|
+
'channels.reportSponsoredMessage': tl.channels.TypeSponsoredMessageReportResult
|
|
41327
42905
|
}
|
|
41328
42906
|
/**
|
|
41329
42907
|
* Channel/supergroup participants
|
|
@@ -41492,6 +43070,22 @@ export class RpcError extends Error {
|
|
|
41492
43070
|
*/
|
|
41493
43071
|
users: tl.TypeUser[];
|
|
41494
43072
|
}
|
|
43073
|
+
/**
|
|
43074
|
+
* Represents a payment form for a
|
|
43075
|
+
* <a href="https://corefork.telegram.org/api/gifts">gift, see
|
|
43076
|
+
* here »</a> for more info.
|
|
43077
|
+
*/
|
|
43078
|
+
interface RawPaymentFormStarGift {
|
|
43079
|
+
_: 'payments.paymentFormStarGift';
|
|
43080
|
+
/**
|
|
43081
|
+
* Form ID.
|
|
43082
|
+
*/
|
|
43083
|
+
formId: Long;
|
|
43084
|
+
/**
|
|
43085
|
+
* Invoice
|
|
43086
|
+
*/
|
|
43087
|
+
invoice: tl.TypeInvoice;
|
|
43088
|
+
}
|
|
41495
43089
|
/**
|
|
41496
43090
|
* Validated user-provided info
|
|
41497
43091
|
*/
|
|
@@ -41812,6 +43406,13 @@ export class RpcError extends Error {
|
|
|
41812
43406
|
* »</a> for more info on the full giveaway flow.
|
|
41813
43407
|
*/
|
|
41814
43408
|
giftCodeSlug?: string;
|
|
43409
|
+
/**
|
|
43410
|
+
* If we're one of the winners of this
|
|
43411
|
+
* <a href="https://corefork.telegram.org/api/giveaways#star-giveaways">Telegram
|
|
43412
|
+
* Star giveaway</a>, the number
|
|
43413
|
+
* <a href="https://corefork.telegram.org/api/stars">Telegram
|
|
43414
|
+
* Stars</a> we won.
|
|
43415
|
+
*/
|
|
41815
43416
|
starsPrize?: Long;
|
|
41816
43417
|
/**
|
|
41817
43418
|
* End date of the giveaway. May be bigger than the end date
|
|
@@ -41832,16 +43433,32 @@ export class RpcError extends Error {
|
|
|
41832
43433
|
/**
|
|
41833
43434
|
* Info about the current
|
|
41834
43435
|
* <a href="https://corefork.telegram.org/api/stars#balance-and-transaction-history">Telegram
|
|
41835
|
-
* Star balance and transaction history »</a>.
|
|
43436
|
+
* Star subscriptions, balance and transaction history »</a>.
|
|
41836
43437
|
*/
|
|
41837
43438
|
interface RawStarsStatus {
|
|
41838
43439
|
_: 'payments.starsStatus';
|
|
41839
43440
|
/**
|
|
41840
43441
|
* Current Telegram Star balance.
|
|
41841
43442
|
*/
|
|
41842
|
-
balance:
|
|
43443
|
+
balance: tl.TypeStarsAmount;
|
|
43444
|
+
/**
|
|
43445
|
+
* Info about current Telegram Star subscriptions, only
|
|
43446
|
+
* returned when invoking
|
|
43447
|
+
* {@link payments.RawGetStarsTransactionsRequest} and
|
|
43448
|
+
* {@link payments.RawGetStarsSubscriptionsRequest}.
|
|
43449
|
+
*/
|
|
41843
43450
|
subscriptions?: tl.TypeStarsSubscription[];
|
|
43451
|
+
/**
|
|
43452
|
+
* Offset for pagination of subscriptions: only usable and
|
|
43453
|
+
* returned when invoking
|
|
43454
|
+
* {@link payments.RawGetStarsSubscriptionsRequest}.
|
|
43455
|
+
*/
|
|
41844
43456
|
subscriptionsNextOffset?: string;
|
|
43457
|
+
/**
|
|
43458
|
+
* The number of Telegram Stars the user should buy to be able
|
|
43459
|
+
* to extend expired subscriptions soon (i.e. the current
|
|
43460
|
+
* balance is not enough to extend all expired subscriptions).
|
|
43461
|
+
*/
|
|
41845
43462
|
subscriptionsMissingBalance?: Long;
|
|
41846
43463
|
/**
|
|
41847
43464
|
* List of Telegram Star transactions (partial if
|
|
@@ -41888,14 +43505,14 @@ export class RpcError extends Error {
|
|
|
41888
43505
|
}
|
|
41889
43506
|
/**
|
|
41890
43507
|
* Contains the URL to use to
|
|
41891
|
-
* <a href="https://corefork.telegram.org/api/stars#withdrawing-
|
|
43508
|
+
* <a href="https://corefork.telegram.org/api/stars#withdrawing-stars">withdraw
|
|
41892
43509
|
* Telegram Star revenue</a>.
|
|
41893
43510
|
*/
|
|
41894
43511
|
interface RawStarsRevenueWithdrawalUrl {
|
|
41895
43512
|
_: 'payments.starsRevenueWithdrawalUrl';
|
|
41896
43513
|
/**
|
|
41897
43514
|
* Contains the URL to use to
|
|
41898
|
-
* <a href="https://corefork.telegram.org/api/stars#withdrawing-
|
|
43515
|
+
* <a href="https://corefork.telegram.org/api/stars#withdrawing-stars">withdraw
|
|
41899
43516
|
* Telegram Star revenue</a>.
|
|
41900
43517
|
*/
|
|
41901
43518
|
url: string;
|
|
@@ -41913,6 +43530,102 @@ export class RpcError extends Error {
|
|
|
41913
43530
|
*/
|
|
41914
43531
|
url: string;
|
|
41915
43532
|
}
|
|
43533
|
+
/**
|
|
43534
|
+
* The list of available
|
|
43535
|
+
* <a href="https://corefork.telegram.org/api/gifts">gifts
|
|
43536
|
+
* »</a> hasn't changed.
|
|
43537
|
+
*/
|
|
43538
|
+
interface RawStarGiftsNotModified {
|
|
43539
|
+
_: 'payments.starGiftsNotModified';
|
|
43540
|
+
}
|
|
43541
|
+
/**
|
|
43542
|
+
* Available
|
|
43543
|
+
* <a href="https://corefork.telegram.org/api/gifts">gifts
|
|
43544
|
+
* »</a>.
|
|
43545
|
+
*/
|
|
43546
|
+
interface RawStarGifts {
|
|
43547
|
+
_: 'payments.starGifts';
|
|
43548
|
+
/**
|
|
43549
|
+
* <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
|
|
43550
|
+
* used for caching, for more info click here</a>
|
|
43551
|
+
*/
|
|
43552
|
+
hash: number;
|
|
43553
|
+
/**
|
|
43554
|
+
* List of available gifts.
|
|
43555
|
+
*/
|
|
43556
|
+
gifts: tl.TypeStarGift[];
|
|
43557
|
+
}
|
|
43558
|
+
/**
|
|
43559
|
+
* <a href="https://corefork.telegram.org/api/gifts">Gifts</a>
|
|
43560
|
+
* displayed on a user's profile.
|
|
43561
|
+
*/
|
|
43562
|
+
interface RawUserStarGifts {
|
|
43563
|
+
_: 'payments.userStarGifts';
|
|
43564
|
+
/**
|
|
43565
|
+
* Total number of gifts displayed on the profile.
|
|
43566
|
+
*/
|
|
43567
|
+
count: number;
|
|
43568
|
+
/**
|
|
43569
|
+
* The gifts.
|
|
43570
|
+
*/
|
|
43571
|
+
gifts: tl.TypeUserStarGift[];
|
|
43572
|
+
/**
|
|
43573
|
+
* Offset for
|
|
43574
|
+
* <a href="https://corefork.telegram.org/api/offsets">pagination</a>.
|
|
43575
|
+
*/
|
|
43576
|
+
nextOffset?: string;
|
|
43577
|
+
/**
|
|
43578
|
+
* Users mentioned in the <code>gifts</code> vector.
|
|
43579
|
+
*/
|
|
43580
|
+
users: tl.TypeUser[];
|
|
43581
|
+
}
|
|
43582
|
+
/**
|
|
43583
|
+
* Active
|
|
43584
|
+
* <a href="https://corefork.telegram.org/api/bots/referrals#becoming-an-affiliate">affiliations</a>
|
|
43585
|
+
*/
|
|
43586
|
+
interface RawConnectedStarRefBots {
|
|
43587
|
+
_: 'payments.connectedStarRefBots';
|
|
43588
|
+
/**
|
|
43589
|
+
* Total number of active affiliations
|
|
43590
|
+
*/
|
|
43591
|
+
count: number;
|
|
43592
|
+
/**
|
|
43593
|
+
* The affiliations
|
|
43594
|
+
*/
|
|
43595
|
+
connectedBots: tl.TypeConnectedBotStarRef[];
|
|
43596
|
+
/**
|
|
43597
|
+
* Peers mentioned in <code>connected_bots</code>
|
|
43598
|
+
*/
|
|
43599
|
+
users: tl.TypeUser[];
|
|
43600
|
+
}
|
|
43601
|
+
/**
|
|
43602
|
+
* A list of suggested
|
|
43603
|
+
* <a href="https://corefork.telegram.org/api/bots/webapps">mini
|
|
43604
|
+
* apps</a> with available
|
|
43605
|
+
* <a href="https://corefork.telegram.org/api/bots/referrals">affiliate
|
|
43606
|
+
* programs</a>
|
|
43607
|
+
*/
|
|
43608
|
+
interface RawSuggestedStarRefBots {
|
|
43609
|
+
_: 'payments.suggestedStarRefBots';
|
|
43610
|
+
/**
|
|
43611
|
+
* Total number of results (for pagination)
|
|
43612
|
+
*/
|
|
43613
|
+
count: number;
|
|
43614
|
+
/**
|
|
43615
|
+
* Suggested affiliate programs (full or partial list to be
|
|
43616
|
+
* fetched using pagination)
|
|
43617
|
+
*/
|
|
43618
|
+
suggestedBots: tl.TypeStarRefProgram[];
|
|
43619
|
+
/**
|
|
43620
|
+
* Peers mentioned in <code>suggested_bots</code>
|
|
43621
|
+
*/
|
|
43622
|
+
users: tl.TypeUser[];
|
|
43623
|
+
/**
|
|
43624
|
+
* Next offset for
|
|
43625
|
+
* <a href="https://corefork.telegram.org/api/offsets">pagination</a>
|
|
43626
|
+
*/
|
|
43627
|
+
nextOffset?: string;
|
|
43628
|
+
}
|
|
41916
43629
|
/**
|
|
41917
43630
|
* Get a payment form
|
|
41918
43631
|
*
|
|
@@ -41925,21 +43638,8 @@ export class RpcError extends Error {
|
|
|
41925
43638
|
*/
|
|
41926
43639
|
invoice: tl.TypeInputInvoice;
|
|
41927
43640
|
/**
|
|
41928
|
-
*
|
|
41929
|
-
*
|
|
41930
|
-
* provider, to apply in eventual verification pages:
|
|
41931
|
-
*
|
|
41932
|
-
* <code>bg_color</code> - Background color
|
|
41933
|
-
*
|
|
41934
|
-
* <code>text_color</code> - Text color
|
|
41935
|
-
*
|
|
41936
|
-
* <code>hint_color</code> - Hint text color
|
|
41937
|
-
*
|
|
41938
|
-
* <code>link_color</code> - Link color
|
|
41939
|
-
*
|
|
41940
|
-
* <code>button_color</code> - Button color
|
|
41941
|
-
*
|
|
41942
|
-
* <code>button_text_color</code> - Button text color
|
|
43641
|
+
* <a href="https://corefork.telegram.org/api/bots/webapps#theme-parameters">Theme
|
|
43642
|
+
* parameters »</a>
|
|
41943
43643
|
*/
|
|
41944
43644
|
themeParams?: tl.TypeDataJSON;
|
|
41945
43645
|
}
|
|
@@ -42254,6 +43954,11 @@ export class RpcError extends Error {
|
|
|
42254
43954
|
* descending order by date).
|
|
42255
43955
|
*/
|
|
42256
43956
|
ascending?: boolean;
|
|
43957
|
+
/**
|
|
43958
|
+
* If set, fetches only transactions for the specified
|
|
43959
|
+
* <a href="https://corefork.telegram.org/api/stars#star-subscriptions">Telegram
|
|
43960
|
+
* Star subscription »</a>.
|
|
43961
|
+
*/
|
|
42257
43962
|
subscriptionId?: string;
|
|
42258
43963
|
/**
|
|
42259
43964
|
* Fetch the transaction history of the peer
|
|
@@ -42332,7 +44037,7 @@ export class RpcError extends Error {
|
|
|
42332
44037
|
}
|
|
42333
44038
|
/**
|
|
42334
44039
|
* Withdraw funds from a channel or bot's
|
|
42335
|
-
* <a href="https://corefork.telegram.org/api/stars#withdrawing-
|
|
44040
|
+
* <a href="https://corefork.telegram.org/api/stars#withdrawing-stars">star
|
|
42336
44041
|
* balance »</a>.
|
|
42337
44042
|
*
|
|
42338
44043
|
* RPC method returns
|
|
@@ -42407,37 +44112,352 @@ export class RpcError extends Error {
|
|
|
42407
44112
|
userId?: tl.TypeInputUser;
|
|
42408
44113
|
}
|
|
42409
44114
|
/**
|
|
44115
|
+
* Obtain a list of active, expired or cancelled
|
|
44116
|
+
* <a href="https://corefork.telegram.org/api/invites#paid-invite-links">Telegram
|
|
44117
|
+
* Star subscriptions »</a>.
|
|
44118
|
+
*
|
|
42410
44119
|
* RPC method returns {@link tl.payments.TypeStarsStatus}
|
|
42411
44120
|
*/
|
|
42412
44121
|
interface RawGetStarsSubscriptionsRequest {
|
|
42413
44122
|
_: 'payments.getStarsSubscriptions';
|
|
44123
|
+
/**
|
|
44124
|
+
* Whether to return only subscriptions expired due to an
|
|
44125
|
+
* excessively low Telegram Star balance.
|
|
44126
|
+
*/
|
|
42414
44127
|
missingBalance?: boolean;
|
|
44128
|
+
/**
|
|
44129
|
+
* Always pass {@link RawInputPeerSelf}.
|
|
44130
|
+
*/
|
|
42415
44131
|
peer: tl.TypeInputPeer;
|
|
44132
|
+
/**
|
|
44133
|
+
* Offset for pagination, taken from
|
|
44134
|
+
* {@link payments.RawStarsStatus}.<code>subscriptions_next_offset</code>.
|
|
44135
|
+
*/
|
|
42416
44136
|
offset: string;
|
|
42417
44137
|
}
|
|
42418
44138
|
/**
|
|
44139
|
+
* Activate or deactivate a
|
|
44140
|
+
* <a href="https://corefork.telegram.org/api/invites#paid-invite-links">Telegram
|
|
44141
|
+
* Star subscription »</a>.
|
|
44142
|
+
*
|
|
42419
44143
|
* RPC method returns boolean
|
|
42420
44144
|
*/
|
|
42421
44145
|
interface RawChangeStarsSubscriptionRequest {
|
|
42422
44146
|
_: 'payments.changeStarsSubscription';
|
|
44147
|
+
/**
|
|
44148
|
+
* Always pass {@link RawInputPeerSelf}.
|
|
44149
|
+
*/
|
|
42423
44150
|
peer: tl.TypeInputPeer;
|
|
44151
|
+
/**
|
|
44152
|
+
* ID of the subscription.
|
|
44153
|
+
*/
|
|
42424
44154
|
subscriptionId: string;
|
|
44155
|
+
/**
|
|
44156
|
+
* Whether to cancel or reactivate the subscription.
|
|
44157
|
+
*/
|
|
42425
44158
|
canceled?: boolean;
|
|
42426
44159
|
}
|
|
42427
44160
|
/**
|
|
44161
|
+
* Re-join a private channel associated to an active
|
|
44162
|
+
* <a href="https://corefork.telegram.org/api/invites#paid-invite-links">Telegram
|
|
44163
|
+
* Star subscription »</a>.
|
|
44164
|
+
*
|
|
42428
44165
|
* RPC method returns boolean
|
|
42429
44166
|
*/
|
|
42430
44167
|
interface RawFulfillStarsSubscriptionRequest {
|
|
42431
44168
|
_: 'payments.fulfillStarsSubscription';
|
|
44169
|
+
/**
|
|
44170
|
+
* Always pass {@link RawInputPeerSelf}.
|
|
44171
|
+
*/
|
|
42432
44172
|
peer: tl.TypeInputPeer;
|
|
44173
|
+
/**
|
|
44174
|
+
* ID of the subscription.
|
|
44175
|
+
*/
|
|
42433
44176
|
subscriptionId: string;
|
|
42434
44177
|
}
|
|
42435
44178
|
/**
|
|
44179
|
+
* Fetch a list of
|
|
44180
|
+
* <a href="https://corefork.telegram.org/api/giveaways#star-giveaways">star
|
|
44181
|
+
* giveaway options »</a>.
|
|
44182
|
+
*
|
|
42436
44183
|
* RPC method returns {@link tl.TypeStarsGiveawayOption} array
|
|
42437
44184
|
*/
|
|
42438
44185
|
interface RawGetStarsGiveawayOptionsRequest {
|
|
42439
44186
|
_: 'payments.getStarsGiveawayOptions';
|
|
42440
44187
|
}
|
|
44188
|
+
/**
|
|
44189
|
+
* Get a list of available
|
|
44190
|
+
* <a href="https://corefork.telegram.org/api/gifts">gifts, see
|
|
44191
|
+
* here »</a> for more info.
|
|
44192
|
+
*
|
|
44193
|
+
* RPC method returns {@link tl.payments.TypeStarGifts}
|
|
44194
|
+
*/
|
|
44195
|
+
interface RawGetStarGiftsRequest {
|
|
44196
|
+
_: 'payments.getStarGifts';
|
|
44197
|
+
/**
|
|
44198
|
+
* <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash
|
|
44199
|
+
* used for caching, for more info click here</a>.
|
|
44200
|
+
*
|
|
44201
|
+
* The hash may be generated locally by using the
|
|
44202
|
+
* <code>id</code>s of the returned or stored sticker
|
|
44203
|
+
* {@link RawStarGift}s.
|
|
44204
|
+
*/
|
|
44205
|
+
hash: number;
|
|
44206
|
+
}
|
|
44207
|
+
/**
|
|
44208
|
+
* Get the
|
|
44209
|
+
* <a href="https://corefork.telegram.org/api/gifts">gifts
|
|
44210
|
+
* »</a> pinned on a specific user's profile.
|
|
44211
|
+
*
|
|
44212
|
+
* May also be used to fetch all gifts received by the current
|
|
44213
|
+
* user.
|
|
44214
|
+
*
|
|
44215
|
+
* RPC method returns {@link tl.payments.TypeUserStarGifts}
|
|
44216
|
+
*/
|
|
44217
|
+
interface RawGetUserStarGiftsRequest {
|
|
44218
|
+
_: 'payments.getUserStarGifts';
|
|
44219
|
+
/**
|
|
44220
|
+
* Identifier of the user (can be the current user to fetch all
|
|
44221
|
+
* gifts received by the current user).
|
|
44222
|
+
*/
|
|
44223
|
+
userId: tl.TypeInputUser;
|
|
44224
|
+
/**
|
|
44225
|
+
* Offset for
|
|
44226
|
+
* <a href="https://corefork.telegram.org/api/offsets">pagination</a>,
|
|
44227
|
+
* taken from {@link payments.RawUserStarGifts} (initially
|
|
44228
|
+
* empty).
|
|
44229
|
+
*/
|
|
44230
|
+
offset: string;
|
|
44231
|
+
/**
|
|
44232
|
+
* Maximum number of results to return,
|
|
44233
|
+
* <a href="https://corefork.telegram.org/api/offsets">see
|
|
44234
|
+
* pagination</a>
|
|
44235
|
+
*/
|
|
44236
|
+
limit: number;
|
|
44237
|
+
}
|
|
44238
|
+
/**
|
|
44239
|
+
* Display or remove a
|
|
44240
|
+
* <a href="https://corefork.telegram.org/api/gifts">received
|
|
44241
|
+
* gift »</a> from our profile.
|
|
44242
|
+
*
|
|
44243
|
+
* RPC method returns boolean
|
|
44244
|
+
*/
|
|
44245
|
+
interface RawSaveStarGiftRequest {
|
|
44246
|
+
_: 'payments.saveStarGift';
|
|
44247
|
+
/**
|
|
44248
|
+
* If set, hides the gift from our profile.
|
|
44249
|
+
*/
|
|
44250
|
+
unsave?: boolean;
|
|
44251
|
+
/**
|
|
44252
|
+
* ID of the user that sent us the gift.
|
|
44253
|
+
*/
|
|
44254
|
+
userId: tl.TypeInputUser;
|
|
44255
|
+
/**
|
|
44256
|
+
* The ID of the {@link RawMessageService} with the
|
|
44257
|
+
* {@link RawMessageActionStarGift}.
|
|
44258
|
+
*/
|
|
44259
|
+
msgId: number;
|
|
44260
|
+
}
|
|
44261
|
+
/**
|
|
44262
|
+
* Convert a
|
|
44263
|
+
* <a href="https://corefork.telegram.org/api/gifts">received
|
|
44264
|
+
* gift »</a> into Telegram Stars: this will permanently
|
|
44265
|
+
* destroy the gift, converting it into
|
|
44266
|
+
* {@link RawStarGift}.<code>convert_stars</code>
|
|
44267
|
+
* <a href="https://corefork.telegram.org/api/stars">Telegram
|
|
44268
|
+
* Stars</a>, added to the user's balance.
|
|
44269
|
+
*
|
|
44270
|
+
* Note that {@link RawStarGift}.<code>convert_stars</code>
|
|
44271
|
+
* will be less than the buying price
|
|
44272
|
+
* ({@link RawStarGift}.<code>stars</code>) of the gift if it
|
|
44273
|
+
* was originally bought using Telegram Stars bought a long
|
|
44274
|
+
* time ago.
|
|
44275
|
+
*
|
|
44276
|
+
* RPC method returns boolean
|
|
44277
|
+
*/
|
|
44278
|
+
interface RawConvertStarGiftRequest {
|
|
44279
|
+
_: 'payments.convertStarGift';
|
|
44280
|
+
/**
|
|
44281
|
+
* ID of the user that sent us the gift.
|
|
44282
|
+
*/
|
|
44283
|
+
userId: tl.TypeInputUser;
|
|
44284
|
+
/**
|
|
44285
|
+
* The ID of the {@link RawMessageService} with the
|
|
44286
|
+
* {@link RawMessageActionStarGift}.
|
|
44287
|
+
*/
|
|
44288
|
+
msgId: number;
|
|
44289
|
+
}
|
|
44290
|
+
/**
|
|
44291
|
+
* Cancel a
|
|
44292
|
+
* <a href="https://corefork.telegram.org/api/subscriptions#bot-subscriptions">bot
|
|
44293
|
+
* subscription</a>
|
|
44294
|
+
*
|
|
44295
|
+
* RPC method returns boolean
|
|
44296
|
+
*/
|
|
44297
|
+
interface RawBotCancelStarsSubscriptionRequest {
|
|
44298
|
+
_: 'payments.botCancelStarsSubscription';
|
|
44299
|
+
/**
|
|
44300
|
+
* If <strong>not</strong> set, disables autorenewal of the
|
|
44301
|
+
* subscriptions, and prevents the user from reactivating the
|
|
44302
|
+
* subscription once the current period expires: a subscription
|
|
44303
|
+
* cancelled by the bot will have the
|
|
44304
|
+
* {@link RawStarsSubscription}.<code>bot_canceled</code> flag
|
|
44305
|
+
* set.
|
|
44306
|
+
*
|
|
44307
|
+
* The bot can can partially undo this operation by setting
|
|
44308
|
+
* this flag: this will allow the user to reactivate the
|
|
44309
|
+
* subscription.
|
|
44310
|
+
*/
|
|
44311
|
+
restore?: boolean;
|
|
44312
|
+
/**
|
|
44313
|
+
* The ID of the user whose subscription should be
|
|
44314
|
+
* (un)cancelled
|
|
44315
|
+
*/
|
|
44316
|
+
userId: tl.TypeInputUser;
|
|
44317
|
+
/**
|
|
44318
|
+
* The <code>provider_charge_id</code> from the
|
|
44319
|
+
* {@link RawMessageActionPaymentSentMe} service message sent
|
|
44320
|
+
* to the bot for the first subscription payment.
|
|
44321
|
+
*/
|
|
44322
|
+
chargeId: string;
|
|
44323
|
+
}
|
|
44324
|
+
/**
|
|
44325
|
+
* Fetch all affiliations we have created for a certain peer
|
|
44326
|
+
*
|
|
44327
|
+
* RPC method returns
|
|
44328
|
+
* {@link tl.payments.TypeConnectedStarRefBots}
|
|
44329
|
+
*/
|
|
44330
|
+
interface RawGetConnectedStarRefBotsRequest {
|
|
44331
|
+
_: 'payments.getConnectedStarRefBots';
|
|
44332
|
+
/**
|
|
44333
|
+
* The affiliated peer
|
|
44334
|
+
*/
|
|
44335
|
+
peer: tl.TypeInputPeer;
|
|
44336
|
+
/**
|
|
44337
|
+
* If set, returns only results older than the specified
|
|
44338
|
+
* unixtime
|
|
44339
|
+
*/
|
|
44340
|
+
offsetDate?: number;
|
|
44341
|
+
/**
|
|
44342
|
+
* Offset for
|
|
44343
|
+
* <a href="https://corefork.telegram.org/api/offsets">pagination</a>,
|
|
44344
|
+
* taken from the last returned
|
|
44345
|
+
* {@link RawConnectedBotStarRef}.<code>url</code> (initially
|
|
44346
|
+
* empty)
|
|
44347
|
+
*/
|
|
44348
|
+
offsetLink?: string;
|
|
44349
|
+
/**
|
|
44350
|
+
* Maximum number of results to return,
|
|
44351
|
+
* <a href="https://corefork.telegram.org/api/offsets">see
|
|
44352
|
+
* pagination</a>
|
|
44353
|
+
*/
|
|
44354
|
+
limit: number;
|
|
44355
|
+
}
|
|
44356
|
+
/**
|
|
44357
|
+
* Fetch info about a specific
|
|
44358
|
+
* <a href="https://corefork.telegram.org/api/bots/referrals">bot
|
|
44359
|
+
* affiliation »</a>
|
|
44360
|
+
*
|
|
44361
|
+
* RPC method returns
|
|
44362
|
+
* {@link tl.payments.TypeConnectedStarRefBots}
|
|
44363
|
+
*/
|
|
44364
|
+
interface RawGetConnectedStarRefBotRequest {
|
|
44365
|
+
_: 'payments.getConnectedStarRefBot';
|
|
44366
|
+
/**
|
|
44367
|
+
* The affiliated peer
|
|
44368
|
+
*/
|
|
44369
|
+
peer: tl.TypeInputPeer;
|
|
44370
|
+
/**
|
|
44371
|
+
* The bot that offers the affiliate program
|
|
44372
|
+
*/
|
|
44373
|
+
bot: tl.TypeInputUser;
|
|
44374
|
+
}
|
|
44375
|
+
/**
|
|
44376
|
+
* Obtain a list of suggested
|
|
44377
|
+
* <a href="https://corefork.telegram.org/api/bots/webapps">mini
|
|
44378
|
+
* apps</a> with available
|
|
44379
|
+
* <a href="https://corefork.telegram.org/api/bots/referrals">affiliate
|
|
44380
|
+
* programs</a>
|
|
44381
|
+
*
|
|
44382
|
+
* <code>order_by_revenue</code> and <code>order_by_date</code>
|
|
44383
|
+
* are mutually exclusive: if neither is set, results are
|
|
44384
|
+
* sorted by profitability.
|
|
44385
|
+
*
|
|
44386
|
+
* RPC method returns
|
|
44387
|
+
* {@link tl.payments.TypeSuggestedStarRefBots}
|
|
44388
|
+
*/
|
|
44389
|
+
interface RawGetSuggestedStarRefBotsRequest {
|
|
44390
|
+
_: 'payments.getSuggestedStarRefBots';
|
|
44391
|
+
/**
|
|
44392
|
+
* If set, orders results by the expected revenue
|
|
44393
|
+
*/
|
|
44394
|
+
orderByRevenue?: boolean;
|
|
44395
|
+
/**
|
|
44396
|
+
* If set, orders results by the creation date of the affiliate
|
|
44397
|
+
* program
|
|
44398
|
+
*/
|
|
44399
|
+
orderByDate?: boolean;
|
|
44400
|
+
/**
|
|
44401
|
+
* The peer that will become the affiliate: star commissions
|
|
44402
|
+
* will be transferred to this peer's star balance.
|
|
44403
|
+
*/
|
|
44404
|
+
peer: tl.TypeInputPeer;
|
|
44405
|
+
/**
|
|
44406
|
+
* Offset for pagination, taken from
|
|
44407
|
+
* {@link payments.RawSuggestedStarRefBots}.<code>next_offset</code>,
|
|
44408
|
+
* initially empty.
|
|
44409
|
+
*/
|
|
44410
|
+
offset: string;
|
|
44411
|
+
/**
|
|
44412
|
+
* Maximum number of results to return,
|
|
44413
|
+
* <a href="https://corefork.telegram.org/api/offsets">see
|
|
44414
|
+
* pagination</a>
|
|
44415
|
+
*/
|
|
44416
|
+
limit: number;
|
|
44417
|
+
}
|
|
44418
|
+
/**
|
|
44419
|
+
* Join a bot's
|
|
44420
|
+
* <a href="https://corefork.telegram.org/api/bots/referrals#becoming-an-affiliate">affiliate
|
|
44421
|
+
* program, becoming an affiliate »</a>
|
|
44422
|
+
*
|
|
44423
|
+
* RPC method returns
|
|
44424
|
+
* {@link tl.payments.TypeConnectedStarRefBots}
|
|
44425
|
+
*/
|
|
44426
|
+
interface RawConnectStarRefBotRequest {
|
|
44427
|
+
_: 'payments.connectStarRefBot';
|
|
44428
|
+
/**
|
|
44429
|
+
* The peer that will become the affiliate: star commissions
|
|
44430
|
+
* will be transferred to this peer's star balance.
|
|
44431
|
+
*/
|
|
44432
|
+
peer: tl.TypeInputPeer;
|
|
44433
|
+
/**
|
|
44434
|
+
* The bot that offers the affiliate program
|
|
44435
|
+
*/
|
|
44436
|
+
bot: tl.TypeInputUser;
|
|
44437
|
+
}
|
|
44438
|
+
/**
|
|
44439
|
+
* Leave a bot's
|
|
44440
|
+
* <a href="https://corefork.telegram.org/api/bots/referrals#becoming-an-affiliate">affiliate
|
|
44441
|
+
* program »</a>
|
|
44442
|
+
*
|
|
44443
|
+
* RPC method returns
|
|
44444
|
+
* {@link tl.payments.TypeConnectedStarRefBots}
|
|
44445
|
+
*/
|
|
44446
|
+
interface RawEditConnectedStarRefBotRequest {
|
|
44447
|
+
_: 'payments.editConnectedStarRefBot';
|
|
44448
|
+
/**
|
|
44449
|
+
* If set, leaves the bot's affiliate program
|
|
44450
|
+
*/
|
|
44451
|
+
revoked?: boolean;
|
|
44452
|
+
/**
|
|
44453
|
+
* The peer that was affiliated
|
|
44454
|
+
*/
|
|
44455
|
+
peer: tl.TypeInputPeer;
|
|
44456
|
+
/**
|
|
44457
|
+
* The affiliate link to revoke
|
|
44458
|
+
*/
|
|
44459
|
+
link: string;
|
|
44460
|
+
}
|
|
42441
44461
|
interface RpcCallReturn {
|
|
42442
44462
|
'payments.getPaymentForm': tl.payments.TypePaymentForm
|
|
42443
44463
|
'payments.getPaymentReceipt': tl.payments.TypePaymentReceipt
|
|
@@ -42469,11 +44489,21 @@ export class RpcError extends Error {
|
|
|
42469
44489
|
'payments.changeStarsSubscription': boolean
|
|
42470
44490
|
'payments.fulfillStarsSubscription': boolean
|
|
42471
44491
|
'payments.getStarsGiveawayOptions': tl.TypeStarsGiveawayOption[]
|
|
44492
|
+
'payments.getStarGifts': tl.payments.TypeStarGifts
|
|
44493
|
+
'payments.getUserStarGifts': tl.payments.TypeUserStarGifts
|
|
44494
|
+
'payments.saveStarGift': boolean
|
|
44495
|
+
'payments.convertStarGift': boolean
|
|
44496
|
+
'payments.botCancelStarsSubscription': boolean
|
|
44497
|
+
'payments.getConnectedStarRefBots': tl.payments.TypeConnectedStarRefBots
|
|
44498
|
+
'payments.getConnectedStarRefBot': tl.payments.TypeConnectedStarRefBots
|
|
44499
|
+
'payments.getSuggestedStarRefBots': tl.payments.TypeSuggestedStarRefBots
|
|
44500
|
+
'payments.connectStarRefBot': tl.payments.TypeConnectedStarRefBots
|
|
44501
|
+
'payments.editConnectedStarRefBot': tl.payments.TypeConnectedStarRefBots
|
|
42472
44502
|
}
|
|
42473
44503
|
/**
|
|
42474
44504
|
* Payment form
|
|
42475
44505
|
*/
|
|
42476
|
-
type TypePaymentForm = tl.payments.RawPaymentForm | tl.payments.RawPaymentFormStars
|
|
44506
|
+
type TypePaymentForm = tl.payments.RawPaymentForm | tl.payments.RawPaymentFormStars | tl.payments.RawPaymentFormStarGift
|
|
42477
44507
|
function isAnyPaymentForm(o: object): o is TypePaymentForm
|
|
42478
44508
|
/**
|
|
42479
44509
|
* Validated requested info
|
|
@@ -42522,7 +44552,7 @@ export class RpcError extends Error {
|
|
|
42522
44552
|
/**
|
|
42523
44553
|
* Info about the current
|
|
42524
44554
|
* <a href="https://corefork.telegram.org/api/stars#balance-and-transaction-history">Telegram
|
|
42525
|
-
* Star balance and transaction history »</a>.
|
|
44555
|
+
* Star subscriptions, balance and transaction history »</a>.
|
|
42526
44556
|
*/
|
|
42527
44557
|
type TypeStarsStatus = tl.payments.RawStarsStatus
|
|
42528
44558
|
function isAnyStarsStatus(o: object): o is TypeStarsStatus
|
|
@@ -42537,7 +44567,7 @@ export class RpcError extends Error {
|
|
|
42537
44567
|
function isAnyStarsRevenueStats(o: object): o is TypeStarsRevenueStats
|
|
42538
44568
|
/**
|
|
42539
44569
|
* Contains the URL to use to
|
|
42540
|
-
* <a href="https://corefork.telegram.org/api/stars#withdrawing-
|
|
44570
|
+
* <a href="https://corefork.telegram.org/api/stars#withdrawing-stars">withdraw
|
|
42541
44571
|
* Telegram Star revenue</a>.
|
|
42542
44572
|
*/
|
|
42543
44573
|
type TypeStarsRevenueWithdrawalUrl = tl.payments.RawStarsRevenueWithdrawalUrl
|
|
@@ -42550,6 +44580,34 @@ export class RpcError extends Error {
|
|
|
42550
44580
|
*/
|
|
42551
44581
|
type TypeStarsRevenueAdsAccountUrl = tl.payments.RawStarsRevenueAdsAccountUrl
|
|
42552
44582
|
function isAnyStarsRevenueAdsAccountUrl(o: object): o is TypeStarsRevenueAdsAccountUrl
|
|
44583
|
+
/**
|
|
44584
|
+
* Available
|
|
44585
|
+
* <a href="https://corefork.telegram.org/api/gifts">gifts
|
|
44586
|
+
* »</a>.
|
|
44587
|
+
*/
|
|
44588
|
+
type TypeStarGifts = tl.payments.RawStarGiftsNotModified | tl.payments.RawStarGifts
|
|
44589
|
+
function isAnyStarGifts(o: object): o is TypeStarGifts
|
|
44590
|
+
/**
|
|
44591
|
+
* <a href="https://corefork.telegram.org/api/gifts">Gifts</a>
|
|
44592
|
+
* displayed on a user's profile.
|
|
44593
|
+
*/
|
|
44594
|
+
type TypeUserStarGifts = tl.payments.RawUserStarGifts
|
|
44595
|
+
function isAnyUserStarGifts(o: object): o is TypeUserStarGifts
|
|
44596
|
+
/**
|
|
44597
|
+
* Active
|
|
44598
|
+
* <a href="https://corefork.telegram.org/api/bots/referrals#becoming-an-affiliate">affiliations</a>
|
|
44599
|
+
*/
|
|
44600
|
+
type TypeConnectedStarRefBots = tl.payments.RawConnectedStarRefBots
|
|
44601
|
+
function isAnyConnectedStarRefBots(o: object): o is TypeConnectedStarRefBots
|
|
44602
|
+
/**
|
|
44603
|
+
* A list of suggested
|
|
44604
|
+
* <a href="https://corefork.telegram.org/api/bots/webapps">mini
|
|
44605
|
+
* apps</a> with available
|
|
44606
|
+
* <a href="https://corefork.telegram.org/api/bots/referrals">affiliate
|
|
44607
|
+
* programs</a>
|
|
44608
|
+
*/
|
|
44609
|
+
type TypeSuggestedStarRefBots = tl.payments.RawSuggestedStarRefBots
|
|
44610
|
+
function isAnySuggestedStarRefBots(o: object): o is TypeSuggestedStarRefBots
|
|
42553
44611
|
}
|
|
42554
44612
|
|
|
42555
44613
|
namespace phone {
|
|
@@ -43939,9 +45997,9 @@ export class RpcError extends Error {
|
|
|
43939
45997
|
*/
|
|
43940
45998
|
dark?: boolean;
|
|
43941
45999
|
/**
|
|
43942
|
-
*
|
|
46000
|
+
* Get ad revenue stats for the specified channel or bot
|
|
43943
46001
|
*/
|
|
43944
|
-
|
|
46002
|
+
peer: tl.TypeInputPeer;
|
|
43945
46003
|
}
|
|
43946
46004
|
/**
|
|
43947
46005
|
* Withdraw funds from a channel's
|
|
@@ -43954,9 +46012,10 @@ export class RpcError extends Error {
|
|
|
43954
46012
|
interface RawGetBroadcastRevenueWithdrawalUrlRequest {
|
|
43955
46013
|
_: 'stats.getBroadcastRevenueWithdrawalUrl';
|
|
43956
46014
|
/**
|
|
43957
|
-
*
|
|
46015
|
+
* Get ad revenue withdrawal URL for the specified channel or
|
|
46016
|
+
* bot
|
|
43958
46017
|
*/
|
|
43959
|
-
|
|
46018
|
+
peer: tl.TypeInputPeer;
|
|
43960
46019
|
/**
|
|
43961
46020
|
* 2FA password, see
|
|
43962
46021
|
* <a href="https://corefork.telegram.org/api/srp#using-the-2fa-password">here
|
|
@@ -43975,9 +46034,9 @@ export class RpcError extends Error {
|
|
|
43975
46034
|
interface RawGetBroadcastRevenueTransactionsRequest {
|
|
43976
46035
|
_: 'stats.getBroadcastRevenueTransactions';
|
|
43977
46036
|
/**
|
|
43978
|
-
*
|
|
46037
|
+
* Get ad revenue transactions for the specified channel or bot
|
|
43979
46038
|
*/
|
|
43980
|
-
|
|
46039
|
+
peer: tl.TypeInputPeer;
|
|
43981
46040
|
/**
|
|
43982
46041
|
* <a href="https://corefork.telegram.org/api/offsets">Offset
|
|
43983
46042
|
* for pagination</a>
|
|
@@ -44123,8 +46182,6 @@ export class RpcError extends Error {
|
|
|
44123
46182
|
* name of the software that created the stickers
|
|
44124
46183
|
*/
|
|
44125
46184
|
software?: string;
|
|
44126
|
-
animated?: boolean;
|
|
44127
|
-
videos?: boolean;
|
|
44128
46185
|
}
|
|
44129
46186
|
/**
|
|
44130
46187
|
* Remove a sticker from the set where it belongs. The sticker
|
|
@@ -45351,6 +47408,120 @@ export class RpcError extends Error {
|
|
|
45351
47408
|
*/
|
|
45352
47409
|
bot: tl.TypeInputUser;
|
|
45353
47410
|
}
|
|
47411
|
+
/**
|
|
47412
|
+
* Change the emoji status of a user (invoked by bots, see
|
|
47413
|
+
* <a href="https://corefork.telegram.org/api/emoji-status#setting-an-emoji-status-from-a-bot">here
|
|
47414
|
+
* »</a> for more info on the full flow)
|
|
47415
|
+
*
|
|
47416
|
+
* RPC method returns boolean
|
|
47417
|
+
*/
|
|
47418
|
+
interface RawUpdateUserEmojiStatusRequest {
|
|
47419
|
+
_: 'bots.updateUserEmojiStatus';
|
|
47420
|
+
/**
|
|
47421
|
+
* The user whose emoji status should be changed
|
|
47422
|
+
*/
|
|
47423
|
+
userId: tl.TypeInputUser;
|
|
47424
|
+
/**
|
|
47425
|
+
* The emoji status
|
|
47426
|
+
*/
|
|
47427
|
+
emojiStatus: tl.TypeEmojiStatus;
|
|
47428
|
+
}
|
|
47429
|
+
/**
|
|
47430
|
+
* Allow or prevent a bot from
|
|
47431
|
+
* <a href="https://corefork.telegram.org/api/emoji-status#setting-an-emoji-status-from-a-bot">changing
|
|
47432
|
+
* our emoji status »</a>
|
|
47433
|
+
*
|
|
47434
|
+
* RPC method returns boolean
|
|
47435
|
+
*/
|
|
47436
|
+
interface RawToggleUserEmojiStatusPermissionRequest {
|
|
47437
|
+
_: 'bots.toggleUserEmojiStatusPermission';
|
|
47438
|
+
/**
|
|
47439
|
+
* The bot
|
|
47440
|
+
*/
|
|
47441
|
+
bot: tl.TypeInputUser;
|
|
47442
|
+
/**
|
|
47443
|
+
* Whether to allow or prevent the bot from changing our emoji
|
|
47444
|
+
* status
|
|
47445
|
+
*/
|
|
47446
|
+
enabled: boolean;
|
|
47447
|
+
}
|
|
47448
|
+
/**
|
|
47449
|
+
* Check if a
|
|
47450
|
+
* <a href="https://corefork.telegram.org/api/bots/webapps">mini
|
|
47451
|
+
* app</a> can request the download of a specific file: called
|
|
47452
|
+
* when handling
|
|
47453
|
+
* <a href="https://corefork.telegram.org/api/web-events#web-app-request-file-download">web_app_request_file_download
|
|
47454
|
+
* events »</a>
|
|
47455
|
+
*
|
|
47456
|
+
* RPC method returns boolean
|
|
47457
|
+
*/
|
|
47458
|
+
interface RawCheckDownloadFileParamsRequest {
|
|
47459
|
+
_: 'bots.checkDownloadFileParams';
|
|
47460
|
+
/**
|
|
47461
|
+
* The bot that owns the
|
|
47462
|
+
* <a href="https://corefork.telegram.org/api/bots/webapps">mini
|
|
47463
|
+
* app</a> that requested the download
|
|
47464
|
+
*/
|
|
47465
|
+
bot: tl.TypeInputUser;
|
|
47466
|
+
/**
|
|
47467
|
+
* The <code>filename</code> from the
|
|
47468
|
+
* <a href="https://corefork.telegram.org/api/web-events#web-app-request-file-download">web_app_request_file_download
|
|
47469
|
+
* event »</a>
|
|
47470
|
+
*/
|
|
47471
|
+
fileName: string;
|
|
47472
|
+
/**
|
|
47473
|
+
* The <code>url</code> from the
|
|
47474
|
+
* <a href="https://corefork.telegram.org/api/web-events#web-app-request-file-download">web_app_request_file_download
|
|
47475
|
+
* event »</a>
|
|
47476
|
+
*/
|
|
47477
|
+
url: string;
|
|
47478
|
+
}
|
|
47479
|
+
/**
|
|
47480
|
+
* Get a list of bots owned by the current user
|
|
47481
|
+
*
|
|
47482
|
+
* RPC method returns {@link tl.TypeUser} array
|
|
47483
|
+
*/
|
|
47484
|
+
interface RawGetAdminedBotsRequest {
|
|
47485
|
+
_: 'bots.getAdminedBots';
|
|
47486
|
+
}
|
|
47487
|
+
/**
|
|
47488
|
+
* Create, edit or delete the
|
|
47489
|
+
* <a href="https://corefork.telegram.org/api/bots/referrals">affiliate
|
|
47490
|
+
* program</a> of a bot we own
|
|
47491
|
+
*
|
|
47492
|
+
* RPC method returns {@link tl.TypeStarRefProgram}
|
|
47493
|
+
*/
|
|
47494
|
+
interface RawUpdateStarRefProgramRequest {
|
|
47495
|
+
_: 'bots.updateStarRefProgram';
|
|
47496
|
+
/**
|
|
47497
|
+
* The bot
|
|
47498
|
+
*/
|
|
47499
|
+
bot: tl.TypeInputUser;
|
|
47500
|
+
/**
|
|
47501
|
+
* The permille commission rate: it indicates the share of
|
|
47502
|
+
* Telegram Stars received by affiliates for every transaction
|
|
47503
|
+
* made by users they referred inside of the bot.
|
|
47504
|
+
*
|
|
47505
|
+
* The minimum and maximum values for this parameter are
|
|
47506
|
+
* contained in the
|
|
47507
|
+
* <a href="https://corefork.telegram.org/api/config#starref-min-commission-permille">starref_min_commission_permille</a>
|
|
47508
|
+
* and
|
|
47509
|
+
* <a href="https://corefork.telegram.org/api/config#starref-max-commission-permille">starref_max_commission_permille</a>
|
|
47510
|
+
* client configuration parameters.
|
|
47511
|
+
*
|
|
47512
|
+
* Can be <code>0</code> to terminate the affiliate program.
|
|
47513
|
+
*
|
|
47514
|
+
* Both the duration and the commission may only be raised
|
|
47515
|
+
* after creation of the program: to lower them, the program
|
|
47516
|
+
* must first be terminated and a new one created.
|
|
47517
|
+
*/
|
|
47518
|
+
commissionPermille: number;
|
|
47519
|
+
/**
|
|
47520
|
+
* Indicates the duration of the affiliate program; if not set,
|
|
47521
|
+
* there is no expiration date.
|
|
47522
|
+
*/
|
|
47523
|
+
durationMonths?: number;
|
|
47524
|
+
}
|
|
45354
47525
|
interface RpcCallReturn {
|
|
45355
47526
|
'bots.sendCustomRequest': tl.TypeDataJSON
|
|
45356
47527
|
'bots.answerWebhookJSONQuery': boolean
|
|
@@ -45375,6 +47546,11 @@ export class RpcError extends Error {
|
|
|
45375
47546
|
'bots.reorderPreviewMedias': boolean
|
|
45376
47547
|
'bots.getPreviewInfo': tl.bots.TypePreviewInfo
|
|
45377
47548
|
'bots.getPreviewMedias': tl.TypeBotPreviewMedia[]
|
|
47549
|
+
'bots.updateUserEmojiStatus': boolean
|
|
47550
|
+
'bots.toggleUserEmojiStatusPermission': boolean
|
|
47551
|
+
'bots.checkDownloadFileParams': boolean
|
|
47552
|
+
'bots.getAdminedBots': tl.TypeUser[]
|
|
47553
|
+
'bots.updateStarRefProgram': tl.TypeStarRefProgram
|
|
45378
47554
|
}
|
|
45379
47555
|
/**
|
|
45380
47556
|
* Localized name, about text and description of a bot.
|
|
@@ -46043,7 +48219,7 @@ export class RpcError extends Error {
|
|
|
46043
48219
|
/**
|
|
46044
48220
|
* Report a story.
|
|
46045
48221
|
*
|
|
46046
|
-
* RPC method returns
|
|
48222
|
+
* RPC method returns {@link tl.TypeReportResult}
|
|
46047
48223
|
*/
|
|
46048
48224
|
interface RawReportRequest {
|
|
46049
48225
|
_: 'stories.report';
|
|
@@ -46056,9 +48232,9 @@ export class RpcError extends Error {
|
|
|
46056
48232
|
*/
|
|
46057
48233
|
id: number[];
|
|
46058
48234
|
/**
|
|
46059
|
-
*
|
|
48235
|
+
* Menu option, intially empty
|
|
46060
48236
|
*/
|
|
46061
|
-
|
|
48237
|
+
option: Uint8Array;
|
|
46062
48238
|
/**
|
|
46063
48239
|
* Comment for report moderation
|
|
46064
48240
|
*/
|
|
@@ -46280,6 +48456,10 @@ export class RpcError extends Error {
|
|
|
46280
48456
|
* if they have an associated <code>address</code>.
|
|
46281
48457
|
*/
|
|
46282
48458
|
area?: tl.TypeMediaArea;
|
|
48459
|
+
/**
|
|
48460
|
+
* If set, returns only stories posted by this peer.
|
|
48461
|
+
*/
|
|
48462
|
+
peer?: tl.TypeInputPeer;
|
|
46283
48463
|
/**
|
|
46284
48464
|
* Offset for
|
|
46285
48465
|
* <a href="https://corefork.telegram.org/api/offsets">pagination</a>:
|
|
@@ -46311,7 +48491,7 @@ export class RpcError extends Error {
|
|
|
46311
48491
|
'stories.getStoryViewsList': tl.stories.TypeStoryViewsList
|
|
46312
48492
|
'stories.getStoriesViews': tl.stories.TypeStoryViews
|
|
46313
48493
|
'stories.exportStoryLink': tl.TypeExportedStoryLink
|
|
46314
|
-
'stories.report':
|
|
48494
|
+
'stories.report': tl.TypeReportResult
|
|
46315
48495
|
'stories.activateStealthMode': tl.TypeUpdates
|
|
46316
48496
|
'stories.sendReaction': tl.TypeUpdates
|
|
46317
48497
|
'stories.getPeerStories': tl.stories.TypePeerStories
|
|
@@ -46852,7 +49032,7 @@ export class RpcError extends Error {
|
|
|
46852
49032
|
/**
|
|
46853
49033
|
* Object contains info on events occurred.
|
|
46854
49034
|
*/
|
|
46855
|
-
type TypeUpdate = tl.RawUpdateNewMessage | tl.RawUpdateMessageID | tl.RawUpdateDeleteMessages | tl.RawUpdateUserTyping | tl.RawUpdateChatUserTyping | tl.RawUpdateChatParticipants | tl.RawUpdateUserStatus | tl.RawUpdateUserName | tl.RawUpdateNewAuthorization | tl.RawUpdateNewEncryptedMessage | tl.RawUpdateEncryptedChatTyping | tl.RawUpdateEncryption | tl.RawUpdateEncryptedMessagesRead | tl.RawUpdateChatParticipantAdd | tl.RawUpdateChatParticipantDelete | tl.RawUpdateDcOptions | tl.RawUpdateNotifySettings | tl.RawUpdateServiceNotification | tl.RawUpdatePrivacy | tl.RawUpdateUserPhone | tl.RawUpdateReadHistoryInbox | tl.RawUpdateReadHistoryOutbox | tl.RawUpdateWebPage | tl.RawUpdateReadMessagesContents | tl.RawUpdateChannelTooLong | tl.RawUpdateChannel | tl.RawUpdateNewChannelMessage | tl.RawUpdateReadChannelInbox | tl.RawUpdateDeleteChannelMessages | tl.RawUpdateChannelMessageViews | tl.RawUpdateChatParticipantAdmin | tl.RawUpdateNewStickerSet | tl.RawUpdateStickerSetsOrder | tl.RawUpdateStickerSets | tl.RawUpdateSavedGifs | tl.RawUpdateBotInlineQuery | tl.RawUpdateBotInlineSend | tl.RawUpdateEditChannelMessage | tl.RawUpdateBotCallbackQuery | tl.RawUpdateEditMessage | tl.RawUpdateInlineBotCallbackQuery | tl.RawUpdateReadChannelOutbox | tl.RawUpdateDraftMessage | tl.RawUpdateReadFeaturedStickers | tl.RawUpdateRecentStickers | tl.RawUpdateConfig | tl.RawUpdatePtsChanged | tl.RawUpdateChannelWebPage | tl.RawUpdateDialogPinned | tl.RawUpdatePinnedDialogs | tl.RawUpdateBotWebhookJSON | tl.RawUpdateBotWebhookJSONQuery | tl.RawUpdateBotShippingQuery | tl.RawUpdateBotPrecheckoutQuery | tl.RawUpdatePhoneCall | tl.RawUpdateLangPackTooLong | tl.RawUpdateLangPack | tl.RawUpdateFavedStickers | tl.RawUpdateChannelReadMessagesContents | tl.RawUpdateContactsReset | tl.RawUpdateChannelAvailableMessages | tl.RawUpdateDialogUnreadMark | tl.RawUpdateMessagePoll | tl.RawUpdateChatDefaultBannedRights | tl.RawUpdateFolderPeers | tl.RawUpdatePeerSettings | tl.RawUpdatePeerLocated | tl.RawUpdateNewScheduledMessage | tl.RawUpdateDeleteScheduledMessages | tl.RawUpdateTheme | tl.RawUpdateGeoLiveViewed | tl.RawUpdateLoginToken | tl.RawUpdateMessagePollVote | tl.RawUpdateDialogFilter | tl.RawUpdateDialogFilterOrder | tl.RawUpdateDialogFilters | tl.RawUpdatePhoneCallSignalingData | tl.RawUpdateChannelMessageForwards | tl.RawUpdateReadChannelDiscussionInbox | tl.RawUpdateReadChannelDiscussionOutbox | tl.RawUpdatePeerBlocked | tl.RawUpdateChannelUserTyping | tl.RawUpdatePinnedMessages | tl.RawUpdatePinnedChannelMessages | tl.RawUpdateChat | tl.RawUpdateGroupCallParticipants | tl.RawUpdateGroupCall | tl.RawUpdatePeerHistoryTTL | tl.RawUpdateChatParticipant | tl.RawUpdateChannelParticipant | tl.RawUpdateBotStopped | tl.RawUpdateGroupCallConnection | tl.RawUpdateBotCommands | tl.RawUpdatePendingJoinRequests | tl.RawUpdateBotChatInviteRequester | tl.RawUpdateMessageReactions | tl.RawUpdateAttachMenuBots | tl.RawUpdateWebViewResultSent | tl.RawUpdateBotMenuButton | tl.RawUpdateSavedRingtones | tl.RawUpdateTranscribedAudio | tl.RawUpdateReadFeaturedEmojiStickers | tl.RawUpdateUserEmojiStatus | tl.RawUpdateRecentEmojiStatuses | tl.RawUpdateRecentReactions | tl.RawUpdateMoveStickerSetToTop | tl.RawUpdateMessageExtendedMedia | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.RawUpdateUser | tl.RawUpdateAutoSaveSettings | tl.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.RawUpdateBroadcastRevenueTransactions | tl.RawUpdateStarsBalance | tl.RawUpdateBusinessBotCallbackQuery | tl.RawUpdateStarsRevenueStatus | tl.RawUpdateBotPurchasedPaidMedia | tl.RawUpdatePaidReactionPrivacy | tl.
|
|
49035
|
+
type TypeUpdate = tl.RawUpdateNewMessage | tl.RawUpdateMessageID | tl.RawUpdateDeleteMessages | tl.RawUpdateUserTyping | tl.RawUpdateChatUserTyping | tl.RawUpdateChatParticipants | tl.RawUpdateUserStatus | tl.RawUpdateUserName | tl.RawUpdateNewAuthorization | tl.RawUpdateNewEncryptedMessage | tl.RawUpdateEncryptedChatTyping | tl.RawUpdateEncryption | tl.RawUpdateEncryptedMessagesRead | tl.RawUpdateChatParticipantAdd | tl.RawUpdateChatParticipantDelete | tl.RawUpdateDcOptions | tl.RawUpdateNotifySettings | tl.RawUpdateServiceNotification | tl.RawUpdatePrivacy | tl.RawUpdateUserPhone | tl.RawUpdateReadHistoryInbox | tl.RawUpdateReadHistoryOutbox | tl.RawUpdateWebPage | tl.RawUpdateReadMessagesContents | tl.RawUpdateChannelTooLong | tl.RawUpdateChannel | tl.RawUpdateNewChannelMessage | tl.RawUpdateReadChannelInbox | tl.RawUpdateDeleteChannelMessages | tl.RawUpdateChannelMessageViews | tl.RawUpdateChatParticipantAdmin | tl.RawUpdateNewStickerSet | tl.RawUpdateStickerSetsOrder | tl.RawUpdateStickerSets | tl.RawUpdateSavedGifs | tl.RawUpdateBotInlineQuery | tl.RawUpdateBotInlineSend | tl.RawUpdateEditChannelMessage | tl.RawUpdateBotCallbackQuery | tl.RawUpdateEditMessage | tl.RawUpdateInlineBotCallbackQuery | tl.RawUpdateReadChannelOutbox | tl.RawUpdateDraftMessage | tl.RawUpdateReadFeaturedStickers | tl.RawUpdateRecentStickers | tl.RawUpdateConfig | tl.RawUpdatePtsChanged | tl.RawUpdateChannelWebPage | tl.RawUpdateDialogPinned | tl.RawUpdatePinnedDialogs | tl.RawUpdateBotWebhookJSON | tl.RawUpdateBotWebhookJSONQuery | tl.RawUpdateBotShippingQuery | tl.RawUpdateBotPrecheckoutQuery | tl.RawUpdatePhoneCall | tl.RawUpdateLangPackTooLong | tl.RawUpdateLangPack | tl.RawUpdateFavedStickers | tl.RawUpdateChannelReadMessagesContents | tl.RawUpdateContactsReset | tl.RawUpdateChannelAvailableMessages | tl.RawUpdateDialogUnreadMark | tl.RawUpdateMessagePoll | tl.RawUpdateChatDefaultBannedRights | tl.RawUpdateFolderPeers | tl.RawUpdatePeerSettings | tl.RawUpdatePeerLocated | tl.RawUpdateNewScheduledMessage | tl.RawUpdateDeleteScheduledMessages | tl.RawUpdateTheme | tl.RawUpdateGeoLiveViewed | tl.RawUpdateLoginToken | tl.RawUpdateMessagePollVote | tl.RawUpdateDialogFilter | tl.RawUpdateDialogFilterOrder | tl.RawUpdateDialogFilters | tl.RawUpdatePhoneCallSignalingData | tl.RawUpdateChannelMessageForwards | tl.RawUpdateReadChannelDiscussionInbox | tl.RawUpdateReadChannelDiscussionOutbox | tl.RawUpdatePeerBlocked | tl.RawUpdateChannelUserTyping | tl.RawUpdatePinnedMessages | tl.RawUpdatePinnedChannelMessages | tl.RawUpdateChat | tl.RawUpdateGroupCallParticipants | tl.RawUpdateGroupCall | tl.RawUpdatePeerHistoryTTL | tl.RawUpdateChatParticipant | tl.RawUpdateChannelParticipant | tl.RawUpdateBotStopped | tl.RawUpdateGroupCallConnection | tl.RawUpdateBotCommands | tl.RawUpdatePendingJoinRequests | tl.RawUpdateBotChatInviteRequester | tl.RawUpdateMessageReactions | tl.RawUpdateAttachMenuBots | tl.RawUpdateWebViewResultSent | tl.RawUpdateBotMenuButton | tl.RawUpdateSavedRingtones | tl.RawUpdateTranscribedAudio | tl.RawUpdateReadFeaturedEmojiStickers | tl.RawUpdateUserEmojiStatus | tl.RawUpdateRecentEmojiStatuses | tl.RawUpdateRecentReactions | tl.RawUpdateMoveStickerSetToTop | tl.RawUpdateMessageExtendedMedia | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.RawUpdateUser | tl.RawUpdateAutoSaveSettings | tl.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.RawUpdateBroadcastRevenueTransactions | tl.RawUpdateStarsBalance | tl.RawUpdateBusinessBotCallbackQuery | tl.RawUpdateStarsRevenueStatus | tl.RawUpdateBotPurchasedPaidMedia | tl.RawUpdatePaidReactionPrivacy | tl.mtcute.RawDummyUpdate
|
|
46856
49036
|
function isAnyUpdate(o: object): o is TypeUpdate
|
|
46857
49037
|
/**
|
|
46858
49038
|
* Peer
|
|
@@ -47408,6 +49588,13 @@ export class RpcError extends Error {
|
|
|
47408
49588
|
| tl.messages.RawSendPaidReactionRequest
|
|
47409
49589
|
| tl.messages.RawTogglePaidReactionPrivacyRequest
|
|
47410
49590
|
| tl.messages.RawGetPaidReactionPrivacyRequest
|
|
49591
|
+
| tl.messages.RawViewSponsoredMessageRequest
|
|
49592
|
+
| tl.messages.RawClickSponsoredMessageRequest
|
|
49593
|
+
| tl.messages.RawReportSponsoredMessageRequest
|
|
49594
|
+
| tl.messages.RawGetSponsoredMessagesRequest
|
|
49595
|
+
| tl.messages.RawSavePreparedInlineMessageRequest
|
|
49596
|
+
| tl.messages.RawGetPreparedInlineMessageRequest
|
|
49597
|
+
| tl.messages.RawSearchStickersRequest
|
|
47411
49598
|
| tl.updates.RawGetStateRequest
|
|
47412
49599
|
| tl.updates.RawGetDifferenceRequest
|
|
47413
49600
|
| tl.updates.RawGetChannelDifferenceRequest
|
|
@@ -47484,8 +49671,6 @@ export class RpcError extends Error {
|
|
|
47484
49671
|
| tl.channels.RawToggleSlowModeRequest
|
|
47485
49672
|
| tl.channels.RawGetInactiveChannelsRequest
|
|
47486
49673
|
| tl.channels.RawConvertToGigagroupRequest
|
|
47487
|
-
| tl.channels.RawViewSponsoredMessageRequest
|
|
47488
|
-
| tl.channels.RawGetSponsoredMessagesRequest
|
|
47489
49674
|
| tl.channels.RawGetSendAsRequest
|
|
47490
49675
|
| tl.channels.RawDeleteParticipantHistoryRequest
|
|
47491
49676
|
| tl.channels.RawToggleJoinToSendRequest
|
|
@@ -47504,14 +49689,12 @@ export class RpcError extends Error {
|
|
|
47504
49689
|
| tl.channels.RawToggleAntiSpamRequest
|
|
47505
49690
|
| tl.channels.RawReportAntiSpamFalsePositiveRequest
|
|
47506
49691
|
| tl.channels.RawToggleParticipantsHiddenRequest
|
|
47507
|
-
| tl.channels.RawClickSponsoredMessageRequest
|
|
47508
49692
|
| tl.channels.RawUpdateColorRequest
|
|
47509
49693
|
| tl.channels.RawToggleViewForumAsMessagesRequest
|
|
47510
49694
|
| tl.channels.RawGetChannelRecommendationsRequest
|
|
47511
49695
|
| tl.channels.RawUpdateEmojiStatusRequest
|
|
47512
49696
|
| tl.channels.RawSetBoostsToUnblockRestrictionsRequest
|
|
47513
49697
|
| tl.channels.RawSetEmojiStickersRequest
|
|
47514
|
-
| tl.channels.RawReportSponsoredMessageRequest
|
|
47515
49698
|
| tl.channels.RawRestrictSponsoredMessagesRequest
|
|
47516
49699
|
| tl.channels.RawSearchPostsRequest
|
|
47517
49700
|
| tl.bots.RawSendCustomRequestRequest
|
|
@@ -47537,6 +49720,11 @@ export class RpcError extends Error {
|
|
|
47537
49720
|
| tl.bots.RawReorderPreviewMediasRequest
|
|
47538
49721
|
| tl.bots.RawGetPreviewInfoRequest
|
|
47539
49722
|
| tl.bots.RawGetPreviewMediasRequest
|
|
49723
|
+
| tl.bots.RawUpdateUserEmojiStatusRequest
|
|
49724
|
+
| tl.bots.RawToggleUserEmojiStatusPermissionRequest
|
|
49725
|
+
| tl.bots.RawCheckDownloadFileParamsRequest
|
|
49726
|
+
| tl.bots.RawGetAdminedBotsRequest
|
|
49727
|
+
| tl.bots.RawUpdateStarRefProgramRequest
|
|
47540
49728
|
| tl.payments.RawGetPaymentFormRequest
|
|
47541
49729
|
| tl.payments.RawGetPaymentReceiptRequest
|
|
47542
49730
|
| tl.payments.RawValidateRequestedInfoRequest
|
|
@@ -47567,6 +49755,16 @@ export class RpcError extends Error {
|
|
|
47567
49755
|
| tl.payments.RawChangeStarsSubscriptionRequest
|
|
47568
49756
|
| tl.payments.RawFulfillStarsSubscriptionRequest
|
|
47569
49757
|
| tl.payments.RawGetStarsGiveawayOptionsRequest
|
|
49758
|
+
| tl.payments.RawGetStarGiftsRequest
|
|
49759
|
+
| tl.payments.RawGetUserStarGiftsRequest
|
|
49760
|
+
| tl.payments.RawSaveStarGiftRequest
|
|
49761
|
+
| tl.payments.RawConvertStarGiftRequest
|
|
49762
|
+
| tl.payments.RawBotCancelStarsSubscriptionRequest
|
|
49763
|
+
| tl.payments.RawGetConnectedStarRefBotsRequest
|
|
49764
|
+
| tl.payments.RawGetConnectedStarRefBotRequest
|
|
49765
|
+
| tl.payments.RawGetSuggestedStarRefBotsRequest
|
|
49766
|
+
| tl.payments.RawConnectStarRefBotRequest
|
|
49767
|
+
| tl.payments.RawEditConnectedStarRefBotRequest
|
|
47570
49768
|
| tl.stickers.RawCreateStickerSetRequest
|
|
47571
49769
|
| tl.stickers.RawRemoveStickerFromSetRequest
|
|
47572
49770
|
| tl.stickers.RawChangeStickerPositionRequest
|
|
@@ -47675,6 +49873,10 @@ export class RpcError extends Error {
|
|
|
47675
49873
|
| tl.smsjobs.RawGetSmsJobRequest
|
|
47676
49874
|
| tl.smsjobs.RawFinishJobRequest
|
|
47677
49875
|
| tl.fragment.RawGetCollectibleInfoRequest
|
|
49876
|
+
| tl.channels.RawViewSponsoredMessageRequest
|
|
49877
|
+
| tl.channels.RawGetSponsoredMessagesRequest
|
|
49878
|
+
| tl.channels.RawClickSponsoredMessageRequest
|
|
49879
|
+
| tl.channels.RawReportSponsoredMessageRequest
|
|
47678
49880
|
| tl.mtcute.RawCustomMethodRequest
|
|
47679
49881
|
|
|
47680
49882
|
type TlObject =
|
|
@@ -47838,6 +50040,7 @@ export class RpcError extends Error {
|
|
|
47838
50040
|
| tl.RawMessageActionPaymentRefunded
|
|
47839
50041
|
| tl.RawMessageActionGiftStars
|
|
47840
50042
|
| tl.RawMessageActionPrizeStars
|
|
50043
|
+
| tl.RawMessageActionStarGift
|
|
47841
50044
|
| tl.RawDialog
|
|
47842
50045
|
| tl.RawDialogFolder
|
|
47843
50046
|
| tl.RawPhotoEmpty
|
|
@@ -48134,6 +50337,7 @@ export class RpcError extends Error {
|
|
|
48134
50337
|
| tl.RawInputPrivacyKeyVoiceMessages
|
|
48135
50338
|
| tl.RawInputPrivacyKeyAbout
|
|
48136
50339
|
| tl.RawInputPrivacyKeyBirthday
|
|
50340
|
+
| tl.RawInputPrivacyKeyStarGiftsAutoSave
|
|
48137
50341
|
| tl.RawPrivacyKeyStatusTimestamp
|
|
48138
50342
|
| tl.RawPrivacyKeyChatInvite
|
|
48139
50343
|
| tl.RawPrivacyKeyPhoneCall
|
|
@@ -48145,6 +50349,7 @@ export class RpcError extends Error {
|
|
|
48145
50349
|
| tl.RawPrivacyKeyVoiceMessages
|
|
48146
50350
|
| tl.RawPrivacyKeyAbout
|
|
48147
50351
|
| tl.RawPrivacyKeyBirthday
|
|
50352
|
+
| tl.RawPrivacyKeyStarGiftsAutoSave
|
|
48148
50353
|
| tl.RawInputPrivacyValueAllowContacts
|
|
48149
50354
|
| tl.RawInputPrivacyValueAllowAll
|
|
48150
50355
|
| tl.RawInputPrivacyValueAllowUsers
|
|
@@ -48155,6 +50360,8 @@ export class RpcError extends Error {
|
|
|
48155
50360
|
| tl.RawInputPrivacyValueDisallowChatParticipants
|
|
48156
50361
|
| tl.RawInputPrivacyValueAllowCloseFriends
|
|
48157
50362
|
| tl.RawInputPrivacyValueAllowPremium
|
|
50363
|
+
| tl.RawInputPrivacyValueAllowBots
|
|
50364
|
+
| tl.RawInputPrivacyValueDisallowBots
|
|
48158
50365
|
| tl.RawPrivacyValueAllowContacts
|
|
48159
50366
|
| tl.RawPrivacyValueAllowAll
|
|
48160
50367
|
| tl.RawPrivacyValueAllowUsers
|
|
@@ -48165,6 +50372,8 @@ export class RpcError extends Error {
|
|
|
48165
50372
|
| tl.RawPrivacyValueDisallowChatParticipants
|
|
48166
50373
|
| tl.RawPrivacyValueAllowCloseFriends
|
|
48167
50374
|
| tl.RawPrivacyValueAllowPremium
|
|
50375
|
+
| tl.RawPrivacyValueAllowBots
|
|
50376
|
+
| tl.RawPrivacyValueDisallowBots
|
|
48168
50377
|
| tl.account.RawPrivacyRules
|
|
48169
50378
|
| tl.RawAccountDaysTTL
|
|
48170
50379
|
| tl.RawDocumentAttributeImageSize
|
|
@@ -48230,6 +50439,7 @@ export class RpcError extends Error {
|
|
|
48230
50439
|
| tl.RawKeyboardButtonSimpleWebView
|
|
48231
50440
|
| tl.RawKeyboardButtonRequestPeer
|
|
48232
50441
|
| tl.RawInputKeyboardButtonRequestPeer
|
|
50442
|
+
| tl.RawKeyboardButtonCopy
|
|
48233
50443
|
| tl.RawKeyboardButtonRow
|
|
48234
50444
|
| tl.RawReplyKeyboardHide
|
|
48235
50445
|
| tl.RawReplyKeyboardForceReply
|
|
@@ -48432,6 +50642,7 @@ export class RpcError extends Error {
|
|
|
48432
50642
|
| tl.upload.RawWebFile
|
|
48433
50643
|
| tl.payments.RawPaymentForm
|
|
48434
50644
|
| tl.payments.RawPaymentFormStars
|
|
50645
|
+
| tl.payments.RawPaymentFormStarGift
|
|
48435
50646
|
| tl.payments.RawValidatedRequestedInfo
|
|
48436
50647
|
| tl.payments.RawPaymentResult
|
|
48437
50648
|
| tl.payments.RawPaymentVerificationNeeded
|
|
@@ -48793,6 +51004,7 @@ export class RpcError extends Error {
|
|
|
48793
51004
|
| tl.RawInputInvoicePremiumGiftCode
|
|
48794
51005
|
| tl.RawInputInvoiceStars
|
|
48795
51006
|
| tl.RawInputInvoiceChatInviteSubscription
|
|
51007
|
+
| tl.RawInputInvoiceStarGift
|
|
48796
51008
|
| tl.payments.RawExportedInvoice
|
|
48797
51009
|
| tl.messages.RawTranscribedAudio
|
|
48798
51010
|
| tl.help.RawPremiumPromo
|
|
@@ -49009,6 +51221,7 @@ export class RpcError extends Error {
|
|
|
49009
51221
|
| tl.RawStarsTransactionPeerFragment
|
|
49010
51222
|
| tl.RawStarsTransactionPeer
|
|
49011
51223
|
| tl.RawStarsTransactionPeerAds
|
|
51224
|
+
| tl.RawStarsTransactionPeerAPI
|
|
49012
51225
|
| tl.RawStarsTopupOption
|
|
49013
51226
|
| tl.RawStarsTransaction
|
|
49014
51227
|
| tl.payments.RawStarsStatus
|
|
@@ -49029,10 +51242,25 @@ export class RpcError extends Error {
|
|
|
49029
51242
|
| tl.RawMessageReactor
|
|
49030
51243
|
| tl.RawStarsGiveawayOption
|
|
49031
51244
|
| tl.RawStarsGiveawayWinnersOption
|
|
49032
|
-
| tl.
|
|
49033
|
-
| tl.
|
|
49034
|
-
| tl.
|
|
49035
|
-
| tl.
|
|
51245
|
+
| tl.RawStarGift
|
|
51246
|
+
| tl.payments.RawStarGiftsNotModified
|
|
51247
|
+
| tl.payments.RawStarGifts
|
|
51248
|
+
| tl.RawUserStarGift
|
|
51249
|
+
| tl.payments.RawUserStarGifts
|
|
51250
|
+
| tl.RawMessageReportOption
|
|
51251
|
+
| tl.RawReportResultChooseOption
|
|
51252
|
+
| tl.RawReportResultAddComment
|
|
51253
|
+
| tl.RawReportResultReported
|
|
51254
|
+
| tl.messages.RawBotPreparedInlineMessage
|
|
51255
|
+
| tl.messages.RawPreparedInlineMessage
|
|
51256
|
+
| tl.RawBotAppSettings
|
|
51257
|
+
| tl.RawStarRefProgram
|
|
51258
|
+
| tl.RawConnectedBotStarRef
|
|
51259
|
+
| tl.payments.RawConnectedStarRefBots
|
|
51260
|
+
| tl.payments.RawSuggestedStarRefBots
|
|
51261
|
+
| tl.RawStarsAmount
|
|
51262
|
+
| tl.messages.RawFoundStickersNotModified
|
|
51263
|
+
| tl.messages.RawFoundStickers
|
|
49036
51264
|
| tl.mtcute.RawDummyUpdate
|
|
49037
51265
|
| tl.mtcute.RawDummyInputPeerMinUser
|
|
49038
51266
|
| tl.mtcute.RawDummyInputPeerMinChannel
|
|
@@ -49433,6 +51661,13 @@ export class RpcError extends Error {
|
|
|
49433
51661
|
| tl.messages.RawSendPaidReactionRequest
|
|
49434
51662
|
| tl.messages.RawTogglePaidReactionPrivacyRequest
|
|
49435
51663
|
| tl.messages.RawGetPaidReactionPrivacyRequest
|
|
51664
|
+
| tl.messages.RawViewSponsoredMessageRequest
|
|
51665
|
+
| tl.messages.RawClickSponsoredMessageRequest
|
|
51666
|
+
| tl.messages.RawReportSponsoredMessageRequest
|
|
51667
|
+
| tl.messages.RawGetSponsoredMessagesRequest
|
|
51668
|
+
| tl.messages.RawSavePreparedInlineMessageRequest
|
|
51669
|
+
| tl.messages.RawGetPreparedInlineMessageRequest
|
|
51670
|
+
| tl.messages.RawSearchStickersRequest
|
|
49436
51671
|
| tl.updates.RawGetStateRequest
|
|
49437
51672
|
| tl.updates.RawGetDifferenceRequest
|
|
49438
51673
|
| tl.updates.RawGetChannelDifferenceRequest
|
|
@@ -49509,8 +51744,6 @@ export class RpcError extends Error {
|
|
|
49509
51744
|
| tl.channels.RawToggleSlowModeRequest
|
|
49510
51745
|
| tl.channels.RawGetInactiveChannelsRequest
|
|
49511
51746
|
| tl.channels.RawConvertToGigagroupRequest
|
|
49512
|
-
| tl.channels.RawViewSponsoredMessageRequest
|
|
49513
|
-
| tl.channels.RawGetSponsoredMessagesRequest
|
|
49514
51747
|
| tl.channels.RawGetSendAsRequest
|
|
49515
51748
|
| tl.channels.RawDeleteParticipantHistoryRequest
|
|
49516
51749
|
| tl.channels.RawToggleJoinToSendRequest
|
|
@@ -49529,14 +51762,12 @@ export class RpcError extends Error {
|
|
|
49529
51762
|
| tl.channels.RawToggleAntiSpamRequest
|
|
49530
51763
|
| tl.channels.RawReportAntiSpamFalsePositiveRequest
|
|
49531
51764
|
| tl.channels.RawToggleParticipantsHiddenRequest
|
|
49532
|
-
| tl.channels.RawClickSponsoredMessageRequest
|
|
49533
51765
|
| tl.channels.RawUpdateColorRequest
|
|
49534
51766
|
| tl.channels.RawToggleViewForumAsMessagesRequest
|
|
49535
51767
|
| tl.channels.RawGetChannelRecommendationsRequest
|
|
49536
51768
|
| tl.channels.RawUpdateEmojiStatusRequest
|
|
49537
51769
|
| tl.channels.RawSetBoostsToUnblockRestrictionsRequest
|
|
49538
51770
|
| tl.channels.RawSetEmojiStickersRequest
|
|
49539
|
-
| tl.channels.RawReportSponsoredMessageRequest
|
|
49540
51771
|
| tl.channels.RawRestrictSponsoredMessagesRequest
|
|
49541
51772
|
| tl.channels.RawSearchPostsRequest
|
|
49542
51773
|
| tl.bots.RawSendCustomRequestRequest
|
|
@@ -49562,6 +51793,11 @@ export class RpcError extends Error {
|
|
|
49562
51793
|
| tl.bots.RawReorderPreviewMediasRequest
|
|
49563
51794
|
| tl.bots.RawGetPreviewInfoRequest
|
|
49564
51795
|
| tl.bots.RawGetPreviewMediasRequest
|
|
51796
|
+
| tl.bots.RawUpdateUserEmojiStatusRequest
|
|
51797
|
+
| tl.bots.RawToggleUserEmojiStatusPermissionRequest
|
|
51798
|
+
| tl.bots.RawCheckDownloadFileParamsRequest
|
|
51799
|
+
| tl.bots.RawGetAdminedBotsRequest
|
|
51800
|
+
| tl.bots.RawUpdateStarRefProgramRequest
|
|
49565
51801
|
| tl.payments.RawGetPaymentFormRequest
|
|
49566
51802
|
| tl.payments.RawGetPaymentReceiptRequest
|
|
49567
51803
|
| tl.payments.RawValidateRequestedInfoRequest
|
|
@@ -49592,6 +51828,16 @@ export class RpcError extends Error {
|
|
|
49592
51828
|
| tl.payments.RawChangeStarsSubscriptionRequest
|
|
49593
51829
|
| tl.payments.RawFulfillStarsSubscriptionRequest
|
|
49594
51830
|
| tl.payments.RawGetStarsGiveawayOptionsRequest
|
|
51831
|
+
| tl.payments.RawGetStarGiftsRequest
|
|
51832
|
+
| tl.payments.RawGetUserStarGiftsRequest
|
|
51833
|
+
| tl.payments.RawSaveStarGiftRequest
|
|
51834
|
+
| tl.payments.RawConvertStarGiftRequest
|
|
51835
|
+
| tl.payments.RawBotCancelStarsSubscriptionRequest
|
|
51836
|
+
| tl.payments.RawGetConnectedStarRefBotsRequest
|
|
51837
|
+
| tl.payments.RawGetConnectedStarRefBotRequest
|
|
51838
|
+
| tl.payments.RawGetSuggestedStarRefBotsRequest
|
|
51839
|
+
| tl.payments.RawConnectStarRefBotRequest
|
|
51840
|
+
| tl.payments.RawEditConnectedStarRefBotRequest
|
|
49595
51841
|
| tl.stickers.RawCreateStickerSetRequest
|
|
49596
51842
|
| tl.stickers.RawRemoveStickerFromSetRequest
|
|
49597
51843
|
| tl.stickers.RawChangeStickerPositionRequest
|
|
@@ -49700,6 +51946,10 @@ export class RpcError extends Error {
|
|
|
49700
51946
|
| tl.smsjobs.RawGetSmsJobRequest
|
|
49701
51947
|
| tl.smsjobs.RawFinishJobRequest
|
|
49702
51948
|
| tl.fragment.RawGetCollectibleInfoRequest
|
|
51949
|
+
| tl.channels.RawViewSponsoredMessageRequest
|
|
51950
|
+
| tl.channels.RawGetSponsoredMessagesRequest
|
|
51951
|
+
| tl.channels.RawClickSponsoredMessageRequest
|
|
51952
|
+
| tl.channels.RawReportSponsoredMessageRequest
|
|
49703
51953
|
| tl.mtcute.RawCustomMethodRequest
|
|
49704
51954
|
}
|
|
49705
51955
|
|