@mtcute/core 0.31.0 → 0.32.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client.cjs +12 -0
- package/client.js +12 -0
- package/highlevel/client.d.cts +79 -10
- package/highlevel/client.d.ts +79 -10
- package/highlevel/methods/chats/build-peers-index.cjs +45 -0
- package/highlevel/methods/chats/build-peers-index.d.cts +13 -0
- package/highlevel/methods/chats/build-peers-index.d.ts +13 -0
- package/highlevel/methods/chats/build-peers-index.js +40 -0
- package/highlevel/methods/ephemeral/delete-all-welcome-messages.cjs +17 -0
- package/highlevel/methods/ephemeral/delete-all-welcome-messages.d.cts +8 -0
- package/highlevel/methods/ephemeral/delete-all-welcome-messages.d.ts +8 -0
- package/highlevel/methods/ephemeral/delete-all-welcome-messages.js +12 -0
- package/highlevel/methods/ephemeral/delete-ephemeral-message.cjs +1 -1
- package/highlevel/methods/ephemeral/delete-ephemeral-message.d.cts +2 -2
- package/highlevel/methods/ephemeral/delete-ephemeral-message.d.ts +2 -2
- package/highlevel/methods/ephemeral/delete-ephemeral-message.js +1 -1
- package/highlevel/methods/ephemeral/delete-welcome-message.cjs +18 -0
- package/highlevel/methods/ephemeral/delete-welcome-message.d.cts +9 -0
- package/highlevel/methods/ephemeral/delete-welcome-message.d.ts +9 -0
- package/highlevel/methods/ephemeral/delete-welcome-message.js +13 -0
- package/highlevel/methods/ephemeral/edit-ephemeral-message.cjs +11 -3
- package/highlevel/methods/ephemeral/edit-ephemeral-message.d.cts +16 -2
- package/highlevel/methods/ephemeral/edit-ephemeral-message.d.ts +16 -2
- package/highlevel/methods/ephemeral/edit-ephemeral-message.js +11 -3
- package/highlevel/methods/ephemeral/get-welcome-messages.cjs +29 -0
- package/highlevel/methods/ephemeral/get-welcome-messages.d.cts +8 -0
- package/highlevel/methods/ephemeral/get-welcome-messages.d.ts +8 -0
- package/highlevel/methods/ephemeral/get-welcome-messages.js +24 -0
- package/highlevel/methods/ephemeral/send-ephemeral-message.cjs +13 -3
- package/highlevel/methods/ephemeral/send-ephemeral-message.d.cts +20 -2
- package/highlevel/methods/ephemeral/send-ephemeral-message.d.ts +20 -2
- package/highlevel/methods/ephemeral/send-ephemeral-message.js +13 -3
- package/highlevel/methods/files/download-iterable.cjs +3 -0
- package/highlevel/methods/files/download-iterable.js +3 -0
- package/highlevel/methods/files/normalize-input-media.cjs +25 -4
- package/highlevel/methods/files/normalize-input-media.js +25 -4
- package/highlevel/methods/forums/edit-forum-topic.cjs +1 -1
- package/highlevel/methods/forums/edit-forum-topic.js +1 -1
- package/highlevel/methods/forums/toggle-forum-topic-closed.cjs +1 -1
- package/highlevel/methods/forums/toggle-forum-topic-closed.js +1 -1
- package/highlevel/methods/forums/toggle-general-topic-hidden.cjs +1 -1
- package/highlevel/methods/forums/toggle-general-topic-hidden.js +1 -1
- package/highlevel/methods/gifts/buy-resale-gift.cjs +5 -2
- package/highlevel/methods/gifts/buy-resale-gift.d.cts +11 -1
- package/highlevel/methods/gifts/buy-resale-gift.d.ts +11 -1
- package/highlevel/methods/gifts/buy-resale-gift.js +5 -2
- package/highlevel/methods/messages/edit-message.cjs +7 -1
- package/highlevel/methods/messages/edit-message.d.cts +6 -2
- package/highlevel/methods/messages/edit-message.d.ts +6 -2
- package/highlevel/methods/messages/edit-message.js +7 -1
- package/highlevel/methods/messages/edit-message.test.d.cts +1 -0
- package/highlevel/methods/messages/edit-message.test.d.ts +1 -0
- package/highlevel/methods/messages/forward-messages.cjs +1 -0
- package/highlevel/methods/messages/forward-messages.d.cts +2 -0
- package/highlevel/methods/messages/forward-messages.d.ts +2 -0
- package/highlevel/methods/messages/forward-messages.js +1 -0
- package/highlevel/methods/messages/normalize-rich-message.cjs +3 -0
- package/highlevel/methods/messages/normalize-rich-message.js +3 -0
- package/highlevel/methods/messages/send-text.cjs +2 -33
- package/highlevel/methods/messages/send-text.js +2 -33
- package/highlevel/methods/messages/send-typing.d.cts +3 -3
- package/highlevel/methods/messages/send-typing.d.ts +3 -3
- package/highlevel/methods/messages/set-typing.cjs +1 -1
- package/highlevel/methods/messages/set-typing.d.cts +2 -2
- package/highlevel/methods/messages/set-typing.d.ts +2 -2
- package/highlevel/methods/messages/set-typing.js +1 -1
- package/highlevel/methods.d.cts +3 -0
- package/highlevel/methods.d.ts +3 -0
- package/highlevel/types/bots/keyboards/builder.cjs +5 -5
- package/highlevel/types/bots/keyboards/builder.d.cts +8 -9
- package/highlevel/types/bots/keyboards/builder.d.ts +8 -9
- package/highlevel/types/bots/keyboards/builder.js +5 -5
- package/highlevel/types/bots/keyboards/factories.cjs +51 -103
- package/highlevel/types/bots/keyboards/factories.d.cts +58 -89
- package/highlevel/types/bots/keyboards/factories.d.ts +58 -89
- package/highlevel/types/bots/keyboards/factories.js +51 -103
- package/highlevel/types/bots/keyboards/index.d.cts +3 -3
- package/highlevel/types/bots/keyboards/index.d.ts +3 -3
- package/highlevel/types/bots/keyboards/normalize.cjs +131 -0
- package/highlevel/types/bots/keyboards/normalize.d.cts +10 -0
- package/highlevel/types/bots/keyboards/normalize.d.ts +10 -0
- package/highlevel/types/bots/keyboards/normalize.js +126 -0
- package/highlevel/types/bots/keyboards/types.d.cts +160 -4
- package/highlevel/types/bots/keyboards/types.d.ts +160 -4
- package/highlevel/types/messages/dialog.cjs +8 -1
- package/highlevel/types/messages/dialog.d.cts +3 -0
- package/highlevel/types/messages/dialog.d.ts +3 -0
- package/highlevel/types/messages/dialog.js +8 -1
- package/highlevel/types/messages/dialog.test.d.cts +1 -0
- package/highlevel/types/messages/dialog.test.d.ts +1 -0
- package/highlevel/types/messages/ephemeral-message.cjs +35 -3
- package/highlevel/types/messages/ephemeral-message.d.cts +22 -2
- package/highlevel/types/messages/ephemeral-message.d.ts +22 -2
- package/highlevel/types/messages/ephemeral-message.js +35 -3
- package/highlevel/types/messages/message-action.cjs +8 -1
- package/highlevel/types/messages/message-action.d.cts +11 -1
- package/highlevel/types/messages/message-action.d.ts +11 -1
- package/highlevel/types/messages/message-action.js +8 -1
- package/highlevel/types/messages/message.cjs +7 -2
- package/highlevel/types/messages/message.d.cts +2 -2
- package/highlevel/types/messages/message.d.ts +2 -2
- package/highlevel/types/messages/message.js +8 -3
- package/highlevel/types/messages/rich/inner.cjs +37 -0
- package/highlevel/types/messages/rich/inner.d.cts +19 -0
- package/highlevel/types/messages/rich/inner.d.ts +19 -0
- package/highlevel/types/messages/rich/inner.js +37 -0
- package/highlevel/types/peers/full-chat.cjs +4 -0
- package/highlevel/types/peers/full-chat.d.cts +2 -0
- package/highlevel/types/peers/full-chat.d.ts +2 -0
- package/highlevel/types/peers/full-chat.js +4 -0
- package/highlevel/types/peers/typing-status.d.cts +4 -1
- package/highlevel/types/peers/typing-status.d.ts +4 -1
- package/highlevel/types/updates/ephemeral-callback-query.cjs +10 -2
- package/highlevel/types/updates/ephemeral-callback-query.d.cts +8 -2
- package/highlevel/types/updates/ephemeral-callback-query.d.ts +8 -2
- package/highlevel/types/updates/ephemeral-callback-query.js +10 -2
- package/highlevel/types/updates/user-typing-update.cjs +18 -0
- package/highlevel/types/updates/user-typing-update.d.cts +9 -0
- package/highlevel/types/updates/user-typing-update.d.ts +9 -0
- package/highlevel/types/updates/user-typing-update.js +18 -0
- package/highlevel/updates/manager.cjs +40 -28
- package/highlevel/updates/manager.js +40 -28
- package/highlevel/utils/walk-page-blocks.cjs +5 -0
- package/highlevel/utils/walk-page-blocks.js +5 -0
- package/methods.cjs +6 -0
- package/methods.js +6 -0
- package/network/mtproto-session.cjs +9 -2
- package/network/mtproto-session.d.cts +3 -1
- package/network/mtproto-session.d.ts +3 -1
- package/network/mtproto-session.js +9 -2
- package/network/network-manager.cjs +1 -1
- package/network/network-manager.js +1 -1
- package/network/session-connection.cjs +12 -6
- package/network/session-connection.js +12 -6
- package/network/session-connection.test.d.cts +1 -0
- package/network/session-connection.test.d.ts +1 -0
- package/package.json +3 -3
- package/tl/api-schema.json +1 -1
- package/tl/binary/reader.cjs +136 -93
- package/tl/binary/reader.js +136 -93
- package/tl/binary/writer.cjs +318 -207
- package/tl/binary/writer.js +318 -207
- package/tl/compat/reader.cjs +82 -0
- package/tl/compat/reader.js +82 -0
- package/tl/index.d.cts +377 -718
- package/tl/index.d.ts +377 -718
- package/tl/inner-tl.cjs +23 -7
- package/tl/inner-tl.js +23 -7
- package/tl/rpc-error.test.d.cts +1 -0
- package/tl/rpc-error.test.d.ts +1 -0
- package/utils/binary/compat.cjs +175 -29
- package/utils/binary/compat.js +175 -29
- package/utils/links/bots.cjs +9 -4
- package/utils/links/bots.js +9 -4
package/tl/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as _Long } from 'long';
|
|
2
2
|
export declare namespace tl {
|
|
3
|
-
const LAYER =
|
|
3
|
+
const LAYER = 229;
|
|
4
4
|
|
|
5
5
|
type Long = _Long;
|
|
6
6
|
type RawLong = Uint8Array;
|
|
@@ -3214,6 +3214,7 @@ export class RpcError extends Error {
|
|
|
3214
3214
|
* chat translation popup</a> should be hidden.
|
|
3215
3215
|
*/
|
|
3216
3216
|
translationsDisabled?: boolean;
|
|
3217
|
+
hasWelcomeMessages?: boolean;
|
|
3217
3218
|
/**
|
|
3218
3219
|
* ID of the chat
|
|
3219
3220
|
*/
|
|
@@ -3434,6 +3435,7 @@ export class RpcError extends Error {
|
|
|
3434
3435
|
* enable paid messages »</a> in this supergroup.
|
|
3435
3436
|
*/
|
|
3436
3437
|
paidMessagesAvailable?: boolean;
|
|
3438
|
+
hasWelcomeMessages?: boolean;
|
|
3437
3439
|
/**
|
|
3438
3440
|
* ID of the channel
|
|
3439
3441
|
*/
|
|
@@ -5918,6 +5920,7 @@ export class RpcError extends Error {
|
|
|
5918
5920
|
* »</a>.
|
|
5919
5921
|
*/
|
|
5920
5922
|
craft?: boolean;
|
|
5923
|
+
nameHidden?: boolean;
|
|
5921
5924
|
/**
|
|
5922
5925
|
* The collectible gift.
|
|
5923
5926
|
*/
|
|
@@ -5981,6 +5984,7 @@ export class RpcError extends Error {
|
|
|
5981
5984
|
* »</a> only starting from the specified unixtime.
|
|
5982
5985
|
*/
|
|
5983
5986
|
canCraftAt?: number;
|
|
5987
|
+
message?: tl.TypeTextWithEntities;
|
|
5984
5988
|
}
|
|
5985
5989
|
/**
|
|
5986
5990
|
* Sent from peer A to B, indicates that A refunded all
|
|
@@ -6383,6 +6387,10 @@ export class RpcError extends Error {
|
|
|
6383
6387
|
_: 'messageActionChangeCommunity';
|
|
6384
6388
|
communityId?: number;
|
|
6385
6389
|
}
|
|
6390
|
+
interface RawMessageActionChatJoinedViaCommunity {
|
|
6391
|
+
_: 'messageActionChatJoinedViaCommunity';
|
|
6392
|
+
communityId: number;
|
|
6393
|
+
}
|
|
6386
6394
|
/**
|
|
6387
6395
|
* Chat
|
|
6388
6396
|
*/
|
|
@@ -10895,9 +10903,10 @@ export class RpcError extends Error {
|
|
|
10895
10903
|
_: 'updateEphemeralBotCallbackQuery';
|
|
10896
10904
|
queryId: Long;
|
|
10897
10905
|
userId: number;
|
|
10898
|
-
peer
|
|
10906
|
+
peer?: tl.TypePeer;
|
|
10899
10907
|
msgId: number;
|
|
10900
10908
|
data: Uint8Array;
|
|
10909
|
+
chatInstance?: Long;
|
|
10901
10910
|
message: tl.TypeEphemeralMessage;
|
|
10902
10911
|
}
|
|
10903
10912
|
interface RawUpdateBotStarsSubscription {
|
|
@@ -12108,6 +12117,8 @@ export class RpcError extends Error {
|
|
|
12108
12117
|
*/
|
|
12109
12118
|
interface RawSendMessageTextDraftAction {
|
|
12110
12119
|
_: 'sendMessageTextDraftAction';
|
|
12120
|
+
canStop?: boolean;
|
|
12121
|
+
keepOnStop?: boolean;
|
|
12111
12122
|
/**
|
|
12112
12123
|
* Live draft ID: used by graphical clients to slightly change
|
|
12113
12124
|
* the rendering behavior, see
|
|
@@ -12125,14 +12136,22 @@ export class RpcError extends Error {
|
|
|
12125
12136
|
}
|
|
12126
12137
|
interface RawInputSendMessageRichMessageDraftAction {
|
|
12127
12138
|
_: 'inputSendMessageRichMessageDraftAction';
|
|
12139
|
+
canStop?: boolean;
|
|
12140
|
+
keepOnStop?: boolean;
|
|
12128
12141
|
randomId: Long;
|
|
12129
12142
|
richMessage: tl.TypeInputRichMessage;
|
|
12130
12143
|
}
|
|
12131
12144
|
interface RawSendMessageRichMessageDraftAction {
|
|
12132
12145
|
_: 'sendMessageRichMessageDraftAction';
|
|
12146
|
+
canStop?: boolean;
|
|
12147
|
+
keepOnStop?: boolean;
|
|
12133
12148
|
randomId: Long;
|
|
12134
12149
|
richMessage: tl.TypeRichMessage;
|
|
12135
12150
|
}
|
|
12151
|
+
interface RawSendMessageStopDraftAction {
|
|
12152
|
+
_: 'sendMessageStopDraftAction';
|
|
12153
|
+
randomId: Long;
|
|
12154
|
+
}
|
|
12136
12155
|
/**
|
|
12137
12156
|
* Whether people will be able to see our exact last online
|
|
12138
12157
|
* timestamp.
|
|
@@ -13494,616 +13513,7 @@ export class RpcError extends Error {
|
|
|
13494
13513
|
* Button text
|
|
13495
13514
|
*/
|
|
13496
13515
|
text: string;
|
|
13497
|
-
|
|
13498
|
-
/**
|
|
13499
|
-
* URL button
|
|
13500
|
-
*
|
|
13501
|
-
* Available only in {@link RawReplyInlineMarkup}.
|
|
13502
|
-
*
|
|
13503
|
-
* When pressed, clients open <code>url</code>, showing a
|
|
13504
|
-
* confirmation prompt unless the URL is one of the
|
|
13505
|
-
* <a href="https://github.com/DrKLO/Telegram/blob/68d51749c4fcbaffa584829f23936565df55e08b/TMessagesProj/src/main/java/org/telegram/messenger/browser/Browser.java#L680">internal
|
|
13506
|
-
* URIs</a>.
|
|
13507
|
-
*/
|
|
13508
|
-
interface RawKeyboardButtonUrl {
|
|
13509
|
-
_: 'keyboardButtonUrl';
|
|
13510
|
-
/**
|
|
13511
|
-
* Button style, see
|
|
13512
|
-
* <a href="https://core.telegram.org/api/bots/buttons#button-styles">here
|
|
13513
|
-
* »</a> for more info on button styles.
|
|
13514
|
-
*/
|
|
13515
|
-
style?: tl.TypeKeyboardButtonStyle;
|
|
13516
|
-
/**
|
|
13517
|
-
* Button label
|
|
13518
|
-
*/
|
|
13519
|
-
text: string;
|
|
13520
|
-
/**
|
|
13521
|
-
* URL
|
|
13522
|
-
*/
|
|
13523
|
-
url: string;
|
|
13524
|
-
}
|
|
13525
|
-
/**
|
|
13526
|
-
* Callback button
|
|
13527
|
-
*
|
|
13528
|
-
* Available only in {@link RawReplyInlineMarkup}.
|
|
13529
|
-
*
|
|
13530
|
-
* When pressed, clients send <code>data</code> to the bot,
|
|
13531
|
-
* optionally providing the user's
|
|
13532
|
-
* <a href="https://core.telegram.org/api/srp">2FA SRP
|
|
13533
|
-
* parameters</a> for identity verification, as described in
|
|
13534
|
-
* <a href="https://core.telegram.org/api/bots/buttons#callback-queries">callback
|
|
13535
|
-
* queries</a>.
|
|
13536
|
-
*/
|
|
13537
|
-
interface RawKeyboardButtonCallback {
|
|
13538
|
-
_: 'keyboardButtonCallback';
|
|
13539
|
-
/**
|
|
13540
|
-
* Whether the user should verify their identity by entering
|
|
13541
|
-
* their <a href="https://core.telegram.org/api/srp">2FA SRP
|
|
13542
|
-
* parameters</a> to the
|
|
13543
|
-
* {@link messages.RawGetBotCallbackAnswerRequest} method.
|
|
13544
|
-
* NOTE: telegram and the bot WILL NOT have access to the
|
|
13545
|
-
* plaintext password, thanks to
|
|
13546
|
-
* <a href="https://core.telegram.org/api/srp">SRP</a>. This
|
|
13547
|
-
* button is mainly used by the official
|
|
13548
|
-
* <a href="https://t.me/botfather">@botfather</a> bot, for
|
|
13549
|
-
* verifying the user's identity before transferring ownership
|
|
13550
|
-
* of a bot to another user.
|
|
13551
|
-
*/
|
|
13552
|
-
requiresPassword?: boolean;
|
|
13553
|
-
/**
|
|
13554
|
-
* Button style, see
|
|
13555
|
-
* <a href="https://core.telegram.org/api/bots/buttons#button-styles">here
|
|
13556
|
-
* »</a> for more info on button styles.
|
|
13557
|
-
*/
|
|
13558
|
-
style?: tl.TypeKeyboardButtonStyle;
|
|
13559
|
-
/**
|
|
13560
|
-
* Button text
|
|
13561
|
-
*/
|
|
13562
|
-
text: string;
|
|
13563
|
-
/**
|
|
13564
|
-
* Callback data
|
|
13565
|
-
*/
|
|
13566
|
-
data: Uint8Array;
|
|
13567
|
-
}
|
|
13568
|
-
/**
|
|
13569
|
-
* Button to request a user's phone number
|
|
13570
|
-
*
|
|
13571
|
-
* Available only in private chats, in
|
|
13572
|
-
* {@link RawReplyKeyboardMarkup}.
|
|
13573
|
-
*
|
|
13574
|
-
* When pressed, clients must request permission from the user
|
|
13575
|
-
* to send the current user's contact to the chat, replying to
|
|
13576
|
-
* the message that attached the
|
|
13577
|
-
* {@link RawReplyKeyboardMarkup}.
|
|
13578
|
-
*/
|
|
13579
|
-
interface RawKeyboardButtonRequestPhone {
|
|
13580
|
-
_: 'keyboardButtonRequestPhone';
|
|
13581
|
-
/**
|
|
13582
|
-
* Button style, see
|
|
13583
|
-
* <a href="https://core.telegram.org/api/bots/buttons#button-styles">here
|
|
13584
|
-
* »</a> for more info on button styles.
|
|
13585
|
-
*/
|
|
13586
|
-
style?: tl.TypeKeyboardButtonStyle;
|
|
13587
|
-
/**
|
|
13588
|
-
* Button text
|
|
13589
|
-
*/
|
|
13590
|
-
text: string;
|
|
13591
|
-
}
|
|
13592
|
-
/**
|
|
13593
|
-
* Button to request a user's geolocation
|
|
13594
|
-
*
|
|
13595
|
-
* Available only in private chats, in
|
|
13596
|
-
* {@link RawReplyKeyboardMarkup}.
|
|
13597
|
-
*
|
|
13598
|
-
* When pressed, clients must request permission from the user
|
|
13599
|
-
* to send the current user's geolocation to the chat, replying
|
|
13600
|
-
* to the message that attached the
|
|
13601
|
-
* {@link RawReplyKeyboardMarkup}.
|
|
13602
|
-
*/
|
|
13603
|
-
interface RawKeyboardButtonRequestGeoLocation {
|
|
13604
|
-
_: 'keyboardButtonRequestGeoLocation';
|
|
13605
|
-
/**
|
|
13606
|
-
* Button style, see
|
|
13607
|
-
* <a href="https://core.telegram.org/api/bots/buttons#button-styles">here
|
|
13608
|
-
* »</a> for more info on button styles.
|
|
13609
|
-
*/
|
|
13610
|
-
style?: tl.TypeKeyboardButtonStyle;
|
|
13611
|
-
/**
|
|
13612
|
-
* Button text
|
|
13613
|
-
*/
|
|
13614
|
-
text: string;
|
|
13615
|
-
}
|
|
13616
|
-
/**
|
|
13617
|
-
* Button to switch the user to inline mode
|
|
13618
|
-
*
|
|
13619
|
-
* Available only in {@link RawReplyInlineMarkup}.
|
|
13620
|
-
*
|
|
13621
|
-
* When pressed, clients must insert the bot's username and
|
|
13622
|
-
* <code>query</code> into the chat input field, triggering an
|
|
13623
|
-
* <a href="https://core.telegram.org/api/bots/inline">inline
|
|
13624
|
-
* query</a>.
|
|
13625
|
-
*
|
|
13626
|
-
* If <code>same_peer</code> is set, clients use the current
|
|
13627
|
-
* chat. Otherwise, clients prompt the user to select a chat,
|
|
13628
|
-
* filtered by <code>peer_types</code> if specified.
|
|
13629
|
-
*/
|
|
13630
|
-
interface RawKeyboardButtonSwitchInline {
|
|
13631
|
-
_: 'keyboardButtonSwitchInline';
|
|
13632
|
-
/**
|
|
13633
|
-
* If set, pressing the button will insert the bot's username
|
|
13634
|
-
* and the specified inline <code>query</code> in the current
|
|
13635
|
-
* chat's input field.
|
|
13636
|
-
*/
|
|
13637
|
-
samePeer?: boolean;
|
|
13638
|
-
/**
|
|
13639
|
-
* Button style, see
|
|
13640
|
-
* <a href="https://core.telegram.org/api/bots/buttons#button-styles">here
|
|
13641
|
-
* »</a> for more info on button styles.
|
|
13642
|
-
*/
|
|
13643
|
-
style?: tl.TypeKeyboardButtonStyle;
|
|
13644
|
-
/**
|
|
13645
|
-
* Button label
|
|
13646
|
-
*/
|
|
13647
|
-
text: string;
|
|
13648
|
-
/**
|
|
13649
|
-
* The inline query to use
|
|
13650
|
-
*/
|
|
13651
|
-
query: string;
|
|
13652
|
-
/**
|
|
13653
|
-
* Filter to use when selecting chats.
|
|
13654
|
-
*/
|
|
13655
|
-
peerTypes?: tl.TypeInlineQueryPeerType[];
|
|
13656
|
-
}
|
|
13657
|
-
/**
|
|
13658
|
-
* Button to start a game
|
|
13659
|
-
*
|
|
13660
|
-
* Available only in {@link RawReplyInlineMarkup}.
|
|
13661
|
-
*
|
|
13662
|
-
* When pressed, clients must open the {@link RawGame} from the
|
|
13663
|
-
* attached {@link RawMessageMediaGame} constructor by invoking
|
|
13664
|
-
* {@link messages.RawGetBotCallbackAnswerRequest} with the
|
|
13665
|
-
* <code>game</code> flag set, as described in
|
|
13666
|
-
* <a href="https://core.telegram.org/api/bots/games#starting-a-game">Starting
|
|
13667
|
-
* a game</a>.
|
|
13668
|
-
*/
|
|
13669
|
-
interface RawKeyboardButtonGame {
|
|
13670
|
-
_: 'keyboardButtonGame';
|
|
13671
|
-
/**
|
|
13672
|
-
* Button style, see
|
|
13673
|
-
* <a href="https://core.telegram.org/api/bots/buttons#button-styles">here
|
|
13674
|
-
* »</a> for more info on button styles.
|
|
13675
|
-
*/
|
|
13676
|
-
style?: tl.TypeKeyboardButtonStyle;
|
|
13677
|
-
/**
|
|
13678
|
-
* Button text
|
|
13679
|
-
*/
|
|
13680
|
-
text: string;
|
|
13681
|
-
}
|
|
13682
|
-
/**
|
|
13683
|
-
* Button to buy a product
|
|
13684
|
-
*
|
|
13685
|
-
* Available only in {@link RawReplyInlineMarkup}.
|
|
13686
|
-
*
|
|
13687
|
-
* When pressed, clients must start the
|
|
13688
|
-
* <a href="https://core.telegram.org/api/payments">payment
|
|
13689
|
-
* flow for the attached invoice</a>.
|
|
13690
|
-
*/
|
|
13691
|
-
interface RawKeyboardButtonBuy {
|
|
13692
|
-
_: 'keyboardButtonBuy';
|
|
13693
|
-
/**
|
|
13694
|
-
* Button style, see
|
|
13695
|
-
* <a href="https://core.telegram.org/api/bots/buttons#button-styles">here
|
|
13696
|
-
* »</a> for more info on button styles.
|
|
13697
|
-
*/
|
|
13698
|
-
style?: tl.TypeKeyboardButtonStyle;
|
|
13699
|
-
/**
|
|
13700
|
-
* Button text
|
|
13701
|
-
*/
|
|
13702
|
-
text: string;
|
|
13703
|
-
}
|
|
13704
|
-
/**
|
|
13705
|
-
* Button to request a user to authorize via URL using
|
|
13706
|
-
* <a href="https://telegram.org/blog/privacy-discussions-web-bots#meet-seamless-web-bots">Seamless
|
|
13707
|
-
* Telegram Login</a>. When the user clicks on such a button,
|
|
13708
|
-
* {@link messages.RawRequestUrlAuthRequest} should be called,
|
|
13709
|
-
* providing the <code>button_id</code> and the ID of the
|
|
13710
|
-
* container message. The returned
|
|
13711
|
-
* {@link RawUrlAuthResultRequest} object will contain more
|
|
13712
|
-
* details about the authorization request
|
|
13713
|
-
* (<code>request_write_access</code> if the bot would like to
|
|
13714
|
-
* send messages to the user along with the username of the bot
|
|
13715
|
-
* which will be used for user authorization). Finally, the
|
|
13716
|
-
* user can choose to call
|
|
13717
|
-
* {@link messages.RawAcceptUrlAuthRequest} to get a
|
|
13718
|
-
* {@link RawUrlAuthResultAccepted} with the URL to open
|
|
13719
|
-
* instead of the <code>url</code> of this constructor, or a
|
|
13720
|
-
* {@link RawUrlAuthResultDefault}, in which case the
|
|
13721
|
-
* <code>url</code> of this constructor must be opened,
|
|
13722
|
-
* instead. If the user refuses the authorization request but
|
|
13723
|
-
* still wants to open the link, the <code>url</code> of this
|
|
13724
|
-
* constructor must be used.
|
|
13725
|
-
*
|
|
13726
|
-
* Available only in {@link RawReplyInlineMarkup}.
|
|
13727
|
-
*/
|
|
13728
|
-
interface RawKeyboardButtonUrlAuth {
|
|
13729
|
-
_: 'keyboardButtonUrlAuth';
|
|
13730
|
-
/**
|
|
13731
|
-
* Button style, see
|
|
13732
|
-
* <a href="https://core.telegram.org/api/bots/buttons#button-styles">here
|
|
13733
|
-
* »</a> for more info on button styles.
|
|
13734
|
-
*/
|
|
13735
|
-
style?: tl.TypeKeyboardButtonStyle;
|
|
13736
|
-
/**
|
|
13737
|
-
* Button label
|
|
13738
|
-
*/
|
|
13739
|
-
text: string;
|
|
13740
|
-
/**
|
|
13741
|
-
* New text of the button in forwarded messages.
|
|
13742
|
-
*/
|
|
13743
|
-
fwdText?: string;
|
|
13744
|
-
/**
|
|
13745
|
-
* An HTTP URL to be opened with user authorization data added
|
|
13746
|
-
* to the query string when the button is pressed. If the user
|
|
13747
|
-
* refuses to provide authorization data, the original URL
|
|
13748
|
-
* without information about the user will be opened. The data
|
|
13749
|
-
* added is the same as described in
|
|
13750
|
-
* <a href="https://core.telegram.org/widgets/login#receiving-authorization-data">Receiving
|
|
13751
|
-
* authorization data</a>.
|
|
13752
|
-
*
|
|
13753
|
-
*
|
|
13754
|
-
*
|
|
13755
|
-
* <strong>NOTE</strong>: Services must <strong>always</strong>
|
|
13756
|
-
* check the hash of the received data to verify the
|
|
13757
|
-
* authentication and the integrity of the data as described in
|
|
13758
|
-
* <a href="https://core.telegram.org/widgets/login#checking-authorization">Checking
|
|
13759
|
-
* authorization</a>.
|
|
13760
|
-
*/
|
|
13761
|
-
url: string;
|
|
13762
|
-
/**
|
|
13763
|
-
* ID of the button to pass to
|
|
13764
|
-
* {@link messages.RawRequestUrlAuthRequest}
|
|
13765
|
-
*/
|
|
13766
|
-
buttonId: number;
|
|
13767
|
-
}
|
|
13768
|
-
/**
|
|
13769
|
-
* Button to request a user to
|
|
13770
|
-
* {@link messages.RawAcceptUrlAuthRequest} via URL using
|
|
13771
|
-
* <a href="https://telegram.org/blog/privacy-discussions-web-bots#meet-seamless-web-bots">Seamless
|
|
13772
|
-
* Telegram Login</a>.
|
|
13773
|
-
*
|
|
13774
|
-
* Use this constructor to send a
|
|
13775
|
-
* {@link RawKeyboardButtonUrlAuth} button in an
|
|
13776
|
-
* <a href="https://core.telegram.org/bots/features#inline-keyboards">inline
|
|
13777
|
-
* keyboard</a>.
|
|
13778
|
-
*/
|
|
13779
|
-
interface RawInputKeyboardButtonUrlAuth {
|
|
13780
|
-
_: 'inputKeyboardButtonUrlAuth';
|
|
13781
|
-
/**
|
|
13782
|
-
* Set this flag to request the permission for your bot to send
|
|
13783
|
-
* messages to the user.
|
|
13784
|
-
*/
|
|
13785
|
-
requestWriteAccess?: boolean;
|
|
13786
|
-
/**
|
|
13787
|
-
* Button style, see
|
|
13788
|
-
* <a href="https://core.telegram.org/api/bots/buttons#button-styles">here
|
|
13789
|
-
* »</a> for more info on button styles.
|
|
13790
|
-
*/
|
|
13791
|
-
style?: tl.TypeKeyboardButtonStyle;
|
|
13792
|
-
/**
|
|
13793
|
-
* Button text
|
|
13794
|
-
*/
|
|
13795
|
-
text: string;
|
|
13796
|
-
/**
|
|
13797
|
-
* New text of the button in forwarded messages.
|
|
13798
|
-
*/
|
|
13799
|
-
fwdText?: string;
|
|
13800
|
-
/**
|
|
13801
|
-
* An HTTP URL to be opened with user authorization data added
|
|
13802
|
-
* to the query string when the button is pressed. If the user
|
|
13803
|
-
* refuses to provide authorization data, the original URL
|
|
13804
|
-
* without information about the user will be opened. The data
|
|
13805
|
-
* added is the same as described in
|
|
13806
|
-
* <a href="https://core.telegram.org/widgets/login#receiving-authorization-data">Receiving
|
|
13807
|
-
* authorization data</a>.
|
|
13808
|
-
*
|
|
13809
|
-
* NOTE: You must always check the hash of the received data to
|
|
13810
|
-
* verify the authentication and the integrity of the data as
|
|
13811
|
-
* described in
|
|
13812
|
-
* <a href="https://core.telegram.org/widgets/login#checking-authorization">Checking
|
|
13813
|
-
* authorization</a>.
|
|
13814
|
-
*/
|
|
13815
|
-
url: string;
|
|
13816
|
-
/**
|
|
13817
|
-
* Username of a bot, which will be used for user
|
|
13818
|
-
* authorization. See
|
|
13819
|
-
* <a href="https://core.telegram.org/widgets/login#setting-up-a-bot">Setting
|
|
13820
|
-
* up a bot</a> for more details. If not specified, the current
|
|
13821
|
-
* bot's username will be assumed. The url's domain must be the
|
|
13822
|
-
* same as the domain linked with the bot. See
|
|
13823
|
-
* <a href="https://core.telegram.org/widgets/login#linking-your-domain-to-the-bot">Linking
|
|
13824
|
-
* your domain to the bot</a> for more details.
|
|
13825
|
-
*/
|
|
13826
|
-
bot: tl.TypeInputUser;
|
|
13827
|
-
}
|
|
13828
|
-
/**
|
|
13829
|
-
* Button to request a poll from the user
|
|
13830
|
-
*
|
|
13831
|
-
* Available only in private chats, in
|
|
13832
|
-
* {@link RawReplyKeyboardMarkup}.
|
|
13833
|
-
*
|
|
13834
|
-
* When pressed, clients prompt the user to create and send a
|
|
13835
|
-
* <a href="https://core.telegram.org/api/poll">poll</a>,
|
|
13836
|
-
* replying to the message that attached the
|
|
13837
|
-
* {@link RawReplyKeyboardMarkup}. If <code>quiz</code> is set,
|
|
13838
|
-
* the prompt must create a quiz poll.
|
|
13839
|
-
*/
|
|
13840
|
-
interface RawKeyboardButtonRequestPoll {
|
|
13841
|
-
_: 'keyboardButtonRequestPoll';
|
|
13842
|
-
/**
|
|
13843
|
-
* Button style, see
|
|
13844
|
-
* <a href="https://core.telegram.org/api/bots/buttons#button-styles">here
|
|
13845
|
-
* »</a> for more info on button styles.
|
|
13846
|
-
*/
|
|
13847
|
-
style?: tl.TypeKeyboardButtonStyle;
|
|
13848
|
-
/**
|
|
13849
|
-
* If set, only quiz polls can be sent
|
|
13850
|
-
*/
|
|
13851
|
-
quiz?: boolean;
|
|
13852
|
-
/**
|
|
13853
|
-
* Button text
|
|
13854
|
-
*/
|
|
13855
|
-
text: string;
|
|
13856
|
-
}
|
|
13857
|
-
/**
|
|
13858
|
-
* Button that links directly to a user profile
|
|
13859
|
-
*
|
|
13860
|
-
* Use this constructor to send a
|
|
13861
|
-
* {@link RawKeyboardButtonUserProfile} button in an
|
|
13862
|
-
* <a href="https://core.telegram.org/bots/features#inline-keyboards">inline
|
|
13863
|
-
* keyboard</a>.
|
|
13864
|
-
*/
|
|
13865
|
-
interface RawInputKeyboardButtonUserProfile {
|
|
13866
|
-
_: 'inputKeyboardButtonUserProfile';
|
|
13867
|
-
/**
|
|
13868
|
-
* Button style, see
|
|
13869
|
-
* <a href="https://core.telegram.org/api/bots/buttons#button-styles">here
|
|
13870
|
-
* »</a> for more info on button styles.
|
|
13871
|
-
*/
|
|
13872
|
-
style?: tl.TypeKeyboardButtonStyle;
|
|
13873
|
-
/**
|
|
13874
|
-
* Button text
|
|
13875
|
-
*/
|
|
13876
|
-
text: string;
|
|
13877
|
-
/**
|
|
13878
|
-
* User ID
|
|
13879
|
-
*/
|
|
13880
|
-
userId: tl.TypeInputUser;
|
|
13881
|
-
}
|
|
13882
|
-
/**
|
|
13883
|
-
* Button that links directly to a user profile
|
|
13884
|
-
*
|
|
13885
|
-
* Available only in {@link RawReplyInlineMarkup}.
|
|
13886
|
-
*
|
|
13887
|
-
* When pressed, clients must open the profile of the user
|
|
13888
|
-
* identified by <code>user_id</code>.
|
|
13889
|
-
*/
|
|
13890
|
-
interface RawKeyboardButtonUserProfile {
|
|
13891
|
-
_: 'keyboardButtonUserProfile';
|
|
13892
|
-
/**
|
|
13893
|
-
* Button style, see
|
|
13894
|
-
* <a href="https://core.telegram.org/api/bots/buttons#button-styles">here
|
|
13895
|
-
* »</a> for more info on button styles.
|
|
13896
|
-
*/
|
|
13897
|
-
style?: tl.TypeKeyboardButtonStyle;
|
|
13898
|
-
/**
|
|
13899
|
-
* Button text
|
|
13900
|
-
*/
|
|
13901
|
-
text: string;
|
|
13902
|
-
/**
|
|
13903
|
-
* User ID
|
|
13904
|
-
*/
|
|
13905
|
-
userId: number;
|
|
13906
|
-
}
|
|
13907
|
-
/**
|
|
13908
|
-
* Button to open a
|
|
13909
|
-
* <a href="https://core.telegram.org/api/bots/webapps">bot
|
|
13910
|
-
* mini app</a> using
|
|
13911
|
-
* {@link messages.RawRequestWebViewRequest}, sending over user
|
|
13912
|
-
* information after user confirmation.
|
|
13913
|
-
*
|
|
13914
|
-
* Can only be sent or received as part of an inline keyboard,
|
|
13915
|
-
* use {@link RawKeyboardButtonSimpleWebView} for reply
|
|
13916
|
-
* keyboards.
|
|
13917
|
-
*
|
|
13918
|
-
* When pressed, clients must open an
|
|
13919
|
-
* <a href="https://core.telegram.org/api/bots/webapps#inline-button-mini-apps">Inline
|
|
13920
|
-
* Button Mini App</a> using
|
|
13921
|
-
* {@link messages.RawRequestWebViewRequest}, passing
|
|
13922
|
-
* <code>url</code> to
|
|
13923
|
-
* {@link messages.RawRequestWebViewRequest}.<code>url</code>.
|
|
13924
|
-
*/
|
|
13925
|
-
interface RawKeyboardButtonWebView {
|
|
13926
|
-
_: 'keyboardButtonWebView';
|
|
13927
|
-
/**
|
|
13928
|
-
* Button style, see
|
|
13929
|
-
* <a href="https://core.telegram.org/api/bots/buttons#button-styles">here
|
|
13930
|
-
* »</a> for more info on button styles.
|
|
13931
|
-
*/
|
|
13932
|
-
style?: tl.TypeKeyboardButtonStyle;
|
|
13933
|
-
/**
|
|
13934
|
-
* Button text
|
|
13935
|
-
*/
|
|
13936
|
-
text: string;
|
|
13937
|
-
/**
|
|
13938
|
-
* <a href="https://core.telegram.org/api/bots/webapps">Web app
|
|
13939
|
-
* url</a>
|
|
13940
|
-
*/
|
|
13941
|
-
url: string;
|
|
13942
|
-
}
|
|
13943
|
-
/**
|
|
13944
|
-
* Button to open a
|
|
13945
|
-
* <a href="https://core.telegram.org/api/bots/webapps">bot
|
|
13946
|
-
* mini app</a> using
|
|
13947
|
-
* {@link messages.RawRequestSimpleWebViewRequest}, without
|
|
13948
|
-
* sending user information to the web app.
|
|
13949
|
-
*
|
|
13950
|
-
* Can only be sent or received as part of a reply keyboard,
|
|
13951
|
-
* use {@link RawKeyboardButtonWebView} for inline keyboards.
|
|
13952
|
-
*
|
|
13953
|
-
* When pressed, clients must open a
|
|
13954
|
-
* <a href="https://core.telegram.org/api/bots/webapps#keyboard-button-mini-apps">Keyboard
|
|
13955
|
-
* Button Mini App</a> using
|
|
13956
|
-
* {@link messages.RawRequestSimpleWebViewRequest}, passing
|
|
13957
|
-
* <code>url</code> to
|
|
13958
|
-
* {@link messages.RawRequestSimpleWebViewRequest}.<code>url</code>.
|
|
13959
|
-
*/
|
|
13960
|
-
interface RawKeyboardButtonSimpleWebView {
|
|
13961
|
-
_: 'keyboardButtonSimpleWebView';
|
|
13962
|
-
/**
|
|
13963
|
-
* Button style, see
|
|
13964
|
-
* <a href="https://core.telegram.org/api/bots/buttons#button-styles">here
|
|
13965
|
-
* »</a> for more info on button styles.
|
|
13966
|
-
*/
|
|
13967
|
-
style?: tl.TypeKeyboardButtonStyle;
|
|
13968
|
-
/**
|
|
13969
|
-
* Button text
|
|
13970
|
-
*/
|
|
13971
|
-
text: string;
|
|
13972
|
-
/**
|
|
13973
|
-
* <a href="https://core.telegram.org/api/bots/webapps">Web app
|
|
13974
|
-
* URL</a>
|
|
13975
|
-
*/
|
|
13976
|
-
url: string;
|
|
13977
|
-
}
|
|
13978
|
-
/**
|
|
13979
|
-
* Prompts the user to select and share one or more peers with
|
|
13980
|
-
* the bot using
|
|
13981
|
-
* {@link messages.RawSendBotRequestedPeerRequest}
|
|
13982
|
-
*
|
|
13983
|
-
* Available only in private chats, in
|
|
13984
|
-
* {@link RawReplyKeyboardMarkup}.
|
|
13985
|
-
*
|
|
13986
|
-
* See
|
|
13987
|
-
* <a href="https://core.telegram.org/api/bots/buttons#peer-requests">peer
|
|
13988
|
-
* requests</a> for the full flow.
|
|
13989
|
-
*/
|
|
13990
|
-
interface RawKeyboardButtonRequestPeer {
|
|
13991
|
-
_: 'keyboardButtonRequestPeer';
|
|
13992
|
-
/**
|
|
13993
|
-
* Button style, see
|
|
13994
|
-
* <a href="https://core.telegram.org/api/bots/buttons#button-styles">here
|
|
13995
|
-
* »</a> for more info on button styles.
|
|
13996
|
-
*/
|
|
13997
|
-
style?: tl.TypeKeyboardButtonStyle;
|
|
13998
|
-
/**
|
|
13999
|
-
* Button text
|
|
14000
|
-
*/
|
|
14001
|
-
text: string;
|
|
14002
|
-
/**
|
|
14003
|
-
* Button ID, to be passed to
|
|
14004
|
-
* {@link messages.RawSendBotRequestedPeerRequest}.
|
|
14005
|
-
*/
|
|
14006
|
-
buttonId: number;
|
|
14007
|
-
/**
|
|
14008
|
-
* Filtering criteria to use for the peer selection list shown
|
|
14009
|
-
* to the user.
|
|
14010
|
-
*
|
|
14011
|
-
* The list should display all existing peers of the specified
|
|
14012
|
-
* type, and should also offer an option for the user to create
|
|
14013
|
-
* and immediately use one or more (up to
|
|
14014
|
-
* <code>max_quantity</code>) peers of the specified type, if
|
|
14015
|
-
* needed.
|
|
14016
|
-
*/
|
|
14017
|
-
peerType: tl.TypeRequestPeerType;
|
|
14018
|
-
/**
|
|
14019
|
-
* Maximum number of peers that can be chosen.
|
|
14020
|
-
*/
|
|
14021
|
-
maxQuantity: number;
|
|
14022
|
-
}
|
|
14023
|
-
/**
|
|
14024
|
-
* Prompts the user to select and share one or more peers with
|
|
14025
|
-
* the bot using
|
|
14026
|
-
* {@link messages.RawSendBotRequestedPeerRequest}.
|
|
14027
|
-
*
|
|
14028
|
-
* Use this constructor to send a
|
|
14029
|
-
* {@link RawKeyboardButtonRequestPeer} button in a
|
|
14030
|
-
* <a href="https://core.telegram.org/bots/features#keyboards">reply
|
|
14031
|
-
* keyboard</a> in a private chat.
|
|
14032
|
-
*
|
|
14033
|
-
* See
|
|
14034
|
-
* <a href="https://core.telegram.org/api/bots/buttons#peer-requests">peer
|
|
14035
|
-
* requests</a> for the full flow.
|
|
14036
|
-
*/
|
|
14037
|
-
interface RawInputKeyboardButtonRequestPeer {
|
|
14038
|
-
_: 'inputKeyboardButtonRequestPeer';
|
|
14039
|
-
/**
|
|
14040
|
-
* Set this flag to request the peer's name.
|
|
14041
|
-
*/
|
|
14042
|
-
nameRequested?: boolean;
|
|
14043
|
-
/**
|
|
14044
|
-
* Set this flag to request the peer's <code>@username</code>
|
|
14045
|
-
* (if any).
|
|
14046
|
-
*/
|
|
14047
|
-
usernameRequested?: boolean;
|
|
14048
|
-
/**
|
|
14049
|
-
* Set this flag to request the peer's photo (if any).
|
|
14050
|
-
*/
|
|
14051
|
-
photoRequested?: boolean;
|
|
14052
|
-
/**
|
|
14053
|
-
* Button style, see
|
|
14054
|
-
* <a href="https://core.telegram.org/api/bots/buttons#button-styles">here
|
|
14055
|
-
* »</a> for more info on button styles.
|
|
14056
|
-
*/
|
|
14057
|
-
style?: tl.TypeKeyboardButtonStyle;
|
|
14058
|
-
/**
|
|
14059
|
-
* Button text
|
|
14060
|
-
*/
|
|
14061
|
-
text: string;
|
|
14062
|
-
/**
|
|
14063
|
-
* Button ID, to be passed to
|
|
14064
|
-
* {@link messages.RawSendBotRequestedPeerRequest}.
|
|
14065
|
-
*/
|
|
14066
|
-
buttonId: number;
|
|
14067
|
-
/**
|
|
14068
|
-
* Filtering criteria to use for the peer selection list shown
|
|
14069
|
-
* to the user.
|
|
14070
|
-
*
|
|
14071
|
-
* The list should display all existing peers of the specified
|
|
14072
|
-
* type, and should also offer an option for the user to create
|
|
14073
|
-
* and immediately use one or more (up to
|
|
14074
|
-
* <code>max_quantity</code>) peers of the specified type, if
|
|
14075
|
-
* needed.
|
|
14076
|
-
*/
|
|
14077
|
-
peerType: tl.TypeRequestPeerType;
|
|
14078
|
-
/**
|
|
14079
|
-
* Maximum number of peers that can be chosen.
|
|
14080
|
-
*/
|
|
14081
|
-
maxQuantity: number;
|
|
14082
|
-
}
|
|
14083
|
-
/**
|
|
14084
|
-
* Clipboard button
|
|
14085
|
-
*
|
|
14086
|
-
* Available only in {@link RawReplyInlineMarkup}.
|
|
14087
|
-
*
|
|
14088
|
-
* When pressed, clients must copy <code>copy_text</code> to
|
|
14089
|
-
* the clipboard.
|
|
14090
|
-
*/
|
|
14091
|
-
interface RawKeyboardButtonCopy {
|
|
14092
|
-
_: 'keyboardButtonCopy';
|
|
14093
|
-
/**
|
|
14094
|
-
* Button style, see
|
|
14095
|
-
* <a href="https://core.telegram.org/api/bots/buttons#button-styles">here
|
|
14096
|
-
* »</a> for more info on button styles.
|
|
14097
|
-
*/
|
|
14098
|
-
style?: tl.TypeKeyboardButtonStyle;
|
|
14099
|
-
/**
|
|
14100
|
-
* Title of the button
|
|
14101
|
-
*/
|
|
14102
|
-
text: string;
|
|
14103
|
-
/**
|
|
14104
|
-
* The text that will be copied to the clipboard
|
|
14105
|
-
*/
|
|
14106
|
-
copyText: string;
|
|
13516
|
+
type: tl.TypeButtonType;
|
|
14107
13517
|
}
|
|
14108
13518
|
/**
|
|
14109
13519
|
* Inline keyboard row
|
|
@@ -14206,6 +13616,7 @@ export class RpcError extends Error {
|
|
|
14206
13616
|
* regular keyboard is hidden.
|
|
14207
13617
|
*/
|
|
14208
13618
|
persistent?: boolean;
|
|
13619
|
+
forceReply?: boolean;
|
|
14209
13620
|
/**
|
|
14210
13621
|
* Button row
|
|
14211
13622
|
*/
|
|
@@ -14221,10 +13632,11 @@ export class RpcError extends Error {
|
|
|
14221
13632
|
*/
|
|
14222
13633
|
interface RawReplyInlineMarkup {
|
|
14223
13634
|
_: 'replyInlineMarkup';
|
|
13635
|
+
forceReply?: boolean;
|
|
14224
13636
|
/**
|
|
14225
13637
|
* Bot or inline keyboard rows
|
|
14226
13638
|
*/
|
|
14227
|
-
rows: tl.
|
|
13639
|
+
rows: tl.TypeKeyboardInlineButtonRow[];
|
|
14228
13640
|
}
|
|
14229
13641
|
/**
|
|
14230
13642
|
* Unknown message entity
|
|
@@ -16605,6 +16017,12 @@ export class RpcError extends Error {
|
|
|
16605
16017
|
text: tl.TypeRichText;
|
|
16606
16018
|
oldText: tl.TypeRichText;
|
|
16607
16019
|
}
|
|
16020
|
+
interface RawTextButton {
|
|
16021
|
+
_: 'textButton';
|
|
16022
|
+
text: tl.TypeRichText;
|
|
16023
|
+
type: tl.TypeInlineButtonType;
|
|
16024
|
+
style?: tl.TypeRichButtonStyle;
|
|
16025
|
+
}
|
|
16608
16026
|
/**
|
|
16609
16027
|
* Unsupported IV element
|
|
16610
16028
|
*/
|
|
@@ -16731,6 +16149,7 @@ export class RpcError extends Error {
|
|
|
16731
16149
|
*/
|
|
16732
16150
|
interface RawPageBlockBlockquote {
|
|
16733
16151
|
_: 'pageBlockBlockquote';
|
|
16152
|
+
collapsed?: boolean;
|
|
16734
16153
|
/**
|
|
16735
16154
|
* Quote contents
|
|
16736
16155
|
*/
|
|
@@ -16958,6 +16377,7 @@ export class RpcError extends Error {
|
|
|
16958
16377
|
* Is the table striped?
|
|
16959
16378
|
*/
|
|
16960
16379
|
striped?: boolean;
|
|
16380
|
+
compact?: boolean;
|
|
16961
16381
|
/**
|
|
16962
16382
|
* Title
|
|
16963
16383
|
*/
|
|
@@ -17083,6 +16503,18 @@ export class RpcError extends Error {
|
|
|
17083
16503
|
blocks: tl.TypePageBlock[];
|
|
17084
16504
|
caption: tl.TypeRichText;
|
|
17085
16505
|
}
|
|
16506
|
+
interface RawPageBlockButtonRow {
|
|
16507
|
+
_: 'pageBlockButtonRow';
|
|
16508
|
+
alignLeft?: boolean;
|
|
16509
|
+
alignCenter?: boolean;
|
|
16510
|
+
alignRight?: boolean;
|
|
16511
|
+
buttons: tl.TypePageButton[];
|
|
16512
|
+
}
|
|
16513
|
+
interface RawPageBlockDocument {
|
|
16514
|
+
_: 'pageBlockDocument';
|
|
16515
|
+
documentId: Long;
|
|
16516
|
+
caption: tl.TypePageCaption;
|
|
16517
|
+
}
|
|
17086
16518
|
/**
|
|
17087
16519
|
* The phone call was missed, see
|
|
17088
16520
|
* <a href="https://core.telegram.org/api/calls">here »</a> for
|
|
@@ -20626,6 +20058,7 @@ export class RpcError extends Error {
|
|
|
20626
20058
|
*/
|
|
20627
20059
|
manageRanks?: boolean;
|
|
20628
20060
|
manageLinkedPeers?: boolean;
|
|
20061
|
+
manageWelcomeMessages?: boolean;
|
|
20629
20062
|
}
|
|
20630
20063
|
/**
|
|
20631
20064
|
* Represents the rights of a normal user in a
|
|
@@ -23795,6 +23228,7 @@ export class RpcError extends Error {
|
|
|
23795
23228
|
* Buy the gift using TON.
|
|
23796
23229
|
*/
|
|
23797
23230
|
ton?: boolean;
|
|
23231
|
+
showName?: boolean;
|
|
23798
23232
|
/**
|
|
23799
23233
|
* Slug of the gift to buy.
|
|
23800
23234
|
*/
|
|
@@ -23803,6 +23237,7 @@ export class RpcError extends Error {
|
|
|
23803
23237
|
* The receiver of the gift.
|
|
23804
23238
|
*/
|
|
23805
23239
|
toId: tl.TypeInputPeer;
|
|
23240
|
+
message?: tl.TypeTextWithEntities;
|
|
23806
23241
|
}
|
|
23807
23242
|
/**
|
|
23808
23243
|
* <a href="https://core.telegram.org/api/gifts#prepaying-for-someone-elses-upgrade">Separately
|
|
@@ -30631,9 +30066,12 @@ export class RpcError extends Error {
|
|
|
30631
30066
|
interface RawEphemeralMessage {
|
|
30632
30067
|
_: 'ephemeralMessage';
|
|
30633
30068
|
out?: boolean;
|
|
30069
|
+
welcomeTemplate?: boolean;
|
|
30070
|
+
invertMedia?: boolean;
|
|
30071
|
+
noforwards?: boolean;
|
|
30634
30072
|
id: number;
|
|
30635
30073
|
fromId: tl.TypePeer;
|
|
30636
|
-
peerId
|
|
30074
|
+
peerId?: tl.TypePeer;
|
|
30637
30075
|
receiverId: number;
|
|
30638
30076
|
topMsgId?: number;
|
|
30639
30077
|
date: number;
|
|
@@ -30642,6 +30080,117 @@ export class RpcError extends Error {
|
|
|
30642
30080
|
media?: tl.TypeMessageMedia;
|
|
30643
30081
|
replyMarkup?: tl.TypeReplyMarkup;
|
|
30644
30082
|
replyTo?: tl.TypeMessageReplyHeader;
|
|
30083
|
+
richMessage?: tl.TypeRichMessage;
|
|
30084
|
+
chatInstance?: Long;
|
|
30085
|
+
anchorMsgId?: number;
|
|
30086
|
+
}
|
|
30087
|
+
interface RawButtonTypeDefault {
|
|
30088
|
+
_: 'buttonTypeDefault';
|
|
30089
|
+
}
|
|
30090
|
+
interface RawButtonTypeRequestPhone {
|
|
30091
|
+
_: 'buttonTypeRequestPhone';
|
|
30092
|
+
}
|
|
30093
|
+
interface RawButtonTypeRequestGeoLocation {
|
|
30094
|
+
_: 'buttonTypeRequestGeoLocation';
|
|
30095
|
+
}
|
|
30096
|
+
interface RawButtonTypeRequestPoll {
|
|
30097
|
+
_: 'buttonTypeRequestPoll';
|
|
30098
|
+
quiz?: boolean;
|
|
30099
|
+
}
|
|
30100
|
+
interface RawButtonTypeRequestPeer {
|
|
30101
|
+
_: 'buttonTypeRequestPeer';
|
|
30102
|
+
buttonId: number;
|
|
30103
|
+
peerType: tl.TypeRequestPeerType;
|
|
30104
|
+
maxQuantity: number;
|
|
30105
|
+
}
|
|
30106
|
+
interface RawInputButtonTypeRequestPeer {
|
|
30107
|
+
_: 'inputButtonTypeRequestPeer';
|
|
30108
|
+
nameRequested?: boolean;
|
|
30109
|
+
usernameRequested?: boolean;
|
|
30110
|
+
photoRequested?: boolean;
|
|
30111
|
+
buttonId: number;
|
|
30112
|
+
peerType: tl.TypeRequestPeerType;
|
|
30113
|
+
maxQuantity: number;
|
|
30114
|
+
}
|
|
30115
|
+
interface RawButtonTypeSimpleWebView {
|
|
30116
|
+
_: 'buttonTypeSimpleWebView';
|
|
30117
|
+
url: string;
|
|
30118
|
+
}
|
|
30119
|
+
interface RawInlineButtonTypeUrl {
|
|
30120
|
+
_: 'inlineButtonTypeUrl';
|
|
30121
|
+
url: string;
|
|
30122
|
+
}
|
|
30123
|
+
interface RawInlineButtonTypeUrlAuth {
|
|
30124
|
+
_: 'inlineButtonTypeUrlAuth';
|
|
30125
|
+
fwdText?: string;
|
|
30126
|
+
url: string;
|
|
30127
|
+
buttonId: number;
|
|
30128
|
+
}
|
|
30129
|
+
interface RawInputInlineButtonTypeUrlAuth {
|
|
30130
|
+
_: 'inputInlineButtonTypeUrlAuth';
|
|
30131
|
+
requestWriteAccess?: boolean;
|
|
30132
|
+
fwdText?: string;
|
|
30133
|
+
url: string;
|
|
30134
|
+
bot?: tl.TypeInputUser;
|
|
30135
|
+
}
|
|
30136
|
+
interface RawInlineButtonTypeWebView {
|
|
30137
|
+
_: 'inlineButtonTypeWebView';
|
|
30138
|
+
url: string;
|
|
30139
|
+
}
|
|
30140
|
+
interface RawInlineButtonTypeCallback {
|
|
30141
|
+
_: 'inlineButtonTypeCallback';
|
|
30142
|
+
requiresPassword?: boolean;
|
|
30143
|
+
data: Uint8Array;
|
|
30144
|
+
}
|
|
30145
|
+
interface RawInlineButtonTypeGame {
|
|
30146
|
+
_: 'inlineButtonTypeGame';
|
|
30147
|
+
}
|
|
30148
|
+
interface RawInlineButtonTypeBuy {
|
|
30149
|
+
_: 'inlineButtonTypeBuy';
|
|
30150
|
+
}
|
|
30151
|
+
interface RawInlineButtonTypeSwitchInline {
|
|
30152
|
+
_: 'inlineButtonTypeSwitchInline';
|
|
30153
|
+
samePeer?: boolean;
|
|
30154
|
+
query: string;
|
|
30155
|
+
peerTypes?: tl.TypeInlineQueryPeerType[];
|
|
30156
|
+
}
|
|
30157
|
+
interface RawInlineButtonTypeUserProfile {
|
|
30158
|
+
_: 'inlineButtonTypeUserProfile';
|
|
30159
|
+
userId: number;
|
|
30160
|
+
}
|
|
30161
|
+
interface RawInputInlineButtonTypeUserProfile {
|
|
30162
|
+
_: 'inputInlineButtonTypeUserProfile';
|
|
30163
|
+
userId: tl.TypeInputUser;
|
|
30164
|
+
}
|
|
30165
|
+
interface RawInlineButtonTypeCopy {
|
|
30166
|
+
_: 'inlineButtonTypeCopy';
|
|
30167
|
+
copyText: string;
|
|
30168
|
+
}
|
|
30169
|
+
interface RawInlineButtonTypeDisabled {
|
|
30170
|
+
_: 'inlineButtonTypeDisabled';
|
|
30171
|
+
}
|
|
30172
|
+
interface RawKeyboardInlineButton {
|
|
30173
|
+
_: 'keyboardInlineButton';
|
|
30174
|
+
style?: tl.TypeKeyboardButtonStyle;
|
|
30175
|
+
text: string;
|
|
30176
|
+
type: tl.TypeInlineButtonType;
|
|
30177
|
+
}
|
|
30178
|
+
interface RawKeyboardInlineButtonRow {
|
|
30179
|
+
_: 'keyboardInlineButtonRow';
|
|
30180
|
+
buttons: tl.TypeKeyboardInlineButton[];
|
|
30181
|
+
}
|
|
30182
|
+
interface RawRichButtonStyle {
|
|
30183
|
+
_: 'richButtonStyle';
|
|
30184
|
+
bgPrimary?: boolean;
|
|
30185
|
+
bgDanger?: boolean;
|
|
30186
|
+
bgSuccess?: boolean;
|
|
30187
|
+
link?: boolean;
|
|
30188
|
+
}
|
|
30189
|
+
interface RawPageButton {
|
|
30190
|
+
_: 'pageButton';
|
|
30191
|
+
text: tl.TypeRichText;
|
|
30192
|
+
type: tl.TypeInlineButtonType;
|
|
30193
|
+
style?: tl.TypeRichButtonStyle;
|
|
30645
30194
|
}
|
|
30646
30195
|
/**
|
|
30647
30196
|
* Invokes a query after successful completion of one of the
|
|
@@ -30867,7 +30416,7 @@ export class RpcError extends Error {
|
|
|
30867
30416
|
*/
|
|
30868
30417
|
query: X;
|
|
30869
30418
|
}
|
|
30870
|
-
interface RpcCallReturn extends storage.RpcCallReturn, auth.RpcCallReturn, contacts.RpcCallReturn, messages.RpcCallReturn, updates.RpcCallReturn, photos.RpcCallReturn, upload.RpcCallReturn, help.RpcCallReturn, account.RpcCallReturn, channels.RpcCallReturn, payments.RpcCallReturn, phone.RpcCallReturn, stats.RpcCallReturn, stickers.RpcCallReturn, users.RpcCallReturn, chatlists.RpcCallReturn, bots.RpcCallReturn, stories.RpcCallReturn, premium.RpcCallReturn, smsjobs.RpcCallReturn, fragment.RpcCallReturn, aicompose.RpcCallReturn, communities.RpcCallReturn,
|
|
30419
|
+
interface RpcCallReturn extends storage.RpcCallReturn, auth.RpcCallReturn, contacts.RpcCallReturn, messages.RpcCallReturn, updates.RpcCallReturn, photos.RpcCallReturn, upload.RpcCallReturn, help.RpcCallReturn, account.RpcCallReturn, channels.RpcCallReturn, payments.RpcCallReturn, phone.RpcCallReturn, stats.RpcCallReturn, stickers.RpcCallReturn, users.RpcCallReturn, chatlists.RpcCallReturn, bots.RpcCallReturn, stories.RpcCallReturn, premium.RpcCallReturn, smsjobs.RpcCallReturn, fragment.RpcCallReturn, aicompose.RpcCallReturn, communities.RpcCallReturn, ephemeral.RpcCallReturn, mtcute.RpcCallReturn, langpack.RpcCallReturn, folders.RpcCallReturn {
|
|
30871
30420
|
'invokeAfterMsg': any
|
|
30872
30421
|
'invokeAfterMsgs': any
|
|
30873
30422
|
'initConnection': any
|
|
@@ -30999,7 +30548,7 @@ export class RpcError extends Error {
|
|
|
30999
30548
|
/**
|
|
31000
30549
|
* Object describing actions connected to a service message.
|
|
31001
30550
|
*/
|
|
31002
|
-
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 | tl.RawMessageActionStarGiftUnique | tl.RawMessageActionPaidMessagesRefunded | tl.RawMessageActionPaidMessagesPrice | tl.RawMessageActionConferenceCall | tl.RawMessageActionTodoCompletions | tl.RawMessageActionTodoAppendTasks | tl.RawMessageActionSuggestedPostApproval | tl.RawMessageActionSuggestedPostSuccess | tl.RawMessageActionSuggestedPostRefund | tl.RawMessageActionGiftTon | tl.RawMessageActionSuggestBirthday | tl.RawMessageActionStarGiftPurchaseOffer | tl.RawMessageActionStarGiftPurchaseOfferDeclined | tl.RawMessageActionNewCreatorPending | tl.RawMessageActionChangeCreator | tl.RawMessageActionNoForwardsToggle | tl.RawMessageActionNoForwardsRequest | tl.RawMessageActionPollAppendAnswer | tl.RawMessageActionPollDeleteAnswer | tl.RawMessageActionManagedBotCreated | tl.RawMessageActionChangeCommunity
|
|
30551
|
+
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 | tl.RawMessageActionStarGiftUnique | tl.RawMessageActionPaidMessagesRefunded | tl.RawMessageActionPaidMessagesPrice | tl.RawMessageActionConferenceCall | tl.RawMessageActionTodoCompletions | tl.RawMessageActionTodoAppendTasks | tl.RawMessageActionSuggestedPostApproval | tl.RawMessageActionSuggestedPostSuccess | tl.RawMessageActionSuggestedPostRefund | tl.RawMessageActionGiftTon | tl.RawMessageActionSuggestBirthday | tl.RawMessageActionStarGiftPurchaseOffer | tl.RawMessageActionStarGiftPurchaseOfferDeclined | tl.RawMessageActionNewCreatorPending | tl.RawMessageActionChangeCreator | tl.RawMessageActionNoForwardsToggle | tl.RawMessageActionNoForwardsRequest | tl.RawMessageActionPollAppendAnswer | tl.RawMessageActionPollDeleteAnswer | tl.RawMessageActionManagedBotCreated | tl.RawMessageActionChangeCommunity | tl.RawMessageActionChatJoinedViaCommunity
|
|
31003
30552
|
function isAnyMessageAction(o: object): o is TypeMessageAction
|
|
31004
30553
|
/**
|
|
31005
30554
|
* Chat info.
|
|
@@ -31156,7 +30705,7 @@ export class RpcError extends Error {
|
|
|
31156
30705
|
*
|
|
31157
30706
|
* API schema:
|
|
31158
30707
|
*/
|
|
31159
|
-
type TypeSendMessageAction = tl.RawSendMessageTypingAction | tl.RawSendMessageCancelAction | tl.RawSendMessageRecordVideoAction | tl.RawSendMessageUploadVideoAction | tl.RawSendMessageRecordAudioAction | tl.RawSendMessageUploadAudioAction | tl.RawSendMessageUploadPhotoAction | tl.RawSendMessageUploadDocumentAction | tl.RawSendMessageGeoLocationAction | tl.RawSendMessageChooseContactAction | tl.RawSendMessageGamePlayAction | tl.RawSendMessageRecordRoundAction | tl.RawSendMessageUploadRoundAction | tl.RawSpeakingInGroupCallAction | tl.RawSendMessageHistoryImportAction | tl.RawSendMessageChooseStickerAction | tl.RawSendMessageEmojiInteraction | tl.RawSendMessageEmojiInteractionSeen | tl.RawSendMessageTextDraftAction | tl.RawInputSendMessageRichMessageDraftAction | tl.RawSendMessageRichMessageDraftAction
|
|
30708
|
+
type TypeSendMessageAction = tl.RawSendMessageTypingAction | tl.RawSendMessageCancelAction | tl.RawSendMessageRecordVideoAction | tl.RawSendMessageUploadVideoAction | tl.RawSendMessageRecordAudioAction | tl.RawSendMessageUploadAudioAction | tl.RawSendMessageUploadPhotoAction | tl.RawSendMessageUploadDocumentAction | tl.RawSendMessageGeoLocationAction | tl.RawSendMessageChooseContactAction | tl.RawSendMessageGamePlayAction | tl.RawSendMessageRecordRoundAction | tl.RawSendMessageUploadRoundAction | tl.RawSpeakingInGroupCallAction | tl.RawSendMessageHistoryImportAction | tl.RawSendMessageChooseStickerAction | tl.RawSendMessageEmojiInteraction | tl.RawSendMessageEmojiInteractionSeen | tl.RawSendMessageTextDraftAction | tl.RawInputSendMessageRichMessageDraftAction | tl.RawSendMessageRichMessageDraftAction | tl.RawSendMessageStopDraftAction
|
|
31160
30709
|
function isAnySendMessageAction(o: object): o is TypeSendMessageAction
|
|
31161
30710
|
/**
|
|
31162
30711
|
* Privacy <strong>keys</strong> together with
|
|
@@ -31286,7 +30835,7 @@ export class RpcError extends Error {
|
|
|
31286
30835
|
/**
|
|
31287
30836
|
* Bot or inline keyboard buttons
|
|
31288
30837
|
*/
|
|
31289
|
-
type TypeKeyboardButton = tl.RawKeyboardButton
|
|
30838
|
+
type TypeKeyboardButton = tl.RawKeyboardButton
|
|
31290
30839
|
function isAnyKeyboardButton(o: object): o is TypeKeyboardButton
|
|
31291
30840
|
/**
|
|
31292
30841
|
* Bot or inline keyboard rows
|
|
@@ -31427,14 +30976,14 @@ export class RpcError extends Error {
|
|
|
31427
30976
|
/**
|
|
31428
30977
|
* Rich text
|
|
31429
30978
|
*/
|
|
31430
|
-
type TypeRichText = tl.RawTextEmpty | tl.RawTextPlain | tl.RawTextBold | tl.RawTextItalic | tl.RawTextUnderline | tl.RawTextStrike | tl.RawTextFixed | tl.RawTextUrl | tl.RawTextEmail | tl.RawTextConcat | tl.RawTextSubscript | tl.RawTextSuperscript | tl.RawTextMarked | tl.RawTextPhone | tl.RawTextImage | tl.RawTextAnchor | tl.RawTextMath | tl.RawTextCustomEmoji | tl.RawTextSpoiler | tl.RawTextMention | tl.RawTextHashtag | tl.RawTextBotCommand | tl.RawTextCashtag | tl.RawTextAutoUrl | tl.RawTextAutoEmail | tl.RawTextAutoPhone | tl.RawTextBankCard | tl.RawTextMentionName | tl.RawTextDate | tl.RawTextDiff
|
|
30979
|
+
type TypeRichText = tl.RawTextEmpty | tl.RawTextPlain | tl.RawTextBold | tl.RawTextItalic | tl.RawTextUnderline | tl.RawTextStrike | tl.RawTextFixed | tl.RawTextUrl | tl.RawTextEmail | tl.RawTextConcat | tl.RawTextSubscript | tl.RawTextSuperscript | tl.RawTextMarked | tl.RawTextPhone | tl.RawTextImage | tl.RawTextAnchor | tl.RawTextMath | tl.RawTextCustomEmoji | tl.RawTextSpoiler | tl.RawTextMention | tl.RawTextHashtag | tl.RawTextBotCommand | tl.RawTextCashtag | tl.RawTextAutoUrl | tl.RawTextAutoEmail | tl.RawTextAutoPhone | tl.RawTextBankCard | tl.RawTextMentionName | tl.RawTextDate | tl.RawTextDiff | tl.RawTextButton
|
|
31431
30980
|
function isAnyRichText(o: object): o is TypeRichText
|
|
31432
30981
|
/**
|
|
31433
30982
|
* Represents an
|
|
31434
30983
|
* <a href="https://instantview.telegram.org/">instant view
|
|
31435
30984
|
* page element</a>
|
|
31436
30985
|
*/
|
|
31437
|
-
type TypePageBlock = tl.RawPageBlockUnsupported | tl.RawPageBlockTitle | tl.RawPageBlockSubtitle | tl.RawPageBlockAuthorDate | tl.RawPageBlockHeader | tl.RawPageBlockSubheader | tl.RawPageBlockParagraph | tl.RawPageBlockPreformatted | tl.RawPageBlockFooter | tl.RawPageBlockDivider | tl.RawPageBlockAnchor | tl.RawPageBlockList | tl.RawPageBlockBlockquote | tl.RawPageBlockPullquote | tl.RawPageBlockPhoto | tl.RawPageBlockVideo | tl.RawPageBlockCover | tl.RawPageBlockEmbed | tl.RawPageBlockEmbedPost | tl.RawPageBlockCollage | tl.RawPageBlockSlideshow | tl.RawPageBlockChannel | tl.RawPageBlockAudio | tl.RawPageBlockKicker | tl.RawPageBlockTable | tl.RawPageBlockOrderedList | tl.RawPageBlockDetails | tl.RawPageBlockRelatedArticles | tl.RawPageBlockMap | tl.RawPageBlockHeading1 | tl.RawPageBlockHeading2 | tl.RawPageBlockHeading3 | tl.RawPageBlockHeading4 | tl.RawPageBlockHeading5 | tl.RawPageBlockHeading6 | tl.RawPageBlockMath | tl.RawPageBlockThinking | tl.RawInputPageBlockMap | tl.RawPageBlockBlockquoteBlocks
|
|
30986
|
+
type TypePageBlock = tl.RawPageBlockUnsupported | tl.RawPageBlockTitle | tl.RawPageBlockSubtitle | tl.RawPageBlockAuthorDate | tl.RawPageBlockHeader | tl.RawPageBlockSubheader | tl.RawPageBlockParagraph | tl.RawPageBlockPreformatted | tl.RawPageBlockFooter | tl.RawPageBlockDivider | tl.RawPageBlockAnchor | tl.RawPageBlockList | tl.RawPageBlockBlockquote | tl.RawPageBlockPullquote | tl.RawPageBlockPhoto | tl.RawPageBlockVideo | tl.RawPageBlockCover | tl.RawPageBlockEmbed | tl.RawPageBlockEmbedPost | tl.RawPageBlockCollage | tl.RawPageBlockSlideshow | tl.RawPageBlockChannel | tl.RawPageBlockAudio | tl.RawPageBlockKicker | tl.RawPageBlockTable | tl.RawPageBlockOrderedList | tl.RawPageBlockDetails | tl.RawPageBlockRelatedArticles | tl.RawPageBlockMap | tl.RawPageBlockHeading1 | tl.RawPageBlockHeading2 | tl.RawPageBlockHeading3 | tl.RawPageBlockHeading4 | tl.RawPageBlockHeading5 | tl.RawPageBlockHeading6 | tl.RawPageBlockMath | tl.RawPageBlockThinking | tl.RawInputPageBlockMap | tl.RawPageBlockBlockquoteBlocks | tl.RawPageBlockButtonRow | tl.RawPageBlockDocument
|
|
31438
30987
|
function isAnyPageBlock(o: object): o is TypePageBlock
|
|
31439
30988
|
/**
|
|
31440
30989
|
* Why was the phone call discarded?
|
|
@@ -33205,6 +32754,18 @@ export class RpcError extends Error {
|
|
|
33205
32754
|
function isAnyCommunityPeerRequest(o: object): o is TypeCommunityPeerRequest
|
|
33206
32755
|
type TypeEphemeralMessage = tl.RawEphemeralMessage
|
|
33207
32756
|
function isAnyEphemeralMessage(o: object): o is TypeEphemeralMessage
|
|
32757
|
+
type TypeButtonType = tl.RawButtonTypeDefault | tl.RawButtonTypeRequestPhone | tl.RawButtonTypeRequestGeoLocation | tl.RawButtonTypeRequestPoll | tl.RawButtonTypeRequestPeer | tl.RawInputButtonTypeRequestPeer | tl.RawButtonTypeSimpleWebView
|
|
32758
|
+
function isAnyButtonType(o: object): o is TypeButtonType
|
|
32759
|
+
type TypeInlineButtonType = tl.RawInlineButtonTypeUrl | tl.RawInlineButtonTypeUrlAuth | tl.RawInputInlineButtonTypeUrlAuth | tl.RawInlineButtonTypeWebView | tl.RawInlineButtonTypeCallback | tl.RawInlineButtonTypeGame | tl.RawInlineButtonTypeBuy | tl.RawInlineButtonTypeSwitchInline | tl.RawInlineButtonTypeUserProfile | tl.RawInputInlineButtonTypeUserProfile | tl.RawInlineButtonTypeCopy | tl.RawInlineButtonTypeDisabled
|
|
32760
|
+
function isAnyInlineButtonType(o: object): o is TypeInlineButtonType
|
|
32761
|
+
type TypeKeyboardInlineButton = tl.RawKeyboardInlineButton
|
|
32762
|
+
function isAnyKeyboardInlineButton(o: object): o is TypeKeyboardInlineButton
|
|
32763
|
+
type TypeKeyboardInlineButtonRow = tl.RawKeyboardInlineButtonRow
|
|
32764
|
+
function isAnyKeyboardInlineButtonRow(o: object): o is TypeKeyboardInlineButtonRow
|
|
32765
|
+
type TypeRichButtonStyle = tl.RawRichButtonStyle
|
|
32766
|
+
function isAnyRichButtonStyle(o: object): o is TypeRichButtonStyle
|
|
32767
|
+
type TypePageButton = tl.RawPageButton
|
|
32768
|
+
function isAnyPageButton(o: object): o is TypePageButton
|
|
33208
32769
|
|
|
33209
32770
|
namespace storage {
|
|
33210
32771
|
/**
|
|
@@ -33750,6 +33311,11 @@ export class RpcError extends Error {
|
|
|
33750
33311
|
*/
|
|
33751
33312
|
options: tl.TypeDataJSON;
|
|
33752
33313
|
}
|
|
33314
|
+
interface RawFirebasePnvIntent {
|
|
33315
|
+
_: 'auth.firebasePnvIntent';
|
|
33316
|
+
nonce: string;
|
|
33317
|
+
digitalCredentialPayload: string;
|
|
33318
|
+
}
|
|
33753
33319
|
/**
|
|
33754
33320
|
* Send the verification code for login
|
|
33755
33321
|
*
|
|
@@ -34466,6 +34032,30 @@ export class RpcError extends Error {
|
|
|
34466
34032
|
*/
|
|
34467
34033
|
fromAuthKeyId?: Long;
|
|
34468
34034
|
}
|
|
34035
|
+
/**
|
|
34036
|
+
* RPC method returns {@link tl.auth.TypeFirebasePnvIntent}
|
|
34037
|
+
*/
|
|
34038
|
+
interface RawInitFirebasePnvLoginRequest {
|
|
34039
|
+
_: 'auth.initFirebasePnvLogin';
|
|
34040
|
+
apiId: number;
|
|
34041
|
+
apiHash: string;
|
|
34042
|
+
}
|
|
34043
|
+
/**
|
|
34044
|
+
* RPC method returns {@link tl.auth.TypeAuthorization}
|
|
34045
|
+
*/
|
|
34046
|
+
interface RawFinishFirebasePnvLoginRequest {
|
|
34047
|
+
_: 'auth.finishFirebasePnvLogin';
|
|
34048
|
+
googleToken: string;
|
|
34049
|
+
}
|
|
34050
|
+
/**
|
|
34051
|
+
* RPC method returns {@link tl.auth.TypeAuthorization}
|
|
34052
|
+
*/
|
|
34053
|
+
interface RawFirebasePnvSignUpRequest {
|
|
34054
|
+
_: 'auth.firebasePnvSignUp';
|
|
34055
|
+
noJoinedNotifications?: boolean;
|
|
34056
|
+
firstName: string;
|
|
34057
|
+
lastName: string;
|
|
34058
|
+
}
|
|
34469
34059
|
interface RpcCallReturn {
|
|
34470
34060
|
'auth.sendCode': tl.auth.TypeSentCode
|
|
34471
34061
|
'auth.signUp': tl.auth.TypeAuthorization
|
|
@@ -34493,6 +34083,9 @@ export class RpcError extends Error {
|
|
|
34493
34083
|
'auth.checkPaidAuth': tl.auth.TypeSentCode
|
|
34494
34084
|
'auth.initPasskeyLogin': tl.auth.TypePasskeyLoginOptions
|
|
34495
34085
|
'auth.finishPasskeyLogin': tl.auth.TypeAuthorization
|
|
34086
|
+
'auth.initFirebasePnvLogin': tl.auth.TypeFirebasePnvIntent
|
|
34087
|
+
'auth.finishFirebasePnvLogin': tl.auth.TypeAuthorization
|
|
34088
|
+
'auth.firebasePnvSignUp': tl.auth.TypeAuthorization
|
|
34496
34089
|
}
|
|
34497
34090
|
/**
|
|
34498
34091
|
* Contains info on a confirmation code message sent via SMS,
|
|
@@ -34548,6 +34141,8 @@ export class RpcError extends Error {
|
|
|
34548
34141
|
*/
|
|
34549
34142
|
type TypePasskeyLoginOptions = tl.auth.RawPasskeyLoginOptions
|
|
34550
34143
|
function isAnyPasskeyLoginOptions(o: object): o is TypePasskeyLoginOptions
|
|
34144
|
+
type TypeFirebasePnvIntent = tl.auth.RawFirebasePnvIntent
|
|
34145
|
+
function isAnyFirebasePnvIntent(o: object): o is TypeFirebasePnvIntent
|
|
34551
34146
|
}
|
|
34552
34147
|
|
|
34553
34148
|
namespace contacts {
|
|
@@ -35821,23 +35416,9 @@ export class RpcError extends Error {
|
|
|
35821
35416
|
*/
|
|
35822
35417
|
interface RawDhConfig {
|
|
35823
35418
|
_: 'messages.dhConfig';
|
|
35824
|
-
/**
|
|
35825
|
-
* New value <strong>prime</strong>, see
|
|
35826
|
-
* <a href="https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange">Wikipedia</a>
|
|
35827
|
-
*/
|
|
35828
35419
|
g: number;
|
|
35829
|
-
/**
|
|
35830
|
-
* New value <strong>primitive root</strong>, see
|
|
35831
|
-
* <a href="https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange">Wikipedia</a>
|
|
35832
|
-
*/
|
|
35833
35420
|
p: Uint8Array;
|
|
35834
|
-
/**
|
|
35835
|
-
* Version of set of parameters
|
|
35836
|
-
*/
|
|
35837
35421
|
version: number;
|
|
35838
|
-
/**
|
|
35839
|
-
* Random sequence of bytes of assigned length
|
|
35840
|
-
*/
|
|
35841
35422
|
random: Uint8Array;
|
|
35842
35423
|
}
|
|
35843
35424
|
/**
|
|
@@ -38090,6 +37671,7 @@ export class RpcError extends Error {
|
|
|
38090
37671
|
* relevant Stars will be withdrawn from the bot's balance.
|
|
38091
37672
|
*/
|
|
38092
37673
|
allowPaidFloodskip?: boolean;
|
|
37674
|
+
fromEphemeral?: boolean;
|
|
38093
37675
|
/**
|
|
38094
37676
|
* Source of messages
|
|
38095
37677
|
*/
|
|
@@ -64790,6 +64372,116 @@ export class RpcError extends Error {
|
|
|
64790
64372
|
function isAnyParticipantJoinedChats(o: object): o is TypeParticipantJoinedChats
|
|
64791
64373
|
}
|
|
64792
64374
|
|
|
64375
|
+
namespace ephemeral {
|
|
64376
|
+
interface RawWelcomeMessagesNotModified {
|
|
64377
|
+
_: 'ephemeral.welcomeMessagesNotModified';
|
|
64378
|
+
}
|
|
64379
|
+
interface RawWelcomeMessages {
|
|
64380
|
+
_: 'ephemeral.welcomeMessages';
|
|
64381
|
+
hash: Long;
|
|
64382
|
+
messages: tl.TypeEphemeralMessage[];
|
|
64383
|
+
}
|
|
64384
|
+
/**
|
|
64385
|
+
* RPC method returns {@link tl.TypeUpdates}
|
|
64386
|
+
*/
|
|
64387
|
+
interface RawSendMessageRequest {
|
|
64388
|
+
_: 'ephemeral.sendMessage';
|
|
64389
|
+
invertMedia?: boolean;
|
|
64390
|
+
welcome?: boolean;
|
|
64391
|
+
anchor?: boolean;
|
|
64392
|
+
noforwards?: boolean;
|
|
64393
|
+
peer?: tl.TypeInputPeer;
|
|
64394
|
+
receiverId: tl.TypeInputUser;
|
|
64395
|
+
queryId?: Long;
|
|
64396
|
+
message: string;
|
|
64397
|
+
entities?: tl.TypeMessageEntity[];
|
|
64398
|
+
media?: tl.TypeInputMedia;
|
|
64399
|
+
replyMarkup?: tl.TypeReplyMarkup;
|
|
64400
|
+
richMessage?: tl.TypeInputRichMessage;
|
|
64401
|
+
randomId: Long;
|
|
64402
|
+
replyTo?: tl.TypeInputReplyTo;
|
|
64403
|
+
}
|
|
64404
|
+
/**
|
|
64405
|
+
* RPC method returns boolean
|
|
64406
|
+
*/
|
|
64407
|
+
interface RawDeleteMessageRequest {
|
|
64408
|
+
_: 'ephemeral.deleteMessage';
|
|
64409
|
+
peer?: tl.TypeInputPeer;
|
|
64410
|
+
receiverId: tl.TypeInputUser;
|
|
64411
|
+
id: number;
|
|
64412
|
+
}
|
|
64413
|
+
/**
|
|
64414
|
+
* RPC method returns {@link tl.TypeReportResult}
|
|
64415
|
+
*/
|
|
64416
|
+
interface RawReportMessageRequest {
|
|
64417
|
+
_: 'ephemeral.reportMessage';
|
|
64418
|
+
peer: tl.TypeInputPeer;
|
|
64419
|
+
id: number;
|
|
64420
|
+
option: Uint8Array;
|
|
64421
|
+
message: string;
|
|
64422
|
+
}
|
|
64423
|
+
/**
|
|
64424
|
+
* RPC method returns {@link tl.messages.TypeBotCallbackAnswer}
|
|
64425
|
+
*/
|
|
64426
|
+
interface RawGetCallbackAnswerRequest {
|
|
64427
|
+
_: 'ephemeral.getCallbackAnswer';
|
|
64428
|
+
peer: tl.TypeInputPeer;
|
|
64429
|
+
id: number;
|
|
64430
|
+
data?: Uint8Array;
|
|
64431
|
+
}
|
|
64432
|
+
/**
|
|
64433
|
+
* RPC method returns {@link tl.TypeUpdates}
|
|
64434
|
+
*/
|
|
64435
|
+
interface RawEditMessageRequest {
|
|
64436
|
+
_: 'ephemeral.editMessage';
|
|
64437
|
+
invertMedia?: boolean;
|
|
64438
|
+
welcome?: boolean;
|
|
64439
|
+
peer?: tl.TypeInputPeer;
|
|
64440
|
+
receiverId: tl.TypeInputUser;
|
|
64441
|
+
id: number;
|
|
64442
|
+
message?: string;
|
|
64443
|
+
media?: tl.TypeInputMedia;
|
|
64444
|
+
entities?: tl.TypeMessageEntity[];
|
|
64445
|
+
replyMarkup?: tl.TypeReplyMarkup;
|
|
64446
|
+
richMessage?: tl.TypeInputRichMessage;
|
|
64447
|
+
}
|
|
64448
|
+
/**
|
|
64449
|
+
* RPC method returns boolean
|
|
64450
|
+
*/
|
|
64451
|
+
interface RawDeleteWelcomeMessageRequest {
|
|
64452
|
+
_: 'ephemeral.deleteWelcomeMessage';
|
|
64453
|
+
peer: tl.TypeInputPeer;
|
|
64454
|
+
id: number;
|
|
64455
|
+
}
|
|
64456
|
+
/**
|
|
64457
|
+
* RPC method returns boolean
|
|
64458
|
+
*/
|
|
64459
|
+
interface RawDeleteAllWelcomeMessagesRequest {
|
|
64460
|
+
_: 'ephemeral.deleteAllWelcomeMessages';
|
|
64461
|
+
peer: tl.TypeInputPeer;
|
|
64462
|
+
}
|
|
64463
|
+
/**
|
|
64464
|
+
* RPC method returns {@link tl.ephemeral.TypeWelcomeMessages}
|
|
64465
|
+
*/
|
|
64466
|
+
interface RawGetWelcomeMessagesRequest {
|
|
64467
|
+
_: 'ephemeral.getWelcomeMessages';
|
|
64468
|
+
peer: tl.TypeInputPeer;
|
|
64469
|
+
hash: Long;
|
|
64470
|
+
}
|
|
64471
|
+
interface RpcCallReturn {
|
|
64472
|
+
'ephemeral.sendMessage': tl.TypeUpdates
|
|
64473
|
+
'ephemeral.deleteMessage': boolean
|
|
64474
|
+
'ephemeral.reportMessage': tl.TypeReportResult
|
|
64475
|
+
'ephemeral.getCallbackAnswer': tl.messages.TypeBotCallbackAnswer
|
|
64476
|
+
'ephemeral.editMessage': tl.TypeUpdates
|
|
64477
|
+
'ephemeral.deleteWelcomeMessage': boolean
|
|
64478
|
+
'ephemeral.deleteAllWelcomeMessages': boolean
|
|
64479
|
+
'ephemeral.getWelcomeMessages': tl.ephemeral.TypeWelcomeMessages
|
|
64480
|
+
}
|
|
64481
|
+
type TypeWelcomeMessages = tl.ephemeral.RawWelcomeMessagesNotModified | tl.ephemeral.RawWelcomeMessages
|
|
64482
|
+
function isAnyWelcomeMessages(o: object): o is TypeWelcomeMessages
|
|
64483
|
+
}
|
|
64484
|
+
|
|
64793
64485
|
namespace mtcute {
|
|
64794
64486
|
interface RawDummyUpdate {
|
|
64795
64487
|
_: 'mtcute.dummyUpdate';
|
|
@@ -64992,73 +64684,6 @@ export class RpcError extends Error {
|
|
|
64992
64684
|
'folders.editPeerFolders': tl.TypeUpdates
|
|
64993
64685
|
}
|
|
64994
64686
|
}
|
|
64995
|
-
|
|
64996
|
-
namespace ephemeral {
|
|
64997
|
-
/**
|
|
64998
|
-
* RPC method returns {@link tl.TypeUpdates}
|
|
64999
|
-
*/
|
|
65000
|
-
interface RawSendMessageRequest {
|
|
65001
|
-
_: 'ephemeral.sendMessage';
|
|
65002
|
-
peer: tl.TypeInputPeer;
|
|
65003
|
-
receiverId: tl.TypeInputUser;
|
|
65004
|
-
queryId?: Long;
|
|
65005
|
-
message: string;
|
|
65006
|
-
entities?: tl.TypeMessageEntity[];
|
|
65007
|
-
media?: tl.TypeInputMedia;
|
|
65008
|
-
replyMarkup?: tl.TypeReplyMarkup;
|
|
65009
|
-
richMessage?: tl.TypeInputRichMessage;
|
|
65010
|
-
randomId: Long;
|
|
65011
|
-
replyTo?: tl.TypeInputReplyTo;
|
|
65012
|
-
}
|
|
65013
|
-
/**
|
|
65014
|
-
* RPC method returns boolean
|
|
65015
|
-
*/
|
|
65016
|
-
interface RawDeleteMessageRequest {
|
|
65017
|
-
_: 'ephemeral.deleteMessage';
|
|
65018
|
-
peer: tl.TypeInputPeer;
|
|
65019
|
-
receiverId: tl.TypeInputUser;
|
|
65020
|
-
id: number;
|
|
65021
|
-
}
|
|
65022
|
-
/**
|
|
65023
|
-
* RPC method returns {@link tl.TypeReportResult}
|
|
65024
|
-
*/
|
|
65025
|
-
interface RawReportMessageRequest {
|
|
65026
|
-
_: 'ephemeral.reportMessage';
|
|
65027
|
-
peer: tl.TypeInputPeer;
|
|
65028
|
-
id: number;
|
|
65029
|
-
option: Uint8Array;
|
|
65030
|
-
message: string;
|
|
65031
|
-
}
|
|
65032
|
-
/**
|
|
65033
|
-
* RPC method returns {@link tl.messages.TypeBotCallbackAnswer}
|
|
65034
|
-
*/
|
|
65035
|
-
interface RawGetCallbackAnswerRequest {
|
|
65036
|
-
_: 'ephemeral.getCallbackAnswer';
|
|
65037
|
-
peer: tl.TypeInputPeer;
|
|
65038
|
-
id: number;
|
|
65039
|
-
data?: Uint8Array;
|
|
65040
|
-
}
|
|
65041
|
-
/**
|
|
65042
|
-
* RPC method returns {@link tl.TypeUpdates}
|
|
65043
|
-
*/
|
|
65044
|
-
interface RawEditMessageRequest {
|
|
65045
|
-
_: 'ephemeral.editMessage';
|
|
65046
|
-
peer: tl.TypeInputPeer;
|
|
65047
|
-
receiverId: tl.TypeInputUser;
|
|
65048
|
-
id: number;
|
|
65049
|
-
message?: string;
|
|
65050
|
-
media?: tl.TypeInputMedia;
|
|
65051
|
-
entities?: tl.TypeMessageEntity[];
|
|
65052
|
-
replyMarkup?: tl.TypeReplyMarkup;
|
|
65053
|
-
}
|
|
65054
|
-
interface RpcCallReturn {
|
|
65055
|
-
'ephemeral.sendMessage': tl.TypeUpdates
|
|
65056
|
-
'ephemeral.deleteMessage': boolean
|
|
65057
|
-
'ephemeral.reportMessage': tl.TypeReportResult
|
|
65058
|
-
'ephemeral.getCallbackAnswer': tl.messages.TypeBotCallbackAnswer
|
|
65059
|
-
'ephemeral.editMessage': tl.TypeUpdates
|
|
65060
|
-
}
|
|
65061
|
-
}
|
|
65062
64687
|
type RpcMethod =
|
|
65063
64688
|
| tl.RawInvokeAfterMsgRequest
|
|
65064
64689
|
| tl.RawInvokeAfterMsgsRequest
|
|
@@ -65097,6 +64722,9 @@ export class RpcError extends Error {
|
|
|
65097
64722
|
| tl.auth.RawCheckPaidAuthRequest
|
|
65098
64723
|
| tl.auth.RawInitPasskeyLoginRequest
|
|
65099
64724
|
| tl.auth.RawFinishPasskeyLoginRequest
|
|
64725
|
+
| tl.auth.RawInitFirebasePnvLoginRequest
|
|
64726
|
+
| tl.auth.RawFinishFirebasePnvLoginRequest
|
|
64727
|
+
| tl.auth.RawFirebasePnvSignUpRequest
|
|
65100
64728
|
| tl.account.RawRegisterDeviceRequest
|
|
65101
64729
|
| tl.account.RawUnregisterDeviceRequest
|
|
65102
64730
|
| tl.account.RawUpdateNotifySettingsRequest
|
|
@@ -65867,6 +65495,9 @@ export class RpcError extends Error {
|
|
|
65867
65495
|
| tl.ephemeral.RawReportMessageRequest
|
|
65868
65496
|
| tl.ephemeral.RawGetCallbackAnswerRequest
|
|
65869
65497
|
| tl.ephemeral.RawEditMessageRequest
|
|
65498
|
+
| tl.ephemeral.RawDeleteWelcomeMessageRequest
|
|
65499
|
+
| tl.ephemeral.RawDeleteAllWelcomeMessagesRequest
|
|
65500
|
+
| tl.ephemeral.RawGetWelcomeMessagesRequest
|
|
65870
65501
|
| tl.mtcute.RawCustomMethodRequest
|
|
65871
65502
|
|
|
65872
65503
|
type TlObject =
|
|
@@ -66055,6 +65686,7 @@ export class RpcError extends Error {
|
|
|
66055
65686
|
| tl.RawMessageActionPollDeleteAnswer
|
|
66056
65687
|
| tl.RawMessageActionManagedBotCreated
|
|
66057
65688
|
| tl.RawMessageActionChangeCommunity
|
|
65689
|
+
| tl.RawMessageActionChatJoinedViaCommunity
|
|
66058
65690
|
| tl.RawDialog
|
|
66059
65691
|
| tl.RawDialogFolder
|
|
66060
65692
|
| tl.RawDialogCommunity
|
|
@@ -66371,6 +66003,7 @@ export class RpcError extends Error {
|
|
|
66371
66003
|
| tl.RawSendMessageTextDraftAction
|
|
66372
66004
|
| tl.RawInputSendMessageRichMessageDraftAction
|
|
66373
66005
|
| tl.RawSendMessageRichMessageDraftAction
|
|
66006
|
+
| tl.RawSendMessageStopDraftAction
|
|
66374
66007
|
| tl.contacts.RawFound
|
|
66375
66008
|
| tl.RawInputPrivacyKeyStatusTimestamp
|
|
66376
66009
|
| tl.RawInputPrivacyKeyChatInvite
|
|
@@ -66474,23 +66107,6 @@ export class RpcError extends Error {
|
|
|
66474
66107
|
| tl.RawBotCommand
|
|
66475
66108
|
| tl.RawBotInfo
|
|
66476
66109
|
| tl.RawKeyboardButton
|
|
66477
|
-
| tl.RawKeyboardButtonUrl
|
|
66478
|
-
| tl.RawKeyboardButtonCallback
|
|
66479
|
-
| tl.RawKeyboardButtonRequestPhone
|
|
66480
|
-
| tl.RawKeyboardButtonRequestGeoLocation
|
|
66481
|
-
| tl.RawKeyboardButtonSwitchInline
|
|
66482
|
-
| tl.RawKeyboardButtonGame
|
|
66483
|
-
| tl.RawKeyboardButtonBuy
|
|
66484
|
-
| tl.RawKeyboardButtonUrlAuth
|
|
66485
|
-
| tl.RawInputKeyboardButtonUrlAuth
|
|
66486
|
-
| tl.RawKeyboardButtonRequestPoll
|
|
66487
|
-
| tl.RawInputKeyboardButtonUserProfile
|
|
66488
|
-
| tl.RawKeyboardButtonUserProfile
|
|
66489
|
-
| tl.RawKeyboardButtonWebView
|
|
66490
|
-
| tl.RawKeyboardButtonSimpleWebView
|
|
66491
|
-
| tl.RawKeyboardButtonRequestPeer
|
|
66492
|
-
| tl.RawInputKeyboardButtonRequestPeer
|
|
66493
|
-
| tl.RawKeyboardButtonCopy
|
|
66494
66110
|
| tl.RawKeyboardButtonRow
|
|
66495
66111
|
| tl.RawReplyKeyboardHide
|
|
66496
66112
|
| tl.RawReplyKeyboardForceReply
|
|
@@ -66665,6 +66281,7 @@ export class RpcError extends Error {
|
|
|
66665
66281
|
| tl.RawTextMentionName
|
|
66666
66282
|
| tl.RawTextDate
|
|
66667
66283
|
| tl.RawTextDiff
|
|
66284
|
+
| tl.RawTextButton
|
|
66668
66285
|
| tl.RawPageBlockUnsupported
|
|
66669
66286
|
| tl.RawPageBlockTitle
|
|
66670
66287
|
| tl.RawPageBlockSubtitle
|
|
@@ -66704,6 +66321,8 @@ export class RpcError extends Error {
|
|
|
66704
66321
|
| tl.RawPageBlockThinking
|
|
66705
66322
|
| tl.RawInputPageBlockMap
|
|
66706
66323
|
| tl.RawPageBlockBlockquoteBlocks
|
|
66324
|
+
| tl.RawPageBlockButtonRow
|
|
66325
|
+
| tl.RawPageBlockDocument
|
|
66707
66326
|
| tl.RawPhoneCallDiscardReasonMissed
|
|
66708
66327
|
| tl.RawPhoneCallDiscardReasonDisconnect
|
|
66709
66328
|
| tl.RawPhoneCallDiscardReasonHangup
|
|
@@ -67511,6 +67130,32 @@ export class RpcError extends Error {
|
|
|
67511
67130
|
| tl.communities.RawParticipantJoinedChats
|
|
67512
67131
|
| tl.messages.RawTranslatedRichMessage
|
|
67513
67132
|
| tl.messages.RawComposedRichMessageWithAI
|
|
67133
|
+
| tl.RawButtonTypeDefault
|
|
67134
|
+
| tl.RawButtonTypeRequestPhone
|
|
67135
|
+
| tl.RawButtonTypeRequestGeoLocation
|
|
67136
|
+
| tl.RawButtonTypeRequestPoll
|
|
67137
|
+
| tl.RawButtonTypeRequestPeer
|
|
67138
|
+
| tl.RawInputButtonTypeRequestPeer
|
|
67139
|
+
| tl.RawButtonTypeSimpleWebView
|
|
67140
|
+
| tl.RawInlineButtonTypeUrl
|
|
67141
|
+
| tl.RawInlineButtonTypeUrlAuth
|
|
67142
|
+
| tl.RawInputInlineButtonTypeUrlAuth
|
|
67143
|
+
| tl.RawInlineButtonTypeWebView
|
|
67144
|
+
| tl.RawInlineButtonTypeCallback
|
|
67145
|
+
| tl.RawInlineButtonTypeGame
|
|
67146
|
+
| tl.RawInlineButtonTypeBuy
|
|
67147
|
+
| tl.RawInlineButtonTypeSwitchInline
|
|
67148
|
+
| tl.RawInlineButtonTypeUserProfile
|
|
67149
|
+
| tl.RawInputInlineButtonTypeUserProfile
|
|
67150
|
+
| tl.RawInlineButtonTypeCopy
|
|
67151
|
+
| tl.RawInlineButtonTypeDisabled
|
|
67152
|
+
| tl.RawKeyboardInlineButton
|
|
67153
|
+
| tl.RawKeyboardInlineButtonRow
|
|
67154
|
+
| tl.RawRichButtonStyle
|
|
67155
|
+
| tl.RawPageButton
|
|
67156
|
+
| tl.ephemeral.RawWelcomeMessagesNotModified
|
|
67157
|
+
| tl.ephemeral.RawWelcomeMessages
|
|
67158
|
+
| tl.auth.RawFirebasePnvIntent
|
|
67514
67159
|
| tl.mtcute.RawDummyUpdate
|
|
67515
67160
|
| tl.mtcute.RawDummyInputPeerMinUser
|
|
67516
67161
|
| tl.mtcute.RawDummyInputPeerMinChannel
|
|
@@ -67551,6 +67196,9 @@ export class RpcError extends Error {
|
|
|
67551
67196
|
| tl.auth.RawCheckPaidAuthRequest
|
|
67552
67197
|
| tl.auth.RawInitPasskeyLoginRequest
|
|
67553
67198
|
| tl.auth.RawFinishPasskeyLoginRequest
|
|
67199
|
+
| tl.auth.RawInitFirebasePnvLoginRequest
|
|
67200
|
+
| tl.auth.RawFinishFirebasePnvLoginRequest
|
|
67201
|
+
| tl.auth.RawFirebasePnvSignUpRequest
|
|
67554
67202
|
| tl.account.RawRegisterDeviceRequest
|
|
67555
67203
|
| tl.account.RawUnregisterDeviceRequest
|
|
67556
67204
|
| tl.account.RawUpdateNotifySettingsRequest
|
|
@@ -68321,6 +67969,9 @@ export class RpcError extends Error {
|
|
|
68321
67969
|
| tl.ephemeral.RawReportMessageRequest
|
|
68322
67970
|
| tl.ephemeral.RawGetCallbackAnswerRequest
|
|
68323
67971
|
| tl.ephemeral.RawEditMessageRequest
|
|
67972
|
+
| tl.ephemeral.RawDeleteWelcomeMessageRequest
|
|
67973
|
+
| tl.ephemeral.RawDeleteAllWelcomeMessagesRequest
|
|
67974
|
+
| tl.ephemeral.RawGetWelcomeMessagesRequest
|
|
68324
67975
|
| tl.mtcute.RawCustomMethodRequest
|
|
68325
67976
|
}
|
|
68326
67977
|
export declare function isAnyError(o: object): o is tl.TypeError
|
|
@@ -68708,6 +68359,12 @@ export declare function isAnyRichMessage(o: object): o is tl.TypeRichMessage
|
|
|
68708
68359
|
export declare function isAnyCommunityPeer(o: object): o is tl.TypeCommunityPeer
|
|
68709
68360
|
export declare function isAnyCommunityPeerRequest(o: object): o is tl.TypeCommunityPeerRequest
|
|
68710
68361
|
export declare function isAnyEphemeralMessage(o: object): o is tl.TypeEphemeralMessage
|
|
68362
|
+
export declare function isAnyButtonType(o: object): o is tl.TypeButtonType
|
|
68363
|
+
export declare function isAnyInlineButtonType(o: object): o is tl.TypeInlineButtonType
|
|
68364
|
+
export declare function isAnyKeyboardInlineButton(o: object): o is tl.TypeKeyboardInlineButton
|
|
68365
|
+
export declare function isAnyKeyboardInlineButtonRow(o: object): o is tl.TypeKeyboardInlineButtonRow
|
|
68366
|
+
export declare function isAnyRichButtonStyle(o: object): o is tl.TypeRichButtonStyle
|
|
68367
|
+
export declare function isAnyPageButton(o: object): o is tl.TypePageButton
|
|
68711
68368
|
export declare function isAnyStorage_FileType(o: object): o is tl.storage.TypeFileType
|
|
68712
68369
|
export declare function isAnyAuth_SentCode(o: object): o is tl.auth.TypeSentCode
|
|
68713
68370
|
export declare function isAnyAuth_Authorization(o: object): o is tl.auth.TypeAuthorization
|
|
@@ -68718,6 +68375,7 @@ export declare function isAnyAuth_SentCodeType(o: object): o is tl.auth.TypeSent
|
|
|
68718
68375
|
export declare function isAnyAuth_LoginToken(o: object): o is tl.auth.TypeLoginToken
|
|
68719
68376
|
export declare function isAnyAuth_LoggedOut(o: object): o is tl.auth.TypeLoggedOut
|
|
68720
68377
|
export declare function isAnyAuth_PasskeyLoginOptions(o: object): o is tl.auth.TypePasskeyLoginOptions
|
|
68378
|
+
export declare function isAnyAuth_FirebasePnvIntent(o: object): o is tl.auth.TypeFirebasePnvIntent
|
|
68721
68379
|
export declare function isAnyContacts_Contacts(o: object): o is tl.contacts.TypeContacts
|
|
68722
68380
|
export declare function isAnyContacts_ImportedContacts(o: object): o is tl.contacts.TypeImportedContacts
|
|
68723
68381
|
export declare function isAnyContacts_Blocked(o: object): o is tl.contacts.TypeBlocked
|
|
@@ -68928,6 +68586,7 @@ export declare function isAnyFragment_CollectibleInfo(o: object): o is tl.fragme
|
|
|
68928
68586
|
export declare function isAnyAicompose_Tones(o: object): o is tl.aicompose.TypeTones
|
|
68929
68587
|
export declare function isAnyCommunities_PeerLinkRequests(o: object): o is tl.communities.TypePeerLinkRequests
|
|
68930
68588
|
export declare function isAnyCommunities_ParticipantJoinedChats(o: object): o is tl.communities.TypeParticipantJoinedChats
|
|
68589
|
+
export declare function isAnyEphemeral_WelcomeMessages(o: object): o is tl.ephemeral.TypeWelcomeMessages
|
|
68931
68590
|
export declare function isAnyMtcute_Update(o: object): o is tl.mtcute.TypeUpdate
|
|
68932
68591
|
export declare function isAnyMtcute_InputPeer(o: object): o is tl.mtcute.TypeInputPeer
|
|
68933
68592
|
|