diff --git a/README.md b/README.md index ffeb83ee..ac1313ca 100644 --- a/README.md +++ b/README.md @@ -15,12 +15,6 @@ Install GramJS: $ npm i telegram ``` -Install [input package](https://www.npmjs.com/package/input), we'll use it to prompt ourselves inside terminal for login information: - -```bash -$ npm i input -``` - After installation, you'll need to obtain an API ID and hash: 1. Login into your [telegram account](https://my.telegram.org/) @@ -36,22 +30,35 @@ Then run this code to send a message to yourself. ```javascript import { TelegramClient } from "telegram"; import { StringSession } from "telegram/sessions"; -import input from "input"; +import readline from "readline"; const apiId = 123456; const apiHash = "123456abcdfg"; const stringSession = new StringSession(""); // fill this later with the value from session.save() +const rl = readline.createInterface({ + input: process.stdin, + output: process.stdout, +}); + (async () => { console.log("Loading interactive example..."); const client = new TelegramClient(stringSession, apiId, apiHash, { connectionRetries: 5, }); await client.start({ - phoneNumber: async () => await input.text("Please enter your number: "), - password: async () => await input.text("Please enter your password: "), + phoneNumber: async () => + new Promise((resolve) => + rl.question("Please enter your number: ", resolve) + ), + password: async () => + new Promise((resolve) => + rl.question("Please enter your password: ", resolve) + ), phoneCode: async () => - await input.text("Please enter the code you received: "), + new Promise((resolve) => + rl.question("Please enter the code you received: ", resolve) + ), onError: (err) => console.log(err), }); console.log("You should now be connected."); diff --git a/gramjs/Helpers.ts b/gramjs/Helpers.ts index c07ef9bc..0643abc9 100644 --- a/gramjs/Helpers.ts +++ b/gramjs/Helpers.ts @@ -139,7 +139,9 @@ export function readBufferFromBigInt( } if (signed && bigIntVar.lesser(bigInt(0))) { - bigIntVar = bigInt(2).pow(bigInt(bytesNumber).multiply(8)).add(bigIntVar); + bigIntVar = bigInt(2) + .pow(bigInt(bytesNumber).multiply(8)) + .add(bigIntVar); } const hex = bigIntVar.toString(16).padStart(bytesNumber * 2, "0"); diff --git a/gramjs/Utils.ts b/gramjs/Utils.ts index 1e6b3bd3..3c6f3d76 100644 --- a/gramjs/Utils.ts +++ b/gramjs/Utils.ts @@ -237,9 +237,8 @@ export function _photoSizeByteCount(size: Api.TypePhotoSize) { } else if (size instanceof Api.PhotoSizeEmpty) { return 0; } else if (size instanceof Api.PhotoSizeProgressive) { - return size.sizes[size.sizes.length -1]; - } - else { + return size.sizes[size.sizes.length - 1]; + } else { return undefined; } } diff --git a/gramjs/Version.ts b/gramjs/Version.ts index 53b0a4c4..8424d230 100644 --- a/gramjs/Version.ts +++ b/gramjs/Version.ts @@ -1 +1 @@ -export const version = "2.20.3"; +export const version = "2.26.1"; \ No newline at end of file diff --git a/gramjs/client/TelegramClient.ts b/gramjs/client/TelegramClient.ts index 6c7adfa1..ecea5e7f 100644 --- a/gramjs/client/TelegramClient.ts +++ b/gramjs/client/TelegramClient.ts @@ -1031,6 +1031,27 @@ export class TelegramClient extends TelegramBaseClient { ) { return chatMethods.getParticipants(this, entity, params); } + /** + * Kicks a user from a chat. + * + * Kicking yourself (`'me'`) will result in leaving the chat. + * + * @note + * Attempting to kick someone who was banned will remove their + * restrictions (and thus unbanning them), since kicking is just + * ban + unban. + * + * @example + * // Kick some user from some chat, and deleting the service message + * const msg = await client.kickParticipant(chat, user); + * await msg.delete(); + * + * // Leaving chat + * await client.kickParticipant(chat, 'me'); + */ + kickParticipant(entity: EntityLike, participant: EntityLike) { + return chatMethods.kickParticipant(this, entity, participant); + } //endregion @@ -1226,6 +1247,8 @@ export class TelegramClient extends TelegramBaseClient { * console.log("My username is",me.username); * ``` */ + getMe(inputPeer: true): Promise; + getMe(inputPeer?: false): Promise; getMe(inputPeer = false) { return userMethods.getMe(this, inputPeer); } @@ -1275,11 +1298,11 @@ export class TelegramClient extends TelegramBaseClient { * @example * ```ts * const me = await client.getEntity("me"); - * console.log("My name is",utils.getDisplayName(me)); + * console.log("My name is", utils.getDisplayName(me)); * * const chat = await client.getInputEntity("username"); - * for await (const message of client.iterMessages(chat){ - * console.log("Message text is",message.text); + * for await (const message of client.iterMessages(chat)) { + * console.log("Message text is", message.text); * } * * // Note that you could have used the username directly, but it's @@ -1368,7 +1391,8 @@ export class TelegramClient extends TelegramBaseClient { this._log.error(`Error while trying to reconnect`); if (this._errorHandler) { await this._errorHandler(e as Error); - } if (this._log.canSend(LogLevel.ERROR)) { + } + if (this._log.canSend(LogLevel.ERROR)) { console.error(e); } } @@ -1392,6 +1416,7 @@ export class TelegramClient extends TelegramBaseClient { client: this, securityChecks: this._securityChecks, autoReconnectCallback: this._handleReconnect.bind(this), + _exportedSenderPromises: this._exportedSenderPromises, }); } diff --git a/gramjs/client/chats.ts b/gramjs/client/chats.ts index e20ff334..e0089f17 100644 --- a/gramjs/client/chats.ts +++ b/gramjs/client/chats.ts @@ -1,11 +1,18 @@ import type { TelegramClient } from "./TelegramClient"; import type { EntitiesLike, Entity, EntityLike, ValueOf } from "../define"; -import { sleep, getMinBigInt, TotalList, betterConsoleLog } from "../Helpers"; +import { + sleep, + getMinBigInt, + TotalList, + betterConsoleLog, + returnBigInt, +} from "../Helpers"; import { RequestIter } from "../requestIter"; import { helpers, utils } from "../"; import { Api } from "../tl"; -import bigInt, { BigInteger } from "big-integer"; +import bigInt, { BigInteger, isInstance } from "big-integer"; import { inspect } from "../inspect"; +import { getPeerId } from "../Utils"; const _MAX_PARTICIPANTS_CHUNK_SIZE = 200; const _MAX_ADMIN_LOG_CHUNK_SIZE = 100; @@ -441,3 +448,52 @@ export async function getParticipants( const it = client.iterParticipants(entity, params); return (await it.collect()) as TotalList; } + +/** @hidden */ +export async function kickParticipant( + client: TelegramClient, + entity: EntityLike, + participant: EntityLike +) { + const peer = await client.getInputEntity(entity); + const user = await client.getInputEntity(participant); + let resp; + let request; + + const type = helpers._entityType(peer); + if (type === helpers._EntityType.CHAT) { + request = new Api.messages.DeleteChatUser({ + chatId: returnBigInt(getPeerId(entity)), + userId: returnBigInt(getPeerId(participant)), + }); + resp = await client.invoke(request); + } else if (type === helpers._EntityType.CHANNEL) { + if (user instanceof Api.InputPeerSelf) { + request = new Api.channels.LeaveChannel({ + channel: peer, + }); + resp = await client.invoke(request); + } else { + request = new Api.channels.EditBanned({ + channel: peer, + participant: user, + bannedRights: new Api.ChatBannedRights({ + untilDate: 0, + viewMessages: true, + }), + }); + resp = await client.invoke(request); + await sleep(500); + await client.invoke( + new Api.channels.EditBanned({ + channel: peer, + participant: user, + bannedRights: new Api.ChatBannedRights({ untilDate: 0 }), + }) + ); + } + } else { + throw new Error("You must pass either a channel or a chat"); + } + return client._getResponseMessage(request, resp, entity); +} diff --git a/gramjs/client/downloads.ts b/gramjs/client/downloads.ts index 63c07de0..3e10bc16 100644 --- a/gramjs/client/downloads.ts +++ b/gramjs/client/downloads.ts @@ -430,13 +430,13 @@ export async function downloadFileV2( msgData: msgData, })) { await writer.write(chunk); + downloaded = downloaded.add(chunk.length); if (progressCallback) { await progressCallback( downloaded, bigInt(fileSize || bigInt.zero) ); } - downloaded = downloaded.add(chunk.length); } return returnWriterValue(writer); } finally { diff --git a/gramjs/client/messageParse.ts b/gramjs/client/messageParse.ts index 2433fffe..085c2496 100644 --- a/gramjs/client/messageParse.ts +++ b/gramjs/client/messageParse.ts @@ -211,7 +211,7 @@ export function _getResponseMessage( return schedMessage; } client._log.warn( - `No randomId in ${request} to map to. returning undefined for ${result}` + `No randomId in ${request} to map to. returning undefined for ${result} (Message was empty)` ); return undefined; } @@ -219,7 +219,7 @@ export function _getResponseMessage( let msg = idToMessage.get(randomToId.get(randomId.toString())!); if (!msg) { client._log.warn( - `Request ${request.className} had missing message mapping ${result.className}` + `Request ${request.className} had missing message mapping ${result.className} (Message was empty)` ); } return msg; @@ -241,7 +241,7 @@ export function _getResponseMessage( } if (warned) { client._log.warn( - `Request ${request.className} had missing message mapping ${result.className}` + `Request ${request.className} had missing message mapping ${result.className} (Message was empty)` ); } const finalToReturn = []; diff --git a/gramjs/client/messages.ts b/gramjs/client/messages.ts index d49a5e0c..ad63d823 100644 --- a/gramjs/client/messages.ts +++ b/gramjs/client/messages.ts @@ -1175,7 +1175,9 @@ export async function getCommentData( msgId: utils.getMessageId(message), }) ); - const relevantMessage = result.messages[0]; + const relevantMessage = result.messages.reduce( + (p: Api.TypeMessage, c: Api.TypeMessage) => (p && p.id < c.id ? p : c) + ); let chat; for (const c of result.chats) { if ( diff --git a/gramjs/client/telegramBaseClient.ts b/gramjs/client/telegramBaseClient.ts index 780bbec5..0150a771 100644 --- a/gramjs/client/telegramBaseClient.ts +++ b/gramjs/client/telegramBaseClient.ts @@ -217,7 +217,7 @@ export abstract class TelegramBaseClient { [ReturnType, Api.TypeUpdate[]] >(); /** @hidden */ - private _exportedSenderPromises = new Map>(); + public _exportedSenderPromises = new Map>(); /** @hidden */ private _exportedSenderReleaseTimeouts = new Map< number, @@ -289,11 +289,11 @@ export abstract class TelegramBaseClient { } this._connection = clientParams.connection; let initProxy; - if (this._proxy?.MTProxy) { + if (this._proxy && "MTProxy" in this._proxy) { this._connection = ConnectionTCPMTProxyAbridged; initProxy = new Api.InputClientProxy({ - address: this._proxy!.ip, - port: this._proxy!.port, + address: this._proxy.ip, + port: this._proxy.port, }); } this._initRequest = new Api.InitConnection({ @@ -529,7 +529,8 @@ export abstract class TelegramBaseClient { } catch (err) { if (this._errorHandler) { await this._errorHandler(err as Error); - } if (this._log.canSend(LogLevel.ERROR)) { + } + if (this._log.canSend(LogLevel.ERROR)) { console.error(err); } return this._borrowExportedSender(dcId, true); @@ -544,7 +545,15 @@ export abstract class TelegramBaseClient { dcId, setTimeout(() => { this._exportedSenderReleaseTimeouts.delete(dcId); - sender.disconnect(); + if (sender._pendingState.values().length) { + console.log( + "sender already has some hanging states. reconnecting" + ); + sender._reconnect(); + this._borrowExportedSender(dcId, false, sender); + } else { + sender.disconnect(); + } }, EXPORTED_SENDER_RELEASE_TIMEOUT) ); @@ -565,6 +574,7 @@ export abstract class TelegramBaseClient { onConnectionBreak: this._cleanupExportedSender.bind(this), client: this as unknown as TelegramClient, securityChecks: this._securityChecks, + _exportedSenderPromises: this._exportedSenderPromises, }); } diff --git a/gramjs/client/updates.ts b/gramjs/client/updates.ts index e9b970e4..c9740370 100644 --- a/gramjs/client/updates.ts +++ b/gramjs/client/updates.ts @@ -176,7 +176,8 @@ export async function _dispatchUpdate( } if (client._errorHandler) { await client._errorHandler(e as Error); - } if (client._log.canSend(LogLevel.ERROR)) { + } + if (client._log.canSend(LogLevel.ERROR)) { console.error(e); } } @@ -245,7 +246,8 @@ export async function _updateLoop(client: TelegramClient) { // eslint-disable-next-line no-console if (client._errorHandler) { await client._errorHandler(err as Error); - } if (client._log.canSend(LogLevel.ERROR)) { + } + if (client._log.canSend(LogLevel.ERROR)) { console.error(err); } diff --git a/gramjs/client/uploads.ts b/gramjs/client/uploads.ts index df98d055..35396871 100644 --- a/gramjs/client/uploads.ts +++ b/gramjs/client/uploads.ts @@ -95,6 +95,7 @@ const LARGE_FILE_THRESHOLD = 10 * 1024 * 1024; const UPLOAD_TIMEOUT = 15 * 1000; const DISCONNECT_SLEEP = 1000; const BUFFER_SIZE_2GB = 2 ** 31; +const BUFFER_SIZE_20MB = 20 * 1024 * 1024; async function getFileBuffer( file: File | CustomFile, @@ -128,7 +129,7 @@ export async function uploadFile( const buffer = await getFileBuffer( file, size, - fileParams.maxBufferSize || BUFFER_SIZE_2GB - 1 + fileParams.maxBufferSize || BUFFER_SIZE_20MB - 1 ); // Make sure a new sender can be created before starting upload @@ -154,7 +155,15 @@ export async function uploadFile( } for (let j = i; j < end; j++) { - const bytes = await buffer.slice(j * partSize, (j + 1) * partSize); + let endPart = (j + 1) * partSize; + if (endPart > size) { + endPart = size; + } + if (endPart == j * partSize) { + break; + } + + const bytes = await buffer.slice(j * partSize, endPart); // eslint-disable-next-line no-loop-func sendingParts.push( diff --git a/gramjs/client/users.ts b/gramjs/client/users.ts index 37dd1895..9d73db8d 100644 --- a/gramjs/client/users.ts +++ b/gramjs/client/users.ts @@ -122,12 +122,12 @@ export async function invoke( } /** @hidden */ -export async function getMe( - client: TelegramClient, - inputPeer = false -): Promise { +export async function getMe< + T extends boolean, + R = T extends true ? Api.InputPeerUser : Api.User +>(client: TelegramClient, inputPeer: T): Promise { if (inputPeer && client._selfInputPeer) { - return client._selfInputPeer; + return client._selfInputPeer as unknown as R; } const me = ( await client.invoke( @@ -142,7 +142,9 @@ export async function getMe( false ) as Api.InputPeerUser; } - return inputPeer ? client._selfInputPeer : me; + return inputPeer + ? (client._selfInputPeer as unknown as R) + : (me as unknown as R); } /** @hidden */ @@ -370,7 +372,8 @@ export async function getInputEntity( } catch (e) { if (client._errorHandler) { await client._errorHandler(e as Error); - } if (client._log.canSend(LogLevel.ERROR)) { + } + if (client._log.canSend(LogLevel.ERROR)) { console.error(e); } } diff --git a/gramjs/define.d.ts b/gramjs/define.d.ts index fad04ce1..5b00886f 100644 --- a/gramjs/define.d.ts +++ b/gramjs/define.d.ts @@ -64,8 +64,8 @@ type OutFile = | WriteStream | { write: Function; close?: Function }; type ProgressCallback = ( - total: bigInt.BigInteger, - downloaded: bigInt.BigInteger + downloaded: bigInt.BigInteger, + total: bigInt.BigInteger ) => void; type ButtonLike = Api.TypeKeyboardButton | Button; diff --git a/gramjs/errors/RPCErrorList.ts b/gramjs/errors/RPCErrorList.ts index 458f7f3c..aa08b62b 100644 --- a/gramjs/errors/RPCErrorList.ts +++ b/gramjs/errors/RPCErrorList.ts @@ -160,6 +160,7 @@ export const rpcErrorRe = new Map([ [/FILE_MIGRATE_(\d+)/, FileMigrateError], [/FLOOD_TEST_PHONE_WAIT_(\d+)/, FloodTestPhoneWaitError], [/FLOOD_WAIT_(\d+)/, FloodWaitError], + [/FLOOD_PREMIUM_WAIT_(\d+)/, FloodWaitError], [/MSG_WAIT_(.*)/, MsgWaitError], [/PHONE_MIGRATE_(\d+)/, PhoneMigrateError], [/SLOWMODE_WAIT_(\d+)/, SlowModeWaitError], diff --git a/gramjs/events/Album.ts b/gramjs/events/Album.ts index e171ed64..f7a683b7 100644 --- a/gramjs/events/Album.ts +++ b/gramjs/events/Album.ts @@ -110,7 +110,8 @@ export class AlbumEvent extends EventCommon { ); if (client._errorHandler) { client._errorHandler(e as Error); - } if (client._log.canSend(LogLevel.ERROR)) { + } + if (client._log.canSend(LogLevel.ERROR)) { console.error(e); } } diff --git a/gramjs/events/NewMessage.ts b/gramjs/events/NewMessage.ts index 4f925e32..b6125446 100644 --- a/gramjs/events/NewMessage.ts +++ b/gramjs/events/NewMessage.ts @@ -260,7 +260,8 @@ export class NewMessageEvent extends EventCommon { ); if (client._errorHandler) { client._errorHandler(e as Error); - } if (client._log.canSend(LogLevel.ERROR)) { + } + if (client._log.canSend(LogLevel.ERROR)) { console.error(e); } } diff --git a/gramjs/extensions/MessagePacker.ts b/gramjs/extensions/MessagePacker.ts index df14f9ce..6403e83a 100644 --- a/gramjs/extensions/MessagePacker.ts +++ b/gramjs/extensions/MessagePacker.ts @@ -13,7 +13,7 @@ const USE_INVOKE_AFTER_WITH = new Set([ export class MessagePacker { private _state: MTProtoState; - private _pendingStates: RequestState[]; + public _pendingStates: RequestState[]; private _queue: any[]; private _ready: Promise; private setReady: ((value?: any) => void) | undefined; @@ -79,7 +79,7 @@ export class MessagePacker { this._pendingStates.push(state); state .promise! // Using finally causes triggering `unhandledrejection` event - .catch(() => {}) + .catch((err) => {}) .finally(() => { this._pendingStates = this._pendingStates.filter( (s) => s !== state diff --git a/gramjs/extensions/PromisedNetSockets.ts b/gramjs/extensions/PromisedNetSockets.ts index f84d0981..8ecba7b8 100644 --- a/gramjs/extensions/PromisedNetSockets.ts +++ b/gramjs/extensions/PromisedNetSockets.ts @@ -2,7 +2,10 @@ import * as net from "./net"; import { SocksClient } from "./socks"; import { Mutex } from "async-mutex"; -import { ProxyInterface } from "../network/connection/TCPMTProxy"; +import { + ProxyInterface, + SocksProxyType, +} from "../network/connection/TCPMTProxy"; const mutex = new Mutex(); @@ -14,22 +17,22 @@ export class PromisedNetSockets { private stream: Buffer; private canRead?: boolean | Promise; private resolveRead: ((value?: any) => void) | undefined; - private proxy?: ProxyInterface; + private proxy?: SocksProxyType; constructor(proxy?: ProxyInterface) { this.client = undefined; this.closed = true; this.stream = Buffer.alloc(0); - if (!proxy?.MTProxy) { + if (proxy) { // we only want to use this when it's not an MTProto proxy. - if (proxy) { + if (!("MTProxy" in proxy)) { if (!proxy.ip || !proxy.port || !proxy.socksType) { throw new Error( - `Invalid sockets params. ${proxy.ip}, ${proxy.port}, ${proxy.socksType}` + `Invalid sockets params: ip=${proxy.ip}, port=${proxy.port}, socksType=${proxy.socksType}` ); } + this.proxy = proxy; } - this.proxy = proxy; } } @@ -39,7 +42,7 @@ export class PromisedNetSockets { const thisTime = await this.read(number); readData = Buffer.concat([readData, thisTime]); number = number - thisTime.length; - if (!number) { + if (!number || number === -437) { return readData; } } @@ -90,10 +93,7 @@ export class PromisedNetSockets { proxy: { host: this.proxy.ip, port: this.proxy.port, - type: - this.proxy.socksType != undefined - ? this.proxy.socksType - : 5, // Proxy version (4 or 5) + type: this.proxy.socksType, userId: this.proxy.username, password: this.proxy.password, }, diff --git a/gramjs/extensions/html.ts b/gramjs/extensions/html.ts index 558c9469..4c73250a 100644 --- a/gramjs/extensions/html.ts +++ b/gramjs/extensions/html.ts @@ -46,6 +46,9 @@ class HTMLToTelegramParser implements Handler { EntityType = Api.MessageEntityStrike; } else if (name == "blockquote") { EntityType = Api.MessageEntityBlockquote; + if (attributes.expandable !== undefined) { + args.collapsed = true; + } } else if (name == "code") { const pre = this._buildingEntities.get("pre"); if (pre && pre instanceof Api.MessageEntityPre) { @@ -207,7 +210,9 @@ export class HTMLParser { html.push(`
${entityText}
`); } else if (entity instanceof Api.MessageEntityPre) { if (entity.language) { - html.push(`
${entityText}
`); + html.push( + `
${entityText}
` + ); } else { html.push(`
${entityText}
`); } diff --git a/gramjs/extensions/markdown.ts b/gramjs/extensions/markdown.ts index cc8345e3..50241980 100644 --- a/gramjs/extensions/markdown.ts +++ b/gramjs/extensions/markdown.ts @@ -38,7 +38,7 @@ export class MarkdownParser { foundIndex - tempEntities[foundDelim].offset; entities.push(tempEntities[foundDelim]); } - message = message.replace(foundDelim, ""); + message = message.toString().replace(foundDelim, ""); i = foundIndex; } return [message, entities]; diff --git a/gramjs/extensions/markdownv2.ts b/gramjs/extensions/markdownv2.ts index bf394f3d..fc67fac2 100644 --- a/gramjs/extensions/markdownv2.ts +++ b/gramjs/extensions/markdownv2.ts @@ -16,7 +16,7 @@ export class MarkdownV2Parser { message = message.replace(/-(.*?)-/g, "$1"); // pre - message = message.replace(/```(.*?)```/g, "
$1
"); + message = message.replace(/```([\s\S]*?)```/g, "
$1
"); // code message = message.replace(/`(.*?)`/g, "$1"); @@ -35,6 +35,8 @@ export class MarkdownV2Parser { /!\[([^\]]+)\]\(tg:\/\/emoji\?id=(\d+)\)/g, '$1' ); + + // return HTMLParser.parse(message); } diff --git a/gramjs/network/MTProtoSender.ts b/gramjs/network/MTProtoSender.ts index ebd41333..52f4e533 100644 --- a/gramjs/network/MTProtoSender.ts +++ b/gramjs/network/MTProtoSender.ts @@ -53,6 +53,7 @@ interface DEFAULT_OPTIONS { client: TelegramClient; onConnectionBreak?: CallableFunction; securityChecks: boolean; + _exportedSenderPromises: Map>; } export class MTProtoSender { @@ -94,7 +95,7 @@ export class MTProtoSender { readonly authKey: AuthKey; private readonly _state: MTProtoState; private _sendQueue: MessagePacker; - private _pendingState: PendingState; + _pendingState: PendingState; private readonly _pendingAck: Set; private readonly _lastAcks: any[]; private readonly _handlers: any; @@ -108,6 +109,7 @@ export class MTProtoSender { private _cancelSend: boolean; cancellableRecvLoopPromise?: CancellablePromise; private _finishedConnecting: boolean; + private _exportedSenderPromises = new Map>(); /** * @param authKey @@ -137,7 +139,7 @@ export class MTProtoSender { this._securityChecks = args.securityChecks; this._connectMutex = new Mutex(); - + this._exportedSenderPromises = args._exportedSenderPromises; /** * whether we disconnected ourself or telegram did it. */ @@ -279,7 +281,8 @@ export class MTProtoSender { ); if (this._client._errorHandler) { await this._client._errorHandler(err as Error); - } if (this._log.canSend(LogLevel.ERROR)) { + } + if (this._log.canSend(LogLevel.ERROR)) { console.error(err); } await sleep(this._delay); @@ -403,6 +406,7 @@ export class MTProtoSender { "Connection to %s complete!".replace("%s", connection.toString()) ); } + async _disconnect() { const connection = this._connection; if (this._updateCallback) { @@ -493,17 +497,6 @@ export class MTProtoSender { ); data = await this._state.encryptMessageData(data); - - try { - await this._connection!.send(data); - } catch (e) { - this._log.debug(`Connection closed while sending data ${e}`); - if (this._log.canSend(LogLevel.DEBUG)) { - console.error(e); - } - this._sendLoopHandle = undefined; - return; - } for (const state of batch) { if (!Array.isArray(state)) { if (state.request.classType === "request") { @@ -517,6 +510,24 @@ export class MTProtoSender { } } } + try { + await this._connection!.send(data); + } catch (e) { + /** when the server disconnects us we want to reconnect */ + if (!this.userDisconnected) { + this._log.debug( + `Connection closed while sending data ${e}` + ); + + if (this._log.canSend(LogLevel.DEBUG)) { + console.error(e); + } + this.reconnect(); + } + this._sendLoopHandle = undefined; + return; + } + this._log.debug("Encrypted messages put in a queue to be sent"); } @@ -583,7 +594,8 @@ export class MTProtoSender { this._log.error("Unhandled error while receiving data"); if (this._client._errorHandler) { await this._client._errorHandler(e as Error); - } if (this._log.canSend(LogLevel.ERROR)) { + } + if (this._log.canSend(LogLevel.ERROR)) { console.log(e); } this.reconnect(); @@ -607,7 +619,8 @@ export class MTProtoSender { this._log.error("Unhandled error while receiving data"); if (this._client._errorHandler) { await this._client._errorHandler(e as Error); - } if (this._log.canSend(LogLevel.ERROR)) { + } + if (this._log.canSend(LogLevel.ERROR)) { console.log(e); } } @@ -636,6 +649,7 @@ export class MTProtoSender { this._onConnectionBreak(this._dcId); } } + /** * Adds the given message to the list of messages that must be * acknowledged and dispatches control to different ``_handle_*`` @@ -693,6 +707,7 @@ export class MTProtoSender { return []; } + /** * Handles the result for Remote Procedure Calls: * rpc_result#f35c6d01 req_msg_id:long result:bytes = RpcResult; @@ -741,9 +756,7 @@ export class MTProtoSender { try { const reader = new BinaryReader(result.body); const read = state.request.readResult(reader); - this._log.debug( - `Handling RPC result ${read?.constructor?.name}` - ); + this._log.debug(`Handling RPC result ${read?.className}`); state.resolve(read); } catch (err) { state.reject(err); @@ -965,9 +978,26 @@ export class MTProtoSender { * @private */ async _handleMsgAll(message: TLMessage) {} + reconnect() { if (this._userConnected && !this.isReconnecting) { this.isReconnecting = true; + if (this._isMainSender) { + this._log.debug("Reconnecting all senders"); + for (const promise of this._exportedSenderPromises.values()) { + promise + .then((sender) => { + if (sender && !sender._isMainSender) { + sender.reconnect(); + } + }) + .catch((error) => { + this._log.warn( + "Error getting sender to reconnect to" + ); + }); + } + } // we want to wait a second between each reconnect try to not flood the server with reconnects // in case of internal server issues. sleep(1000).then(() => { @@ -978,7 +1008,6 @@ export class MTProtoSender { } async _reconnect() { - this._log.debug("Closing current connection..."); try { this._log.warn("[Reconnect] Closing current connection..."); await this._disconnect(); @@ -986,10 +1015,22 @@ export class MTProtoSender { this._log.warn("Error happened while disconnecting"); if (this._client._errorHandler) { await this._client._errorHandler(err as Error); - } if (this._log.canSend(LogLevel.ERROR)) { + } + if (this._log.canSend(LogLevel.ERROR)) { console.error(err); } } + this._log.debug( + `Adding ${this._sendQueue._pendingStates.length} old request to resend` + ); + for (let i = 0; i < this._sendQueue._pendingStates.length; i++) { + if (this._sendQueue._pendingStates[i].msgId != undefined) { + this._pendingState.set( + this._sendQueue._pendingStates[i].msgId!, + this._sendQueue._pendingStates[i] + ); + } + } this._sendQueue.clear(); this._state.reset(); diff --git a/gramjs/network/connection/TCPFull.ts b/gramjs/network/connection/TCPFull.ts index 9b9dbaa2..8599d877 100644 --- a/gramjs/network/connection/TCPFull.ts +++ b/gramjs/network/connection/TCPFull.ts @@ -1,6 +1,6 @@ import { Connection, PacketCodec } from "./Connection"; import { crc32 } from "../../Helpers"; -import { InvalidChecksumError } from "../../errors"; +import { InvalidBufferError, InvalidChecksumError } from "../../errors"; import type { PromisedNetSockets, PromisedWebSockets } from "../../extensions"; export class FullPacketCodec extends PacketCodec { @@ -40,6 +40,13 @@ export class FullPacketCodec extends PacketCodec { return Buffer.alloc(0); } const packetLen = packetLenSeq.readInt32LE(0); + if (packetLen < 0) { + // # It has been observed that the length and seq can be -429, + // # followed by the body of 4 bytes also being -429. + // # See https://github.com/LonamiWebs/Telethon/issues/4042. + const body = await reader.readExactly(4); + throw new InvalidBufferError(body); + } let body = await reader.readExactly(packetLen - 8); const checksum = body.slice(-4).readUInt32LE(0); body = body.slice(0, -4); diff --git a/gramjs/network/connection/TCPMTProxy.ts b/gramjs/network/connection/TCPMTProxy.ts index 71d6d184..55c021dd 100644 --- a/gramjs/network/connection/TCPMTProxy.ts +++ b/gramjs/network/connection/TCPMTProxy.ts @@ -8,16 +8,22 @@ import { } from "../../extensions"; import { CTR } from "../../crypto/CTR"; -export interface ProxyInterface { - socksType?: 4 | 5; +interface BasicProxyInterface { ip: string; port: number; - secret?: string; - MTProxy?: boolean; timeout?: number; username?: string; password?: string; } +export type MTProxyType = BasicProxyInterface & { + secret: string; + MTProxy: true; +}; +export type SocksProxyType = BasicProxyInterface & { + socksType: 4 | 5; +}; + +export type ProxyInterface = MTProxyType | SocksProxyType; class MTProxyIO { header?: Buffer = undefined; @@ -154,7 +160,7 @@ export class TCPMTProxy extends ObfuscatedConnection { proxy: proxy, testServers: testServers, }); - if (!proxy.MTProxy) { + if (!("MTProxy" in proxy)) { throw new Error("This connection only supports MPTProxies"); } if (!proxy.secret) { diff --git a/gramjs/sessions/StoreSession.ts b/gramjs/sessions/StoreSession.ts index f032167d..6de6dcad 100644 --- a/gramjs/sessions/StoreSession.ts +++ b/gramjs/sessions/StoreSession.ts @@ -9,6 +9,11 @@ export class StoreSession extends MemorySession { constructor(sessionName: string, divider = ":") { super(); + if (sessionName === "session") { + throw new Error( + "Session name can't be 'session'. Please use a different name." + ); + } if (typeof localStorage === "undefined" || localStorage === null) { const LocalStorage = require("./localStorage").LocalStorage; this.store = store.area( diff --git a/gramjs/tl/AllTLObjects.ts b/gramjs/tl/AllTLObjects.ts index 4609a75d..5f3d3657 100644 --- a/gramjs/tl/AllTLObjects.ts +++ b/gramjs/tl/AllTLObjects.ts @@ -1,4 +1,4 @@ -export const LAYER = 174; +export const LAYER = 184; import { Api } from "./"; diff --git a/gramjs/tl/api.d.ts b/gramjs/tl/api.d.ts index 57620b1a..97dee23c 100644 --- a/gramjs/tl/api.d.ts +++ b/gramjs/tl/api.d.ts @@ -383,12 +383,12 @@ export namespace Api { photo?: Api.TypeInputWebDocument; invoice: Api.TypeInvoice; payload: bytes; - provider: string; + provider?: string; providerData: Api.TypeDataJSON; startParam?: string; extendedMedia?: Api.TypeInputMedia; }> { - CONSTRUCTOR_ID: 2394269397; + CONSTRUCTOR_ID: 1080028941; SUBCLASS_OF_ID: 4210575092; classType: "constructor"; className: "InputMediaInvoice"; @@ -399,7 +399,7 @@ export namespace Api { photo?: Api.TypeInputWebDocument; invoice: Api.TypeInvoice; payload: bytes; - provider: string; + provider?: string; providerData: Api.TypeDataJSON; startParam?: string; extendedMedia?: Api.TypeInputMedia; @@ -482,6 +482,18 @@ export namespace Api { optional?: boolean; url: string; } + export class InputMediaPaidMedia extends VirtualClass<{ + starsAmount: long; + extendedMedia: Api.TypeInputMedia[]; + }> { + CONSTRUCTOR_ID: 2858819523; + SUBCLASS_OF_ID: 4210575092; + classType: "constructor"; + className: "InputMediaPaidMedia"; + static fromReader(reader: Reader): InputMediaPaidMedia; + starsAmount: long; + extendedMedia: Api.TypeInputMedia[]; + } export class InputChatPhotoEmpty extends VirtualClass { CONSTRUCTOR_ID: 480546647; SUBCLASS_OF_ID: 3572182388; @@ -774,6 +786,7 @@ export namespace Api { storiesHidden?: boolean; storiesUnavailable?: boolean; contactRequirePremium?: boolean; + botBusiness?: boolean; id: long; accessHash?: long; firstName?: string; @@ -823,6 +836,7 @@ export namespace Api { storiesHidden?: boolean; storiesUnavailable?: boolean; contactRequirePremium?: boolean; + botBusiness?: boolean; id: long; accessHash?: long; firstName?: string; @@ -1129,8 +1143,9 @@ export namespace Api { requestsPending?: int; recentRequesters?: long[]; availableReactions?: Api.TypeChatReactions; + reactionsLimit?: int; }> { - CONSTRUCTOR_ID: 3386052920; + CONSTRUCTOR_ID: 640893467; SUBCLASS_OF_ID: 3566872215; classType: "constructor"; className: "ChatFull"; @@ -1155,6 +1170,7 @@ export namespace Api { requestsPending?: int; recentRequesters?: long[]; availableReactions?: Api.TypeChatReactions; + reactionsLimit?: int; } export class ChannelFull extends VirtualClass<{ // flags: null; @@ -1173,6 +1189,10 @@ export namespace Api { translationsDisabled?: boolean; storiesPinnedAvailable?: boolean; viewForumAsMessages?: boolean; + restrictedSponsored?: boolean; + canViewRevenue?: boolean; + paidMediaAllowed?: boolean; + canViewStarsRevenue?: boolean; id: long; about: string; participantsCount?: int; @@ -1208,13 +1228,14 @@ export namespace Api { recentRequesters?: long[]; defaultSendAs?: Api.TypePeer; availableReactions?: Api.TypeChatReactions; + reactionsLimit?: int; stories?: Api.TypePeerStories; wallpaper?: Api.TypeWallPaper; boostsApplied?: int; boostsUnrestrict?: int; emojiset?: Api.TypeStickerSet; }> { - CONSTRUCTOR_ID: 1153455271; + CONSTRUCTOR_ID: 3148559501; SUBCLASS_OF_ID: 3566872215; classType: "constructor"; className: "ChannelFull"; @@ -1235,6 +1256,10 @@ export namespace Api { translationsDisabled?: boolean; storiesPinnedAvailable?: boolean; viewForumAsMessages?: boolean; + restrictedSponsored?: boolean; + canViewRevenue?: boolean; + paidMediaAllowed?: boolean; + canViewStarsRevenue?: boolean; id: long; about: string; participantsCount?: int; @@ -1270,6 +1295,7 @@ export namespace Api { recentRequesters?: long[]; defaultSendAs?: Api.TypePeer; availableReactions?: Api.TypeChatReactions; + reactionsLimit?: int; stories?: Api.TypePeerStories; wallpaper?: Api.TypeWallPaper; boostsApplied?: int; @@ -1382,7 +1408,7 @@ export namespace Api { peerId?: Api.TypePeer; } export class Message extends CustomMessage { - CONSTRUCTOR_ID: 508332649; + CONSTRUCTOR_ID: 2486456898; SUBCLASS_OF_ID: 2030045667; classType: "request"; className: "Message"; @@ -1677,6 +1703,18 @@ export namespace Api { prizeDescription?: string; untilDate: int; } + export class MessageMediaPaidMedia extends VirtualClass<{ + starsAmount: long; + extendedMedia: Api.TypeMessageExtendedMedia[]; + }> { + CONSTRUCTOR_ID: 2827297937; + SUBCLASS_OF_ID: 1198308914; + classType: "constructor"; + className: "MessageMediaPaidMedia"; + static fromReader(reader: Reader): MessageMediaPaidMedia; + starsAmount: long; + extendedMedia: Api.TypeMessageExtendedMedia[]; + } export class MessageActionEmpty extends VirtualClass { CONSTRUCTOR_ID: 3064919984; SUBCLASS_OF_ID: 2256589094; @@ -2193,6 +2231,38 @@ export namespace Api { static fromReader(reader: Reader): MessageActionBoostApply; boosts: int; } + export class MessageActionRequestedPeerSentMe extends VirtualClass<{ + buttonId: int; + peers: Api.TypeRequestedPeer[]; + }> { + CONSTRUCTOR_ID: 2477987912; + SUBCLASS_OF_ID: 2256589094; + classType: "constructor"; + className: "MessageActionRequestedPeerSentMe"; + static fromReader(reader: Reader): MessageActionRequestedPeerSentMe; + buttonId: int; + peers: Api.TypeRequestedPeer[]; + } + export class MessageActionPaymentRefunded extends VirtualClass<{ + // flags: null; + peer: Api.TypePeer; + currency: string; + totalAmount: long; + payload?: bytes; + charge: Api.TypePaymentCharge; + }> { + CONSTRUCTOR_ID: 1102307842; + SUBCLASS_OF_ID: 2256589094; + classType: "constructor"; + className: "MessageActionPaymentRefunded"; + static fromReader(reader: Reader): MessageActionPaymentRefunded; + // flags: null; + peer: Api.TypePeer; + currency: string; + totalAmount: long; + payload?: bytes; + charge: Api.TypePaymentCharge; + } export class Dialog extends VirtualClass<{ // flags: null; pinned?: boolean; @@ -2512,11 +2582,15 @@ export namespace Api { autoarchived?: boolean; inviteMembers?: boolean; requestChatBroadcast?: boolean; + businessBotPaused?: boolean; + businessBotCanReply?: boolean; geoDistance?: int; requestChatTitle?: string; requestChatDate?: int; + businessBotId?: long; + businessBotManageUrl?: string; }> { - CONSTRUCTOR_ID: 2769817869; + CONSTRUCTOR_ID: 2899733598; SUBCLASS_OF_ID: 4138180484; classType: "constructor"; className: "PeerSettings"; @@ -2531,9 +2605,13 @@ export namespace Api { autoarchived?: boolean; inviteMembers?: boolean; requestChatBroadcast?: boolean; + businessBotPaused?: boolean; + businessBotCanReply?: boolean; geoDistance?: int; requestChatTitle?: string; requestChatDate?: int; + businessBotId?: long; + businessBotManageUrl?: string; } export class WallPaper extends VirtualClass<{ id: long; @@ -2666,6 +2744,8 @@ export namespace Api { wallpaperOverridden?: boolean; contactRequirePremium?: boolean; readDatesPrivate?: boolean; + // flags2: null; + sponsoredEnabled?: boolean; id: long; about?: string; settings: Api.TypePeerSettings; @@ -2685,8 +2765,16 @@ export namespace Api { premiumGifts?: Api.TypePremiumGiftOption[]; wallpaper?: Api.TypeWallPaper; stories?: Api.TypePeerStories; - }> { - CONSTRUCTOR_ID: 3115396204; + businessWorkHours?: Api.TypeBusinessWorkHours; + businessLocation?: Api.TypeBusinessLocation; + businessGreetingMessage?: Api.TypeBusinessGreetingMessage; + businessAwayMessage?: Api.TypeBusinessAwayMessage; + businessIntro?: Api.TypeBusinessIntro; + birthday?: Api.TypeBirthday; + personalChannelId?: long; + personalChannelMessage?: int; + }> { + CONSTRUCTOR_ID: 3432609568; SUBCLASS_OF_ID: 524706233; classType: "constructor"; className: "UserFull"; @@ -2705,6 +2793,8 @@ export namespace Api { wallpaperOverridden?: boolean; contactRequirePremium?: boolean; readDatesPrivate?: boolean; + // flags2: null; + sponsoredEnabled?: boolean; id: long; about?: string; settings: Api.TypePeerSettings; @@ -2724,6 +2814,14 @@ export namespace Api { premiumGifts?: Api.TypePremiumGiftOption[]; wallpaper?: Api.TypeWallPaper; stories?: Api.TypePeerStories; + businessWorkHours?: Api.TypeBusinessWorkHours; + businessLocation?: Api.TypeBusinessLocation; + businessGreetingMessage?: Api.TypeBusinessGreetingMessage; + businessAwayMessage?: Api.TypeBusinessAwayMessage; + businessIntro?: Api.TypeBusinessIntro; + birthday?: Api.TypeBirthday; + personalChannelId?: long; + personalChannelMessage?: int; } export class Contact extends VirtualClass<{ userId: long; @@ -4354,16 +4452,16 @@ export namespace Api { export class UpdateMessageExtendedMedia extends VirtualClass<{ peer: Api.TypePeer; msgId: int; - extendedMedia: Api.TypeMessageExtendedMedia; + extendedMedia: Api.TypeMessageExtendedMedia[]; }> { - CONSTRUCTOR_ID: 1517529484; + CONSTRUCTOR_ID: 3584300836; SUBCLASS_OF_ID: 2676568142; classType: "constructor"; className: "UpdateMessageExtendedMedia"; static fromReader(reader: Reader): UpdateMessageExtendedMedia; peer: Api.TypePeer; msgId: int; - extendedMedia: Api.TypeMessageExtendedMedia; + extendedMedia: Api.TypeMessageExtendedMedia[]; } export class UpdateChannelPinnedTopic extends VirtualClass<{ // flags: null; @@ -4412,16 +4510,6 @@ export namespace Api { className: "UpdateAutoSaveSettings"; static fromReader(reader: Reader): UpdateAutoSaveSettings; } - export class UpdateGroupInvitePrivacyForbidden extends VirtualClass<{ - userId: long; - }> { - CONSTRUCTOR_ID: 3438316246; - SUBCLASS_OF_ID: 2676568142; - classType: "constructor"; - className: "UpdateGroupInvitePrivacyForbidden"; - static fromReader(reader: Reader): UpdateGroupInvitePrivacyForbidden; - userId: long; - } export class UpdateStory extends VirtualClass<{ peer: Api.TypePeer; story: Api.TypeStoryItem; @@ -4597,6 +4685,204 @@ export namespace Api { className: "UpdateSavedReactionTags"; static fromReader(reader: Reader): UpdateSavedReactionTags; } + export class UpdateSmsJob extends VirtualClass<{ + jobId: string; + }> { + CONSTRUCTOR_ID: 4049758676; + SUBCLASS_OF_ID: 2676568142; + classType: "constructor"; + className: "UpdateSmsJob"; + static fromReader(reader: Reader): UpdateSmsJob; + jobId: string; + } + export class UpdateQuickReplies extends VirtualClass<{ + quickReplies: Api.TypeQuickReply[]; + }> { + CONSTRUCTOR_ID: 4182182578; + SUBCLASS_OF_ID: 2676568142; + classType: "constructor"; + className: "UpdateQuickReplies"; + static fromReader(reader: Reader): UpdateQuickReplies; + quickReplies: Api.TypeQuickReply[]; + } + export class UpdateNewQuickReply extends VirtualClass<{ + quickReply: Api.TypeQuickReply; + }> { + CONSTRUCTOR_ID: 4114458391; + SUBCLASS_OF_ID: 2676568142; + classType: "constructor"; + className: "UpdateNewQuickReply"; + static fromReader(reader: Reader): UpdateNewQuickReply; + quickReply: Api.TypeQuickReply; + } + export class UpdateDeleteQuickReply extends VirtualClass<{ + shortcutId: int; + }> { + CONSTRUCTOR_ID: 1407644140; + SUBCLASS_OF_ID: 2676568142; + classType: "constructor"; + className: "UpdateDeleteQuickReply"; + static fromReader(reader: Reader): UpdateDeleteQuickReply; + shortcutId: int; + } + export class UpdateQuickReplyMessage extends VirtualClass<{ + message: Api.TypeMessage; + }> { + CONSTRUCTOR_ID: 1040518415; + SUBCLASS_OF_ID: 2676568142; + classType: "constructor"; + className: "UpdateQuickReplyMessage"; + static fromReader(reader: Reader): UpdateQuickReplyMessage; + message: Api.TypeMessage; + } + export class UpdateDeleteQuickReplyMessages extends VirtualClass<{ + shortcutId: int; + messages: int[]; + }> { + CONSTRUCTOR_ID: 1450174413; + SUBCLASS_OF_ID: 2676568142; + classType: "constructor"; + className: "UpdateDeleteQuickReplyMessages"; + static fromReader(reader: Reader): UpdateDeleteQuickReplyMessages; + shortcutId: int; + messages: int[]; + } + export class UpdateBotBusinessConnect extends VirtualClass<{ + connection: Api.TypeBotBusinessConnection; + qts: int; + }> { + CONSTRUCTOR_ID: 2330315130; + SUBCLASS_OF_ID: 2676568142; + classType: "constructor"; + className: "UpdateBotBusinessConnect"; + static fromReader(reader: Reader): UpdateBotBusinessConnect; + connection: Api.TypeBotBusinessConnection; + qts: int; + } + export class UpdateBotNewBusinessMessage extends VirtualClass<{ + // flags: null; + connectionId: string; + message: Api.TypeMessage; + replyToMessage?: Api.TypeMessage; + qts: int; + }> { + CONSTRUCTOR_ID: 2648388732; + SUBCLASS_OF_ID: 2676568142; + classType: "constructor"; + className: "UpdateBotNewBusinessMessage"; + static fromReader(reader: Reader): UpdateBotNewBusinessMessage; + // flags: null; + connectionId: string; + message: Api.TypeMessage; + replyToMessage?: Api.TypeMessage; + qts: int; + } + export class UpdateBotEditBusinessMessage extends VirtualClass<{ + // flags: null; + connectionId: string; + message: Api.TypeMessage; + replyToMessage?: Api.TypeMessage; + qts: int; + }> { + CONSTRUCTOR_ID: 132077692; + SUBCLASS_OF_ID: 2676568142; + classType: "constructor"; + className: "UpdateBotEditBusinessMessage"; + static fromReader(reader: Reader): UpdateBotEditBusinessMessage; + // flags: null; + connectionId: string; + message: Api.TypeMessage; + replyToMessage?: Api.TypeMessage; + qts: int; + } + export class UpdateBotDeleteBusinessMessage extends VirtualClass<{ + connectionId: string; + peer: Api.TypePeer; + messages: int[]; + qts: int; + }> { + CONSTRUCTOR_ID: 2687146030; + SUBCLASS_OF_ID: 2676568142; + classType: "constructor"; + className: "UpdateBotDeleteBusinessMessage"; + static fromReader(reader: Reader): UpdateBotDeleteBusinessMessage; + connectionId: string; + peer: Api.TypePeer; + messages: int[]; + qts: int; + } + export class UpdateNewStoryReaction extends VirtualClass<{ + storyId: int; + peer: Api.TypePeer; + reaction: Api.TypeReaction; + }> { + CONSTRUCTOR_ID: 405070859; + SUBCLASS_OF_ID: 2676568142; + classType: "constructor"; + className: "UpdateNewStoryReaction"; + static fromReader(reader: Reader): UpdateNewStoryReaction; + storyId: int; + peer: Api.TypePeer; + reaction: Api.TypeReaction; + } + export class UpdateBroadcastRevenueTransactions extends VirtualClass<{ + peer: Api.TypePeer; + balances: Api.TypeBroadcastRevenueBalances; + }> { + CONSTRUCTOR_ID: 3755565557; + SUBCLASS_OF_ID: 2676568142; + classType: "constructor"; + className: "UpdateBroadcastRevenueTransactions"; + static fromReader(reader: Reader): UpdateBroadcastRevenueTransactions; + peer: Api.TypePeer; + balances: Api.TypeBroadcastRevenueBalances; + } + export class UpdateStarsBalance extends VirtualClass<{ + balance: long; + }> { + CONSTRUCTOR_ID: 263737752; + SUBCLASS_OF_ID: 2676568142; + classType: "constructor"; + className: "UpdateStarsBalance"; + static fromReader(reader: Reader): UpdateStarsBalance; + balance: long; + } + export class UpdateBusinessBotCallbackQuery extends VirtualClass<{ + // flags: null; + queryId: long; + userId: long; + connectionId: string; + message: Api.TypeMessage; + replyToMessage?: Api.TypeMessage; + chatInstance: long; + data?: bytes; + }> { + CONSTRUCTOR_ID: 513998247; + SUBCLASS_OF_ID: 2676568142; + classType: "constructor"; + className: "UpdateBusinessBotCallbackQuery"; + static fromReader(reader: Reader): UpdateBusinessBotCallbackQuery; + // flags: null; + queryId: long; + userId: long; + connectionId: string; + message: Api.TypeMessage; + replyToMessage?: Api.TypeMessage; + chatInstance: long; + data?: bytes; + } + export class UpdateStarsRevenueStatus extends VirtualClass<{ + peer: Api.TypePeer; + status: Api.TypeStarsRevenueStatus; + }> { + CONSTRUCTOR_ID: 2776936473; + SUBCLASS_OF_ID: 2676568142; + classType: "constructor"; + className: "UpdateStarsRevenueStatus"; + static fromReader(reader: Reader): UpdateStarsRevenueStatus; + peer: Api.TypePeer; + status: Api.TypeStarsRevenueStatus; + } export class UpdatesTooLong extends VirtualClass { CONSTRUCTOR_ID: 3809980286; SUBCLASS_OF_ID: 2331323052; @@ -5446,6 +5732,13 @@ export namespace Api { className: "InputPrivacyKeyAbout"; static fromReader(reader: Reader): InputPrivacyKeyAbout; } + export class InputPrivacyKeyBirthday extends VirtualClass { + CONSTRUCTOR_ID: 3596227020; + SUBCLASS_OF_ID: 87435256; + classType: "constructor"; + className: "InputPrivacyKeyBirthday"; + static fromReader(reader: Reader): InputPrivacyKeyBirthday; + } export class PrivacyKeyStatusTimestamp extends VirtualClass { CONSTRUCTOR_ID: 3157175088; SUBCLASS_OF_ID: 2185646531; @@ -5516,6 +5809,13 @@ export namespace Api { className: "PrivacyKeyAbout"; static fromReader(reader: Reader): PrivacyKeyAbout; } + export class PrivacyKeyBirthday extends VirtualClass { + CONSTRUCTOR_ID: 536913176; + SUBCLASS_OF_ID: 2185646531; + classType: "constructor"; + className: "PrivacyKeyBirthday"; + static fromReader(reader: Reader): PrivacyKeyBirthday; + } export class InputPrivacyValueAllowContacts extends VirtualClass { CONSTRUCTOR_ID: 218751099; SUBCLASS_OF_ID: 1513843490; @@ -5595,6 +5895,13 @@ export namespace Api { className: "InputPrivacyValueAllowCloseFriends"; static fromReader(reader: Reader): InputPrivacyValueAllowCloseFriends; } + export class InputPrivacyValueAllowPremium extends VirtualClass { + CONSTRUCTOR_ID: 2009975281; + SUBCLASS_OF_ID: 1513843490; + classType: "constructor"; + className: "InputPrivacyValueAllowPremium"; + static fromReader(reader: Reader): InputPrivacyValueAllowPremium; + } export class PrivacyValueAllowContacts extends VirtualClass { CONSTRUCTOR_ID: 4294843308; SUBCLASS_OF_ID: 3954700912; @@ -5670,6 +5977,13 @@ export namespace Api { className: "PrivacyValueAllowCloseFriends"; static fromReader(reader: Reader): PrivacyValueAllowCloseFriends; } + export class PrivacyValueAllowPremium extends VirtualClass { + CONSTRUCTOR_ID: 3974725963; + SUBCLASS_OF_ID: 3954700912; + classType: "constructor"; + className: "PrivacyValueAllowPremium"; + static fromReader(reader: Reader): PrivacyValueAllowPremium; + } export class AccountDaysTTL extends VirtualClass<{ days: int; }> { @@ -6158,11 +6472,10 @@ export namespace Api { archived?: boolean; official?: boolean; masks?: boolean; - animated?: boolean; - videos?: boolean; emojis?: boolean; textColor?: boolean; channelEmojiStatus?: boolean; + creator?: boolean; installedDate?: int; id: long; accessHash: long; @@ -6184,11 +6497,10 @@ export namespace Api { archived?: boolean; official?: boolean; masks?: boolean; - animated?: boolean; - videos?: boolean; emojis?: boolean; textColor?: boolean; channelEmojiStatus?: boolean; + creator?: boolean; installedDate?: int; id: long; accessHash: long; @@ -6447,6 +6759,30 @@ export namespace Api { peerType: Api.TypeRequestPeerType; maxQuantity: int; } + export class InputKeyboardButtonRequestPeer extends VirtualClass<{ + // flags: null; + nameRequested?: boolean; + usernameRequested?: boolean; + photoRequested?: boolean; + text: string; + buttonId: int; + peerType: Api.TypeRequestPeerType; + maxQuantity: int; + }> { + CONSTRUCTOR_ID: 3378916613; + SUBCLASS_OF_ID: 195916963; + classType: "constructor"; + className: "InputKeyboardButtonRequestPeer"; + static fromReader(reader: Reader): InputKeyboardButtonRequestPeer; + // flags: null; + nameRequested?: boolean; + usernameRequested?: boolean; + photoRequested?: boolean; + text: string; + buttonId: int; + peerType: Api.TypeRequestPeerType; + maxQuantity: int; + } export class KeyboardButtonRow extends VirtualClass<{ buttons: Api.TypeKeyboardButton[]; }> { @@ -6768,14 +7104,18 @@ export namespace Api { documentId: long; } export class MessageEntityBlockquote extends VirtualClass<{ + // flags: null; + collapsed?: boolean; offset: int; length: int; }> { - CONSTRUCTOR_ID: 34469328; + CONSTRUCTOR_ID: 4056722092; SUBCLASS_OF_ID: 3479443932; classType: "constructor"; className: "MessageEntityBlockquote"; static fromReader(reader: Reader): MessageEntityBlockquote; + // flags: null; + collapsed?: boolean; offset: int; length: int; } @@ -7665,8 +8005,9 @@ export namespace Api { entities?: Api.TypeMessageEntity[]; media?: Api.TypeInputMedia; date: int; + effect?: long; }> { - CONSTRUCTOR_ID: 1070397423; + CONSTRUCTOR_ID: 761606687; SUBCLASS_OF_ID: 869564229; classType: "constructor"; className: "DraftMessage"; @@ -7679,6 +8020,7 @@ export namespace Api { entities?: Api.TypeMessageEntity[]; media?: Api.TypeInputMedia; date: int; + effect?: long; } export class StickerSetCovered extends VirtualClass<{ set: Api.TypeStickerSet; @@ -8807,8 +9149,9 @@ export namespace Api { protocol: Api.TypePhoneCallProtocol; connections: Api.TypePhoneConnection[]; startDate: int; + customParameters?: Api.TypeDataJSON; }> { - CONSTRUCTOR_ID: 2524937319; + CONSTRUCTOR_ID: 810769141; SUBCLASS_OF_ID: 3296664529; classType: "constructor"; className: "PhoneCall"; @@ -8826,6 +9169,7 @@ export namespace Api { protocol: Api.TypePhoneCallProtocol; connections: Api.TypePhoneConnection[]; startDate: int; + customParameters?: Api.TypeDataJSON; } export class PhoneCallDiscarded extends VirtualClass<{ // flags: null; @@ -10685,15 +11029,15 @@ export namespace Api { views?: int; } export class PollAnswer extends VirtualClass<{ - text: string; + text: Api.TypeTextWithEntities; option: bytes; }> { - CONSTRUCTOR_ID: 1823064809; + CONSTRUCTOR_ID: 4279689930; SUBCLASS_OF_ID: 2124799390; classType: "constructor"; className: "PollAnswer"; static fromReader(reader: Reader): PollAnswer; - text: string; + text: Api.TypeTextWithEntities; option: bytes; } export class Poll extends VirtualClass<{ @@ -10703,12 +11047,12 @@ export namespace Api { publicVoters?: boolean; multipleChoice?: boolean; quiz?: boolean; - question: string; + question: Api.TypeTextWithEntities; answers: Api.TypePollAnswer[]; closePeriod?: int; closeDate?: int; }> { - CONSTRUCTOR_ID: 2262925665; + CONSTRUCTOR_ID: 1484026161; SUBCLASS_OF_ID: 613307771; classType: "constructor"; className: "Poll"; @@ -10719,7 +11063,7 @@ export namespace Api { publicVoters?: boolean; multipleChoice?: boolean; quiz?: boolean; - question: string; + question: Api.TypeTextWithEntities; answers: Api.TypePollAnswer[]; closePeriod?: int; closeDate?: int; @@ -10915,6 +11259,7 @@ export namespace Api { allowAppHash?: boolean; allowMissedCall?: boolean; allowFirebase?: boolean; + unknownNumber?: boolean; logoutTokens?: bytes[]; token?: string; appSandbox?: Bool; @@ -10930,6 +11275,7 @@ export namespace Api { allowAppHash?: boolean; allowMissedCall?: boolean; allowFirebase?: boolean; + unknownNumber?: boolean; logoutTokens?: bytes[]; token?: string; appSandbox?: Bool; @@ -11355,6 +11701,22 @@ export namespace Api { id: int; story?: Api.TypeStoryItem; } + export class WebPageAttributeStickerSet extends VirtualClass<{ + // flags: null; + emojis?: boolean; + textColor?: boolean; + stickers: Api.TypeDocument[]; + }> { + CONSTRUCTOR_ID: 1355547603; + SUBCLASS_OF_ID: 2949638599; + classType: "constructor"; + className: "WebPageAttributeStickerSet"; + static fromReader(reader: Reader): WebPageAttributeStickerSet; + // flags: null; + emojis?: boolean; + textColor?: boolean; + stickers: Api.TypeDocument[]; + } export class BankCardOpenUrl extends VirtualClass<{ url: string; name: string; @@ -11380,11 +11742,12 @@ export namespace Api { id: int; title: string; emoticon?: string; + color?: int; pinnedPeers: Api.TypeInputPeer[]; includePeers: Api.TypeInputPeer[]; excludePeers: Api.TypeInputPeer[]; }> { - CONSTRUCTOR_ID: 1949890536; + CONSTRUCTOR_ID: 1605718587; SUBCLASS_OF_ID: 1764475991; classType: "constructor"; className: "DialogFilter"; @@ -11401,6 +11764,7 @@ export namespace Api { id: int; title: string; emoticon?: string; + color?: int; pinnedPeers: Api.TypeInputPeer[]; includePeers: Api.TypeInputPeer[]; excludePeers: Api.TypeInputPeer[]; @@ -11418,10 +11782,11 @@ export namespace Api { id: int; title: string; emoticon?: string; + color?: int; pinnedPeers: Api.TypeInputPeer[]; includePeers: Api.TypeInputPeer[]; }> { - CONSTRUCTOR_ID: 3595175080; + CONSTRUCTOR_ID: 2682424996; SUBCLASS_OF_ID: 1764475991; classType: "constructor"; className: "DialogFilterChatlist"; @@ -11431,6 +11796,7 @@ export namespace Api { id: int; title: string; emoticon?: string; + color?: int; pinnedPeers: Api.TypeInputPeer[]; includePeers: Api.TypeInputPeer[]; } @@ -12011,40 +12377,34 @@ export namespace Api { export class SponsoredMessage extends VirtualClass<{ // flags: null; recommended?: boolean; - showPeerPhoto?: boolean; + canReport?: boolean; randomId: bytes; - fromId?: Api.TypePeer; - chatInvite?: Api.TypeChatInvite; - chatInviteHash?: string; - channelPost?: int; - startParam?: string; - webpage?: Api.TypeSponsoredWebPage; - app?: Api.TypeBotApp; + url: string; + title: string; message: string; entities?: Api.TypeMessageEntity[]; - buttonText?: string; + photo?: Api.TypePhoto; + color?: Api.TypePeerColor; + buttonText: string; sponsorInfo?: string; additionalInfo?: string; }> { - CONSTRUCTOR_ID: 3981673463; + CONSTRUCTOR_ID: 3186488678; SUBCLASS_OF_ID: 3780630582; classType: "constructor"; className: "SponsoredMessage"; static fromReader(reader: Reader): SponsoredMessage; // flags: null; recommended?: boolean; - showPeerPhoto?: boolean; + canReport?: boolean; randomId: bytes; - fromId?: Api.TypePeer; - chatInvite?: Api.TypeChatInvite; - chatInviteHash?: string; - channelPost?: int; - startParam?: string; - webpage?: Api.TypeSponsoredWebPage; - app?: Api.TypeBotApp; + url: string; + title: string; message: string; entities?: Api.TypeMessageEntity[]; - buttonText?: string; + photo?: Api.TypePhoto; + color?: Api.TypePeerColor; + buttonText: string; sponsorInfo?: string; additionalInfo?: string; } @@ -12274,25 +12634,19 @@ export namespace Api { users: Api.TypeUser[]; } export class WebViewResultUrl extends VirtualClass<{ - queryId: long; + // flags: null; + fullsize?: boolean; + queryId?: long; url: string; }> { - CONSTRUCTOR_ID: 202659196; + CONSTRUCTOR_ID: 1294139288; SUBCLASS_OF_ID: 2479793990; classType: "constructor"; className: "WebViewResultUrl"; static fromReader(reader: Reader): WebViewResultUrl; - queryId: long; - url: string; - } - export class SimpleWebViewResultUrl extends VirtualClass<{ - url: string; - }> { - CONSTRUCTOR_ID: 2284811963; - SUBCLASS_OF_ID: 367977435; - classType: "constructor"; - className: "SimpleWebViewResultUrl"; - static fromReader(reader: Reader): SimpleWebViewResultUrl; + // flags: null; + fullsize?: boolean; + queryId?: long; url: string; } export class WebViewMessageSent extends VirtualClass<{ @@ -12438,6 +12792,16 @@ export namespace Api { purpose: Api.TypeInputStorePaymentPurpose; option: Api.TypePremiumGiftCodeOption; } + export class InputInvoiceStars extends VirtualClass<{ + option: Api.TypeStarsTopupOption; + }> { + CONSTRUCTOR_ID: 497236696; + SUBCLASS_OF_ID: 1919851518; + classType: "constructor"; + className: "InputInvoiceStars"; + static fromReader(reader: Reader): InputInvoiceStars; + option: Api.TypeStarsTopupOption; + } export class InputStorePaymentPremiumSubscription extends VirtualClass<{ // flags: null; restore?: boolean; @@ -12514,6 +12878,22 @@ export namespace Api { currency: string; amount: long; } + export class InputStorePaymentStars extends VirtualClass<{ + // flags: null; + stars: long; + currency: string; + amount: long; + }> { + CONSTRUCTOR_ID: 1326377183; + SUBCLASS_OF_ID: 3886290765; + classType: "constructor"; + className: "InputStorePaymentStars"; + static fromReader(reader: Reader): InputStorePaymentStars; + // flags: null; + stars: long; + currency: string; + amount: long; + } export class PremiumGiftOption extends VirtualClass<{ // flags: null; months: int; @@ -12950,6 +13330,32 @@ export namespace Api { iconEmojiId: long; emoticons: string[]; } + export class EmojiGroupGreeting extends VirtualClass<{ + title: string; + iconEmojiId: long; + emoticons: string[]; + }> { + CONSTRUCTOR_ID: 2161274055; + SUBCLASS_OF_ID: 1440784787; + classType: "constructor"; + className: "EmojiGroupGreeting"; + static fromReader(reader: Reader): EmojiGroupGreeting; + title: string; + iconEmojiId: long; + emoticons: string[]; + } + export class EmojiGroupPremium extends VirtualClass<{ + title: string; + iconEmojiId: long; + }> { + CONSTRUCTOR_ID: 154914612; + SUBCLASS_OF_ID: 1440784787; + classType: "constructor"; + className: "EmojiGroupPremium"; + static fromReader(reader: Reader): EmojiGroupPremium; + title: string; + iconEmojiId: long; + } export class TextWithEntities extends VirtualClass<{ text: string; entities: Api.TypeMessageEntity[]; @@ -13047,22 +13453,12 @@ export namespace Api { document?: Api.TypeDocument; hash: long; } - export class AppWebViewResultUrl extends VirtualClass<{ + export class InlineBotWebView extends VirtualClass<{ + text: string; url: string; }> { - CONSTRUCTOR_ID: 1008422669; - SUBCLASS_OF_ID: 472163347; - classType: "constructor"; - className: "AppWebViewResultUrl"; - static fromReader(reader: Reader): AppWebViewResultUrl; - url: string; - } - export class InlineBotWebView extends VirtualClass<{ - text: string; - url: string; - }> { - CONSTRUCTOR_ID: 3044185557; - SUBCLASS_OF_ID: 1826625002; + CONSTRUCTOR_ID: 3044185557; + SUBCLASS_OF_ID: 1826625002; classType: "constructor"; className: "InlineBotWebView"; static fromReader(reader: Reader): InlineBotWebView; @@ -13147,22 +13543,6 @@ export namespace Api { options: bytes[]; date: int; } - export class SponsoredWebPage extends VirtualClass<{ - // flags: null; - url: string; - siteName: string; - photo?: Api.TypePhoto; - }> { - CONSTRUCTOR_ID: 1035529315; - SUBCLASS_OF_ID: 3456017748; - classType: "constructor"; - className: "SponsoredWebPage"; - static fromReader(reader: Reader): SponsoredWebPage; - // flags: null; - url: string; - siteName: string; - photo?: Api.TypePhoto; - } export class StoryViews extends VirtualClass<{ // flags: null; hasViewers?: boolean; @@ -13378,22 +13758,26 @@ export namespace Api { cooldownUntilDate?: int; } export class MediaAreaCoordinates extends VirtualClass<{ + // flags: null; x: double; y: double; w: double; h: double; rotation: double; + radius?: double; }> { - CONSTRUCTOR_ID: 64088654; + CONSTRUCTOR_ID: 3486113794; SUBCLASS_OF_ID: 491031609; classType: "constructor"; className: "MediaAreaCoordinates"; static fromReader(reader: Reader): MediaAreaCoordinates; + // flags: null; x: double; y: double; w: double; h: double; rotation: double; + radius?: double; } export class MediaAreaVenue extends VirtualClass<{ coordinates: Api.TypeMediaAreaCoordinates; @@ -13432,16 +13816,20 @@ export namespace Api { resultId: string; } export class MediaAreaGeoPoint extends VirtualClass<{ + // flags: null; coordinates: Api.TypeMediaAreaCoordinates; geo: Api.TypeGeoPoint; + address?: Api.TypeGeoPointAddress; }> { - CONSTRUCTOR_ID: 3750443810; + CONSTRUCTOR_ID: 3402974509; SUBCLASS_OF_ID: 4084038642; classType: "constructor"; className: "MediaAreaGeoPoint"; static fromReader(reader: Reader): MediaAreaGeoPoint; + // flags: null; coordinates: Api.TypeMediaAreaCoordinates; geo: Api.TypeGeoPoint; + address?: Api.TypeGeoPointAddress; } export class MediaAreaSuggestedReaction extends VirtualClass<{ // flags: null; @@ -13489,6 +13877,18 @@ export namespace Api { channel: Api.TypeInputChannel; msgId: int; } + export class MediaAreaUrl extends VirtualClass<{ + coordinates: Api.TypeMediaAreaCoordinates; + url: string; + }> { + CONSTRUCTOR_ID: 926421125; + SUBCLASS_OF_ID: 4084038642; + classType: "constructor"; + className: "MediaAreaUrl"; + static fromReader(reader: Reader): MediaAreaUrl; + coordinates: Api.TypeMediaAreaCoordinates; + url: string; + } export class PeerStories extends VirtualClass<{ // flags: null; peer: Api.TypePeer; @@ -13696,66 +14096,908 @@ export namespace Api { export class StoryReactionPublicForward extends VirtualClass<{ message: Api.TypeMessage; }> { - CONSTRUCTOR_ID: 3148555843; - SUBCLASS_OF_ID: 3379257259; + CONSTRUCTOR_ID: 3148555843; + SUBCLASS_OF_ID: 3379257259; + classType: "constructor"; + className: "StoryReactionPublicForward"; + static fromReader(reader: Reader): StoryReactionPublicForward; + message: Api.TypeMessage; + } + export class StoryReactionPublicRepost extends VirtualClass<{ + peerId: Api.TypePeer; + story: Api.TypeStoryItem; + }> { + CONSTRUCTOR_ID: 3486322451; + SUBCLASS_OF_ID: 3379257259; + classType: "constructor"; + className: "StoryReactionPublicRepost"; + static fromReader(reader: Reader): StoryReactionPublicRepost; + peerId: Api.TypePeer; + story: Api.TypeStoryItem; + } + export class SavedDialog extends VirtualClass<{ + // flags: null; + pinned?: boolean; + peer: Api.TypePeer; + topMessage: int; + }> { + CONSTRUCTOR_ID: 3179793260; + SUBCLASS_OF_ID: 599418118; + classType: "constructor"; + className: "SavedDialog"; + static fromReader(reader: Reader): SavedDialog; + // flags: null; + pinned?: boolean; + peer: Api.TypePeer; + topMessage: int; + } + export class SavedReactionTag extends VirtualClass<{ + // flags: null; + reaction: Api.TypeReaction; + title?: string; + count: int; + }> { + CONSTRUCTOR_ID: 3413112872; + SUBCLASS_OF_ID: 3983021080; + classType: "constructor"; + className: "SavedReactionTag"; + static fromReader(reader: Reader): SavedReactionTag; + // flags: null; + reaction: Api.TypeReaction; + title?: string; + count: int; + } + export class OutboxReadDate extends VirtualClass<{ + date: int; + }> { + CONSTRUCTOR_ID: 1001931436; + SUBCLASS_OF_ID: 1867613126; + classType: "constructor"; + className: "OutboxReadDate"; + static fromReader(reader: Reader): OutboxReadDate; + date: int; + } + export class SmsJob extends VirtualClass<{ + jobId: string; + phoneNumber: string; + text: string; + }> { + CONSTRUCTOR_ID: 3869372088; + SUBCLASS_OF_ID: 522459262; + classType: "constructor"; + className: "SmsJob"; + static fromReader(reader: Reader): SmsJob; + jobId: string; + phoneNumber: string; + text: string; + } + export class BusinessWeeklyOpen extends VirtualClass<{ + startMinute: int; + endMinute: int; + }> { + CONSTRUCTOR_ID: 302717625; + SUBCLASS_OF_ID: 406857255; + classType: "constructor"; + className: "BusinessWeeklyOpen"; + static fromReader(reader: Reader): BusinessWeeklyOpen; + startMinute: int; + endMinute: int; + } + export class BusinessWorkHours extends VirtualClass<{ + // flags: null; + openNow?: boolean; + timezoneId: string; + weeklyOpen: Api.TypeBusinessWeeklyOpen[]; + }> { + CONSTRUCTOR_ID: 2358423704; + SUBCLASS_OF_ID: 1704962053; + classType: "constructor"; + className: "BusinessWorkHours"; + static fromReader(reader: Reader): BusinessWorkHours; + // flags: null; + openNow?: boolean; + timezoneId: string; + weeklyOpen: Api.TypeBusinessWeeklyOpen[]; + } + export class BusinessLocation extends VirtualClass<{ + // flags: null; + geoPoint?: Api.TypeGeoPoint; + address: string; + }> { + CONSTRUCTOR_ID: 2891717367; + SUBCLASS_OF_ID: 2578238160; + classType: "constructor"; + className: "BusinessLocation"; + static fromReader(reader: Reader): BusinessLocation; + // flags: null; + geoPoint?: Api.TypeGeoPoint; + address: string; + } + export class InputBusinessRecipients extends VirtualClass<{ + // flags: null; + existingChats?: boolean; + newChats?: boolean; + contacts?: boolean; + nonContacts?: boolean; + excludeSelected?: boolean; + users?: Api.TypeInputUser[]; + }> { + CONSTRUCTOR_ID: 1871393450; + SUBCLASS_OF_ID: 226420031; + classType: "constructor"; + className: "InputBusinessRecipients"; + static fromReader(reader: Reader): InputBusinessRecipients; + // flags: null; + existingChats?: boolean; + newChats?: boolean; + contacts?: boolean; + nonContacts?: boolean; + excludeSelected?: boolean; + users?: Api.TypeInputUser[]; + } + export class BusinessRecipients extends VirtualClass<{ + // flags: null; + existingChats?: boolean; + newChats?: boolean; + contacts?: boolean; + nonContacts?: boolean; + excludeSelected?: boolean; + users?: long[]; + }> { + CONSTRUCTOR_ID: 554733559; + SUBCLASS_OF_ID: 1384459846; + classType: "constructor"; + className: "BusinessRecipients"; + static fromReader(reader: Reader): BusinessRecipients; + // flags: null; + existingChats?: boolean; + newChats?: boolean; + contacts?: boolean; + nonContacts?: boolean; + excludeSelected?: boolean; + users?: long[]; + } + export class BusinessAwayMessageScheduleAlways extends VirtualClass { + CONSTRUCTOR_ID: 3384402617; + SUBCLASS_OF_ID: 672702558; + classType: "constructor"; + className: "BusinessAwayMessageScheduleAlways"; + static fromReader(reader: Reader): BusinessAwayMessageScheduleAlways; + } + export class BusinessAwayMessageScheduleOutsideWorkHours extends VirtualClass { + CONSTRUCTOR_ID: 3287479553; + SUBCLASS_OF_ID: 672702558; + classType: "constructor"; + className: "BusinessAwayMessageScheduleOutsideWorkHours"; + static fromReader( + reader: Reader + ): BusinessAwayMessageScheduleOutsideWorkHours; + } + export class BusinessAwayMessageScheduleCustom extends VirtualClass<{ + startDate: int; + endDate: int; + }> { + CONSTRUCTOR_ID: 3427638988; + SUBCLASS_OF_ID: 672702558; + classType: "constructor"; + className: "BusinessAwayMessageScheduleCustom"; + static fromReader(reader: Reader): BusinessAwayMessageScheduleCustom; + startDate: int; + endDate: int; + } + export class InputBusinessGreetingMessage extends VirtualClass<{ + shortcutId: int; + recipients: Api.TypeInputBusinessRecipients; + noActivityDays: int; + }> { + CONSTRUCTOR_ID: 26528571; + SUBCLASS_OF_ID: 1652088029; + classType: "constructor"; + className: "InputBusinessGreetingMessage"; + static fromReader(reader: Reader): InputBusinessGreetingMessage; + shortcutId: int; + recipients: Api.TypeInputBusinessRecipients; + noActivityDays: int; + } + export class BusinessGreetingMessage extends VirtualClass<{ + shortcutId: int; + recipients: Api.TypeBusinessRecipients; + noActivityDays: int; + }> { + CONSTRUCTOR_ID: 3843664811; + SUBCLASS_OF_ID: 3007638222; + classType: "constructor"; + className: "BusinessGreetingMessage"; + static fromReader(reader: Reader): BusinessGreetingMessage; + shortcutId: int; + recipients: Api.TypeBusinessRecipients; + noActivityDays: int; + } + export class InputBusinessAwayMessage extends VirtualClass<{ + // flags: null; + offlineOnly?: boolean; + shortcutId: int; + schedule: Api.TypeBusinessAwayMessageSchedule; + recipients: Api.TypeInputBusinessRecipients; + }> { + CONSTRUCTOR_ID: 2200008160; + SUBCLASS_OF_ID: 3629489271; + classType: "constructor"; + className: "InputBusinessAwayMessage"; + static fromReader(reader: Reader): InputBusinessAwayMessage; + // flags: null; + offlineOnly?: boolean; + shortcutId: int; + schedule: Api.TypeBusinessAwayMessageSchedule; + recipients: Api.TypeInputBusinessRecipients; + } + export class BusinessAwayMessage extends VirtualClass<{ + // flags: null; + offlineOnly?: boolean; + shortcutId: int; + schedule: Api.TypeBusinessAwayMessageSchedule; + recipients: Api.TypeBusinessRecipients; + }> { + CONSTRUCTOR_ID: 4011158108; + SUBCLASS_OF_ID: 4057181732; + classType: "constructor"; + className: "BusinessAwayMessage"; + static fromReader(reader: Reader): BusinessAwayMessage; + // flags: null; + offlineOnly?: boolean; + shortcutId: int; + schedule: Api.TypeBusinessAwayMessageSchedule; + recipients: Api.TypeBusinessRecipients; + } + export class Timezone extends VirtualClass<{ + id: string; + name: string; + utcOffset: int; + }> { + CONSTRUCTOR_ID: 4287793653; + SUBCLASS_OF_ID: 3463958721; + classType: "constructor"; + className: "Timezone"; + static fromReader(reader: Reader): Timezone; + id: string; + name: string; + utcOffset: int; + } + export class QuickReply extends VirtualClass<{ + shortcutId: int; + shortcut: string; + topMessage: int; + count: int; + }> { + CONSTRUCTOR_ID: 110563371; + SUBCLASS_OF_ID: 3806990098; + classType: "constructor"; + className: "QuickReply"; + static fromReader(reader: Reader): QuickReply; + shortcutId: int; + shortcut: string; + topMessage: int; + count: int; + } + export class InputQuickReplyShortcut extends VirtualClass<{ + shortcut: string; + }> { + CONSTRUCTOR_ID: 609840449; + SUBCLASS_OF_ID: 2775088215; + classType: "constructor"; + className: "InputQuickReplyShortcut"; + static fromReader(reader: Reader): InputQuickReplyShortcut; + shortcut: string; + } + export class InputQuickReplyShortcutId extends VirtualClass<{ + shortcutId: int; + }> { + CONSTRUCTOR_ID: 18418929; + SUBCLASS_OF_ID: 2775088215; + classType: "constructor"; + className: "InputQuickReplyShortcutId"; + static fromReader(reader: Reader): InputQuickReplyShortcutId; + shortcutId: int; + } + export class ConnectedBot extends VirtualClass<{ + // flags: null; + canReply?: boolean; + botId: long; + recipients: Api.TypeBusinessBotRecipients; + }> { + CONSTRUCTOR_ID: 3171321345; + SUBCLASS_OF_ID: 904403870; + classType: "constructor"; + className: "ConnectedBot"; + static fromReader(reader: Reader): ConnectedBot; + // flags: null; + canReply?: boolean; + botId: long; + recipients: Api.TypeBusinessBotRecipients; + } + export class Birthday extends VirtualClass<{ + // flags: null; + day: int; + month: int; + year?: int; + }> { + CONSTRUCTOR_ID: 1821253126; + SUBCLASS_OF_ID: 3196048996; + classType: "constructor"; + className: "Birthday"; + static fromReader(reader: Reader): Birthday; + // flags: null; + day: int; + month: int; + year?: int; + } + export class BotBusinessConnection extends VirtualClass<{ + // flags: null; + canReply?: boolean; + disabled?: boolean; + connectionId: string; + userId: long; + dcId: int; + date: int; + }> { + CONSTRUCTOR_ID: 2305045428; + SUBCLASS_OF_ID: 2601715014; + classType: "constructor"; + className: "BotBusinessConnection"; + static fromReader(reader: Reader): BotBusinessConnection; + // flags: null; + canReply?: boolean; + disabled?: boolean; + connectionId: string; + userId: long; + dcId: int; + date: int; + } + export class InputBusinessIntro extends VirtualClass<{ + // flags: null; + title: string; + description: string; + sticker?: Api.TypeInputDocument; + }> { + CONSTRUCTOR_ID: 163867085; + SUBCLASS_OF_ID: 1683650173; + classType: "constructor"; + className: "InputBusinessIntro"; + static fromReader(reader: Reader): InputBusinessIntro; + // flags: null; + title: string; + description: string; + sticker?: Api.TypeInputDocument; + } + export class BusinessIntro extends VirtualClass<{ + // flags: null; + title: string; + description: string; + sticker?: Api.TypeDocument; + }> { + CONSTRUCTOR_ID: 1510606445; + SUBCLASS_OF_ID: 1694815175; + classType: "constructor"; + className: "BusinessIntro"; + static fromReader(reader: Reader): BusinessIntro; + // flags: null; + title: string; + description: string; + sticker?: Api.TypeDocument; + } + export class InputCollectibleUsername extends VirtualClass<{ + username: string; + }> { + CONSTRUCTOR_ID: 3818152105; + SUBCLASS_OF_ID: 705659371; + classType: "constructor"; + className: "InputCollectibleUsername"; + static fromReader(reader: Reader): InputCollectibleUsername; + username: string; + } + export class InputCollectiblePhone extends VirtualClass<{ + phone: string; + }> { + CONSTRUCTOR_ID: 2732725412; + SUBCLASS_OF_ID: 705659371; + classType: "constructor"; + className: "InputCollectiblePhone"; + static fromReader(reader: Reader): InputCollectiblePhone; + phone: string; + } + export class InputBusinessBotRecipients extends VirtualClass<{ + // flags: null; + existingChats?: boolean; + newChats?: boolean; + contacts?: boolean; + nonContacts?: boolean; + excludeSelected?: boolean; + users?: Api.TypeInputUser[]; + excludeUsers?: Api.TypeInputUser[]; + }> { + CONSTRUCTOR_ID: 3303379486; + SUBCLASS_OF_ID: 2849240411; + classType: "constructor"; + className: "InputBusinessBotRecipients"; + static fromReader(reader: Reader): InputBusinessBotRecipients; + // flags: null; + existingChats?: boolean; + newChats?: boolean; + contacts?: boolean; + nonContacts?: boolean; + excludeSelected?: boolean; + users?: Api.TypeInputUser[]; + excludeUsers?: Api.TypeInputUser[]; + } + export class BusinessBotRecipients extends VirtualClass<{ + // flags: null; + existingChats?: boolean; + newChats?: boolean; + contacts?: boolean; + nonContacts?: boolean; + excludeSelected?: boolean; + users?: long[]; + excludeUsers?: long[]; + }> { + CONSTRUCTOR_ID: 3096245107; + SUBCLASS_OF_ID: 4036133834; + classType: "constructor"; + className: "BusinessBotRecipients"; + static fromReader(reader: Reader): BusinessBotRecipients; + // flags: null; + existingChats?: boolean; + newChats?: boolean; + contacts?: boolean; + nonContacts?: boolean; + excludeSelected?: boolean; + users?: long[]; + excludeUsers?: long[]; + } + export class ContactBirthday extends VirtualClass<{ + contactId: long; + birthday: Api.TypeBirthday; + }> { + CONSTRUCTOR_ID: 496600883; + SUBCLASS_OF_ID: 3638372358; + classType: "constructor"; + className: "ContactBirthday"; + static fromReader(reader: Reader): ContactBirthday; + contactId: long; + birthday: Api.TypeBirthday; + } + export class MissingInvitee extends VirtualClass<{ + // flags: null; + premiumWouldAllowInvite?: boolean; + premiumRequiredForPm?: boolean; + userId: long; + }> { + CONSTRUCTOR_ID: 1653379620; + SUBCLASS_OF_ID: 1552723164; + classType: "constructor"; + className: "MissingInvitee"; + static fromReader(reader: Reader): MissingInvitee; + // flags: null; + premiumWouldAllowInvite?: boolean; + premiumRequiredForPm?: boolean; + userId: long; + } + export class InputBusinessChatLink extends VirtualClass<{ + // flags: null; + message: string; + entities?: Api.TypeMessageEntity[]; + title?: string; + }> { + CONSTRUCTOR_ID: 292003751; + SUBCLASS_OF_ID: 2875655443; + classType: "constructor"; + className: "InputBusinessChatLink"; + static fromReader(reader: Reader): InputBusinessChatLink; + // flags: null; + message: string; + entities?: Api.TypeMessageEntity[]; + title?: string; + } + export class BusinessChatLink extends VirtualClass<{ + // flags: null; + link: string; + message: string; + entities?: Api.TypeMessageEntity[]; + title?: string; + views: int; + }> { + CONSTRUCTOR_ID: 3031328367; + SUBCLASS_OF_ID: 1007504011; + classType: "constructor"; + className: "BusinessChatLink"; + static fromReader(reader: Reader): BusinessChatLink; + // flags: null; + link: string; + message: string; + entities?: Api.TypeMessageEntity[]; + title?: string; + views: int; + } + export class RequestedPeerUser extends VirtualClass<{ + // flags: null; + userId: long; + firstName?: string; + lastName?: string; + username?: string; + photo?: Api.TypePhoto; + }> { + CONSTRUCTOR_ID: 3593466986; + SUBCLASS_OF_ID: 3263724560; + classType: "constructor"; + className: "RequestedPeerUser"; + static fromReader(reader: Reader): RequestedPeerUser; + // flags: null; + userId: long; + firstName?: string; + lastName?: string; + username?: string; + photo?: Api.TypePhoto; + } + export class RequestedPeerChat extends VirtualClass<{ + // flags: null; + chatId: long; + title?: string; + photo?: Api.TypePhoto; + }> { + CONSTRUCTOR_ID: 1929860175; + SUBCLASS_OF_ID: 3263724560; + classType: "constructor"; + className: "RequestedPeerChat"; + static fromReader(reader: Reader): RequestedPeerChat; + // flags: null; + chatId: long; + title?: string; + photo?: Api.TypePhoto; + } + export class RequestedPeerChannel extends VirtualClass<{ + // flags: null; + channelId: long; + title?: string; + username?: string; + photo?: Api.TypePhoto; + }> { + CONSTRUCTOR_ID: 2342781924; + SUBCLASS_OF_ID: 3263724560; + classType: "constructor"; + className: "RequestedPeerChannel"; + static fromReader(reader: Reader): RequestedPeerChannel; + // flags: null; + channelId: long; + title?: string; + username?: string; + photo?: Api.TypePhoto; + } + export class SponsoredMessageReportOption extends VirtualClass<{ + text: string; + option: bytes; + }> { + CONSTRUCTOR_ID: 1124938064; + SUBCLASS_OF_ID: 3711084312; + classType: "constructor"; + className: "SponsoredMessageReportOption"; + static fromReader(reader: Reader): SponsoredMessageReportOption; + text: string; + option: bytes; + } + export class BroadcastRevenueTransactionProceeds extends VirtualClass<{ + amount: long; + fromDate: int; + toDate: int; + }> { + CONSTRUCTOR_ID: 1434332356; + SUBCLASS_OF_ID: 1962590909; + classType: "constructor"; + className: "BroadcastRevenueTransactionProceeds"; + static fromReader(reader: Reader): BroadcastRevenueTransactionProceeds; + amount: long; + fromDate: int; + toDate: int; + } + export class BroadcastRevenueTransactionWithdrawal extends VirtualClass<{ + // flags: null; + pending?: boolean; + failed?: boolean; + amount: long; + date: int; + provider: string; + transactionDate?: int; + transactionUrl?: string; + }> { + CONSTRUCTOR_ID: 1515784568; + SUBCLASS_OF_ID: 1962590909; + classType: "constructor"; + className: "BroadcastRevenueTransactionWithdrawal"; + static fromReader( + reader: Reader + ): BroadcastRevenueTransactionWithdrawal; + // flags: null; + pending?: boolean; + failed?: boolean; + amount: long; + date: int; + provider: string; + transactionDate?: int; + transactionUrl?: string; + } + export class BroadcastRevenueTransactionRefund extends VirtualClass<{ + amount: long; + date: int; + provider: string; + }> { + CONSTRUCTOR_ID: 1121127726; + SUBCLASS_OF_ID: 1962590909; + classType: "constructor"; + className: "BroadcastRevenueTransactionRefund"; + static fromReader(reader: Reader): BroadcastRevenueTransactionRefund; + amount: long; + date: int; + provider: string; + } + export class ReactionNotificationsFromContacts extends VirtualClass { + CONSTRUCTOR_ID: 3133384218; + SUBCLASS_OF_ID: 878672192; + classType: "constructor"; + className: "ReactionNotificationsFromContacts"; + static fromReader(reader: Reader): ReactionNotificationsFromContacts; + } + export class ReactionNotificationsFromAll extends VirtualClass { + CONSTRUCTOR_ID: 1268654752; + SUBCLASS_OF_ID: 878672192; + classType: "constructor"; + className: "ReactionNotificationsFromAll"; + static fromReader(reader: Reader): ReactionNotificationsFromAll; + } + export class ReactionsNotifySettings extends VirtualClass<{ + // flags: null; + messagesNotifyFrom?: Api.TypeReactionNotificationsFrom; + storiesNotifyFrom?: Api.TypeReactionNotificationsFrom; + sound: Api.TypeNotificationSound; + showPreviews: Bool; + }> { + CONSTRUCTOR_ID: 1457736048; + SUBCLASS_OF_ID: 2382301265; + classType: "constructor"; + className: "ReactionsNotifySettings"; + static fromReader(reader: Reader): ReactionsNotifySettings; + // flags: null; + messagesNotifyFrom?: Api.TypeReactionNotificationsFrom; + storiesNotifyFrom?: Api.TypeReactionNotificationsFrom; + sound: Api.TypeNotificationSound; + showPreviews: Bool; + } + export class BroadcastRevenueBalances extends VirtualClass<{ + currentBalance: long; + availableBalance: long; + overallRevenue: long; + }> { + CONSTRUCTOR_ID: 2218324422; + SUBCLASS_OF_ID: 365072370; + classType: "constructor"; + className: "BroadcastRevenueBalances"; + static fromReader(reader: Reader): BroadcastRevenueBalances; + currentBalance: long; + availableBalance: long; + overallRevenue: long; + } + export class AvailableEffect extends VirtualClass<{ + // flags: null; + premiumRequired?: boolean; + id: long; + emoticon: string; + staticIconId?: long; + effectStickerId: long; + effectAnimationId?: long; + }> { + CONSTRUCTOR_ID: 2479088254; + SUBCLASS_OF_ID: 2556047233; + classType: "constructor"; + className: "AvailableEffect"; + static fromReader(reader: Reader): AvailableEffect; + // flags: null; + premiumRequired?: boolean; + id: long; + emoticon: string; + staticIconId?: long; + effectStickerId: long; + effectAnimationId?: long; + } + export class FactCheck extends VirtualClass<{ + // flags: null; + needCheck?: boolean; + country?: string; + text?: Api.TypeTextWithEntities; + hash: long; + }> { + CONSTRUCTOR_ID: 3097230543; + SUBCLASS_OF_ID: 1178641315; + classType: "constructor"; + className: "FactCheck"; + static fromReader(reader: Reader): FactCheck; + // flags: null; + needCheck?: boolean; + country?: string; + text?: Api.TypeTextWithEntities; + hash: long; + } + export class StarsTransactionPeerUnsupported extends VirtualClass { + CONSTRUCTOR_ID: 2515714020; + SUBCLASS_OF_ID: 1102483843; + classType: "constructor"; + className: "StarsTransactionPeerUnsupported"; + static fromReader(reader: Reader): StarsTransactionPeerUnsupported; + } + export class StarsTransactionPeerAppStore extends VirtualClass { + CONSTRUCTOR_ID: 3025646453; + SUBCLASS_OF_ID: 1102483843; + classType: "constructor"; + className: "StarsTransactionPeerAppStore"; + static fromReader(reader: Reader): StarsTransactionPeerAppStore; + } + export class StarsTransactionPeerPlayMarket extends VirtualClass { + CONSTRUCTOR_ID: 2069236235; + SUBCLASS_OF_ID: 1102483843; + classType: "constructor"; + className: "StarsTransactionPeerPlayMarket"; + static fromReader(reader: Reader): StarsTransactionPeerPlayMarket; + } + export class StarsTransactionPeerPremiumBot extends VirtualClass { + CONSTRUCTOR_ID: 621656824; + SUBCLASS_OF_ID: 1102483843; + classType: "constructor"; + className: "StarsTransactionPeerPremiumBot"; + static fromReader(reader: Reader): StarsTransactionPeerPremiumBot; + } + export class StarsTransactionPeerFragment extends VirtualClass { + CONSTRUCTOR_ID: 3912227074; + SUBCLASS_OF_ID: 1102483843; + classType: "constructor"; + className: "StarsTransactionPeerFragment"; + static fromReader(reader: Reader): StarsTransactionPeerFragment; + } + export class StarsTransactionPeer extends VirtualClass<{ + peer: Api.TypePeer; + }> { + CONSTRUCTOR_ID: 3624771933; + SUBCLASS_OF_ID: 1102483843; + classType: "constructor"; + className: "StarsTransactionPeer"; + static fromReader(reader: Reader): StarsTransactionPeer; + peer: Api.TypePeer; + } + export class StarsTransactionPeerAds extends VirtualClass { + CONSTRUCTOR_ID: 1617438738; + SUBCLASS_OF_ID: 1102483843; + classType: "constructor"; + className: "StarsTransactionPeerAds"; + static fromReader(reader: Reader): StarsTransactionPeerAds; + } + export class StarsTopupOption extends VirtualClass<{ + // flags: null; + extended?: boolean; + stars: long; + storeProduct?: string; + currency: string; + amount: long; + }> { + CONSTRUCTOR_ID: 198776256; + SUBCLASS_OF_ID: 3854345708; + classType: "constructor"; + className: "StarsTopupOption"; + static fromReader(reader: Reader): StarsTopupOption; + // flags: null; + extended?: boolean; + stars: long; + storeProduct?: string; + currency: string; + amount: long; + } + export class StarsTransaction extends VirtualClass<{ + // flags: null; + refund?: boolean; + pending?: boolean; + failed?: boolean; + id: string; + stars: long; + date: int; + peer: Api.TypeStarsTransactionPeer; + title?: string; + description?: string; + photo?: Api.TypeWebDocument; + transactionDate?: int; + transactionUrl?: string; + botPayload?: bytes; + msgId?: int; + extendedMedia?: Api.TypeMessageMedia[]; + }> { + CONSTRUCTOR_ID: 766853519; + SUBCLASS_OF_ID: 2257078130; classType: "constructor"; - className: "StoryReactionPublicForward"; - static fromReader(reader: Reader): StoryReactionPublicForward; - message: Api.TypeMessage; + className: "StarsTransaction"; + static fromReader(reader: Reader): StarsTransaction; + // flags: null; + refund?: boolean; + pending?: boolean; + failed?: boolean; + id: string; + stars: long; + date: int; + peer: Api.TypeStarsTransactionPeer; + title?: string; + description?: string; + photo?: Api.TypeWebDocument; + transactionDate?: int; + transactionUrl?: string; + botPayload?: bytes; + msgId?: int; + extendedMedia?: Api.TypeMessageMedia[]; } - export class StoryReactionPublicRepost extends VirtualClass<{ - peerId: Api.TypePeer; + export class FoundStory extends VirtualClass<{ + peer: Api.TypePeer; story: Api.TypeStoryItem; }> { - CONSTRUCTOR_ID: 3486322451; - SUBCLASS_OF_ID: 3379257259; + CONSTRUCTOR_ID: 3900361664; + SUBCLASS_OF_ID: 3005049029; classType: "constructor"; - className: "StoryReactionPublicRepost"; - static fromReader(reader: Reader): StoryReactionPublicRepost; - peerId: Api.TypePeer; + className: "FoundStory"; + static fromReader(reader: Reader): FoundStory; + peer: Api.TypePeer; story: Api.TypeStoryItem; } - export class SavedDialog extends VirtualClass<{ + export class GeoPointAddress extends VirtualClass<{ // flags: null; - pinned?: boolean; - peer: Api.TypePeer; - topMessage: int; + countryIso2: string; + state?: string; + city?: string; + street?: string; }> { - CONSTRUCTOR_ID: 3179793260; - SUBCLASS_OF_ID: 599418118; + CONSTRUCTOR_ID: 3729546643; + SUBCLASS_OF_ID: 2522202840; classType: "constructor"; - className: "SavedDialog"; - static fromReader(reader: Reader): SavedDialog; + className: "GeoPointAddress"; + static fromReader(reader: Reader): GeoPointAddress; // flags: null; - pinned?: boolean; - peer: Api.TypePeer; - topMessage: int; + countryIso2: string; + state?: string; + city?: string; + street?: string; } - export class SavedReactionTag extends VirtualClass<{ + export class StarsRevenueStatus extends VirtualClass<{ // flags: null; - reaction: Api.TypeReaction; - title?: string; - count: int; + withdrawalEnabled?: boolean; + currentBalance: long; + availableBalance: long; + overallRevenue: long; + nextWithdrawalAt?: int; }> { - CONSTRUCTOR_ID: 3413112872; - SUBCLASS_OF_ID: 3983021080; + CONSTRUCTOR_ID: 2033461574; + SUBCLASS_OF_ID: 1031643121; classType: "constructor"; - className: "SavedReactionTag"; - static fromReader(reader: Reader): SavedReactionTag; + className: "StarsRevenueStatus"; + static fromReader(reader: Reader): StarsRevenueStatus; // flags: null; - reaction: Api.TypeReaction; - title?: string; - count: int; + withdrawalEnabled?: boolean; + currentBalance: long; + availableBalance: long; + overallRevenue: long; + nextWithdrawalAt?: int; } - export class OutboxReadDate extends VirtualClass<{ - date: int; + export class InputStarsTransaction extends VirtualClass<{ + // flags: null; + refund?: boolean; + id: string; }> { - CONSTRUCTOR_ID: 1001931436; - SUBCLASS_OF_ID: 1867613126; + CONSTRUCTOR_ID: 543876817; + SUBCLASS_OF_ID: 300026090; classType: "constructor"; - className: "OutboxReadDate"; - static fromReader(reader: Reader): OutboxReadDate; - date: int; + className: "InputStarsTransaction"; + static fromReader(reader: Reader): InputStarsTransaction; + // flags: null; + refund?: boolean; + id: string; } export class ResPQ extends VirtualClass<{ nonce: int128; @@ -14493,6 +15735,55 @@ export namespace Api { takeoutId: long; query: X; } + export class InvokeWithBusinessConnection extends Request< + Partial<{ + connectionId: string; + query: X; + }>, + X + > { + CONSTRUCTOR_ID: 3710427022; + SUBCLASS_OF_ID: 3081909835; + classType: "request"; + className: "InvokeWithBusinessConnection"; + static fromReader(reader: Reader): InvokeWithBusinessConnection; + connectionId: string; + query: X; + } + export class InvokeWithGooglePlayIntegrity extends Request< + Partial<{ + nonce: string; + token: string; + query: X; + }>, + X + > { + CONSTRUCTOR_ID: 502868356; + SUBCLASS_OF_ID: 3081909835; + classType: "request"; + className: "InvokeWithGooglePlayIntegrity"; + static fromReader(reader: Reader): InvokeWithGooglePlayIntegrity; + nonce: string; + token: string; + query: X; + } + export class InvokeWithApnsSecret extends Request< + Partial<{ + nonce: string; + secret: string; + query: X; + }>, + X + > { + CONSTRUCTOR_ID: 229528824; + SUBCLASS_OF_ID: 3081909835; + classType: "request"; + className: "InvokeWithApnsSecret"; + static fromReader(reader: Reader): InvokeWithApnsSecret; + nonce: string; + secret: string; + query: X; + } export class ReqPq extends Request< Partial<{ nonce: int128; @@ -14932,21 +16223,49 @@ export namespace Api { export class SentCodeTypeFirebaseSms extends VirtualClass<{ // flags: null; nonce?: bytes; + playIntegrityProjectId?: long; + playIntegrityNonce?: bytes; receipt?: string; pushTimeout?: int; length: int; }> { - CONSTRUCTOR_ID: 3850048562; + CONSTRUCTOR_ID: 10475318; SUBCLASS_OF_ID: 4284159374; classType: "constructor"; className: "auth.SentCodeTypeFirebaseSms"; static fromReader(reader: Reader): SentCodeTypeFirebaseSms; // flags: null; nonce?: bytes; + playIntegrityProjectId?: long; + playIntegrityNonce?: bytes; receipt?: string; pushTimeout?: int; length: int; } + export class SentCodeTypeSmsWord extends VirtualClass<{ + // flags: null; + beginning?: string; + }> { + CONSTRUCTOR_ID: 2752949377; + SUBCLASS_OF_ID: 4284159374; + classType: "constructor"; + className: "auth.SentCodeTypeSmsWord"; + static fromReader(reader: Reader): SentCodeTypeSmsWord; + // flags: null; + beginning?: string; + } + export class SentCodeTypeSmsPhrase extends VirtualClass<{ + // flags: null; + beginning?: string; + }> { + CONSTRUCTOR_ID: 3010958511; + SUBCLASS_OF_ID: 4284159374; + classType: "constructor"; + className: "auth.SentCodeTypeSmsPhrase"; + static fromReader(reader: Reader): SentCodeTypeSmsPhrase; + // flags: null; + beginning?: string; + } export class LoginToken extends VirtualClass<{ expires: int; token: bytes; @@ -15121,6 +16440,18 @@ export namespace Api { className: "contacts.TopPeersDisabled"; static fromReader(reader: Reader): TopPeersDisabled; } + export class ContactBirthdays extends VirtualClass<{ + contacts: Api.TypeContactBirthday[]; + users: Api.TypeUser[]; + }> { + CONSTRUCTOR_ID: 290452237; + SUBCLASS_OF_ID: 242920447; + classType: "constructor"; + className: "contacts.ContactBirthdays"; + static fromReader(reader: Reader): ContactBirthdays; + contacts: Api.TypeContactBirthday[]; + users: Api.TypeUser[]; + } } export namespace messages { @@ -16155,6 +17486,88 @@ export namespace Api { tags: Api.TypeSavedReactionTag[]; hash: long; } + export class QuickReplies extends VirtualClass<{ + quickReplies: Api.TypeQuickReply[]; + messages: Api.TypeMessage[]; + chats: Api.TypeChat[]; + users: Api.TypeUser[]; + }> { + CONSTRUCTOR_ID: 3331155605; + SUBCLASS_OF_ID: 4147636582; + classType: "constructor"; + className: "messages.QuickReplies"; + static fromReader(reader: Reader): QuickReplies; + quickReplies: Api.TypeQuickReply[]; + messages: Api.TypeMessage[]; + chats: Api.TypeChat[]; + users: Api.TypeUser[]; + } + export class QuickRepliesNotModified extends VirtualClass { + CONSTRUCTOR_ID: 1603398491; + SUBCLASS_OF_ID: 4147636582; + classType: "constructor"; + className: "messages.QuickRepliesNotModified"; + static fromReader(reader: Reader): QuickRepliesNotModified; + } + export class DialogFilters extends VirtualClass<{ + // flags: null; + tagsEnabled?: boolean; + filters: Api.TypeDialogFilter[]; + }> { + CONSTRUCTOR_ID: 718878489; + SUBCLASS_OF_ID: 2785014199; + classType: "constructor"; + className: "messages.DialogFilters"; + static fromReader(reader: Reader): DialogFilters; + // flags: null; + tagsEnabled?: boolean; + filters: Api.TypeDialogFilter[]; + } + export class MyStickers extends VirtualClass<{ + count: int; + sets: Api.TypeStickerSetCovered[]; + }> { + CONSTRUCTOR_ID: 4211040925; + SUBCLASS_OF_ID: 2981377290; + classType: "constructor"; + className: "messages.MyStickers"; + static fromReader(reader: Reader): MyStickers; + count: int; + sets: Api.TypeStickerSetCovered[]; + } + export class InvitedUsers extends VirtualClass<{ + updates: Api.TypeUpdates; + missingInvitees: Api.TypeMissingInvitee[]; + }> { + CONSTRUCTOR_ID: 2136862630; + SUBCLASS_OF_ID: 1035899041; + classType: "constructor"; + className: "messages.InvitedUsers"; + static fromReader(reader: Reader): InvitedUsers; + updates: Api.TypeUpdates; + missingInvitees: Api.TypeMissingInvitee[]; + } + export class AvailableEffectsNotModified extends VirtualClass { + CONSTRUCTOR_ID: 3522009691; + SUBCLASS_OF_ID: 1148245437; + classType: "constructor"; + className: "messages.AvailableEffectsNotModified"; + static fromReader(reader: Reader): AvailableEffectsNotModified; + } + export class AvailableEffects extends VirtualClass<{ + hash: int; + effects: Api.TypeAvailableEffect[]; + documents: Api.TypeDocument[]; + }> { + CONSTRUCTOR_ID: 3185271150; + SUBCLASS_OF_ID: 1148245437; + classType: "constructor"; + className: "messages.AvailableEffects"; + static fromReader(reader: Reader): AvailableEffects; + hash: int; + effects: Api.TypeAvailableEffect[]; + documents: Api.TypeDocument[]; + } } export namespace updates { @@ -16796,6 +18209,25 @@ export namespace Api { hash: int; colors: help.TypePeerColorOption[]; } + export class TimezonesListNotModified extends VirtualClass { + CONSTRUCTOR_ID: 2533820620; + SUBCLASS_OF_ID: 3396789365; + classType: "constructor"; + className: "help.TimezonesListNotModified"; + static fromReader(reader: Reader): TimezonesListNotModified; + } + export class TimezonesList extends VirtualClass<{ + timezones: Api.TypeTimezone[]; + hash: int; + }> { + CONSTRUCTOR_ID: 2071260529; + SUBCLASS_OF_ID: 3396789365; + classType: "constructor"; + className: "help.TimezonesList"; + static fromReader(reader: Reader): TimezonesList; + timezones: Api.TypeTimezone[]; + hash: int; + } export class ConfigSimple extends VirtualClass<{ date: int; expires: int; @@ -17165,6 +18597,52 @@ export namespace Api { chats: Api.TypeChat[]; users: Api.TypeUser[]; } + export class ConnectedBots extends VirtualClass<{ + connectedBots: Api.TypeConnectedBot[]; + users: Api.TypeUser[]; + }> { + CONSTRUCTOR_ID: 400029819; + SUBCLASS_OF_ID: 3838506963; + classType: "constructor"; + className: "account.ConnectedBots"; + static fromReader(reader: Reader): ConnectedBots; + connectedBots: Api.TypeConnectedBot[]; + users: Api.TypeUser[]; + } + export class BusinessChatLinks extends VirtualClass<{ + links: Api.TypeBusinessChatLink[]; + chats: Api.TypeChat[]; + users: Api.TypeUser[]; + }> { + CONSTRUCTOR_ID: 3963855569; + SUBCLASS_OF_ID: 3334097457; + classType: "constructor"; + className: "account.BusinessChatLinks"; + static fromReader(reader: Reader): BusinessChatLinks; + links: Api.TypeBusinessChatLink[]; + chats: Api.TypeChat[]; + users: Api.TypeUser[]; + } + export class ResolvedBusinessChatLinks extends VirtualClass<{ + // flags: null; + peer: Api.TypePeer; + message: string; + entities?: Api.TypeMessageEntity[]; + chats: Api.TypeChat[]; + users: Api.TypeUser[]; + }> { + CONSTRUCTOR_ID: 2586029857; + SUBCLASS_OF_ID: 980888616; + classType: "constructor"; + className: "account.ResolvedBusinessChatLinks"; + static fromReader(reader: Reader): ResolvedBusinessChatLinks; + // flags: null; + peer: Api.TypePeer; + message: string; + entities?: Api.TypeMessageEntity[]; + chats: Api.TypeChat[]; + users: Api.TypeUser[]; + } } export namespace channels { @@ -17233,6 +18711,38 @@ export namespace Api { chats: Api.TypeChat[]; users: Api.TypeUser[]; } + export class SponsoredMessageReportResultChooseOption extends VirtualClass<{ + title: string; + options: Api.TypeSponsoredMessageReportOption[]; + }> { + CONSTRUCTOR_ID: 2221907522; + SUBCLASS_OF_ID: 639834146; + classType: "constructor"; + className: "channels.SponsoredMessageReportResultChooseOption"; + static fromReader( + reader: Reader + ): SponsoredMessageReportResultChooseOption; + title: string; + options: Api.TypeSponsoredMessageReportOption[]; + } + export class SponsoredMessageReportResultAdsHidden extends VirtualClass { + CONSTRUCTOR_ID: 1044107055; + SUBCLASS_OF_ID: 639834146; + classType: "constructor"; + className: "channels.SponsoredMessageReportResultAdsHidden"; + static fromReader( + reader: Reader + ): SponsoredMessageReportResultAdsHidden; + } + export class SponsoredMessageReportResultReported extends VirtualClass { + CONSTRUCTOR_ID: 2910423113; + SUBCLASS_OF_ID: 639834146; + classType: "constructor"; + className: "channels.SponsoredMessageReportResultReported"; + static fromReader( + reader: Reader + ): SponsoredMessageReportResultReported; + } } export namespace payments { @@ -17278,6 +18788,30 @@ export namespace Api { savedCredentials?: Api.TypePaymentSavedCredentials[]; users: Api.TypeUser[]; } + export class PaymentFormStars extends VirtualClass<{ + // flags: null; + formId: long; + botId: long; + title: string; + description: string; + photo?: Api.TypeWebDocument; + invoice: Api.TypeInvoice; + users: Api.TypeUser[]; + }> { + CONSTRUCTOR_ID: 2079764828; + SUBCLASS_OF_ID: 2689089305; + classType: "constructor"; + className: "payments.PaymentFormStars"; + static fromReader(reader: Reader): PaymentFormStars; + // flags: null; + formId: long; + botId: long; + title: string; + description: string; + photo?: Api.TypeWebDocument; + invoice: Api.TypeInvoice; + users: Api.TypeUser[]; + } export class ValidatedRequestedInfo extends VirtualClass<{ // flags: null; id?: string; @@ -17350,6 +18884,36 @@ export namespace Api { credentialsTitle: string; users: Api.TypeUser[]; } + export class PaymentReceiptStars extends VirtualClass<{ + // flags: null; + date: int; + botId: long; + title: string; + description: string; + photo?: Api.TypeWebDocument; + invoice: Api.TypeInvoice; + currency: string; + totalAmount: long; + transactionId: string; + users: Api.TypeUser[]; + }> { + CONSTRUCTOR_ID: 3669751866; + SUBCLASS_OF_ID: 1493210057; + classType: "constructor"; + className: "payments.PaymentReceiptStars"; + static fromReader(reader: Reader): PaymentReceiptStars; + // flags: null; + date: int; + botId: long; + title: string; + description: string; + photo?: Api.TypeWebDocument; + invoice: Api.TypeInvoice; + currency: string; + totalAmount: long; + transactionId: string; + users: Api.TypeUser[]; + } export class SavedInfo extends VirtualClass<{ // flags: null; hasSavedCredentials?: boolean; @@ -17460,6 +19024,60 @@ export namespace Api { winnersCount: int; activatedCount: int; } + export class StarsStatus extends VirtualClass<{ + // flags: null; + balance: long; + history: Api.TypeStarsTransaction[]; + nextOffset?: string; + chats: Api.TypeChat[]; + users: Api.TypeUser[]; + }> { + CONSTRUCTOR_ID: 2364862048; + SUBCLASS_OF_ID: 1855724911; + classType: "constructor"; + className: "payments.StarsStatus"; + static fromReader(reader: Reader): StarsStatus; + // flags: null; + balance: long; + history: Api.TypeStarsTransaction[]; + nextOffset?: string; + chats: Api.TypeChat[]; + users: Api.TypeUser[]; + } + export class StarsRevenueStats extends VirtualClass<{ + revenueGraph: Api.TypeStatsGraph; + status: Api.TypeStarsRevenueStatus; + usdRate: double; + }> { + CONSTRUCTOR_ID: 3375085371; + SUBCLASS_OF_ID: 2772915699; + classType: "constructor"; + className: "payments.StarsRevenueStats"; + static fromReader(reader: Reader): StarsRevenueStats; + revenueGraph: Api.TypeStatsGraph; + status: Api.TypeStarsRevenueStatus; + usdRate: double; + } + export class StarsRevenueWithdrawalUrl extends VirtualClass<{ + url: string; + }> { + CONSTRUCTOR_ID: 497778871; + SUBCLASS_OF_ID: 2221318382; + classType: "constructor"; + className: "payments.StarsRevenueWithdrawalUrl"; + static fromReader(reader: Reader): StarsRevenueWithdrawalUrl; + url: string; + } + export class StarsRevenueAdsAccountUrl extends VirtualClass<{ + url: string; + }> { + CONSTRUCTOR_ID: 961445665; + SUBCLASS_OF_ID: 1243777813; + classType: "constructor"; + className: "payments.StarsRevenueAdsAccountUrl"; + static fromReader(reader: Reader): StarsRevenueAdsAccountUrl; + url: string; + } } export namespace phone { @@ -17700,6 +19318,44 @@ export namespace Api { chats: Api.TypeChat[]; users: Api.TypeUser[]; } + export class BroadcastRevenueStats extends VirtualClass<{ + topHoursGraph: Api.TypeStatsGraph; + revenueGraph: Api.TypeStatsGraph; + balances: Api.TypeBroadcastRevenueBalances; + usdRate: double; + }> { + CONSTRUCTOR_ID: 1409802903; + SUBCLASS_OF_ID: 753807480; + classType: "constructor"; + className: "stats.BroadcastRevenueStats"; + static fromReader(reader: Reader): BroadcastRevenueStats; + topHoursGraph: Api.TypeStatsGraph; + revenueGraph: Api.TypeStatsGraph; + balances: Api.TypeBroadcastRevenueBalances; + usdRate: double; + } + export class BroadcastRevenueWithdrawalUrl extends VirtualClass<{ + url: string; + }> { + CONSTRUCTOR_ID: 3966080823; + SUBCLASS_OF_ID: 3512518885; + classType: "constructor"; + className: "stats.BroadcastRevenueWithdrawalUrl"; + static fromReader(reader: Reader): BroadcastRevenueWithdrawalUrl; + url: string; + } + export class BroadcastRevenueTransactions extends VirtualClass<{ + count: int; + transactions: Api.TypeBroadcastRevenueTransaction[]; + }> { + CONSTRUCTOR_ID: 2266334310; + SUBCLASS_OF_ID: 108456469; + classType: "constructor"; + className: "stats.BroadcastRevenueTransactions"; + static fromReader(reader: Reader): BroadcastRevenueTransactions; + count: int; + transactions: Api.TypeBroadcastRevenueTransaction[]; + } } export namespace stickers { @@ -17870,18 +19526,22 @@ export namespace Api { stealthMode: Api.TypeStoriesStealthMode; } export class Stories extends VirtualClass<{ + // flags: null; count: int; stories: Api.TypeStoryItem[]; + pinnedToTop?: int[]; chats: Api.TypeChat[]; users: Api.TypeUser[]; }> { - CONSTRUCTOR_ID: 1574486984; + CONSTRUCTOR_ID: 1673780490; SUBCLASS_OF_ID: 622595116; classType: "constructor"; className: "stories.Stories"; static fromReader(reader: Reader): Stories; + // flags: null; count: int; stories: Api.TypeStoryItem[]; + pinnedToTop?: int[]; chats: Api.TypeChat[]; users: Api.TypeUser[]; } @@ -17957,6 +19617,26 @@ export namespace Api { users: Api.TypeUser[]; nextOffset?: string; } + export class FoundStories extends VirtualClass<{ + // flags: null; + count: int; + stories: Api.TypeFoundStory[]; + nextOffset?: string; + chats: Api.TypeChat[]; + users: Api.TypeUser[]; + }> { + CONSTRUCTOR_ID: 3806230327; + SUBCLASS_OF_ID: 393808693; + classType: "constructor"; + className: "stories.FoundStories"; + static fromReader(reader: Reader): FoundStories; + // flags: null; + count: int; + stories: Api.TypeFoundStory[]; + nextOffset?: string; + chats: Api.TypeChat[]; + users: Api.TypeUser[]; + } } export namespace premium { @@ -18024,6 +19704,70 @@ export namespace Api { } } + export namespace smsjobs { + export class EligibleToJoin extends VirtualClass<{ + termsUrl: string; + monthlySentSms: int; + }> { + CONSTRUCTOR_ID: 3700114639; + SUBCLASS_OF_ID: 1589076134; + classType: "constructor"; + className: "smsjobs.EligibleToJoin"; + static fromReader(reader: Reader): EligibleToJoin; + termsUrl: string; + monthlySentSms: int; + } + export class Status extends VirtualClass<{ + // flags: null; + allowInternational?: boolean; + recentSent: int; + recentSince: int; + recentRemains: int; + totalSent: int; + totalSince: int; + lastGiftSlug?: string; + termsUrl: string; + }> { + CONSTRUCTOR_ID: 720277905; + SUBCLASS_OF_ID: 3448711973; + classType: "constructor"; + className: "smsjobs.Status"; + static fromReader(reader: Reader): Status; + // flags: null; + allowInternational?: boolean; + recentSent: int; + recentSince: int; + recentRemains: int; + totalSent: int; + totalSince: int; + lastGiftSlug?: string; + termsUrl: string; + } + } + + export namespace fragment { + export class CollectibleInfo extends VirtualClass<{ + purchaseDate: int; + currency: string; + amount: long; + cryptoCurrency: string; + cryptoAmount: long; + url: string; + }> { + CONSTRUCTOR_ID: 1857945489; + SUBCLASS_OF_ID: 3572127632; + classType: "constructor"; + className: "fragment.CollectibleInfo"; + static fromReader(reader: Reader): CollectibleInfo; + purchaseDate: int; + currency: string; + amount: long; + cryptoCurrency: string; + cryptoAmount: long; + url: string; + } + } + export namespace storage { export type TypeFileType = | storage.FileUnknown @@ -18060,7 +19804,9 @@ export namespace Api { | auth.SentCodeTypeEmailCode | auth.SentCodeTypeSetUpEmailRequired | auth.SentCodeTypeFragmentSms - | auth.SentCodeTypeFirebaseSms; + | auth.SentCodeTypeFirebaseSms + | auth.SentCodeTypeSmsWord + | auth.SentCodeTypeSmsPhrase; export type TypeLoginToken = | auth.LoginToken | auth.LoginTokenMigrateTo @@ -18080,6 +19826,7 @@ export namespace Api { | contacts.TopPeersNotModified | contacts.TopPeers | contacts.TopPeersDisabled; + export type TypeContactBirthdays = contacts.ContactBirthdays; } export namespace messages { @@ -18180,6 +19927,15 @@ export namespace Api { export type TypeSavedReactionTags = | messages.SavedReactionTagsNotModified | messages.SavedReactionTags; + export type TypeQuickReplies = + | messages.QuickReplies + | messages.QuickRepliesNotModified; + export type TypeDialogFilters = messages.DialogFilters; + export type TypeMyStickers = messages.MyStickers; + export type TypeInvitedUsers = messages.InvitedUsers; + export type TypeAvailableEffects = + | messages.AvailableEffectsNotModified + | messages.AvailableEffects; } export namespace updates { @@ -18238,6 +19994,9 @@ export namespace Api { export type TypePeerColors = | help.PeerColorsNotModified | help.PeerColors; + export type TypeTimezonesList = + | help.TimezonesListNotModified + | help.TimezonesList; export type TypeConfigSimple = help.ConfigSimple; } @@ -18275,6 +20034,10 @@ export namespace Api { | account.EmailVerified | account.EmailVerifiedLogin; export type TypeAutoSaveSettings = account.AutoSaveSettings; + export type TypeConnectedBots = account.ConnectedBots; + export type TypeBusinessChatLinks = account.BusinessChatLinks; + export type TypeResolvedBusinessChatLinks = + account.ResolvedBusinessChatLinks; } export namespace channels { @@ -18284,16 +20047,24 @@ export namespace Api { export type TypeChannelParticipant = channels.ChannelParticipant; export type TypeAdminLogResults = channels.AdminLogResults; export type TypeSendAsPeers = channels.SendAsPeers; + export type TypeSponsoredMessageReportResult = + | channels.SponsoredMessageReportResultChooseOption + | channels.SponsoredMessageReportResultAdsHidden + | channels.SponsoredMessageReportResultReported; } export namespace payments { - export type TypePaymentForm = payments.PaymentForm; + export type TypePaymentForm = + | payments.PaymentForm + | payments.PaymentFormStars; export type TypeValidatedRequestedInfo = payments.ValidatedRequestedInfo; export type TypePaymentResult = | payments.PaymentResult | payments.PaymentVerificationNeeded; - export type TypePaymentReceipt = payments.PaymentReceipt; + export type TypePaymentReceipt = + | payments.PaymentReceipt + | payments.PaymentReceiptStars; export type TypeSavedInfo = payments.SavedInfo; export type TypeBankCardData = payments.BankCardData; export type TypeExportedInvoice = payments.ExportedInvoice; @@ -18301,6 +20072,12 @@ export namespace Api { export type TypeGiveawayInfo = | payments.GiveawayInfo | payments.GiveawayInfoResults; + export type TypeStarsStatus = payments.StarsStatus; + export type TypeStarsRevenueStats = payments.StarsRevenueStats; + export type TypeStarsRevenueWithdrawalUrl = + payments.StarsRevenueWithdrawalUrl; + export type TypeStarsRevenueAdsAccountUrl = + payments.StarsRevenueAdsAccountUrl; } export namespace phone { @@ -18319,6 +20096,11 @@ export namespace Api { export type TypeMessageStats = stats.MessageStats; export type TypeStoryStats = stats.StoryStats; export type TypePublicForwards = stats.PublicForwards; + export type TypeBroadcastRevenueStats = stats.BroadcastRevenueStats; + export type TypeBroadcastRevenueWithdrawalUrl = + stats.BroadcastRevenueWithdrawalUrl; + export type TypeBroadcastRevenueTransactions = + stats.BroadcastRevenueTransactions; } export namespace stickers { @@ -18352,6 +20134,7 @@ export namespace Api { export type TypeStoryViews = stories.StoryViews; export type TypePeerStories = stories.PeerStories; export type TypeStoryReactionsList = stories.StoryReactionsList; + export type TypeFoundStories = stories.FoundStories; } export namespace premium { @@ -18360,6 +20143,15 @@ export namespace Api { export type TypeBoostsStatus = premium.BoostsStatus; } + export namespace smsjobs { + export type TypeEligibilityToJoin = smsjobs.EligibleToJoin; + export type TypeStatus = smsjobs.Status; + } + + export namespace fragment { + export type TypeCollectibleInfo = fragment.CollectibleInfo; + } + export namespace auth { export class SendCode extends Request< Partial<{ @@ -18546,18 +20338,22 @@ export namespace Api { } export class ResendCode extends Request< Partial<{ + // flags: null; phoneNumber: string; phoneCodeHash: string; + reason?: string; }>, auth.TypeSentCode > { - CONSTRUCTOR_ID: 1056025023; + CONSTRUCTOR_ID: 3403969827; SUBCLASS_OF_ID: 1827172481; classType: "request"; className: "auth.ResendCode"; static fromReader(reader: Reader): ResendCode; + // flags: null; phoneNumber: string; phoneCodeHash: string; + reason?: string; } export class CancelCode extends Request< Partial<{ @@ -18666,11 +20462,12 @@ export namespace Api { phoneNumber: string; phoneCodeHash: string; safetyNetToken?: string; + playIntegrityToken?: string; iosPushSecret?: string; }>, Bool > { - CONSTRUCTOR_ID: 2303085392; + CONSTRUCTOR_ID: 2386109982; SUBCLASS_OF_ID: 4122188204; classType: "request"; className: "auth.RequestFirebaseSms"; @@ -18679,6 +20476,7 @@ export namespace Api { phoneNumber: string; phoneCodeHash: string; safetyNetToken?: string; + playIntegrityToken?: string; iosPushSecret?: string; } export class ResetLoginEmail extends Request< @@ -18696,6 +20494,23 @@ export namespace Api { phoneNumber: string; phoneCodeHash: string; } + export class ReportMissingCode extends Request< + Partial<{ + phoneNumber: string; + phoneCodeHash: string; + mnc: string; + }>, + Bool + > { + CONSTRUCTOR_ID: 3416125430; + SUBCLASS_OF_ID: 4122188204; + classType: "request"; + className: "auth.ReportMissingCode"; + static fromReader(reader: Reader): ReportMissingCode; + phoneNumber: string; + phoneCodeHash: string; + mnc: string; + } } export namespace account { @@ -19903,106 +21718,383 @@ export namespace Api { className: "account.GetAutoSaveSettings"; static fromReader(reader: Reader): GetAutoSaveSettings; } - export class SaveAutoSaveSettings extends Request< + export class SaveAutoSaveSettings extends Request< + Partial<{ + // flags: null; + users?: boolean; + chats?: boolean; + broadcasts?: boolean; + peer?: Api.TypeEntityLike; + settings: Api.TypeAutoSaveSettings; + }>, + Bool + > { + CONSTRUCTOR_ID: 3600515937; + SUBCLASS_OF_ID: 4122188204; + classType: "request"; + className: "account.SaveAutoSaveSettings"; + static fromReader(reader: Reader): SaveAutoSaveSettings; + // flags: null; + users?: boolean; + chats?: boolean; + broadcasts?: boolean; + peer?: Api.TypeEntityLike; + settings: Api.TypeAutoSaveSettings; + } + export class DeleteAutoSaveExceptions extends Request { + CONSTRUCTOR_ID: 1404829728; + SUBCLASS_OF_ID: 4122188204; + classType: "request"; + className: "account.DeleteAutoSaveExceptions"; + static fromReader(reader: Reader): DeleteAutoSaveExceptions; + } + export class InvalidateSignInCodes extends Request< + Partial<{ + codes: string[]; + }>, + Bool + > { + CONSTRUCTOR_ID: 3398101178; + SUBCLASS_OF_ID: 4122188204; + classType: "request"; + className: "account.InvalidateSignInCodes"; + static fromReader(reader: Reader): InvalidateSignInCodes; + codes: string[]; + } + export class UpdateColor extends Request< + Partial<{ + // flags: null; + forProfile?: boolean; + color?: int; + backgroundEmojiId?: long; + }>, + Bool + > { + CONSTRUCTOR_ID: 2096079197; + SUBCLASS_OF_ID: 4122188204; + classType: "request"; + className: "account.UpdateColor"; + static fromReader(reader: Reader): UpdateColor; + // flags: null; + forProfile?: boolean; + color?: int; + backgroundEmojiId?: long; + } + export class GetDefaultBackgroundEmojis extends Request< + Partial<{ + hash: long; + }>, + Api.TypeEmojiList + > { + CONSTRUCTOR_ID: 2785720782; + SUBCLASS_OF_ID: 3169807034; + classType: "request"; + className: "account.GetDefaultBackgroundEmojis"; + static fromReader(reader: Reader): GetDefaultBackgroundEmojis; + hash: long; + } + export class GetChannelDefaultEmojiStatuses extends Request< + Partial<{ + hash: long; + }>, + account.TypeEmojiStatuses + > { + CONSTRUCTOR_ID: 1999087573; + SUBCLASS_OF_ID: 3554674122; + classType: "request"; + className: "account.GetChannelDefaultEmojiStatuses"; + static fromReader(reader: Reader): GetChannelDefaultEmojiStatuses; + hash: long; + } + export class GetChannelRestrictedStatusEmojis extends Request< + Partial<{ + hash: long; + }>, + Api.TypeEmojiList + > { + CONSTRUCTOR_ID: 900325589; + SUBCLASS_OF_ID: 3169807034; + classType: "request"; + className: "account.GetChannelRestrictedStatusEmojis"; + static fromReader(reader: Reader): GetChannelRestrictedStatusEmojis; + hash: long; + } + export class UpdateBusinessWorkHours extends Request< + Partial<{ + // flags: null; + businessWorkHours?: Api.TypeBusinessWorkHours; + }>, + Bool + > { + CONSTRUCTOR_ID: 1258348646; + SUBCLASS_OF_ID: 4122188204; + classType: "request"; + className: "account.UpdateBusinessWorkHours"; + static fromReader(reader: Reader): UpdateBusinessWorkHours; + // flags: null; + businessWorkHours?: Api.TypeBusinessWorkHours; + } + export class UpdateBusinessLocation extends Request< + Partial<{ + // flags: null; + geoPoint?: Api.TypeInputGeoPoint; + address?: string; + }>, + Bool + > { + CONSTRUCTOR_ID: 2657817370; + SUBCLASS_OF_ID: 4122188204; + classType: "request"; + className: "account.UpdateBusinessLocation"; + static fromReader(reader: Reader): UpdateBusinessLocation; + // flags: null; + geoPoint?: Api.TypeInputGeoPoint; + address?: string; + } + export class UpdateBusinessGreetingMessage extends Request< + Partial<{ + // flags: null; + message?: Api.TypeInputBusinessGreetingMessage; + }>, + Bool + > { + CONSTRUCTOR_ID: 1724755908; + SUBCLASS_OF_ID: 4122188204; + classType: "request"; + className: "account.UpdateBusinessGreetingMessage"; + static fromReader(reader: Reader): UpdateBusinessGreetingMessage; + // flags: null; + message?: Api.TypeInputBusinessGreetingMessage; + } + export class UpdateBusinessAwayMessage extends Request< + Partial<{ + // flags: null; + message?: Api.TypeInputBusinessAwayMessage; + }>, + Bool + > { + CONSTRUCTOR_ID: 2724888485; + SUBCLASS_OF_ID: 4122188204; + classType: "request"; + className: "account.UpdateBusinessAwayMessage"; + static fromReader(reader: Reader): UpdateBusinessAwayMessage; + // flags: null; + message?: Api.TypeInputBusinessAwayMessage; + } + export class UpdateConnectedBot extends Request< + Partial<{ + // flags: null; + canReply?: boolean; + deleted?: boolean; + bot: Api.TypeEntityLike; + recipients: Api.TypeInputBusinessBotRecipients; + }>, + Api.TypeUpdates + > { + CONSTRUCTOR_ID: 1138250269; + SUBCLASS_OF_ID: 2331323052; + classType: "request"; + className: "account.UpdateConnectedBot"; + static fromReader(reader: Reader): UpdateConnectedBot; + // flags: null; + canReply?: boolean; + deleted?: boolean; + bot: Api.TypeEntityLike; + recipients: Api.TypeInputBusinessBotRecipients; + } + export class GetConnectedBots extends Request< + void, + account.TypeConnectedBots + > { + CONSTRUCTOR_ID: 1319421967; + SUBCLASS_OF_ID: 3838506963; + classType: "request"; + className: "account.GetConnectedBots"; + static fromReader(reader: Reader): GetConnectedBots; + } + export class GetBotBusinessConnection extends Request< + Partial<{ + connectionId: string; + }>, + Api.TypeUpdates + > { + CONSTRUCTOR_ID: 1990746736; + SUBCLASS_OF_ID: 2331323052; + classType: "request"; + className: "account.GetBotBusinessConnection"; + static fromReader(reader: Reader): GetBotBusinessConnection; + connectionId: string; + } + export class UpdateBusinessIntro extends Request< + Partial<{ + // flags: null; + intro?: Api.TypeInputBusinessIntro; + }>, + Bool + > { + CONSTRUCTOR_ID: 2786381876; + SUBCLASS_OF_ID: 4122188204; + classType: "request"; + className: "account.UpdateBusinessIntro"; + static fromReader(reader: Reader): UpdateBusinessIntro; + // flags: null; + intro?: Api.TypeInputBusinessIntro; + } + export class ToggleConnectedBotPaused extends Request< + Partial<{ + peer: Api.TypeEntityLike; + paused: Bool; + }>, + Bool + > { + CONSTRUCTOR_ID: 1684934807; + SUBCLASS_OF_ID: 4122188204; + classType: "request"; + className: "account.ToggleConnectedBotPaused"; + static fromReader(reader: Reader): ToggleConnectedBotPaused; + peer: Api.TypeEntityLike; + paused: Bool; + } + export class DisablePeerConnectedBot extends Request< + Partial<{ + peer: Api.TypeEntityLike; + }>, + Bool + > { + CONSTRUCTOR_ID: 1581481689; + SUBCLASS_OF_ID: 4122188204; + classType: "request"; + className: "account.DisablePeerConnectedBot"; + static fromReader(reader: Reader): DisablePeerConnectedBot; + peer: Api.TypeEntityLike; + } + export class UpdateBirthday extends Request< Partial<{ // flags: null; - users?: boolean; - chats?: boolean; - broadcasts?: boolean; - peer?: Api.TypeEntityLike; - settings: Api.TypeAutoSaveSettings; + birthday?: Api.TypeBirthday; }>, Bool > { - CONSTRUCTOR_ID: 3600515937; + CONSTRUCTOR_ID: 3429764113; SUBCLASS_OF_ID: 4122188204; classType: "request"; - className: "account.SaveAutoSaveSettings"; - static fromReader(reader: Reader): SaveAutoSaveSettings; + className: "account.UpdateBirthday"; + static fromReader(reader: Reader): UpdateBirthday; // flags: null; - users?: boolean; - chats?: boolean; - broadcasts?: boolean; - peer?: Api.TypeEntityLike; - settings: Api.TypeAutoSaveSettings; + birthday?: Api.TypeBirthday; } - export class DeleteAutoSaveExceptions extends Request { - CONSTRUCTOR_ID: 1404829728; - SUBCLASS_OF_ID: 4122188204; + export class CreateBusinessChatLink extends Request< + Partial<{ + link: Api.TypeInputBusinessChatLink; + }>, + Api.TypeBusinessChatLink + > { + CONSTRUCTOR_ID: 2287068814; + SUBCLASS_OF_ID: 1007504011; classType: "request"; - className: "account.DeleteAutoSaveExceptions"; - static fromReader(reader: Reader): DeleteAutoSaveExceptions; + className: "account.CreateBusinessChatLink"; + static fromReader(reader: Reader): CreateBusinessChatLink; + link: Api.TypeInputBusinessChatLink; } - export class InvalidateSignInCodes extends Request< + export class EditBusinessChatLink extends Request< Partial<{ - codes: string[]; + slug: string; + link: Api.TypeInputBusinessChatLink; }>, - Bool + Api.TypeBusinessChatLink > { - CONSTRUCTOR_ID: 3398101178; - SUBCLASS_OF_ID: 4122188204; + CONSTRUCTOR_ID: 2352222383; + SUBCLASS_OF_ID: 1007504011; classType: "request"; - className: "account.InvalidateSignInCodes"; - static fromReader(reader: Reader): InvalidateSignInCodes; - codes: string[]; + className: "account.EditBusinessChatLink"; + static fromReader(reader: Reader): EditBusinessChatLink; + slug: string; + link: Api.TypeInputBusinessChatLink; } - export class UpdateColor extends Request< + export class DeleteBusinessChatLink extends Request< Partial<{ - // flags: null; - forProfile?: boolean; - color?: int; - backgroundEmojiId?: long; + slug: string; }>, Bool > { - CONSTRUCTOR_ID: 2096079197; + CONSTRUCTOR_ID: 1611085428; SUBCLASS_OF_ID: 4122188204; classType: "request"; - className: "account.UpdateColor"; - static fromReader(reader: Reader): UpdateColor; - // flags: null; - forProfile?: boolean; - color?: int; - backgroundEmojiId?: long; + className: "account.DeleteBusinessChatLink"; + static fromReader(reader: Reader): DeleteBusinessChatLink; + slug: string; } - export class GetDefaultBackgroundEmojis extends Request< + export class GetBusinessChatLinks extends Request< + void, + account.TypeBusinessChatLinks + > { + CONSTRUCTOR_ID: 1869667809; + SUBCLASS_OF_ID: 3334097457; + classType: "request"; + className: "account.GetBusinessChatLinks"; + static fromReader(reader: Reader): GetBusinessChatLinks; + } + export class ResolveBusinessChatLink extends Request< Partial<{ - hash: long; + slug: string; }>, - Api.TypeEmojiList + account.TypeResolvedBusinessChatLinks > { - CONSTRUCTOR_ID: 2785720782; - SUBCLASS_OF_ID: 3169807034; + CONSTRUCTOR_ID: 1418913262; + SUBCLASS_OF_ID: 980888616; classType: "request"; - className: "account.GetDefaultBackgroundEmojis"; - static fromReader(reader: Reader): GetDefaultBackgroundEmojis; - hash: long; + className: "account.ResolveBusinessChatLink"; + static fromReader(reader: Reader): ResolveBusinessChatLink; + slug: string; } - export class GetChannelDefaultEmojiStatuses extends Request< + export class UpdatePersonalChannel extends Request< Partial<{ - hash: long; + channel: Api.TypeEntityLike; }>, - account.TypeEmojiStatuses + Bool > { - CONSTRUCTOR_ID: 1999087573; - SUBCLASS_OF_ID: 3554674122; + CONSTRUCTOR_ID: 3645048288; + SUBCLASS_OF_ID: 4122188204; classType: "request"; - className: "account.GetChannelDefaultEmojiStatuses"; - static fromReader(reader: Reader): GetChannelDefaultEmojiStatuses; - hash: long; + className: "account.UpdatePersonalChannel"; + static fromReader(reader: Reader): UpdatePersonalChannel; + channel: Api.TypeEntityLike; } - export class GetChannelRestrictedStatusEmojis extends Request< + export class ToggleSponsoredMessages extends Request< Partial<{ - hash: long; + enabled: Bool; }>, - Api.TypeEmojiList + Bool > { - CONSTRUCTOR_ID: 900325589; - SUBCLASS_OF_ID: 3169807034; + CONSTRUCTOR_ID: 3118048141; + SUBCLASS_OF_ID: 4122188204; classType: "request"; - className: "account.GetChannelRestrictedStatusEmojis"; - static fromReader(reader: Reader): GetChannelRestrictedStatusEmojis; - hash: long; + className: "account.ToggleSponsoredMessages"; + static fromReader(reader: Reader): ToggleSponsoredMessages; + enabled: Bool; + } + export class GetReactionsNotifySettings extends Request< + void, + Api.TypeReactionsNotifySettings + > { + CONSTRUCTOR_ID: 115172684; + SUBCLASS_OF_ID: 2382301265; + classType: "request"; + className: "account.GetReactionsNotifySettings"; + static fromReader(reader: Reader): GetReactionsNotifySettings; + } + export class SetReactionsNotifySettings extends Request< + Partial<{ + settings: Api.TypeReactionsNotifySettings; + }>, + Api.TypeReactionsNotifySettings + > { + CONSTRUCTOR_ID: 829220168; + SUBCLASS_OF_ID: 2382301265; + classType: "request"; + className: "account.SetReactionsNotifySettings"; + static fromReader(reader: Reader): SetReactionsNotifySettings; + settings: Api.TypeReactionsNotifySettings; } } @@ -20052,7 +22144,7 @@ export namespace Api { Partial<{ id: Api.TypeEntityLike[]; }>, - Bool + Bool[] > { CONSTRUCTOR_ID: 2787289616; SUBCLASS_OF_ID: 366986225; @@ -20441,6 +22533,16 @@ export namespace Api { id: Api.TypeEntityLike[]; limit: int; } + export class GetBirthdays extends Request< + void, + contacts.TypeContactBirthdays + > { + CONSTRUCTOR_ID: 3673008228; + SUBCLASS_OF_ID: 242920447; + classType: "request"; + className: "contacts.GetBirthdays"; + static fromReader(reader: Reader): GetBirthdays; + } } export namespace messages { @@ -20661,10 +22763,12 @@ export namespace Api { entities?: Api.TypeMessageEntity[]; scheduleDate?: int; sendAs?: Api.TypeEntityLike; + quickReplyShortcut?: Api.TypeInputQuickReplyShortcut; + effect?: long; }>, Api.TypeUpdates > { - CONSTRUCTOR_ID: 671943023; + CONSTRUCTOR_ID: 2554304325; SUBCLASS_OF_ID: 2331323052; classType: "request"; className: "messages.SendMessage"; @@ -20685,6 +22789,8 @@ export namespace Api { entities?: Api.TypeMessageEntity[]; scheduleDate?: int; sendAs?: Api.TypeEntityLike; + quickReplyShortcut?: Api.TypeInputQuickReplyShortcut; + effect?: long; } export class SendMedia extends Request< Partial<{ @@ -20704,10 +22810,12 @@ export namespace Api { entities?: Api.TypeMessageEntity[]; scheduleDate?: int; sendAs?: Api.TypeEntityLike; + quickReplyShortcut?: Api.TypeInputQuickReplyShortcut; + effect?: long; }>, Api.TypeUpdates > { - CONSTRUCTOR_ID: 1926021693; + CONSTRUCTOR_ID: 2018673486; SUBCLASS_OF_ID: 2331323052; classType: "request"; className: "messages.SendMedia"; @@ -20728,6 +22836,8 @@ export namespace Api { entities?: Api.TypeMessageEntity[]; scheduleDate?: int; sendAs?: Api.TypeEntityLike; + quickReplyShortcut?: Api.TypeInputQuickReplyShortcut; + effect?: long; } export class ForwardMessages extends Request< Partial<{ @@ -20745,10 +22855,11 @@ export namespace Api { topMsgId?: MessageIDLike; scheduleDate?: int; sendAs?: Api.TypeEntityLike; + quickReplyShortcut?: Api.TypeInputQuickReplyShortcut; }>, Api.TypeUpdates > { - CONSTRUCTOR_ID: 3328293828; + CONSTRUCTOR_ID: 3573781000; SUBCLASS_OF_ID: 2331323052; classType: "request"; className: "messages.ForwardMessages"; @@ -20767,6 +22878,7 @@ export namespace Api { topMsgId?: MessageIDLike; scheduleDate?: int; sendAs?: Api.TypeEntityLike; + quickReplyShortcut?: Api.TypeInputQuickReplyShortcut; } export class ReportSpam extends Request< Partial<{ @@ -20875,10 +22987,10 @@ export namespace Api { userId: Api.TypeEntityLike; fwdLimit: int; }>, - Api.TypeUpdates + messages.TypeInvitedUsers > { - CONSTRUCTOR_ID: 4064760803; - SUBCLASS_OF_ID: 2331323052; + CONSTRUCTOR_ID: 3418804487; + SUBCLASS_OF_ID: 1035899041; classType: "request"; className: "messages.AddChatUser"; static fromReader(reader: Reader): AddChatUser; @@ -20912,10 +23024,10 @@ export namespace Api { title: string; ttlPeriod?: int; }>, - Api.TypeUpdates + messages.TypeInvitedUsers > { - CONSTRUCTOR_ID: 3450904; - SUBCLASS_OF_ID: 2331323052; + CONSTRUCTOR_ID: 2463030740; + SUBCLASS_OF_ID: 1035899041; classType: "request"; className: "messages.CreateChat"; static fromReader(reader: Reader): CreateChat; @@ -21328,6 +23440,7 @@ export namespace Api { export class SearchGlobal extends Request< Partial<{ // flags: null; + broadcastsOnly?: boolean; folderId?: int; q: string; filter: Api.TypeMessagesFilter; @@ -21346,6 +23459,7 @@ export namespace Api { className: "messages.SearchGlobal"; static fromReader(reader: Reader): SearchGlobal; // flags: null; + broadcastsOnly?: boolean; folderId?: int; q: string; filter: Api.TypeMessagesFilter; @@ -21486,10 +23600,11 @@ export namespace Api { id: string; scheduleDate?: int; sendAs?: Api.TypeEntityLike; + quickReplyShortcut?: Api.TypeInputQuickReplyShortcut; }>, Api.TypeUpdates > { - CONSTRUCTOR_ID: 4156319930; + CONSTRUCTOR_ID: 1052698730; SUBCLASS_OF_ID: 2331323052; classType: "request"; className: "messages.SendInlineBotResult"; @@ -21506,6 +23621,7 @@ export namespace Api { id: string; scheduleDate?: int; sendAs?: Api.TypeEntityLike; + quickReplyShortcut?: Api.TypeInputQuickReplyShortcut; } export class GetMessageEditData extends Request< Partial<{ @@ -21534,10 +23650,11 @@ export namespace Api { replyMarkup?: Api.TypeReplyMarkup; entities?: Api.TypeMessageEntity[]; scheduleDate?: int; + quickReplyShortcutId?: int; }>, Api.TypeUpdates > { - CONSTRUCTOR_ID: 1224152952; + CONSTRUCTOR_ID: 3755032581; SUBCLASS_OF_ID: 2331323052; classType: "request"; className: "messages.EditMessage"; @@ -21552,6 +23669,7 @@ export namespace Api { replyMarkup?: Api.TypeReplyMarkup; entities?: Api.TypeMessageEntity[]; scheduleDate?: int; + quickReplyShortcutId?: int; } export class EditInlineBotMessage extends Request< Partial<{ @@ -21649,10 +23767,11 @@ export namespace Api { message: string; entities?: Api.TypeMessageEntity[]; media?: Api.TypeInputMedia; + effect?: long; }>, Bool > { - CONSTRUCTOR_ID: 2146678790; + CONSTRUCTOR_ID: 3547514318; SUBCLASS_OF_ID: 4122188204; classType: "request"; className: "messages.SaveDraft"; @@ -21665,6 +23784,7 @@ export namespace Api { message: string; entities?: Api.TypeMessageEntity[]; media?: Api.TypeInputMedia; + effect?: long; } export class GetAllDrafts extends Request { CONSTRUCTOR_ID: 1782549861; @@ -21998,16 +24118,20 @@ export namespace Api { } export class UploadMedia extends Request< Partial<{ + // flags: null; + businessConnectionId?: string; peer: Api.TypeEntityLike; media: Api.TypeInputMedia; }>, Api.TypeMessageMedia > { - CONSTRUCTOR_ID: 1369162417; + CONSTRUCTOR_ID: 345405816; SUBCLASS_OF_ID: 1198308914; classType: "request"; className: "messages.UploadMedia"; static fromReader(reader: Reader): UploadMedia; + // flags: null; + businessConnectionId?: string; peer: Api.TypeEntityLike; media: Api.TypeInputMedia; } @@ -22131,10 +24255,12 @@ export namespace Api { multiMedia: Api.TypeInputSingleMedia[]; scheduleDate?: int; sendAs?: Api.TypeEntityLike; + quickReplyShortcut?: Api.TypeInputQuickReplyShortcut; + effect?: long; }>, Api.TypeUpdates > { - CONSTRUCTOR_ID: 1164872071; + CONSTRUCTOR_ID: 934757205; SUBCLASS_OF_ID: 2331323052; classType: "request"; className: "messages.SendMultiMedia"; @@ -22151,6 +24277,8 @@ export namespace Api { multiMedia: Api.TypeInputSingleMedia[]; scheduleDate?: int; sendAs?: Api.TypeEntityLike; + quickReplyShortcut?: Api.TypeInputQuickReplyShortcut; + effect?: long; } export class UploadEncryptedFile extends Request< Partial<{ @@ -22566,10 +24694,10 @@ export namespace Api { } export class GetDialogFilters extends Request< void, - Api.TypeDialogFilter[] + messages.TypeDialogFilters > { - CONSTRUCTOR_ID: 4053719405; - SUBCLASS_OF_ID: 1612507469; + CONSTRUCTOR_ID: 4023684233; + SUBCLASS_OF_ID: 2785014199; classType: "request"; className: "messages.GetDialogFilters"; static fromReader(reader: Reader): GetDialogFilters; @@ -23173,18 +25301,22 @@ export namespace Api { } export class SetChatAvailableReactions extends Request< Partial<{ + // flags: null; peer: Api.TypeEntityLike; availableReactions: Api.TypeChatReactions; + reactionsLimit?: int; }>, Api.TypeUpdates > { - CONSTRUCTOR_ID: 4273039217; + CONSTRUCTOR_ID: 1511328724; SUBCLASS_OF_ID: 2331323052; classType: "request"; className: "messages.SetChatAvailableReactions"; static fromReader(reader: Reader): SetChatAvailableReactions; + // flags: null; peer: Api.TypeEntityLike; availableReactions: Api.TypeChatReactions; + reactionsLimit?: int; } export class GetAvailableReactions extends Request< Partial<{ @@ -23344,6 +25476,7 @@ export namespace Api { // flags: null; fromBotMenu?: boolean; silent?: boolean; + compact?: boolean; peer: Api.TypeEntityLike; bot: Api.TypeEntityLike; url?: string; @@ -23363,6 +25496,7 @@ export namespace Api { // flags: null; fromBotMenu?: boolean; silent?: boolean; + compact?: boolean; peer: Api.TypeEntityLike; bot: Api.TypeEntityLike; url?: string; @@ -23402,22 +25536,24 @@ export namespace Api { // flags: null; fromSwitchWebview?: boolean; fromSideMenu?: boolean; + compact?: boolean; bot: Api.TypeEntityLike; url?: string; startParam?: string; themeParams?: Api.TypeDataJSON; platform: string; }>, - Api.TypeSimpleWebViewResult + Api.TypeWebViewResult > { - CONSTRUCTOR_ID: 440815626; - SUBCLASS_OF_ID: 367977435; + CONSTRUCTOR_ID: 1094336115; + SUBCLASS_OF_ID: 2479793990; classType: "request"; className: "messages.RequestSimpleWebView"; static fromReader(reader: Reader): RequestSimpleWebView; // flags: null; fromSwitchWebview?: boolean; fromSideMenu?: boolean; + compact?: boolean; bot: Api.TypeEntityLike; url?: string; startParam?: string; @@ -23732,21 +25868,23 @@ export namespace Api { Partial<{ // flags: null; writeAllowed?: boolean; + compact?: boolean; peer: Api.TypeEntityLike; app: Api.TypeInputBotApp; startParam?: string; themeParams?: Api.TypeDataJSON; platform: string; }>, - Api.TypeAppWebViewResult + Api.TypeWebViewResult > { - CONSTRUCTOR_ID: 2354723644; - SUBCLASS_OF_ID: 472163347; + CONSTRUCTOR_ID: 1398901710; + SUBCLASS_OF_ID: 2479793990; classType: "request"; className: "messages.RequestAppWebView"; static fromReader(reader: Reader): RequestAppWebView; // flags: null; writeAllowed?: boolean; + compact?: boolean; peer: Api.TypeEntityLike; app: Api.TypeInputBotApp; startParam?: string; @@ -23948,33 +26086,254 @@ export namespace Api { reaction: Api.TypeReaction; title?: string; } - export class GetDefaultTagReactions extends Request< + export class GetDefaultTagReactions extends Request< + Partial<{ + hash: long; + }>, + messages.TypeReactions + > { + CONSTRUCTOR_ID: 3187225640; + SUBCLASS_OF_ID: 2915271460; + classType: "request"; + className: "messages.GetDefaultTagReactions"; + static fromReader(reader: Reader): GetDefaultTagReactions; + hash: long; + } + export class GetOutboxReadDate extends Request< + Partial<{ + peer: Api.TypeEntityLike; + msgId: MessageIDLike; + }>, + Api.TypeOutboxReadDate + > { + CONSTRUCTOR_ID: 2353790557; + SUBCLASS_OF_ID: 1867613126; + classType: "request"; + className: "messages.GetOutboxReadDate"; + static fromReader(reader: Reader): GetOutboxReadDate; + peer: Api.TypeEntityLike; + msgId: MessageIDLike; + } + export class GetQuickReplies extends Request< + Partial<{ + hash: long; + }>, + messages.TypeQuickReplies + > { + CONSTRUCTOR_ID: 3565417128; + SUBCLASS_OF_ID: 4147636582; + classType: "request"; + className: "messages.GetQuickReplies"; + static fromReader(reader: Reader): GetQuickReplies; + hash: long; + } + export class ReorderQuickReplies extends Request< + Partial<{ + order: int[]; + }>, + Bool + > { + CONSTRUCTOR_ID: 1613961479; + SUBCLASS_OF_ID: 4122188204; + classType: "request"; + className: "messages.ReorderQuickReplies"; + static fromReader(reader: Reader): ReorderQuickReplies; + order: int[]; + } + export class CheckQuickReplyShortcut extends Request< + Partial<{ + shortcut: string; + }>, + Bool + > { + CONSTRUCTOR_ID: 4057005011; + SUBCLASS_OF_ID: 4122188204; + classType: "request"; + className: "messages.CheckQuickReplyShortcut"; + static fromReader(reader: Reader): CheckQuickReplyShortcut; + shortcut: string; + } + export class EditQuickReplyShortcut extends Request< + Partial<{ + shortcutId: int; + shortcut: string; + }>, + Bool + > { + CONSTRUCTOR_ID: 1543519471; + SUBCLASS_OF_ID: 4122188204; + classType: "request"; + className: "messages.EditQuickReplyShortcut"; + static fromReader(reader: Reader): EditQuickReplyShortcut; + shortcutId: int; + shortcut: string; + } + export class DeleteQuickReplyShortcut extends Request< + Partial<{ + shortcutId: int; + }>, + Bool + > { + CONSTRUCTOR_ID: 1019234112; + SUBCLASS_OF_ID: 4122188204; + classType: "request"; + className: "messages.DeleteQuickReplyShortcut"; + static fromReader(reader: Reader): DeleteQuickReplyShortcut; + shortcutId: int; + } + export class GetQuickReplyMessages extends Request< + Partial<{ + // flags: null; + shortcutId: int; + id?: int[]; + hash: long; + }>, + messages.TypeMessages + > { + CONSTRUCTOR_ID: 2493814211; + SUBCLASS_OF_ID: 3568569182; + classType: "request"; + className: "messages.GetQuickReplyMessages"; + static fromReader(reader: Reader): GetQuickReplyMessages; + // flags: null; + shortcutId: int; + id?: int[]; + hash: long; + } + export class SendQuickReplyMessages extends Request< + Partial<{ + peer: Api.TypeEntityLike; + shortcutId: int; + id: int[]; + randomId: long[]; + }>, + Api.TypeUpdates + > { + CONSTRUCTOR_ID: 1819610593; + SUBCLASS_OF_ID: 2331323052; + classType: "request"; + className: "messages.SendQuickReplyMessages"; + static fromReader(reader: Reader): SendQuickReplyMessages; + peer: Api.TypeEntityLike; + shortcutId: int; + id: int[]; + randomId: long[]; + } + export class DeleteQuickReplyMessages extends Request< + Partial<{ + shortcutId: int; + id: int[]; + }>, + Api.TypeUpdates + > { + CONSTRUCTOR_ID: 3775260944; + SUBCLASS_OF_ID: 2331323052; + classType: "request"; + className: "messages.DeleteQuickReplyMessages"; + static fromReader(reader: Reader): DeleteQuickReplyMessages; + shortcutId: int; + id: int[]; + } + export class ToggleDialogFilterTags extends Request< + Partial<{ + enabled: Bool; + }>, + Bool + > { + CONSTRUCTOR_ID: 4247640649; + SUBCLASS_OF_ID: 4122188204; + classType: "request"; + className: "messages.ToggleDialogFilterTags"; + static fromReader(reader: Reader): ToggleDialogFilterTags; + enabled: Bool; + } + export class GetMyStickers extends Request< + Partial<{ + offsetId: long; + limit: int; + }>, + messages.TypeMyStickers + > { + CONSTRUCTOR_ID: 3501580796; + SUBCLASS_OF_ID: 2981377290; + classType: "request"; + className: "messages.GetMyStickers"; + static fromReader(reader: Reader): GetMyStickers; + offsetId: long; + limit: int; + } + export class GetEmojiStickerGroups extends Request< + Partial<{ + hash: int; + }>, + messages.TypeEmojiGroups + > { + CONSTRUCTOR_ID: 500711669; + SUBCLASS_OF_ID: 2127189465; + classType: "request"; + className: "messages.GetEmojiStickerGroups"; + static fromReader(reader: Reader): GetEmojiStickerGroups; + hash: int; + } + export class GetAvailableEffects extends Request< + Partial<{ + hash: int; + }>, + messages.TypeAvailableEffects + > { + CONSTRUCTOR_ID: 3735161401; + SUBCLASS_OF_ID: 1148245437; + classType: "request"; + className: "messages.GetAvailableEffects"; + static fromReader(reader: Reader): GetAvailableEffects; + hash: int; + } + export class EditFactCheck extends Request< + Partial<{ + peer: Api.TypeEntityLike; + msgId: MessageIDLike; + text: Api.TypeTextWithEntities; + }>, + Api.TypeUpdates + > { + CONSTRUCTOR_ID: 92925557; + SUBCLASS_OF_ID: 2331323052; + classType: "request"; + className: "messages.EditFactCheck"; + static fromReader(reader: Reader): EditFactCheck; + peer: Api.TypeEntityLike; + msgId: MessageIDLike; + text: Api.TypeTextWithEntities; + } + export class DeleteFactCheck extends Request< Partial<{ - hash: long; + peer: Api.TypeEntityLike; + msgId: MessageIDLike; }>, - messages.TypeReactions + Api.TypeUpdates > { - CONSTRUCTOR_ID: 3187225640; - SUBCLASS_OF_ID: 2915271460; + CONSTRUCTOR_ID: 3520762892; + SUBCLASS_OF_ID: 2331323052; classType: "request"; - className: "messages.GetDefaultTagReactions"; - static fromReader(reader: Reader): GetDefaultTagReactions; - hash: long; + className: "messages.DeleteFactCheck"; + static fromReader(reader: Reader): DeleteFactCheck; + peer: Api.TypeEntityLike; + msgId: MessageIDLike; } - export class GetOutboxReadDate extends Request< + export class GetFactCheck extends Request< Partial<{ peer: Api.TypeEntityLike; - msgId: MessageIDLike; + msgId: MessageIDLike[]; }>, - Api.TypeOutboxReadDate + Api.TypeFactCheck[] > { - CONSTRUCTOR_ID: 2353790557; - SUBCLASS_OF_ID: 1867613126; + CONSTRUCTOR_ID: 3117270510; + SUBCLASS_OF_ID: 3148224531; classType: "request"; - className: "messages.GetOutboxReadDate"; - static fromReader(reader: Reader): GetOutboxReadDate; + className: "messages.GetFactCheck"; + static fromReader(reader: Reader): GetFactCheck; peer: Api.TypeEntityLike; - msgId: MessageIDLike; + msgId: MessageIDLike[]; } } @@ -24561,6 +26920,19 @@ export namespace Api { static fromReader(reader: Reader): GetPeerProfileColors; hash: int; } + export class GetTimezonesList extends Request< + Partial<{ + hash: int; + }>, + help.TypeTimezonesList + > { + CONSTRUCTOR_ID: 1236468288; + SUBCLASS_OF_ID: 3396789365; + classType: "request"; + className: "help.GetTimezonesList"; + static fromReader(reader: Reader): GetTimezonesList; + hash: int; + } } export namespace channels { @@ -24829,10 +27201,10 @@ export namespace Api { channel: Api.TypeEntityLike; users: Api.TypeEntityLike[]; }>, - Api.TypeUpdates + messages.TypeInvitedUsers > { - CONSTRUCTOR_ID: 429865580; - SUBCLASS_OF_ID: 2331323052; + CONSTRUCTOR_ID: 3387112788; + SUBCLASS_OF_ID: 1035899041; classType: "request"; className: "channels.InviteToChannel"; static fromReader(reader: Reader): InviteToChannel; @@ -24893,6 +27265,7 @@ export namespace Api { // flags: null; byLocation?: boolean; checkLimit?: boolean; + forPersonal?: boolean; }>, messages.TypeChats > { @@ -24904,6 +27277,7 @@ export namespace Api { // flags: null; byLocation?: boolean; checkLimit?: boolean; + forPersonal?: boolean; } export class EditBanned extends Request< Partial<{ @@ -25508,16 +27882,18 @@ export namespace Api { } export class GetChannelRecommendations extends Request< Partial<{ - channel: Api.TypeEntityLike; + // flags: null; + channel?: Api.TypeEntityLike; }>, messages.TypeChats > { - CONSTRUCTOR_ID: 2209811863; + CONSTRUCTOR_ID: 631707458; SUBCLASS_OF_ID: 2580925204; classType: "request"; className: "channels.GetChannelRecommendations"; static fromReader(reader: Reader): GetChannelRecommendations; - channel: Api.TypeEntityLike; + // flags: null; + channel?: Api.TypeEntityLike; } export class UpdateEmojiStatus extends Request< Partial<{ @@ -25564,6 +27940,59 @@ export namespace Api { channel: Api.TypeEntityLike; stickerset: Api.TypeInputStickerSet; } + export class ReportSponsoredMessage extends Request< + Partial<{ + channel: Api.TypeEntityLike; + randomId: bytes; + option: bytes; + }>, + channels.TypeSponsoredMessageReportResult + > { + CONSTRUCTOR_ID: 2945447609; + SUBCLASS_OF_ID: 639834146; + classType: "request"; + className: "channels.ReportSponsoredMessage"; + static fromReader(reader: Reader): ReportSponsoredMessage; + channel: Api.TypeEntityLike; + randomId: bytes; + option: bytes; + } + export class RestrictSponsoredMessages extends Request< + Partial<{ + channel: Api.TypeEntityLike; + restricted: Bool; + }>, + Api.TypeUpdates + > { + CONSTRUCTOR_ID: 2598966553; + SUBCLASS_OF_ID: 2331323052; + classType: "request"; + className: "channels.RestrictSponsoredMessages"; + static fromReader(reader: Reader): RestrictSponsoredMessages; + channel: Api.TypeEntityLike; + restricted: Bool; + } + export class SearchPosts extends Request< + Partial<{ + hashtag: string; + offsetRate: int; + offsetPeer: Api.TypeEntityLike; + offsetId: int; + limit: int; + }>, + messages.TypeMessages + > { + CONSTRUCTOR_ID: 3516897403; + SUBCLASS_OF_ID: 3568569182; + classType: "request"; + className: "channels.SearchPosts"; + static fromReader(reader: Reader): SearchPosts; + hashtag: string; + offsetRate: int; + offsetPeer: Api.TypeEntityLike; + offsetId: int; + limit: int; + } } export namespace bots { @@ -26063,6 +28492,148 @@ export namespace Api { giveawayId: long; purpose: Api.TypeInputStorePaymentPurpose; } + export class GetStarsTopupOptions extends Request< + void, + Api.TypeStarsTopupOption[] + > { + CONSTRUCTOR_ID: 3222194131; + SUBCLASS_OF_ID: 3573451417; + classType: "request"; + className: "payments.GetStarsTopupOptions"; + static fromReader(reader: Reader): GetStarsTopupOptions; + } + export class GetStarsStatus extends Request< + Partial<{ + peer: Api.TypeEntityLike; + }>, + payments.TypeStarsStatus + > { + CONSTRUCTOR_ID: 273665959; + SUBCLASS_OF_ID: 1855724911; + classType: "request"; + className: "payments.GetStarsStatus"; + static fromReader(reader: Reader): GetStarsStatus; + peer: Api.TypeEntityLike; + } + export class GetStarsTransactions extends Request< + Partial<{ + // flags: null; + inbound?: boolean; + outbound?: boolean; + ascending?: boolean; + peer: Api.TypeEntityLike; + offset: string; + limit: int; + }>, + payments.TypeStarsStatus + > { + CONSTRUCTOR_ID: 2543029594; + SUBCLASS_OF_ID: 1855724911; + classType: "request"; + className: "payments.GetStarsTransactions"; + static fromReader(reader: Reader): GetStarsTransactions; + // flags: null; + inbound?: boolean; + outbound?: boolean; + ascending?: boolean; + peer: Api.TypeEntityLike; + offset: string; + limit: int; + } + export class SendStarsForm extends Request< + Partial<{ + // flags: null; + formId: long; + invoice: Api.TypeInputInvoice; + }>, + payments.TypePaymentResult + > { + CONSTRUCTOR_ID: 45839133; + SUBCLASS_OF_ID: 2330028701; + classType: "request"; + className: "payments.SendStarsForm"; + static fromReader(reader: Reader): SendStarsForm; + // flags: null; + formId: long; + invoice: Api.TypeInputInvoice; + } + export class RefundStarsCharge extends Request< + Partial<{ + userId: Api.TypeEntityLike; + chargeId: string; + }>, + Api.TypeUpdates + > { + CONSTRUCTOR_ID: 632196938; + SUBCLASS_OF_ID: 2331323052; + classType: "request"; + className: "payments.RefundStarsCharge"; + static fromReader(reader: Reader): RefundStarsCharge; + userId: Api.TypeEntityLike; + chargeId: string; + } + export class GetStarsRevenueStats extends Request< + Partial<{ + // flags: null; + dark?: boolean; + peer: Api.TypeEntityLike; + }>, + payments.TypeStarsRevenueStats + > { + CONSTRUCTOR_ID: 3642751702; + SUBCLASS_OF_ID: 2772915699; + classType: "request"; + className: "payments.GetStarsRevenueStats"; + static fromReader(reader: Reader): GetStarsRevenueStats; + // flags: null; + dark?: boolean; + peer: Api.TypeEntityLike; + } + export class GetStarsRevenueWithdrawalUrl extends Request< + Partial<{ + peer: Api.TypeEntityLike; + stars: long; + password: Api.TypeInputCheckPasswordSRP; + }>, + payments.TypeStarsRevenueWithdrawalUrl + > { + CONSTRUCTOR_ID: 331081907; + SUBCLASS_OF_ID: 2221318382; + classType: "request"; + className: "payments.GetStarsRevenueWithdrawalUrl"; + static fromReader(reader: Reader): GetStarsRevenueWithdrawalUrl; + peer: Api.TypeEntityLike; + stars: long; + password: Api.TypeInputCheckPasswordSRP; + } + export class GetStarsRevenueAdsAccountUrl extends Request< + Partial<{ + peer: Api.TypeEntityLike; + }>, + payments.TypeStarsRevenueAdsAccountUrl + > { + CONSTRUCTOR_ID: 3520589765; + SUBCLASS_OF_ID: 1243777813; + classType: "request"; + className: "payments.GetStarsRevenueAdsAccountUrl"; + static fromReader(reader: Reader): GetStarsRevenueAdsAccountUrl; + peer: Api.TypeEntityLike; + } + export class GetStarsTransactionsByID extends Request< + Partial<{ + peer: Api.TypeEntityLike; + id: Api.TypeInputStarsTransaction[]; + }>, + payments.TypeStarsStatus + > { + CONSTRUCTOR_ID: 662973742; + SUBCLASS_OF_ID: 1855724911; + classType: "request"; + className: "payments.GetStarsTransactionsByID"; + static fromReader(reader: Reader): GetStarsTransactionsByID; + peer: Api.TypeEntityLike; + id: Api.TypeInputStarsTransaction[]; + } } export namespace stickers { @@ -26070,8 +28641,6 @@ export namespace Api { Partial<{ // flags: null; masks?: boolean; - animated?: boolean; - videos?: boolean; emojis?: boolean; textColor?: boolean; userId: Api.TypeEntityLike; @@ -26090,8 +28659,6 @@ export namespace Api { static fromReader(reader: Reader): CreateStickerSet; // flags: null; masks?: boolean; - animated?: boolean; - videos?: boolean; emojis?: boolean; textColor?: boolean; userId: Api.TypeEntityLike; @@ -26238,6 +28805,21 @@ export namespace Api { static fromReader(reader: Reader): DeleteStickerSet; stickerset: Api.TypeInputStickerSet; } + export class ReplaceSticker extends Request< + Partial<{ + sticker: Api.TypeInputDocument; + newSticker: Api.TypeInputStickerSetItem; + }>, + messages.TypeStickerSet + > { + CONSTRUCTOR_ID: 1184253338; + SUBCLASS_OF_ID: 2607827546; + classType: "request"; + className: "stickers.ReplaceSticker"; + static fromReader(reader: Reader): ReplaceSticker; + sticker: Api.TypeInputDocument; + newSticker: Api.TypeInputStickerSetItem; + } } export namespace phone { @@ -26992,6 +29574,55 @@ export namespace Api { offset: string; limit: int; } + export class GetBroadcastRevenueStats extends Request< + Partial<{ + // flags: null; + dark?: boolean; + channel: Api.TypeEntityLike; + }>, + stats.TypeBroadcastRevenueStats + > { + CONSTRUCTOR_ID: 1977595505; + SUBCLASS_OF_ID: 753807480; + classType: "request"; + className: "stats.GetBroadcastRevenueStats"; + static fromReader(reader: Reader): GetBroadcastRevenueStats; + // flags: null; + dark?: boolean; + channel: Api.TypeEntityLike; + } + export class GetBroadcastRevenueWithdrawalUrl extends Request< + Partial<{ + channel: Api.TypeEntityLike; + password: Api.TypeInputCheckPasswordSRP; + }>, + stats.TypeBroadcastRevenueWithdrawalUrl + > { + CONSTRUCTOR_ID: 711323507; + SUBCLASS_OF_ID: 3512518885; + classType: "request"; + className: "stats.GetBroadcastRevenueWithdrawalUrl"; + static fromReader(reader: Reader): GetBroadcastRevenueWithdrawalUrl; + channel: Api.TypeEntityLike; + password: Api.TypeInputCheckPasswordSRP; + } + export class GetBroadcastRevenueTransactions extends Request< + Partial<{ + channel: Api.TypeEntityLike; + offset: int; + limit: int; + }>, + stats.TypeBroadcastRevenueTransactions + > { + CONSTRUCTOR_ID: 6891535; + SUBCLASS_OF_ID: 108456469; + classType: "request"; + className: "stats.GetBroadcastRevenueTransactions"; + static fromReader(reader: Reader): GetBroadcastRevenueTransactions; + channel: Api.TypeEntityLike; + offset: int; + limit: int; + } } export namespace chatlists { @@ -27582,6 +30213,42 @@ export namespace Api { offset?: string; limit: int; } + export class TogglePinnedToTop extends Request< + Partial<{ + peer: Api.TypeEntityLike; + id: int[]; + }>, + Bool + > { + CONSTRUCTOR_ID: 187268763; + SUBCLASS_OF_ID: 4122188204; + classType: "request"; + className: "stories.TogglePinnedToTop"; + static fromReader(reader: Reader): TogglePinnedToTop; + peer: Api.TypeEntityLike; + id: int[]; + } + export class SearchPosts extends Request< + Partial<{ + // flags: null; + hashtag?: string; + area?: Api.TypeMediaArea; + offset: string; + limit: int; + }>, + stories.TypeFoundStories + > { + CONSTRUCTOR_ID: 1827279210; + SUBCLASS_OF_ID: 393808693; + classType: "request"; + className: "stories.SearchPosts"; + static fromReader(reader: Reader): SearchPosts; + // flags: null; + hashtag?: string; + area?: Api.TypeMediaArea; + offset: string; + limit: int; + } } export namespace premium { @@ -27659,6 +30326,101 @@ export namespace Api { userId: Api.TypeEntityLike; } } + + export namespace smsjobs { + export class IsEligibleToJoin extends Request< + void, + smsjobs.TypeEligibilityToJoin + > { + CONSTRUCTOR_ID: 249313744; + SUBCLASS_OF_ID: 1589076134; + classType: "request"; + className: "smsjobs.IsEligibleToJoin"; + static fromReader(reader: Reader): IsEligibleToJoin; + } + export class Join extends Request { + CONSTRUCTOR_ID: 2806959661; + SUBCLASS_OF_ID: 4122188204; + classType: "request"; + className: "smsjobs.Join"; + static fromReader(reader: Reader): Join; + } + export class Leave extends Request { + CONSTRUCTOR_ID: 2560142707; + SUBCLASS_OF_ID: 4122188204; + classType: "request"; + className: "smsjobs.Leave"; + static fromReader(reader: Reader): Leave; + } + export class UpdateSettings extends Request< + Partial<{ + // flags: null; + allowInternational?: boolean; + }>, + Bool + > { + CONSTRUCTOR_ID: 155164863; + SUBCLASS_OF_ID: 4122188204; + classType: "request"; + className: "smsjobs.UpdateSettings"; + static fromReader(reader: Reader): UpdateSettings; + // flags: null; + allowInternational?: boolean; + } + export class GetStatus extends Request { + CONSTRUCTOR_ID: 279353576; + SUBCLASS_OF_ID: 3448711973; + classType: "request"; + className: "smsjobs.GetStatus"; + static fromReader(reader: Reader): GetStatus; + } + export class GetSmsJob extends Request< + Partial<{ + jobId: string; + }>, + Api.TypeSmsJob + > { + CONSTRUCTOR_ID: 2005766191; + SUBCLASS_OF_ID: 522459262; + classType: "request"; + className: "smsjobs.GetSmsJob"; + static fromReader(reader: Reader): GetSmsJob; + jobId: string; + } + export class FinishJob extends Request< + Partial<{ + // flags: null; + jobId: string; + error?: string; + }>, + Bool + > { + CONSTRUCTOR_ID: 1327415076; + SUBCLASS_OF_ID: 4122188204; + classType: "request"; + className: "smsjobs.FinishJob"; + static fromReader(reader: Reader): FinishJob; + // flags: null; + jobId: string; + error?: string; + } + } + + export namespace fragment { + export class GetCollectibleInfo extends Request< + Partial<{ + collectible: Api.TypeInputCollectible; + }>, + fragment.TypeCollectibleInfo + > { + CONSTRUCTOR_ID: 3189671354; + SUBCLASS_OF_ID: 3572127632; + classType: "request"; + className: "fragment.GetCollectibleInfo"; + static fromReader(reader: Reader): GetCollectibleInfo; + collectible: Api.TypeInputCollectible; + } + } // Types export type TypeEntityLike = EntityLike; export type TypeInputPeer = @@ -27693,7 +30455,8 @@ export namespace Api { | InputMediaPoll | InputMediaDice | InputMediaStory - | InputMediaWebPage; + | InputMediaWebPage + | InputMediaPaidMedia; export type TypeInputChatPhoto = | InputChatPhotoEmpty | InputChatUploadedPhoto @@ -27753,7 +30516,8 @@ export namespace Api { | MessageMediaDice | MessageMediaStory | MessageMediaGiveaway - | MessageMediaGiveawayResults; + | MessageMediaGiveawayResults + | MessageMediaPaidMedia; export type TypeMessageAction = | MessageActionEmpty | MessageActionChatCreate @@ -27796,7 +30560,9 @@ export namespace Api { | MessageActionGiftCode | MessageActionGiveawayLaunch | MessageActionGiveawayResults - | MessageActionBoostApply; + | MessageActionBoostApply + | MessageActionRequestedPeerSentMe + | MessageActionPaymentRefunded; export type TypeDialog = Dialog | DialogFolder; export type TypePhoto = PhotoEmpty | Photo; export type TypePhotoSize = @@ -27962,7 +30728,6 @@ export namespace Api { | UpdateChannelPinnedTopics | UpdateUser | UpdateAutoSaveSettings - | UpdateGroupInvitePrivacyForbidden | UpdateStory | UpdateReadStories | UpdateStoryID @@ -27975,7 +30740,22 @@ export namespace Api { | UpdateBotMessageReactions | UpdateSavedDialogPinned | UpdatePinnedSavedDialogs - | UpdateSavedReactionTags; + | UpdateSavedReactionTags + | UpdateSmsJob + | UpdateQuickReplies + | UpdateNewQuickReply + | UpdateDeleteQuickReply + | UpdateQuickReplyMessage + | UpdateDeleteQuickReplyMessages + | UpdateBotBusinessConnect + | UpdateBotNewBusinessMessage + | UpdateBotEditBusinessMessage + | UpdateBotDeleteBusinessMessage + | UpdateNewStoryReaction + | UpdateBroadcastRevenueTransactions + | UpdateStarsBalance + | UpdateBusinessBotCallbackQuery + | UpdateStarsRevenueStatus; export type TypeUpdates = | UpdatesTooLong | UpdateShortMessage @@ -28040,7 +30820,8 @@ export namespace Api { | InputPrivacyKeyPhoneNumber | InputPrivacyKeyAddedByPhone | InputPrivacyKeyVoiceMessages - | InputPrivacyKeyAbout; + | InputPrivacyKeyAbout + | InputPrivacyKeyBirthday; export type TypePrivacyKey = | PrivacyKeyStatusTimestamp | PrivacyKeyChatInvite @@ -28051,7 +30832,8 @@ export namespace Api { | PrivacyKeyPhoneNumber | PrivacyKeyAddedByPhone | PrivacyKeyVoiceMessages - | PrivacyKeyAbout; + | PrivacyKeyAbout + | PrivacyKeyBirthday; export type TypeInputPrivacyRule = | InputPrivacyValueAllowContacts | InputPrivacyValueAllowAll @@ -28061,7 +30843,8 @@ export namespace Api { | InputPrivacyValueDisallowUsers | InputPrivacyValueAllowChatParticipants | InputPrivacyValueDisallowChatParticipants - | InputPrivacyValueAllowCloseFriends; + | InputPrivacyValueAllowCloseFriends + | InputPrivacyValueAllowPremium; export type TypePrivacyRule = | PrivacyValueAllowContacts | PrivacyValueAllowAll @@ -28071,7 +30854,8 @@ export namespace Api { | PrivacyValueDisallowUsers | PrivacyValueAllowChatParticipants | PrivacyValueDisallowChatParticipants - | PrivacyValueAllowCloseFriends; + | PrivacyValueAllowCloseFriends + | PrivacyValueAllowPremium; export type TypeAccountDaysTTL = AccountDaysTTL; export type TypeDocumentAttribute = | DocumentAttributeImageSize @@ -28128,7 +30912,8 @@ export namespace Api { | KeyboardButtonUserProfile | KeyboardButtonWebView | KeyboardButtonSimpleWebView - | KeyboardButtonRequestPeer; + | KeyboardButtonRequestPeer + | InputKeyboardButtonRequestPeer; export type TypeKeyboardButtonRow = KeyboardButtonRow; export type TypeReplyMarkup = | ReplyKeyboardHide @@ -28499,7 +31284,8 @@ export namespace Api { export type TypeThemeSettings = ThemeSettings; export type TypeWebPageAttribute = | WebPageAttributeTheme - | WebPageAttributeStory; + | WebPageAttributeStory + | WebPageAttributeStickerSet; export type TypeBankCardOpenUrl = BankCardOpenUrl; export type TypeDialogFilter = | DialogFilter @@ -28561,7 +31347,6 @@ export namespace Api { export type TypeAttachMenuBots = AttachMenuBotsNotModified | AttachMenuBots; export type TypeAttachMenuBotsBot = AttachMenuBotsBot; export type TypeWebViewResult = WebViewResultUrl; - export type TypeSimpleWebViewResult = SimpleWebViewResultUrl; export type TypeWebViewMessageSent = WebViewMessageSent; export type TypeBotMenuButton = | BotMenuButtonDefault @@ -28581,12 +31366,14 @@ export namespace Api { export type TypeInputInvoice = | InputInvoiceMessage | InputInvoiceSlug - | InputInvoicePremiumGiftCode; + | InputInvoicePremiumGiftCode + | InputInvoiceStars; export type TypeInputStorePaymentPurpose = | InputStorePaymentPremiumSubscription | InputStorePaymentGiftPremium | InputStorePaymentPremiumGiftCode - | InputStorePaymentPremiumGiveaway; + | InputStorePaymentPremiumGiveaway + | InputStorePaymentStars; export type TypePremiumGiftOption = PremiumGiftOption; export type TypePaymentFormMethod = PaymentFormMethod; export type TypeEmojiStatus = @@ -28624,13 +31411,15 @@ export namespace Api { | RequestPeerTypeChat | RequestPeerTypeBroadcast; export type TypeEmojiList = EmojiListNotModified | EmojiList; - export type TypeEmojiGroup = EmojiGroup; + export type TypeEmojiGroup = + | EmojiGroup + | EmojiGroupGreeting + | EmojiGroupPremium; export type TypeTextWithEntities = TextWithEntities; export type TypeAutoSaveSettings = AutoSaveSettings; export type TypeAutoSaveException = AutoSaveException; export type TypeInputBotApp = InputBotAppID | InputBotAppShortName; export type TypeBotApp = BotAppNotModified | BotApp; - export type TypeAppWebViewResult = AppWebViewResultUrl; export type TypeInlineBotWebView = InlineBotWebView; export type TypeReadParticipantDate = ReadParticipantDate; export type TypeInputChatlist = InputChatlistDialogFilter; @@ -28639,7 +31428,6 @@ export namespace Api { | MessagePeerVote | MessagePeerVoteInputOption | MessagePeerVoteMultiple; - export type TypeSponsoredWebPage = SponsoredWebPage; export type TypeStoryViews = StoryViews; export type TypeStoryItem = StoryItemDeleted | StoryItemSkipped | StoryItem; export type TypeStoryView = @@ -28656,7 +31444,8 @@ export namespace Api { | MediaAreaGeoPoint | MediaAreaSuggestedReaction | MediaAreaChannelPost - | InputMediaAreaChannelPost; + | InputMediaAreaChannelPost + | MediaAreaUrl; export type TypePeerStories = PeerStories; export type TypePremiumGiftCodeOption = PremiumGiftCodeOption; export type TypePrepaidGiveaway = PrepaidGiveaway; @@ -28675,6 +31464,69 @@ export namespace Api { export type TypeSavedDialog = SavedDialog; export type TypeSavedReactionTag = SavedReactionTag; export type TypeOutboxReadDate = OutboxReadDate; + export type TypeSmsJob = SmsJob; + export type TypeBusinessWeeklyOpen = BusinessWeeklyOpen; + export type TypeBusinessWorkHours = BusinessWorkHours; + export type TypeBusinessLocation = BusinessLocation; + export type TypeInputBusinessRecipients = InputBusinessRecipients; + export type TypeBusinessRecipients = BusinessRecipients; + export type TypeBusinessAwayMessageSchedule = + | BusinessAwayMessageScheduleAlways + | BusinessAwayMessageScheduleOutsideWorkHours + | BusinessAwayMessageScheduleCustom; + export type TypeInputBusinessGreetingMessage = InputBusinessGreetingMessage; + export type TypeBusinessGreetingMessage = BusinessGreetingMessage; + export type TypeInputBusinessAwayMessage = InputBusinessAwayMessage; + export type TypeBusinessAwayMessage = BusinessAwayMessage; + export type TypeTimezone = Timezone; + export type TypeQuickReply = QuickReply; + export type TypeInputQuickReplyShortcut = + | InputQuickReplyShortcut + | InputQuickReplyShortcutId; + export type TypeConnectedBot = ConnectedBot; + export type TypeBirthday = Birthday; + export type TypeBotBusinessConnection = BotBusinessConnection; + export type TypeInputBusinessIntro = InputBusinessIntro; + export type TypeBusinessIntro = BusinessIntro; + export type TypeInputCollectible = + | InputCollectibleUsername + | InputCollectiblePhone; + export type TypeInputBusinessBotRecipients = InputBusinessBotRecipients; + export type TypeBusinessBotRecipients = BusinessBotRecipients; + export type TypeContactBirthday = ContactBirthday; + export type TypeMissingInvitee = MissingInvitee; + export type TypeInputBusinessChatLink = InputBusinessChatLink; + export type TypeBusinessChatLink = BusinessChatLink; + export type TypeRequestedPeer = + | RequestedPeerUser + | RequestedPeerChat + | RequestedPeerChannel; + export type TypeSponsoredMessageReportOption = SponsoredMessageReportOption; + export type TypeBroadcastRevenueTransaction = + | BroadcastRevenueTransactionProceeds + | BroadcastRevenueTransactionWithdrawal + | BroadcastRevenueTransactionRefund; + export type TypeReactionNotificationsFrom = + | ReactionNotificationsFromContacts + | ReactionNotificationsFromAll; + export type TypeReactionsNotifySettings = ReactionsNotifySettings; + export type TypeBroadcastRevenueBalances = BroadcastRevenueBalances; + export type TypeAvailableEffect = AvailableEffect; + export type TypeFactCheck = FactCheck; + export type TypeStarsTransactionPeer = + | StarsTransactionPeerUnsupported + | StarsTransactionPeerAppStore + | StarsTransactionPeerPlayMarket + | StarsTransactionPeerPremiumBot + | StarsTransactionPeerFragment + | StarsTransactionPeer + | StarsTransactionPeerAds; + export type TypeStarsTopupOption = StarsTopupOption; + export type TypeStarsTransaction = StarsTransaction; + export type TypeFoundStory = FoundStory; + export type TypeGeoPointAddress = GeoPointAddress; + export type TypeStarsRevenueStatus = StarsRevenueStatus; + export type TypeInputStarsTransaction = InputStarsTransaction; export type TypeResPQ = ResPQ; export type TypeP_Q_inner_data = | PQInnerData @@ -28732,6 +31584,9 @@ export namespace Api { | InvokeWithoutUpdates | InvokeWithMessagesRange | InvokeWithTakeout + | InvokeWithBusinessConnection + | InvokeWithGooglePlayIntegrity + | InvokeWithApnsSecret | ReqPq | ReqPqMulti | ReqDHParams @@ -28764,6 +31619,7 @@ export namespace Api { | auth.ImportWebTokenAuthorization | auth.RequestFirebaseSms | auth.ResetLoginEmail + | auth.ReportMissingCode | account.RegisterDevice | account.UnregisterDevice | account.UpdateNotifySettings @@ -28856,6 +31712,26 @@ export namespace Api { | account.GetDefaultBackgroundEmojis | account.GetChannelDefaultEmojiStatuses | account.GetChannelRestrictedStatusEmojis + | account.UpdateBusinessWorkHours + | account.UpdateBusinessLocation + | account.UpdateBusinessGreetingMessage + | account.UpdateBusinessAwayMessage + | account.UpdateConnectedBot + | account.GetConnectedBots + | account.GetBotBusinessConnection + | account.UpdateBusinessIntro + | account.ToggleConnectedBotPaused + | account.DisablePeerConnectedBot + | account.UpdateBirthday + | account.CreateBusinessChatLink + | account.EditBusinessChatLink + | account.DeleteBusinessChatLink + | account.GetBusinessChatLinks + | account.ResolveBusinessChatLink + | account.UpdatePersonalChannel + | account.ToggleSponsoredMessages + | account.GetReactionsNotifySettings + | account.SetReactionsNotifySettings | users.GetUsers | users.GetFullUser | users.SetSecureValueErrors @@ -28885,6 +31761,7 @@ export namespace Api { | contacts.ImportContactToken | contacts.EditCloseFriends | contacts.SetBlocked + | contacts.GetBirthdays | messages.GetMessages | messages.GetDialogs | messages.GetHistory @@ -29083,6 +31960,21 @@ export namespace Api { | messages.UpdateSavedReactionTag | messages.GetDefaultTagReactions | messages.GetOutboxReadDate + | messages.GetQuickReplies + | messages.ReorderQuickReplies + | messages.CheckQuickReplyShortcut + | messages.EditQuickReplyShortcut + | messages.DeleteQuickReplyShortcut + | messages.GetQuickReplyMessages + | messages.SendQuickReplyMessages + | messages.DeleteQuickReplyMessages + | messages.ToggleDialogFilterTags + | messages.GetMyStickers + | messages.GetEmojiStickerGroups + | messages.GetAvailableEffects + | messages.EditFactCheck + | messages.DeleteFactCheck + | messages.GetFactCheck | updates.GetState | updates.GetDifference | updates.GetChannelDifference @@ -29123,6 +32015,7 @@ export namespace Api { | help.GetPremiumPromo | help.GetPeerColors | help.GetPeerProfileColors + | help.GetTimezonesList | channels.ReadHistory | channels.DeleteMessages | channels.ReportSpam @@ -29185,6 +32078,9 @@ export namespace Api { | channels.UpdateEmojiStatus | channels.SetBoostsToUnblockRestrictions | channels.SetEmojiStickers + | channels.ReportSponsoredMessage + | channels.RestrictSponsoredMessages + | channels.SearchPosts | bots.SendCustomRequest | bots.AnswerWebhookJSONQuery | bots.SetBotCommands @@ -29217,6 +32113,15 @@ export namespace Api { | payments.ApplyGiftCode | payments.GetGiveawayInfo | payments.LaunchPrepaidGiveaway + | payments.GetStarsTopupOptions + | payments.GetStarsStatus + | payments.GetStarsTransactions + | payments.SendStarsForm + | payments.RefundStarsCharge + | payments.GetStarsRevenueStats + | payments.GetStarsRevenueWithdrawalUrl + | payments.GetStarsRevenueAdsAccountUrl + | payments.GetStarsTransactionsByID | stickers.CreateStickerSet | stickers.RemoveStickerFromSet | stickers.ChangeStickerPosition @@ -29227,6 +32132,7 @@ export namespace Api { | stickers.ChangeSticker | stickers.RenameStickerSet | stickers.DeleteStickerSet + | stickers.ReplaceSticker | phone.GetCallConfig | phone.RequestCall | phone.AcceptCall @@ -29271,6 +32177,9 @@ export namespace Api { | stats.GetMessageStats | stats.GetStoryStats | stats.GetStoryPublicForwards + | stats.GetBroadcastRevenueStats + | stats.GetBroadcastRevenueWithdrawalUrl + | stats.GetBroadcastRevenueTransactions | chatlists.ExportChatlistInvite | chatlists.DeleteExportedInvite | chatlists.EditExportedInvite @@ -29306,9 +32215,19 @@ export namespace Api { | stories.GetChatsToSend | stories.TogglePeerStoriesHidden | stories.GetStoryReactionsList + | stories.TogglePinnedToTop + | stories.SearchPosts | premium.GetBoostsList | premium.GetMyBoosts | premium.ApplyBoost | premium.GetBoostsStatus - | premium.GetUserBoosts; + | premium.GetUserBoosts + | smsjobs.IsEligibleToJoin + | smsjobs.Join + | smsjobs.Leave + | smsjobs.UpdateSettings + | smsjobs.GetStatus + | smsjobs.GetSmsJob + | smsjobs.FinishJob + | fragment.GetCollectibleInfo; } diff --git a/gramjs/tl/apiTl.js b/gramjs/tl/apiTl.js index b52a6b2f..55c68d0e 100644 --- a/gramjs/tl/apiTl.js +++ b/gramjs/tl/apiTl.js @@ -29,12 +29,13 @@ inputMediaVenue#c13d1c11 geo_point:InputGeoPoint title:string address:string pro inputMediaPhotoExternal#e5bbfe1a flags:# spoiler:flags.1?true url:string ttl_seconds:flags.0?int = InputMedia; inputMediaDocumentExternal#fb52dc99 flags:# spoiler:flags.1?true url:string ttl_seconds:flags.0?int = InputMedia; inputMediaGame#d33f43f3 id:InputGame = InputMedia; -inputMediaInvoice#8eb5a6d5 flags:# title:string description:string photo:flags.0?InputWebDocument invoice:Invoice payload:bytes provider:string provider_data:DataJSON start_param:flags.1?string extended_media:flags.2?InputMedia = InputMedia; +inputMediaInvoice#405fef0d flags:# title:string description:string photo:flags.0?InputWebDocument invoice:Invoice payload:bytes provider:flags.3?string provider_data:DataJSON start_param:flags.1?string extended_media:flags.2?InputMedia = InputMedia; inputMediaGeoLive#971fa843 flags:# stopped:flags.0?true geo_point:InputGeoPoint heading:flags.2?int period:flags.1?int proximity_notification_radius:flags.3?int = InputMedia; inputMediaPoll#f94e5f1 flags:# poll:Poll correct_answers:flags.0?Vector solution:flags.1?string solution_entities:flags.1?Vector = InputMedia; inputMediaDice#e66fbf7b emoticon:string = InputMedia; inputMediaStory#89fdd778 peer:InputPeer id:int = InputMedia; inputMediaWebPage#c21b8849 flags:# force_large_media:flags.0?true force_small_media:flags.1?true optional:flags.2?true url:string = InputMedia; +inputMediaPaidMedia#aa661fc3 stars_amount:long extended_media:Vector = InputMedia; inputChatPhotoEmpty#1ca48f57 = InputChatPhoto; inputChatUploadedPhoto#bdcdaec0 flags:# file:flags.0?InputFile video:flags.1?InputFile video_start_ts:flags.2?double video_emoji_markup:flags.3?VideoSize = InputChatPhoto; inputChatPhoto#8953ad37 id:InputPhoto = InputChatPhoto; @@ -66,7 +67,7 @@ storage.fileMov#4b09ebbc = storage.FileType; storage.fileMp4#b3cea0e4 = storage.FileType; storage.fileWebp#1081464c = storage.FileType; userEmpty#d3bc4b7a id:long = User; -user#215c4438 flags:# self:flags.10?true contact:flags.11?true mutual_contact:flags.12?true deleted:flags.13?true bot:flags.14?true bot_chat_history:flags.15?true bot_nochats:flags.16?true verified:flags.17?true restricted:flags.18?true min:flags.20?true bot_inline_geo:flags.21?true support:flags.23?true scam:flags.24?true apply_min_photo:flags.25?true fake:flags.26?true bot_attach_menu:flags.27?true premium:flags.28?true attach_menu_enabled:flags.29?true flags2:# bot_can_edit:flags2.1?true close_friend:flags2.2?true stories_hidden:flags2.3?true stories_unavailable:flags2.4?true contact_require_premium:flags2.10?true id:long access_hash:flags.0?long first_name:flags.1?string last_name:flags.2?string username:flags.3?string phone:flags.4?string photo:flags.5?UserProfilePhoto status:flags.6?UserStatus bot_info_version:flags.14?int restriction_reason:flags.18?Vector bot_inline_placeholder:flags.19?string lang_code:flags.22?string emoji_status:flags.30?EmojiStatus usernames:flags2.0?Vector stories_max_id:flags2.5?int color:flags2.8?PeerColor profile_color:flags2.9?PeerColor = User; +user#215c4438 flags:# self:flags.10?true contact:flags.11?true mutual_contact:flags.12?true deleted:flags.13?true bot:flags.14?true bot_chat_history:flags.15?true bot_nochats:flags.16?true verified:flags.17?true restricted:flags.18?true min:flags.20?true bot_inline_geo:flags.21?true support:flags.23?true scam:flags.24?true apply_min_photo:flags.25?true fake:flags.26?true bot_attach_menu:flags.27?true premium:flags.28?true attach_menu_enabled:flags.29?true flags2:# bot_can_edit:flags2.1?true close_friend:flags2.2?true stories_hidden:flags2.3?true stories_unavailable:flags2.4?true contact_require_premium:flags2.10?true bot_business:flags2.11?true id:long access_hash:flags.0?long first_name:flags.1?string last_name:flags.2?string username:flags.3?string phone:flags.4?string photo:flags.5?UserProfilePhoto status:flags.6?UserStatus bot_info_version:flags.14?int restriction_reason:flags.18?Vector bot_inline_placeholder:flags.19?string lang_code:flags.22?string emoji_status:flags.30?EmojiStatus usernames:flags2.0?Vector stories_max_id:flags2.5?int color:flags2.8?PeerColor profile_color:flags2.9?PeerColor = User; userProfilePhotoEmpty#4f11bae1 = UserProfilePhoto; userProfilePhoto#82d1f706 flags:# has_video:flags.0?true personal:flags.2?true photo_id:long stripped_thumb:flags.1?bytes dc_id:int = UserProfilePhoto; userStatusEmpty#9d05049 = UserStatus; @@ -80,8 +81,8 @@ chat#41cbf256 flags:# creator:flags.0?true left:flags.2?true deactivated:flags.5 chatForbidden#6592a1a7 id:long title:string = Chat; channel#aadfc8f flags:# creator:flags.0?true left:flags.2?true broadcast:flags.5?true verified:flags.7?true megagroup:flags.8?true restricted:flags.9?true signatures:flags.11?true min:flags.12?true scam:flags.19?true has_link:flags.20?true has_geo:flags.21?true slowmode_enabled:flags.22?true call_active:flags.23?true call_not_empty:flags.24?true fake:flags.25?true gigagroup:flags.26?true noforwards:flags.27?true join_to_send:flags.28?true join_request:flags.29?true forum:flags.30?true flags2:# stories_hidden:flags2.1?true stories_hidden_min:flags2.2?true stories_unavailable:flags2.3?true id:long access_hash:flags.13?long title:string username:flags.6?string photo:ChatPhoto date:int restriction_reason:flags.9?Vector admin_rights:flags.14?ChatAdminRights banned_rights:flags.15?ChatBannedRights default_banned_rights:flags.18?ChatBannedRights participants_count:flags.17?int usernames:flags2.0?Vector stories_max_id:flags2.4?int color:flags2.7?PeerColor profile_color:flags2.8?PeerColor emoji_status:flags2.9?EmojiStatus level:flags2.10?int = Chat; channelForbidden#17d493d5 flags:# broadcast:flags.5?true megagroup:flags.8?true id:long access_hash:long title:string until_date:flags.16?int = Chat; -chatFull#c9d31138 flags:# can_set_username:flags.7?true has_scheduled:flags.8?true translations_disabled:flags.19?true id:long about:string participants:ChatParticipants chat_photo:flags.2?Photo notify_settings:PeerNotifySettings exported_invite:flags.13?ExportedChatInvite bot_info:flags.3?Vector pinned_msg_id:flags.6?int folder_id:flags.11?int call:flags.12?InputGroupCall ttl_period:flags.14?int groupcall_default_join_as:flags.15?Peer theme_emoticon:flags.16?string requests_pending:flags.17?int recent_requesters:flags.17?Vector available_reactions:flags.18?ChatReactions = ChatFull; -channelFull#44c054a7 flags:# can_view_participants:flags.3?true can_set_username:flags.6?true can_set_stickers:flags.7?true hidden_prehistory:flags.10?true can_set_location:flags.16?true has_scheduled:flags.19?true can_view_stats:flags.20?true blocked:flags.22?true flags2:# can_delete_channel:flags2.0?true antispam:flags2.1?true participants_hidden:flags2.2?true translations_disabled:flags2.3?true stories_pinned_available:flags2.5?true view_forum_as_messages:flags2.6?true id:long about:string participants_count:flags.0?int admins_count:flags.1?int kicked_count:flags.2?int banned_count:flags.2?int online_count:flags.13?int read_inbox_max_id:int read_outbox_max_id:int unread_count:int chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:flags.23?ExportedChatInvite bot_info:Vector migrated_from_chat_id:flags.4?long migrated_from_max_id:flags.4?int pinned_msg_id:flags.5?int stickerset:flags.8?StickerSet available_min_id:flags.9?int folder_id:flags.11?int linked_chat_id:flags.14?long location:flags.15?ChannelLocation slowmode_seconds:flags.17?int slowmode_next_send_date:flags.18?int stats_dc:flags.12?int pts:int call:flags.21?InputGroupCall ttl_period:flags.24?int pending_suggestions:flags.25?Vector groupcall_default_join_as:flags.26?Peer theme_emoticon:flags.27?string requests_pending:flags.28?int recent_requesters:flags.28?Vector default_send_as:flags.29?Peer available_reactions:flags.30?ChatReactions stories:flags2.4?PeerStories wallpaper:flags2.7?WallPaper boosts_applied:flags2.8?int boosts_unrestrict:flags2.9?int emojiset:flags2.10?StickerSet = ChatFull; +chatFull#2633421b flags:# can_set_username:flags.7?true has_scheduled:flags.8?true translations_disabled:flags.19?true id:long about:string participants:ChatParticipants chat_photo:flags.2?Photo notify_settings:PeerNotifySettings exported_invite:flags.13?ExportedChatInvite bot_info:flags.3?Vector pinned_msg_id:flags.6?int folder_id:flags.11?int call:flags.12?InputGroupCall ttl_period:flags.14?int groupcall_default_join_as:flags.15?Peer theme_emoticon:flags.16?string requests_pending:flags.17?int recent_requesters:flags.17?Vector available_reactions:flags.18?ChatReactions reactions_limit:flags.20?int = ChatFull; +channelFull#bbab348d flags:# can_view_participants:flags.3?true can_set_username:flags.6?true can_set_stickers:flags.7?true hidden_prehistory:flags.10?true can_set_location:flags.16?true has_scheduled:flags.19?true can_view_stats:flags.20?true blocked:flags.22?true flags2:# can_delete_channel:flags2.0?true antispam:flags2.1?true participants_hidden:flags2.2?true translations_disabled:flags2.3?true stories_pinned_available:flags2.5?true view_forum_as_messages:flags2.6?true restricted_sponsored:flags2.11?true can_view_revenue:flags2.12?true paid_media_allowed:flags2.14?true can_view_stars_revenue:flags2.15?true id:long about:string participants_count:flags.0?int admins_count:flags.1?int kicked_count:flags.2?int banned_count:flags.2?int online_count:flags.13?int read_inbox_max_id:int read_outbox_max_id:int unread_count:int chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:flags.23?ExportedChatInvite bot_info:Vector migrated_from_chat_id:flags.4?long migrated_from_max_id:flags.4?int pinned_msg_id:flags.5?int stickerset:flags.8?StickerSet available_min_id:flags.9?int folder_id:flags.11?int linked_chat_id:flags.14?long location:flags.15?ChannelLocation slowmode_seconds:flags.17?int slowmode_next_send_date:flags.18?int stats_dc:flags.12?int pts:int call:flags.21?InputGroupCall ttl_period:flags.24?int pending_suggestions:flags.25?Vector groupcall_default_join_as:flags.26?Peer theme_emoticon:flags.27?string requests_pending:flags.28?int recent_requesters:flags.28?Vector default_send_as:flags.29?Peer available_reactions:flags.30?ChatReactions reactions_limit:flags2.13?int stories:flags2.4?PeerStories wallpaper:flags2.7?WallPaper boosts_applied:flags2.8?int boosts_unrestrict:flags2.9?int emojiset:flags2.10?StickerSet = ChatFull; chatParticipant#c02d4007 user_id:long inviter_id:long date:int = ChatParticipant; chatParticipantCreator#e46bcee4 user_id:long = ChatParticipant; chatParticipantAdmin#a0933f5b user_id:long inviter_id:long date:int = ChatParticipant; @@ -90,7 +91,7 @@ chatParticipants#3cbc93f8 chat_id:long participants:Vector vers chatPhotoEmpty#37c1011c = ChatPhoto; chatPhoto#1c6e1c11 flags:# has_video:flags.0?true photo_id:long stripped_thumb:flags.1?bytes dc_id:int = ChatPhoto; messageEmpty#90a6ca84 flags:# id:int peer_id:flags.0?Peer = Message; -message#1e4c8a69 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true from_scheduled:flags.18?true legacy:flags.19?true edit_hide:flags.21?true pinned:flags.24?true noforwards:flags.26?true invert_media:flags.27?true id:int from_id:flags.8?Peer from_boosts_applied:flags.29?int peer_id:Peer saved_peer_id:flags.28?Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long reply_to:flags.3?MessageReplyHeader date:int message:string media:flags.9?MessageMedia reply_markup:flags.6?ReplyMarkup entities:flags.7?Vector views:flags.10?int forwards:flags.10?int replies:flags.23?MessageReplies edit_date:flags.15?int post_author:flags.16?string grouped_id:flags.17?long reactions:flags.20?MessageReactions restriction_reason:flags.22?Vector ttl_period:flags.25?int = Message; +message#94345242 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true from_scheduled:flags.18?true legacy:flags.19?true edit_hide:flags.21?true pinned:flags.24?true noforwards:flags.26?true invert_media:flags.27?true flags2:# offline:flags2.1?true id:int from_id:flags.8?Peer from_boosts_applied:flags.29?int peer_id:Peer saved_peer_id:flags.28?Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long via_business_bot_id:flags2.0?long reply_to:flags.3?MessageReplyHeader date:int message:string media:flags.9?MessageMedia reply_markup:flags.6?ReplyMarkup entities:flags.7?Vector views:flags.10?int forwards:flags.10?int replies:flags.23?MessageReplies edit_date:flags.15?int post_author:flags.16?string grouped_id:flags.17?long reactions:flags.20?MessageReactions restriction_reason:flags.22?Vector ttl_period:flags.25?int quick_reply_shortcut_id:flags.30?int effect:flags2.2?long factcheck:flags2.3?FactCheck = Message; messageService#2b085862 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true legacy:flags.19?true id:int from_id:flags.8?Peer peer_id:Peer reply_to:flags.3?MessageReplyHeader date:int action:MessageAction ttl_period:flags.25?int = Message; messageMediaEmpty#3ded6320 = MessageMedia; messageMediaPhoto#695150d7 flags:# spoiler:flags.3?true photo:flags.0?Photo ttl_seconds:flags.2?int = MessageMedia; @@ -108,6 +109,7 @@ messageMediaDice#3f7ee58b value:int emoticon:string = MessageMedia; messageMediaStory#68cb6283 flags:# via_mention:flags.1?true peer:Peer id:int story:flags.0?StoryItem = MessageMedia; messageMediaGiveaway#daad85b0 flags:# only_new_subscribers:flags.0?true winners_are_visible:flags.2?true channels:Vector countries_iso2:flags.1?Vector prize_description:flags.3?string quantity:int months:int until_date:int = MessageMedia; messageMediaGiveawayResults#c6991068 flags:# only_new_subscribers:flags.0?true refunded:flags.2?true channel_id:long additional_peers_count:flags.3?int launch_msg_id:int winners_count:int unclaimed_count:int winners:Vector months:int prize_description:flags.1?string until_date:int = MessageMedia; +messageMediaPaidMedia#a8852491 stars_amount:long extended_media:Vector = MessageMedia; messageActionEmpty#b6aef7b0 = MessageAction; messageActionChatCreate#bd47cbad title:string users:Vector = MessageAction; messageActionChatEditTitle#b5a1ce5a title:string = MessageAction; @@ -150,6 +152,8 @@ messageActionGiftCode#678c2e09 flags:# via_giveaway:flags.0?true unclaimed:flags messageActionGiveawayLaunch#332ba9ed = MessageAction; messageActionGiveawayResults#2a9fadc5 winners_count:int unclaimed_count:int = MessageAction; messageActionBoostApply#cc02aa6d boosts:int = MessageAction; +messageActionRequestedPeerSentMe#93b31848 button_id:int peers:Vector = MessageAction; +messageActionPaymentRefunded#41b3e202 flags:# peer:Peer currency:string total_amount:long payload:flags.0?bytes charge:PaymentCharge = MessageAction; dialog#d58a08c6 flags:# pinned:flags.2?true unread_mark:flags.3?true view_forum_as_messages:flags.6?true peer:Peer top_message:int read_inbox_max_id:int read_outbox_max_id:int unread_count:int unread_mentions_count:int unread_reactions_count:int notify_settings:PeerNotifySettings pts:flags.0?int draft:flags.1?DraftMessage folder_id:flags.4?int ttl_period:flags.5?int = Dialog; dialogFolder#71bd134c flags:# pinned:flags.2?true folder:Folder peer:Peer top_message:int unread_muted_peers_count:int unread_unmuted_peers_count:int unread_muted_messages_count:int unread_unmuted_messages_count:int = Dialog; photoEmpty#2331b22d id:long = Photo; @@ -174,7 +178,7 @@ inputNotifyBroadcasts#b1db7c7e = InputNotifyPeer; inputNotifyForumTopic#5c467992 peer:InputPeer top_msg_id:int = InputNotifyPeer; inputPeerNotifySettings#cacb6ae2 flags:# show_previews:flags.0?Bool silent:flags.1?Bool mute_until:flags.2?int sound:flags.3?NotificationSound stories_muted:flags.6?Bool stories_hide_sender:flags.7?Bool stories_sound:flags.8?NotificationSound = InputPeerNotifySettings; peerNotifySettings#99622c0c flags:# show_previews:flags.0?Bool silent:flags.1?Bool mute_until:flags.2?int ios_sound:flags.3?NotificationSound android_sound:flags.4?NotificationSound other_sound:flags.5?NotificationSound stories_muted:flags.6?Bool stories_hide_sender:flags.7?Bool stories_ios_sound:flags.8?NotificationSound stories_android_sound:flags.9?NotificationSound stories_other_sound:flags.10?NotificationSound = PeerNotifySettings; -peerSettings#a518110d flags:# report_spam:flags.0?true add_contact:flags.1?true block_contact:flags.2?true share_contact:flags.3?true need_contacts_exception:flags.4?true report_geo:flags.5?true autoarchived:flags.7?true invite_members:flags.8?true request_chat_broadcast:flags.10?true geo_distance:flags.6?int request_chat_title:flags.9?string request_chat_date:flags.9?int = PeerSettings; +peerSettings#acd66c5e flags:# report_spam:flags.0?true add_contact:flags.1?true block_contact:flags.2?true share_contact:flags.3?true need_contacts_exception:flags.4?true report_geo:flags.5?true autoarchived:flags.7?true invite_members:flags.8?true request_chat_broadcast:flags.10?true business_bot_paused:flags.11?true business_bot_can_reply:flags.12?true geo_distance:flags.6?int request_chat_title:flags.9?string request_chat_date:flags.9?int business_bot_id:flags.13?long business_bot_manage_url:flags.13?string = PeerSettings; wallPaper#a437c3ed id:long flags:# creator:flags.0?true default:flags.1?true pattern:flags.3?true dark:flags.4?true access_hash:long slug:string document:Document settings:flags.2?WallPaperSettings = WallPaper; wallPaperNoFile#e0804116 id:long flags:# default:flags.1?true dark:flags.4?true settings:flags.2?WallPaperSettings = WallPaper; inputReportReasonSpam#58dbcab8 = ReportReason; @@ -187,7 +191,7 @@ inputReportReasonGeoIrrelevant#dbd4feed = ReportReason; inputReportReasonFake#f5ddd6e7 = ReportReason; inputReportReasonIllegalDrugs#a8eb2be = ReportReason; inputReportReasonPersonalDetails#9ec7863d = ReportReason; -userFull#b9b12c6c flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true can_pin_message:flags.7?true has_scheduled:flags.12?true video_calls_available:flags.13?true voice_messages_forbidden:flags.20?true translations_disabled:flags.23?true stories_pinned_available:flags.26?true blocked_my_stories_from:flags.27?true wallpaper_overridden:flags.28?true contact_require_premium:flags.29?true read_dates_private:flags.30?true id:long about:flags.1?string settings:PeerSettings personal_photo:flags.21?Photo profile_photo:flags.2?Photo fallback_photo:flags.22?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo pinned_msg_id:flags.6?int common_chats_count:int folder_id:flags.11?int ttl_period:flags.14?int theme_emoticon:flags.15?string private_forward_name:flags.16?string bot_group_admin_rights:flags.17?ChatAdminRights bot_broadcast_admin_rights:flags.18?ChatAdminRights premium_gifts:flags.19?Vector wallpaper:flags.24?WallPaper stories:flags.25?PeerStories = UserFull; +userFull#cc997720 flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true can_pin_message:flags.7?true has_scheduled:flags.12?true video_calls_available:flags.13?true voice_messages_forbidden:flags.20?true translations_disabled:flags.23?true stories_pinned_available:flags.26?true blocked_my_stories_from:flags.27?true wallpaper_overridden:flags.28?true contact_require_premium:flags.29?true read_dates_private:flags.30?true flags2:# sponsored_enabled:flags2.7?true id:long about:flags.1?string settings:PeerSettings personal_photo:flags.21?Photo profile_photo:flags.2?Photo fallback_photo:flags.22?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo pinned_msg_id:flags.6?int common_chats_count:int folder_id:flags.11?int ttl_period:flags.14?int theme_emoticon:flags.15?string private_forward_name:flags.16?string bot_group_admin_rights:flags.17?ChatAdminRights bot_broadcast_admin_rights:flags.18?ChatAdminRights premium_gifts:flags.19?Vector wallpaper:flags.24?WallPaper stories:flags.25?PeerStories business_work_hours:flags2.0?BusinessWorkHours business_location:flags2.1?BusinessLocation business_greeting_message:flags2.2?BusinessGreetingMessage business_away_message:flags2.3?BusinessAwayMessage business_intro:flags2.4?BusinessIntro birthday:flags2.5?Birthday personal_channel_id:flags2.6?long personal_channel_message:flags2.6?int = UserFull; contact#145ade0b user_id:long mutual:Bool = Contact; importedContact#c13e3c50 user_id:long client_id:long = ImportedContact; contactStatus#16d9703b user_id:long status:UserStatus = ContactStatus; @@ -330,12 +334,11 @@ updateUserEmojiStatus#28373599 user_id:long emoji_status:EmojiStatus = Update; updateRecentEmojiStatuses#30f443db = Update; updateRecentReactions#6f7863f4 = Update; updateMoveStickerSetToTop#86fccf85 flags:# masks:flags.0?true emojis:flags.1?true stickerset:long = Update; -updateMessageExtendedMedia#5a73a98c peer:Peer msg_id:int extended_media:MessageExtendedMedia = Update; +updateMessageExtendedMedia#d5a41724 peer:Peer msg_id:int extended_media:Vector = Update; updateChannelPinnedTopic#192efbe3 flags:# pinned:flags.0?true channel_id:long topic_id:int = Update; updateChannelPinnedTopics#fe198602 flags:# channel_id:long order:flags.0?Vector = Update; updateUser#20529438 user_id:long = Update; updateAutoSaveSettings#ec05b097 = Update; -updateGroupInvitePrivacyForbidden#ccf08ad6 user_id:long = Update; updateStory#75b3b798 peer:Peer story:StoryItem = Update; updateReadStories#f74e932b peer:Peer max_id:int = Update; updateStoryID#1bf335b9 id:int random_id:long = Update; @@ -349,6 +352,21 @@ updateBotMessageReactions#9cb7759 peer:Peer msg_id:int date:int reactions:Vector updateSavedDialogPinned#aeaf9e74 flags:# pinned:flags.0?true peer:DialogPeer = Update; updatePinnedSavedDialogs#686c85a6 flags:# order:flags.0?Vector = Update; updateSavedReactionTags#39c67432 = Update; +updateSmsJob#f16269d4 job_id:string = Update; +updateQuickReplies#f9470ab2 quick_replies:Vector = Update; +updateNewQuickReply#f53da717 quick_reply:QuickReply = Update; +updateDeleteQuickReply#53e6f1ec shortcut_id:int = Update; +updateQuickReplyMessage#3e050d0f message:Message = Update; +updateDeleteQuickReplyMessages#566fe7cd shortcut_id:int messages:Vector = Update; +updateBotBusinessConnect#8ae5c97a connection:BotBusinessConnection qts:int = Update; +updateBotNewBusinessMessage#9ddb347c flags:# connection_id:string message:Message reply_to_message:flags.0?Message qts:int = Update; +updateBotEditBusinessMessage#7df587c flags:# connection_id:string message:Message reply_to_message:flags.0?Message qts:int = Update; +updateBotDeleteBusinessMessage#a02a982e connection_id:string peer:Peer messages:Vector qts:int = Update; +updateNewStoryReaction#1824e40b story_id:int peer:Peer reaction:Reaction = Update; +updateBroadcastRevenueTransactions#dfd961f5 peer:Peer balances:BroadcastRevenueBalances = Update; +updateStarsBalance#fb85198 balance:long = Update; +updateBusinessBotCallbackQuery#1ea2fda7 flags:# query_id:long user_id:long connection_id:string message:Message reply_to_message:flags.2?Message chat_instance:long data:flags.0?bytes = Update; +updateStarsRevenueStatus#a584b019 peer:Peer status:StarsRevenueStatus = Update; updates.state#a56c2a3e pts:int qts:int date:int seq:int unread_count:int = updates.State; updates.differenceEmpty#5d75a138 date:int seq:int = updates.Difference; updates.difference#f49ca0 new_messages:Vector new_encrypted_messages:Vector other_updates:Vector chats:Vector users:Vector state:updates.State = updates.Difference; @@ -429,6 +447,7 @@ inputPrivacyKeyPhoneNumber#352dafa = InputPrivacyKey; inputPrivacyKeyAddedByPhone#d1219bdd = InputPrivacyKey; inputPrivacyKeyVoiceMessages#aee69d68 = InputPrivacyKey; inputPrivacyKeyAbout#3823cc40 = InputPrivacyKey; +inputPrivacyKeyBirthday#d65a11cc = InputPrivacyKey; privacyKeyStatusTimestamp#bc2eab30 = PrivacyKey; privacyKeyChatInvite#500e6dfa = PrivacyKey; privacyKeyPhoneCall#3d662b7b = PrivacyKey; @@ -439,6 +458,7 @@ privacyKeyPhoneNumber#d19ae46d = PrivacyKey; privacyKeyAddedByPhone#42ffd42b = PrivacyKey; privacyKeyVoiceMessages#697f414 = PrivacyKey; privacyKeyAbout#a486b761 = PrivacyKey; +privacyKeyBirthday#2000a518 = PrivacyKey; inputPrivacyValueAllowContacts#d09e07b = InputPrivacyRule; inputPrivacyValueAllowAll#184b35ce = InputPrivacyRule; inputPrivacyValueAllowUsers#131cc67f users:Vector = InputPrivacyRule; @@ -448,6 +468,7 @@ inputPrivacyValueDisallowUsers#90110467 users:Vector = InputPrivacyRu inputPrivacyValueAllowChatParticipants#840649cf chats:Vector = InputPrivacyRule; inputPrivacyValueDisallowChatParticipants#e94f0f86 chats:Vector = InputPrivacyRule; inputPrivacyValueAllowCloseFriends#2f453e49 = InputPrivacyRule; +inputPrivacyValueAllowPremium#77cdc9f1 = InputPrivacyRule; privacyValueAllowContacts#fffe1bac = PrivacyRule; privacyValueAllowAll#65427b82 = PrivacyRule; privacyValueAllowUsers#b8905fb2 users:Vector = PrivacyRule; @@ -457,6 +478,7 @@ privacyValueDisallowUsers#e4621141 users:Vector = PrivacyRule; privacyValueAllowChatParticipants#6b134e8e chats:Vector = PrivacyRule; privacyValueDisallowChatParticipants#41c87565 chats:Vector = PrivacyRule; privacyValueAllowCloseFriends#f7e8d89b = PrivacyRule; +privacyValueAllowPremium#ece9814b = PrivacyRule; account.privacyRules#50a04e45 rules:Vector chats:Vector users:Vector = account.PrivacyRules; accountDaysTTL#b8d0afdf days:int = AccountDaysTTL; documentAttributeImageSize#6c37c15c w:int h:int = DocumentAttribute; @@ -500,7 +522,7 @@ inputStickerSetEmojiGenericAnimations#4c4d4ce = InputStickerSet; inputStickerSetEmojiDefaultStatuses#29d0f5ee = InputStickerSet; inputStickerSetEmojiDefaultTopicIcons#44c1f8e9 = InputStickerSet; inputStickerSetEmojiChannelDefaultStatuses#49748553 = InputStickerSet; -stickerSet#2dd14edc flags:# archived:flags.1?true official:flags.2?true masks:flags.3?true animated:flags.5?true videos:flags.6?true emojis:flags.7?true text_color:flags.9?true channel_emoji_status:flags.10?true installed_date:flags.0?int id:long access_hash:long title:string short_name:string thumbs:flags.4?Vector thumb_dc_id:flags.4?int thumb_version:flags.4?int thumb_document_id:flags.8?long count:int hash:int = StickerSet; +stickerSet#2dd14edc flags:# archived:flags.1?true official:flags.2?true masks:flags.3?true emojis:flags.7?true text_color:flags.9?true channel_emoji_status:flags.10?true creator:flags.11?true installed_date:flags.0?int id:long access_hash:long title:string short_name:string thumbs:flags.4?Vector thumb_dc_id:flags.4?int thumb_version:flags.4?int thumb_document_id:flags.8?long count:int hash:int = StickerSet; messages.stickerSet#6e153f16 set:StickerSet packs:Vector keywords:Vector documents:Vector = messages.StickerSet; messages.stickerSetNotModified#d3f924eb = messages.StickerSet; botCommand#c27ac8c7 command:string description:string = BotCommand; @@ -521,6 +543,7 @@ keyboardButtonUserProfile#308660c1 text:string user_id:long = KeyboardButton; keyboardButtonWebView#13767230 text:string url:string = KeyboardButton; keyboardButtonSimpleWebView#a0c0505c text:string url:string = KeyboardButton; keyboardButtonRequestPeer#53d7bfd8 text:string button_id:int peer_type:RequestPeerType max_quantity:int = KeyboardButton; +inputKeyboardButtonRequestPeer#c9662d05 flags:# name_requested:flags.0?true username_requested:flags.1?true photo_requested:flags.2?true text:string button_id:int peer_type:RequestPeerType max_quantity:int = KeyboardButton; keyboardButtonRow#77608b83 buttons:Vector = KeyboardButtonRow; replyKeyboardHide#a03e5b85 flags:# selective:flags.2?true = ReplyMarkup; replyKeyboardForceReply#86b40b08 flags:# single_use:flags.1?true selective:flags.2?true placeholder:flags.3?string = ReplyMarkup; @@ -546,7 +569,7 @@ messageEntityStrike#bf0693d4 offset:int length:int = MessageEntity; messageEntityBankCard#761e6af4 offset:int length:int = MessageEntity; messageEntitySpoiler#32ca960f offset:int length:int = MessageEntity; messageEntityCustomEmoji#c8cf05f8 offset:int length:int document_id:long = MessageEntity; -messageEntityBlockquote#20df5d0 offset:int length:int = MessageEntity; +messageEntityBlockquote#f1ccaaac flags:# collapsed:flags.0?true offset:int length:int = MessageEntity; inputChannelEmpty#ee8c1e86 = InputChannel; inputChannel#f35aec28 channel_id:long access_hash:long = InputChannel; inputChannelFromMessage#5b934f9d peer:InputPeer msg_id:int channel_id:long = InputChannel; @@ -614,7 +637,9 @@ auth.sentCodeTypeMissedCall#82006484 prefix:string length:int = auth.SentCodeTyp auth.sentCodeTypeEmailCode#f450f59b flags:# apple_signin_allowed:flags.0?true google_signin_allowed:flags.1?true email_pattern:string length:int reset_available_period:flags.3?int reset_pending_date:flags.4?int = auth.SentCodeType; auth.sentCodeTypeSetUpEmailRequired#a5491dea flags:# apple_signin_allowed:flags.0?true google_signin_allowed:flags.1?true = auth.SentCodeType; auth.sentCodeTypeFragmentSms#d9565c39 url:string length:int = auth.SentCodeType; -auth.sentCodeTypeFirebaseSms#e57b1432 flags:# nonce:flags.0?bytes receipt:flags.1?string push_timeout:flags.1?int length:int = auth.SentCodeType; +auth.sentCodeTypeFirebaseSms#9fd736 flags:# nonce:flags.0?bytes play_integrity_project_id:flags.2?long play_integrity_nonce:flags.2?bytes receipt:flags.1?string push_timeout:flags.1?int length:int = auth.SentCodeType; +auth.sentCodeTypeSmsWord#a416ac81 flags:# beginning:flags.0?string = auth.SentCodeType; +auth.sentCodeTypeSmsPhrase#b37794af flags:# beginning:flags.0?string = auth.SentCodeType; messages.botCallbackAnswer#36585ea4 flags:# alert:flags.1?true has_url:flags.3?true native_ui:flags.4?true message:flags.0?string url:flags.2?string cache_time:int = messages.BotCallbackAnswer; messages.messageEditData#26b5dde6 flags:# caption:flags.0?true = messages.MessageEditData; inputBotInlineMessageID#890c3d89 dc_id:int id:long access_hash:long = InputBotInlineMessageID; @@ -635,7 +660,7 @@ contacts.topPeersNotModified#de266ef5 = contacts.TopPeers; contacts.topPeers#70b772a8 categories:Vector chats:Vector users:Vector = contacts.TopPeers; contacts.topPeersDisabled#b52c939d = contacts.TopPeers; draftMessageEmpty#1b0c841a flags:# date:flags.0?int = DraftMessage; -draftMessage#3fccf7ef flags:# no_webpage:flags.1?true invert_media:flags.6?true reply_to:flags.4?InputReplyTo message:string entities:flags.3?Vector media:flags.5?InputMedia date:int = DraftMessage; +draftMessage#2d65321f flags:# no_webpage:flags.1?true invert_media:flags.6?true reply_to:flags.4?InputReplyTo message:string entities:flags.3?Vector media:flags.5?InputMedia date:int effect:flags.7?long = DraftMessage; messages.featuredStickersNotModified#c6dc0c66 count:int = messages.FeaturedStickers; messages.featuredStickers#be382906 flags:# premium:flags.0?true hash:long count:int sets:Vector unread:Vector = messages.FeaturedStickers; messages.recentStickersNotModified#b17f890 = messages.RecentStickers; @@ -719,10 +744,12 @@ inputWebFileGeoPointLocation#9f2221c9 geo_point:InputGeoPoint access_hash:long w inputWebFileAudioAlbumThumbLocation#f46fe924 flags:# small:flags.2?true document:flags.0?InputDocument title:flags.1?string performer:flags.1?string = InputWebFileLocation; upload.webFile#21e753bc size:int mime_type:string file_type:storage.FileType mtime:int bytes:bytes = upload.WebFile; payments.paymentForm#a0058751 flags:# can_save_credentials:flags.2?true password_missing:flags.3?true form_id:long bot_id:long title:string description:string photo:flags.5?WebDocument invoice:Invoice provider_id:long url:string native_provider:flags.4?string native_params:flags.4?DataJSON additional_methods:flags.6?Vector saved_info:flags.0?PaymentRequestedInfo saved_credentials:flags.1?Vector users:Vector = payments.PaymentForm; +payments.paymentFormStars#7bf6b15c flags:# form_id:long bot_id:long title:string description:string photo:flags.5?WebDocument invoice:Invoice users:Vector = payments.PaymentForm; payments.validatedRequestedInfo#d1451883 flags:# id:flags.0?string shipping_options:flags.1?Vector = payments.ValidatedRequestedInfo; payments.paymentResult#4e5f810d updates:Updates = payments.PaymentResult; payments.paymentVerificationNeeded#d8411139 url:string = payments.PaymentResult; payments.paymentReceipt#70c4fe03 flags:# date:int bot_id:long provider_id:long title:string description:string photo:flags.2?WebDocument invoice:Invoice info:flags.0?PaymentRequestedInfo shipping:flags.1?ShippingOption tip_amount:flags.3?long currency:string total_amount:long credentials_title:string users:Vector = payments.PaymentReceipt; +payments.paymentReceiptStars#dabbf83a flags:# date:int bot_id:long title:string description:string photo:flags.2?WebDocument invoice:Invoice currency:string total_amount:long transaction_id:string users:Vector = payments.PaymentReceipt; payments.savedInfo#fb8fe43c flags:# has_saved_credentials:flags.1?true saved_info:flags.0?PaymentRequestedInfo = payments.SavedInfo; inputPaymentCredentialsSaved#c10eb2cf id:string tmp_password:bytes = InputPaymentCredentials; inputPaymentCredentials#3417d728 flags:# save:flags.0?true data:DataJSON = InputPaymentCredentials; @@ -736,7 +763,7 @@ phoneCallEmpty#5366c915 id:long = PhoneCall; phoneCallWaiting#c5226f17 flags:# video:flags.6?true id:long access_hash:long date:int admin_id:long participant_id:long protocol:PhoneCallProtocol receive_date:flags.0?int = PhoneCall; phoneCallRequested#14b0ed0c flags:# video:flags.6?true id:long access_hash:long date:int admin_id:long participant_id:long g_a_hash:bytes protocol:PhoneCallProtocol = PhoneCall; phoneCallAccepted#3660c311 flags:# video:flags.6?true id:long access_hash:long date:int admin_id:long participant_id:long g_b:bytes protocol:PhoneCallProtocol = PhoneCall; -phoneCall#967f7c67 flags:# p2p_allowed:flags.5?true video:flags.6?true id:long access_hash:long date:int admin_id:long participant_id:long g_a_or_b:bytes key_fingerprint:long protocol:PhoneCallProtocol connections:Vector start_date:int = PhoneCall; +phoneCall#30535af5 flags:# p2p_allowed:flags.5?true video:flags.6?true id:long access_hash:long date:int admin_id:long participant_id:long g_a_or_b:bytes key_fingerprint:long protocol:PhoneCallProtocol connections:Vector start_date:int custom_parameters:flags.7?DataJSON = PhoneCall; phoneCallDiscarded#50ca4de1 flags:# need_rating:flags.2?true need_debug:flags.3?true video:flags.6?true id:long reason:flags.0?PhoneCallDiscardReason duration:flags.1?int = PhoneCall; phoneConnection#9cc123c7 flags:# tcp:flags.0?true id:long ip:string ipv6:string port:int peer_tag:bytes = PhoneConnection; phoneConnectionWebrtc#635fe375 flags:# turn:flags.0?true stun:flags.1?true id:long ip:string ipv6:string port:int username:string password:string = PhoneConnection; @@ -899,8 +926,8 @@ page#98657f0d flags:# part:flags.0?true rtl:flags.1?true v2:flags.2?true url:str help.supportName#8c05f1c9 name:string = help.SupportName; help.userInfoEmpty#f3ae2eed = help.UserInfo; help.userInfo#1eb3758 message:string entities:Vector author:string date:int = help.UserInfo; -pollAnswer#6ca9c2e9 text:string option:bytes = PollAnswer; -poll#86e18161 id:long flags:# closed:flags.0?true public_voters:flags.1?true multiple_choice:flags.2?true quiz:flags.3?true question:string answers:Vector close_period:flags.4?int close_date:flags.5?int = Poll; +pollAnswer#ff16e2ca text:TextWithEntities option:bytes = PollAnswer; +poll#58747131 id:long flags:# closed:flags.0?true public_voters:flags.1?true multiple_choice:flags.2?true quiz:flags.3?true question:TextWithEntities answers:Vector close_period:flags.4?int close_date:flags.5?int = Poll; pollAnswerVoters#3b6ddad2 flags:# chosen:flags.0?true correct:flags.1?true option:bytes voters:int = PollAnswerVoters; pollResults#7adf2420 flags:# min:flags.0?true results:flags.1?Vector total_voters:flags.2?int recent_voters:flags.3?Vector solution:flags.4?string solution_entities:flags.4?Vector = PollResults; chatOnlines#f041e250 onlines:int = ChatOnlines; @@ -912,7 +939,7 @@ inputWallPaperSlug#72091c80 slug:string = InputWallPaper; inputWallPaperNoFile#967a462e id:long = InputWallPaper; account.wallPapersNotModified#1c199183 = account.WallPapers; account.wallPapers#cdc3858c hash:long wallpapers:Vector = account.WallPapers; -codeSettings#ad253d78 flags:# allow_flashcall:flags.0?true current_number:flags.1?true allow_app_hash:flags.4?true allow_missed_call:flags.5?true allow_firebase:flags.7?true logout_tokens:flags.6?Vector token:flags.8?string app_sandbox:flags.8?Bool = CodeSettings; +codeSettings#ad253d78 flags:# allow_flashcall:flags.0?true current_number:flags.1?true allow_app_hash:flags.4?true allow_missed_call:flags.5?true allow_firebase:flags.7?true unknown_number:flags.9?true logout_tokens:flags.6?Vector token:flags.8?string app_sandbox:flags.8?Bool = CodeSettings; wallPaperSettings#372efcd0 flags:# blur:flags.1?true motion:flags.2?true background_color:flags.0?int second_background_color:flags.4?int third_background_color:flags.5?int fourth_background_color:flags.6?int intensity:flags.3?int rotation:flags.4?int emoticon:flags.7?string = WallPaperSettings; autoDownloadSettings#baa57628 flags:# disabled:flags.0?true video_preload_large:flags.1?true audio_preload_next:flags.2?true phonecalls_less_data:flags.3?true stories_preload:flags.4?true photo_size_max:int video_size_max:long file_size_max:long video_upload_maxbitrate:int small_queue_active_operations_max:int large_queue_active_operations_max:int = AutoDownloadSettings; account.autoDownloadSettings#63cacf26 low:AutoDownloadSettings medium:AutoDownloadSettings high:AutoDownloadSettings = account.AutoDownloadSettings; @@ -952,12 +979,13 @@ inputThemeSettings#8fde504f flags:# message_colors_animated:flags.2?true base_th themeSettings#fa58b6d4 flags:# message_colors_animated:flags.2?true base_theme:BaseTheme accent_color:int outbox_accent_color:flags.3?int message_colors:flags.0?Vector wallpaper:flags.1?WallPaper = ThemeSettings; webPageAttributeTheme#54b56617 flags:# documents:flags.0?Vector settings:flags.1?ThemeSettings = WebPageAttribute; webPageAttributeStory#2e94c3e7 flags:# peer:Peer id:int story:flags.0?StoryItem = WebPageAttribute; +webPageAttributeStickerSet#50cc03d3 flags:# emojis:flags.0?true text_color:flags.1?true stickers:Vector = WebPageAttribute; messages.votesList#4899484e flags:# count:int votes:Vector chats:Vector users:Vector next_offset:flags.0?string = messages.VotesList; bankCardOpenUrl#f568028a url:string name:string = BankCardOpenUrl; payments.bankCardData#3e24e573 title:string open_urls:Vector = payments.BankCardData; -dialogFilter#7438f7e8 flags:# contacts:flags.0?true non_contacts:flags.1?true groups:flags.2?true broadcasts:flags.3?true bots:flags.4?true exclude_muted:flags.11?true exclude_read:flags.12?true exclude_archived:flags.13?true id:int title:string emoticon:flags.25?string pinned_peers:Vector include_peers:Vector exclude_peers:Vector = DialogFilter; +dialogFilter#5fb5523b flags:# contacts:flags.0?true non_contacts:flags.1?true groups:flags.2?true broadcasts:flags.3?true bots:flags.4?true exclude_muted:flags.11?true exclude_read:flags.12?true exclude_archived:flags.13?true id:int title:string emoticon:flags.25?string color:flags.27?int pinned_peers:Vector include_peers:Vector exclude_peers:Vector = DialogFilter; dialogFilterDefault#363293ae = DialogFilter; -dialogFilterChatlist#d64a04a8 flags:# has_my_invites:flags.26?true id:int title:string emoticon:flags.25?string pinned_peers:Vector include_peers:Vector = DialogFilter; +dialogFilterChatlist#9fe28ea4 flags:# has_my_invites:flags.26?true id:int title:string emoticon:flags.25?string color:flags.27?int pinned_peers:Vector include_peers:Vector = DialogFilter; dialogFilterSuggested#77744d4a filter:DialogFilter description:string = DialogFilterSuggested; statsDateRangeDays#b637edaf min_date:int max_date:int = StatsDateRangeDays; statsAbsValueAndPrev#cb43acde current:double previous:double = StatsAbsValueAndPrev; @@ -1026,7 +1054,7 @@ botCommandScopePeerUser#a1321f3 peer:InputPeer user_id:InputUser = BotCommandSco account.resetPasswordFailedWait#e3779861 retry_date:int = account.ResetPasswordResult; account.resetPasswordRequestedWait#e9effc7d until_date:int = account.ResetPasswordResult; account.resetPasswordOk#e926d63e = account.ResetPasswordResult; -sponsoredMessage#ed5383f7 flags:# recommended:flags.5?true show_peer_photo:flags.6?true random_id:bytes from_id:flags.3?Peer chat_invite:flags.4?ChatInvite chat_invite_hash:flags.4?string channel_post:flags.2?int start_param:flags.0?string webpage:flags.9?SponsoredWebPage app:flags.10?BotApp message:string entities:flags.1?Vector button_text:flags.11?string sponsor_info:flags.7?string additional_info:flags.8?string = SponsoredMessage; +sponsoredMessage#bdedf566 flags:# recommended:flags.5?true can_report:flags.12?true random_id:bytes url:string title:string message:string entities:flags.1?Vector photo:flags.6?Photo color:flags.13?PeerColor button_text:string sponsor_info:flags.7?string additional_info:flags.8?string = SponsoredMessage; messages.sponsoredMessages#c9ee1d87 flags:# posts_between:flags.0?int messages:Vector chats:Vector users:Vector = messages.SponsoredMessages; messages.sponsoredMessagesEmpty#1839490f = messages.SponsoredMessages; searchResultsCalendarPeriod#c9b0539f date:int min_msg_id:int max_msg_id:int count:int = SearchResultsCalendarPeriod; @@ -1053,8 +1081,7 @@ attachMenuBot#d90d8dfe flags:# inactive:flags.0?true has_settings:flags.1?true r attachMenuBotsNotModified#f1d88a5c = AttachMenuBots; attachMenuBots#3c4301c0 hash:long bots:Vector users:Vector = AttachMenuBots; attachMenuBotsBot#93bf667f bot:AttachMenuBot users:Vector = AttachMenuBotsBot; -webViewResultUrl#c14557c query_id:long url:string = WebViewResult; -simpleWebViewResultUrl#882f76bb url:string = SimpleWebViewResult; +webViewResultUrl#4d22ff98 flags:# fullsize:flags.1?true query_id:flags.0?long url:string = WebViewResult; webViewMessageSent#c94511c flags:# msg_id:flags.0?InputBotInlineMessageID = WebViewMessageSent; botMenuButtonDefault#7533a588 = BotMenuButton; botMenuButtonCommands#4258c205 = BotMenuButton; @@ -1075,6 +1102,7 @@ attachMenuPeerTypeBroadcast#7bfbdefc = AttachMenuPeerType; inputInvoiceMessage#c5b56859 peer:InputPeer msg_id:int = InputInvoice; inputInvoiceSlug#c326caef slug:string = InputInvoice; inputInvoicePremiumGiftCode#98986c0d purpose:InputStorePaymentPurpose option:PremiumGiftCodeOption = InputInvoice; +inputInvoiceStars#1da33ad8 option:StarsTopupOption = InputInvoice; payments.exportedInvoice#aed0cbd9 url:string = payments.ExportedInvoice; messages.transcribedAudio#cfb9d957 flags:# pending:flags.0?true transcription_id:long text:string trial_remains_num:flags.1?int trial_remains_until_date:flags.1?int = messages.TranscribedAudio; help.premiumPromo#5334759c status_text:string status_entities:Vector video_sections:Vector videos:Vector period_options:Vector users:Vector = help.PremiumPromo; @@ -1082,6 +1110,7 @@ inputStorePaymentPremiumSubscription#a6751e66 flags:# restore:flags.0?true upgra inputStorePaymentGiftPremium#616f7fe8 user_id:InputUser currency:string amount:long = InputStorePaymentPurpose; inputStorePaymentPremiumGiftCode#a3805f3f flags:# users:Vector boost_peer:flags.0?InputPeer currency:string amount:long = InputStorePaymentPurpose; inputStorePaymentPremiumGiveaway#160544ca flags:# only_new_subscribers:flags.0?true winners_are_visible:flags.3?true boost_peer:InputPeer additional_peers:flags.1?Vector countries_iso2:flags.2?Vector prize_description:flags.4?string random_id:long until_date:int currency:string amount:long = InputStorePaymentPurpose; +inputStorePaymentStars#4f0ee8df flags:# stars:long currency:string amount:long = InputStorePaymentPurpose; premiumGiftOption#74c34319 flags:# months:int currency:string amount:long bot_url:string store_product:flags.0?string = PremiumGiftOption; paymentFormMethod#88f8f21b url:string title:string = PaymentFormMethod; emojiStatusEmpty#2de11aae = EmojiStatus; @@ -1122,6 +1151,8 @@ requestPeerTypeBroadcast#339bef6c flags:# creator:flags.0?true has_username:flag emojiListNotModified#481eadfa = EmojiList; emojiList#7a1e11d1 hash:long document_id:Vector = EmojiList; emojiGroup#7a9abda9 title:string icon_emoji_id:long emoticons:Vector = EmojiGroup; +emojiGroupGreeting#80d26cc7 title:string icon_emoji_id:long emoticons:Vector = EmojiGroup; +emojiGroupPremium#93bcf34 title:string icon_emoji_id:long = EmojiGroup; messages.emojiGroupsNotModified#6fb4ad87 = messages.EmojiGroups; messages.emojiGroups#881fb94b hash:int groups:Vector = messages.EmojiGroups; textWithEntities#751f3146 text:string entities:Vector = TextWithEntities; @@ -1136,7 +1167,6 @@ inputBotAppShortName#908c0407 bot_id:InputUser short_name:string = InputBotApp; botAppNotModified#5da674b7 = BotApp; botApp#95fcd1d6 flags:# id:long access_hash:long short_name:string title:string description:string photo:Photo document:flags.0?Document hash:long = BotApp; messages.botApp#eb50adf5 flags:# inactive:flags.0?true request_write_access:flags.1?true has_settings:flags.2?true app:BotApp = messages.BotApp; -appWebViewResultUrl#3c1b4f0d url:string = AppWebViewResult; inlineBotWebView#b57295d5 text:string url:string = InlineBotWebView; readParticipantDate#4a4ff172 user_id:long date:int = ReadParticipantDate; inputChatlistDialogFilter#f3e0da33 filter_id:int = InputChatlist; @@ -1150,14 +1180,13 @@ bots.botInfo#e8a775b0 name:string about:string description:string = bots.BotInfo messagePeerVote#b6cc2d5c peer:Peer option:bytes date:int = MessagePeerVote; messagePeerVoteInputOption#74cda504 peer:Peer date:int = MessagePeerVote; messagePeerVoteMultiple#4628f6e6 peer:Peer options:Vector date:int = MessagePeerVote; -sponsoredWebPage#3db8ec63 flags:# url:string site_name:string photo:flags.0?Photo = SponsoredWebPage; storyViews#8d595cd6 flags:# has_viewers:flags.1?true views_count:int forwards_count:flags.2?int reactions:flags.3?Vector reactions_count:flags.4?int recent_viewers:flags.0?Vector = StoryViews; storyItemDeleted#51e6ee4f id:int = StoryItem; storyItemSkipped#ffadc913 flags:# close_friends:flags.8?true id:int date:int expire_date:int = StoryItem; storyItem#79b26a24 flags:# pinned:flags.5?true public:flags.7?true close_friends:flags.8?true min:flags.9?true noforwards:flags.10?true edited:flags.11?true contacts:flags.12?true selected_contacts:flags.13?true out:flags.16?true id:int date:int from_id:flags.18?Peer fwd_from:flags.17?StoryFwdHeader expire_date:int caption:flags.0?string entities:flags.1?Vector media:MessageMedia media_areas:flags.14?Vector privacy:flags.2?Vector views:flags.3?StoryViews sent_reaction:flags.15?Reaction = StoryItem; stories.allStoriesNotModified#1158fe3e flags:# state:string stealth_mode:StoriesStealthMode = stories.AllStories; stories.allStories#6efc5e81 flags:# has_more:flags.0?true count:int state:string peer_stories:Vector chats:Vector users:Vector stealth_mode:StoriesStealthMode = stories.AllStories; -stories.stories#5dd8c3c8 count:int stories:Vector chats:Vector users:Vector = stories.Stories; +stories.stories#63c3dd0a flags:# count:int stories:Vector pinned_to_top:flags.0?Vector chats:Vector users:Vector = stories.Stories; storyView#b0bdeac5 flags:# blocked:flags.0?true blocked_my_stories_from:flags.1?true user_id:long date:int reaction:flags.2?Reaction = StoryView; storyViewPublicForward#9083670b flags:# blocked:flags.0?true blocked_my_stories_from:flags.1?true message:Message = StoryView; storyViewPublicRepost#bd74cf49 flags:# blocked:flags.0?true blocked_my_stories_from:flags.1?true peer_id:Peer story:StoryItem = StoryView; @@ -1167,13 +1196,14 @@ inputReplyToMessage#22c0f6d5 flags:# reply_to_msg_id:int top_msg_id:flags.0?int inputReplyToStory#5881323a peer:InputPeer story_id:int = InputReplyTo; exportedStoryLink#3fc9053b link:string = ExportedStoryLink; storiesStealthMode#712e27fd flags:# active_until_date:flags.0?int cooldown_until_date:flags.1?int = StoriesStealthMode; -mediaAreaCoordinates#3d1ea4e x:double y:double w:double h:double rotation:double = MediaAreaCoordinates; +mediaAreaCoordinates#cfc9e002 flags:# x:double y:double w:double h:double rotation:double radius:flags.0?double = MediaAreaCoordinates; mediaAreaVenue#be82db9c coordinates:MediaAreaCoordinates geo:GeoPoint title:string address:string provider:string venue_id:string venue_type:string = MediaArea; inputMediaAreaVenue#b282217f coordinates:MediaAreaCoordinates query_id:long result_id:string = MediaArea; -mediaAreaGeoPoint#df8b3b22 coordinates:MediaAreaCoordinates geo:GeoPoint = MediaArea; +mediaAreaGeoPoint#cad5452d flags:# coordinates:MediaAreaCoordinates geo:GeoPoint address:flags.0?GeoPointAddress = MediaArea; mediaAreaSuggestedReaction#14455871 flags:# dark:flags.0?true flipped:flags.1?true coordinates:MediaAreaCoordinates reaction:Reaction = MediaArea; mediaAreaChannelPost#770416af coordinates:MediaAreaCoordinates channel_id:long msg_id:int = MediaArea; inputMediaAreaChannelPost#2271f2bf coordinates:MediaAreaCoordinates channel:InputChannel msg_id:int = MediaArea; +mediaAreaUrl#37381085 coordinates:MediaAreaCoordinates url:string = MediaArea; peerStories#9a35e999 flags:# peer:Peer max_read_id:flags.0?int stories:Vector = PeerStories; stories.peerStories#cae68768 stories:PeerStories chats:Vector users:Vector = stories.PeerStories; messages.webPage#fd5e12bd webpage:WebPage chats:Vector users:Vector = messages.WebPage; @@ -1212,6 +1242,89 @@ savedReactionTag#cb6ff828 flags:# reaction:Reaction title:flags.0?string count:i messages.savedReactionTagsNotModified#889b59ef = messages.SavedReactionTags; messages.savedReactionTags#3259950a tags:Vector hash:long = messages.SavedReactionTags; outboxReadDate#3bb842ac date:int = OutboxReadDate; +smsjobs.eligibleToJoin#dc8b44cf terms_url:string monthly_sent_sms:int = smsjobs.EligibilityToJoin; +smsjobs.status#2aee9191 flags:# allow_international:flags.0?true recent_sent:int recent_since:int recent_remains:int total_sent:int total_since:int last_gift_slug:flags.1?string terms_url:string = smsjobs.Status; +smsJob#e6a1eeb8 job_id:string phone_number:string text:string = SmsJob; +businessWeeklyOpen#120b1ab9 start_minute:int end_minute:int = BusinessWeeklyOpen; +businessWorkHours#8c92b098 flags:# open_now:flags.0?true timezone_id:string weekly_open:Vector = BusinessWorkHours; +businessLocation#ac5c1af7 flags:# geo_point:flags.0?GeoPoint address:string = BusinessLocation; +inputBusinessRecipients#6f8b32aa flags:# existing_chats:flags.0?true new_chats:flags.1?true contacts:flags.2?true non_contacts:flags.3?true exclude_selected:flags.5?true users:flags.4?Vector = InputBusinessRecipients; +businessRecipients#21108ff7 flags:# existing_chats:flags.0?true new_chats:flags.1?true contacts:flags.2?true non_contacts:flags.3?true exclude_selected:flags.5?true users:flags.4?Vector = BusinessRecipients; +businessAwayMessageScheduleAlways#c9b9e2b9 = BusinessAwayMessageSchedule; +businessAwayMessageScheduleOutsideWorkHours#c3f2f501 = BusinessAwayMessageSchedule; +businessAwayMessageScheduleCustom#cc4d9ecc start_date:int end_date:int = BusinessAwayMessageSchedule; +inputBusinessGreetingMessage#194cb3b shortcut_id:int recipients:InputBusinessRecipients no_activity_days:int = InputBusinessGreetingMessage; +businessGreetingMessage#e519abab shortcut_id:int recipients:BusinessRecipients no_activity_days:int = BusinessGreetingMessage; +inputBusinessAwayMessage#832175e0 flags:# offline_only:flags.0?true shortcut_id:int schedule:BusinessAwayMessageSchedule recipients:InputBusinessRecipients = InputBusinessAwayMessage; +businessAwayMessage#ef156a5c flags:# offline_only:flags.0?true shortcut_id:int schedule:BusinessAwayMessageSchedule recipients:BusinessRecipients = BusinessAwayMessage; +timezone#ff9289f5 id:string name:string utc_offset:int = Timezone; +help.timezonesListNotModified#970708cc = help.TimezonesList; +help.timezonesList#7b74ed71 timezones:Vector hash:int = help.TimezonesList; +quickReply#697102b shortcut_id:int shortcut:string top_message:int count:int = QuickReply; +inputQuickReplyShortcut#24596d41 shortcut:string = InputQuickReplyShortcut; +inputQuickReplyShortcutId#1190cf1 shortcut_id:int = InputQuickReplyShortcut; +messages.quickReplies#c68d6695 quick_replies:Vector messages:Vector chats:Vector users:Vector = messages.QuickReplies; +messages.quickRepliesNotModified#5f91eb5b = messages.QuickReplies; +connectedBot#bd068601 flags:# can_reply:flags.0?true bot_id:long recipients:BusinessBotRecipients = ConnectedBot; +account.connectedBots#17d7f87b connected_bots:Vector users:Vector = account.ConnectedBots; +messages.dialogFilters#2ad93719 flags:# tags_enabled:flags.0?true filters:Vector = messages.DialogFilters; +birthday#6c8e1e06 flags:# day:int month:int year:flags.0?int = Birthday; +botBusinessConnection#896433b4 flags:# can_reply:flags.0?true disabled:flags.1?true connection_id:string user_id:long dc_id:int date:int = BotBusinessConnection; +inputBusinessIntro#9c469cd flags:# title:string description:string sticker:flags.0?InputDocument = InputBusinessIntro; +businessIntro#5a0a066d flags:# title:string description:string sticker:flags.0?Document = BusinessIntro; +messages.myStickers#faff629d count:int sets:Vector = messages.MyStickers; +inputCollectibleUsername#e39460a9 username:string = InputCollectible; +inputCollectiblePhone#a2e214a4 phone:string = InputCollectible; +fragment.collectibleInfo#6ebdff91 purchase_date:int currency:string amount:long crypto_currency:string crypto_amount:long url:string = fragment.CollectibleInfo; +inputBusinessBotRecipients#c4e5921e flags:# existing_chats:flags.0?true new_chats:flags.1?true contacts:flags.2?true non_contacts:flags.3?true exclude_selected:flags.5?true users:flags.4?Vector exclude_users:flags.6?Vector = InputBusinessBotRecipients; +businessBotRecipients#b88cf373 flags:# existing_chats:flags.0?true new_chats:flags.1?true contacts:flags.2?true non_contacts:flags.3?true exclude_selected:flags.5?true users:flags.4?Vector exclude_users:flags.6?Vector = BusinessBotRecipients; +contactBirthday#1d998733 contact_id:long birthday:Birthday = ContactBirthday; +contacts.contactBirthdays#114ff30d contacts:Vector users:Vector = contacts.ContactBirthdays; +missingInvitee#628c9224 flags:# premium_would_allow_invite:flags.0?true premium_required_for_pm:flags.1?true user_id:long = MissingInvitee; +messages.invitedUsers#7f5defa6 updates:Updates missing_invitees:Vector = messages.InvitedUsers; +inputBusinessChatLink#11679fa7 flags:# message:string entities:flags.0?Vector title:flags.1?string = InputBusinessChatLink; +businessChatLink#b4ae666f flags:# link:string message:string entities:flags.0?Vector title:flags.1?string views:int = BusinessChatLink; +account.businessChatLinks#ec43a2d1 links:Vector chats:Vector users:Vector = account.BusinessChatLinks; +account.resolvedBusinessChatLinks#9a23af21 flags:# peer:Peer message:string entities:flags.0?Vector chats:Vector users:Vector = account.ResolvedBusinessChatLinks; +requestedPeerUser#d62ff46a flags:# user_id:long first_name:flags.0?string last_name:flags.0?string username:flags.1?string photo:flags.2?Photo = RequestedPeer; +requestedPeerChat#7307544f flags:# chat_id:long title:flags.0?string photo:flags.2?Photo = RequestedPeer; +requestedPeerChannel#8ba403e4 flags:# channel_id:long title:flags.0?string username:flags.1?string photo:flags.2?Photo = RequestedPeer; +sponsoredMessageReportOption#430d3150 text:string option:bytes = SponsoredMessageReportOption; +channels.sponsoredMessageReportResultChooseOption#846f9e42 title:string options:Vector = channels.SponsoredMessageReportResult; +channels.sponsoredMessageReportResultAdsHidden#3e3bcf2f = channels.SponsoredMessageReportResult; +channels.sponsoredMessageReportResultReported#ad798849 = channels.SponsoredMessageReportResult; +stats.broadcastRevenueStats#5407e297 top_hours_graph:StatsGraph revenue_graph:StatsGraph balances:BroadcastRevenueBalances usd_rate:double = stats.BroadcastRevenueStats; +stats.broadcastRevenueWithdrawalUrl#ec659737 url:string = stats.BroadcastRevenueWithdrawalUrl; +broadcastRevenueTransactionProceeds#557e2cc4 amount:long from_date:int to_date:int = BroadcastRevenueTransaction; +broadcastRevenueTransactionWithdrawal#5a590978 flags:# pending:flags.0?true failed:flags.2?true amount:long date:int provider:string transaction_date:flags.1?int transaction_url:flags.1?string = BroadcastRevenueTransaction; +broadcastRevenueTransactionRefund#42d30d2e amount:long date:int provider:string = BroadcastRevenueTransaction; +stats.broadcastRevenueTransactions#87158466 count:int transactions:Vector = stats.BroadcastRevenueTransactions; +reactionNotificationsFromContacts#bac3a61a = ReactionNotificationsFrom; +reactionNotificationsFromAll#4b9e22a0 = ReactionNotificationsFrom; +reactionsNotifySettings#56e34970 flags:# messages_notify_from:flags.0?ReactionNotificationsFrom stories_notify_from:flags.1?ReactionNotificationsFrom sound:NotificationSound show_previews:Bool = ReactionsNotifySettings; +broadcastRevenueBalances#8438f1c6 current_balance:long available_balance:long overall_revenue:long = BroadcastRevenueBalances; +availableEffect#93c3e27e flags:# premium_required:flags.2?true id:long emoticon:string static_icon_id:flags.0?long effect_sticker_id:long effect_animation_id:flags.1?long = AvailableEffect; +messages.availableEffectsNotModified#d1ed9a5b = messages.AvailableEffects; +messages.availableEffects#bddb616e hash:int effects:Vector documents:Vector = messages.AvailableEffects; +factCheck#b89bfccf flags:# need_check:flags.0?true country:flags.1?string text:flags.1?TextWithEntities hash:long = FactCheck; +starsTransactionPeerUnsupported#95f2bfe4 = StarsTransactionPeer; +starsTransactionPeerAppStore#b457b375 = StarsTransactionPeer; +starsTransactionPeerPlayMarket#7b560a0b = StarsTransactionPeer; +starsTransactionPeerPremiumBot#250dbaf8 = StarsTransactionPeer; +starsTransactionPeerFragment#e92fd902 = StarsTransactionPeer; +starsTransactionPeer#d80da15d peer:Peer = StarsTransactionPeer; +starsTransactionPeerAds#60682812 = StarsTransactionPeer; +starsTopupOption#bd915c0 flags:# extended:flags.1?true stars:long store_product:flags.0?string currency:string amount:long = StarsTopupOption; +starsTransaction#2db5418f flags:# refund:flags.3?true pending:flags.4?true failed:flags.6?true id:string stars:long date:int peer:StarsTransactionPeer title:flags.0?string description:flags.1?string photo:flags.2?WebDocument transaction_date:flags.5?int transaction_url:flags.5?string bot_payload:flags.7?bytes msg_id:flags.8?int extended_media:flags.9?Vector = StarsTransaction; +payments.starsStatus#8cf4ee60 flags:# balance:long history:Vector next_offset:flags.0?string chats:Vector users:Vector = payments.StarsStatus; +foundStory#e87acbc0 peer:Peer story:StoryItem = FoundStory; +stories.foundStories#e2de7737 flags:# count:int stories:Vector next_offset:flags.0?string chats:Vector users:Vector = stories.FoundStories; +geoPointAddress#de4c5d93 flags:# country_iso2:string state:flags.0?string city:flags.1?string street:flags.2?string = GeoPointAddress; +starsRevenueStatus#79342946 flags:# withdrawal_enabled:flags.0?true current_balance:long available_balance:long overall_revenue:long next_withdrawal_at:flags.1?int = StarsRevenueStatus; +payments.starsRevenueStats#c92bb73b revenue_graph:StatsGraph status:StarsRevenueStatus usd_rate:double = payments.StarsRevenueStats; +payments.starsRevenueWithdrawalUrl#1dab80b7 url:string = payments.StarsRevenueWithdrawalUrl; +payments.starsRevenueAdsAccountUrl#394e7f21 url:string = payments.StarsRevenueAdsAccountUrl; +inputStarsTransaction#206ae6d1 flags:# refund:flags.0?true id:string = InputStarsTransaction; ---functions--- invokeAfterMsg#cb9f372d {X:Type} msg_id:long query:!X = X; invokeAfterMsgs#3dc4b4f0 {X:Type} msg_ids:Vector query:!X = X; @@ -1220,6 +1333,9 @@ invokeWithLayer#da9b0d0d {X:Type} layer:int query:!X = X; invokeWithoutUpdates#bf9459b7 {X:Type} query:!X = X; invokeWithMessagesRange#365275f2 {X:Type} range:MessageRange query:!X = X; invokeWithTakeout#aca9fd2e {X:Type} takeout_id:long query:!X = X; +invokeWithBusinessConnection#dd289f8e {X:Type} connection_id:string query:!X = X; +invokeWithGooglePlayIntegrity#1df92984 {X:Type} nonce:string token:string query:!X = X; +invokeWithApnsSecret#0dae54f8 {X:Type} nonce:string secret:string query:!X = X; auth.sendCode#a677244f phone_number:string api_id:int api_hash:string settings:CodeSettings = auth.SentCode; auth.signUp#aac7b717 flags:# no_joined_notifications:flags.0?true phone_number:string phone_code_hash:string first_name:string last_name:string = auth.Authorization; auth.signIn#8d52a951 flags:# phone_number:string phone_code_hash:string phone_code:flags.0?string email_verification:flags.1?EmailVerification = auth.Authorization; @@ -1232,7 +1348,7 @@ auth.importBotAuthorization#67a3ff2c flags:int api_id:int api_hash:string bot_au auth.checkPassword#d18b4d16 password:InputCheckPasswordSRP = auth.Authorization; auth.requestPasswordRecovery#d897bc66 = auth.PasswordRecovery; auth.recoverPassword#37096c70 flags:# code:string new_settings:flags.0?account.PasswordInputSettings = auth.Authorization; -auth.resendCode#3ef1a9bf phone_number:string phone_code_hash:string = auth.SentCode; +auth.resendCode#cae47523 flags:# phone_number:string phone_code_hash:string reason:flags.0?string = auth.SentCode; auth.cancelCode#1f040578 phone_number:string phone_code_hash:string = Bool; auth.dropTempAuthKeys#8e48a188 except_auth_keys:Vector = Bool; auth.exportLoginToken#b7e085fe api_id:int api_hash:string except_ids:Vector = auth.LoginToken; @@ -1240,8 +1356,9 @@ auth.importLoginToken#95ac5ce4 token:bytes = auth.LoginToken; auth.acceptLoginToken#e894ad4d token:bytes = Authorization; auth.checkRecoveryPassword#d36bf79 code:string = Bool; auth.importWebTokenAuthorization#2db873a9 api_id:int api_hash:string web_auth_token:string = auth.Authorization; -auth.requestFirebaseSms#89464b50 flags:# phone_number:string phone_code_hash:string safety_net_token:flags.0?string ios_push_secret:flags.1?string = Bool; +auth.requestFirebaseSms#8e39261e flags:# phone_number:string phone_code_hash:string safety_net_token:flags.0?string play_integrity_token:flags.2?string ios_push_secret:flags.1?string = Bool; auth.resetLoginEmail#7e960193 phone_number:string phone_code_hash:string = auth.SentCode; +auth.reportMissingCode#cb9deff6 phone_number:string phone_code_hash:string mnc:string = Bool; account.registerDevice#ec86017a flags:# no_muted:flags.0?true token_type:int token:string app_sandbox:Bool secret:bytes other_uids:Vector = Bool; account.unregisterDevice#6a0d3206 token_type:int token:string other_uids:Vector = Bool; account.updateNotifySettings#84be5b93 peer:InputNotifyPeer settings:InputPeerNotifySettings = Bool; @@ -1334,6 +1451,26 @@ account.updateColor#7cefa15d flags:# for_profile:flags.1?true color:flags.2?int account.getDefaultBackgroundEmojis#a60ab9ce hash:long = EmojiList; account.getChannelDefaultEmojiStatuses#7727a7d5 hash:long = account.EmojiStatuses; account.getChannelRestrictedStatusEmojis#35a9e0d5 hash:long = EmojiList; +account.updateBusinessWorkHours#4b00e066 flags:# business_work_hours:flags.0?BusinessWorkHours = Bool; +account.updateBusinessLocation#9e6b131a flags:# geo_point:flags.1?InputGeoPoint address:flags.0?string = Bool; +account.updateBusinessGreetingMessage#66cdafc4 flags:# message:flags.0?InputBusinessGreetingMessage = Bool; +account.updateBusinessAwayMessage#a26a7fa5 flags:# message:flags.0?InputBusinessAwayMessage = Bool; +account.updateConnectedBot#43d8521d flags:# can_reply:flags.0?true deleted:flags.1?true bot:InputUser recipients:InputBusinessBotRecipients = Updates; +account.getConnectedBots#4ea4c80f = account.ConnectedBots; +account.getBotBusinessConnection#76a86270 connection_id:string = Updates; +account.updateBusinessIntro#a614d034 flags:# intro:flags.0?InputBusinessIntro = Bool; +account.toggleConnectedBotPaused#646e1097 peer:InputPeer paused:Bool = Bool; +account.disablePeerConnectedBot#5e437ed9 peer:InputPeer = Bool; +account.updateBirthday#cc6e0c11 flags:# birthday:flags.0?Birthday = Bool; +account.createBusinessChatLink#8851e68e link:InputBusinessChatLink = BusinessChatLink; +account.editBusinessChatLink#8c3410af slug:string link:InputBusinessChatLink = BusinessChatLink; +account.deleteBusinessChatLink#60073674 slug:string = Bool; +account.getBusinessChatLinks#6f70dde1 = account.BusinessChatLinks; +account.resolveBusinessChatLink#5492e5ee slug:string = account.ResolvedBusinessChatLinks; +account.updatePersonalChannel#d94305e0 channel:InputChannel = Bool; +account.toggleSponsoredMessages#b9d9a38d enabled:Bool = Bool; +account.getReactionsNotifySettings#6dd654c = ReactionsNotifySettings; +account.setReactionsNotifySettings#316ce548 settings:ReactionsNotifySettings = ReactionsNotifySettings; users.getUsers#d91a548 id:Vector = Vector; users.getFullUser#b60f5918 id:InputUser = users.UserFull; users.setSecureValueErrors#90c894b5 id:InputUser errors:Vector = Bool; @@ -1363,6 +1500,7 @@ contacts.exportContactToken#f8654027 = ExportedContactToken; contacts.importContactToken#13005788 token:string = User; contacts.editCloseFriends#ba6705f0 id:Vector = Bool; contacts.setBlocked#94c65c76 flags:# my_stories_from:flags.0?true id:Vector limit:int = Bool; +contacts.getBirthdays#daeda864 = contacts.ContactBirthdays; messages.getMessages#63c66506 id:Vector = messages.Messages; messages.getDialogs#a0f4cb4f flags:# exclude_pinned:flags.0?true folder_id:flags.1?int offset_date:int offset_id:int offset_peer:InputPeer limit:int hash:long = messages.Dialogs; messages.getHistory#4423e6c5 peer:InputPeer offset_id:int offset_date:int add_offset:int limit:int max_id:int min_id:int hash:long = messages.Messages; @@ -1372,9 +1510,9 @@ messages.deleteHistory#b08f922a flags:# just_clear:flags.0?true revoke:flags.1?t messages.deleteMessages#e58e95d2 flags:# revoke:flags.0?true id:Vector = messages.AffectedMessages; messages.receivedMessages#5a954c0 max_id:int = Vector; messages.setTyping#58943ee2 flags:# peer:InputPeer top_msg_id:flags.0?int action:SendMessageAction = Bool; -messages.sendMessage#280d096f flags:# no_webpage:flags.1?true silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true update_stickersets_order:flags.15?true invert_media:flags.16?true peer:InputPeer reply_to:flags.0?InputReplyTo message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector schedule_date:flags.10?int send_as:flags.13?InputPeer = Updates; -messages.sendMedia#72ccc23d flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true update_stickersets_order:flags.15?true invert_media:flags.16?true peer:InputPeer reply_to:flags.0?InputReplyTo media:InputMedia message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector schedule_date:flags.10?int send_as:flags.13?InputPeer = Updates; -messages.forwardMessages#c661bbc4 flags:# silent:flags.5?true background:flags.6?true with_my_score:flags.8?true drop_author:flags.11?true drop_media_captions:flags.12?true noforwards:flags.14?true from_peer:InputPeer id:Vector random_id:Vector to_peer:InputPeer top_msg_id:flags.9?int schedule_date:flags.10?int send_as:flags.13?InputPeer = Updates; +messages.sendMessage#983f9745 flags:# no_webpage:flags.1?true silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true update_stickersets_order:flags.15?true invert_media:flags.16?true peer:InputPeer reply_to:flags.0?InputReplyTo message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector schedule_date:flags.10?int send_as:flags.13?InputPeer quick_reply_shortcut:flags.17?InputQuickReplyShortcut effect:flags.18?long = Updates; +messages.sendMedia#7852834e flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true update_stickersets_order:flags.15?true invert_media:flags.16?true peer:InputPeer reply_to:flags.0?InputReplyTo media:InputMedia message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector schedule_date:flags.10?int send_as:flags.13?InputPeer quick_reply_shortcut:flags.17?InputQuickReplyShortcut effect:flags.18?long = Updates; +messages.forwardMessages#d5039208 flags:# silent:flags.5?true background:flags.6?true with_my_score:flags.8?true drop_author:flags.11?true drop_media_captions:flags.12?true noforwards:flags.14?true from_peer:InputPeer id:Vector random_id:Vector to_peer:InputPeer top_msg_id:flags.9?int schedule_date:flags.10?int send_as:flags.13?InputPeer quick_reply_shortcut:flags.17?InputQuickReplyShortcut = Updates; messages.reportSpam#cf1592db peer:InputPeer = Bool; messages.getPeerSettings#efd9a6a2 peer:InputPeer = messages.PeerSettings; messages.report#8953ab4e peer:InputPeer id:Vector reason:ReportReason message:string = Bool; @@ -1382,9 +1520,9 @@ messages.getChats#49e9528f id:Vector = messages.Chats; messages.getFullChat#aeb00b34 chat_id:long = messages.ChatFull; messages.editChatTitle#73783ffd chat_id:long title:string = Updates; messages.editChatPhoto#35ddd674 chat_id:long photo:InputChatPhoto = Updates; -messages.addChatUser#f24753e3 chat_id:long user_id:InputUser fwd_limit:int = Updates; +messages.addChatUser#cbc6d107 chat_id:long user_id:InputUser fwd_limit:int = messages.InvitedUsers; messages.deleteChatUser#a2185cab flags:# revoke_history:flags.0?true chat_id:long user_id:InputUser = Updates; -messages.createChat#34a818 flags:# users:Vector title:string ttl_period:flags.0?int = Updates; +messages.createChat#92ceddd4 flags:# users:Vector title:string ttl_period:flags.0?int = messages.InvitedUsers; messages.getDhConfig#26cf8950 version:int random_length:int = messages.DhConfig; messages.requestEncryption#f64daf43 user_id:InputUser random_id:int g_a:bytes = EncryptedChat; messages.acceptEncryption#3dbc0415 peer:InputEncryptedChat g_b:bytes key_fingerprint:long = EncryptedChat; @@ -1410,21 +1548,21 @@ messages.startBot#e6df7378 bot:InputUser peer:InputPeer random_id:long start_par messages.getMessagesViews#5784d3e1 peer:InputPeer id:Vector increment:Bool = messages.MessageViews; messages.editChatAdmin#a85bd1c2 chat_id:long user_id:InputUser is_admin:Bool = Bool; messages.migrateChat#a2875319 chat_id:long = Updates; -messages.searchGlobal#4bc6589a flags:# folder_id:flags.0?int q:string filter:MessagesFilter min_date:int max_date:int offset_rate:int offset_peer:InputPeer offset_id:int limit:int = messages.Messages; +messages.searchGlobal#4bc6589a flags:# broadcasts_only:flags.1?true folder_id:flags.0?int q:string filter:MessagesFilter min_date:int max_date:int offset_rate:int offset_peer:InputPeer offset_id:int limit:int = messages.Messages; messages.reorderStickerSets#78337739 flags:# masks:flags.0?true emojis:flags.1?true order:Vector = Bool; messages.getDocumentByHash#b1f2061f sha256:bytes size:long mime_type:string = Document; messages.getSavedGifs#5cf09635 hash:long = messages.SavedGifs; messages.saveGif#327a30cb id:InputDocument unsave:Bool = Bool; messages.getInlineBotResults#514e999d flags:# bot:InputUser peer:InputPeer geo_point:flags.0?InputGeoPoint query:string offset:string = messages.BotResults; messages.setInlineBotResults#bb12a419 flags:# gallery:flags.0?true private:flags.1?true query_id:long results:Vector cache_time:int next_offset:flags.2?string switch_pm:flags.3?InlineBotSwitchPM switch_webview:flags.4?InlineBotWebView = Bool; -messages.sendInlineBotResult#f7bc68ba flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true hide_via:flags.11?true peer:InputPeer reply_to:flags.0?InputReplyTo random_id:long query_id:long id:string schedule_date:flags.10?int send_as:flags.13?InputPeer = Updates; +messages.sendInlineBotResult#3ebee86a flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true hide_via:flags.11?true peer:InputPeer reply_to:flags.0?InputReplyTo random_id:long query_id:long id:string schedule_date:flags.10?int send_as:flags.13?InputPeer quick_reply_shortcut:flags.17?InputQuickReplyShortcut = Updates; messages.getMessageEditData#fda68d36 peer:InputPeer id:int = messages.MessageEditData; -messages.editMessage#48f71778 flags:# no_webpage:flags.1?true invert_media:flags.16?true peer:InputPeer id:int message:flags.11?string media:flags.14?InputMedia reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector schedule_date:flags.15?int = Updates; +messages.editMessage#dfd14005 flags:# no_webpage:flags.1?true invert_media:flags.16?true peer:InputPeer id:int message:flags.11?string media:flags.14?InputMedia reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector schedule_date:flags.15?int quick_reply_shortcut_id:flags.17?int = Updates; messages.editInlineBotMessage#83557dba flags:# no_webpage:flags.1?true invert_media:flags.16?true id:InputBotInlineMessageID message:flags.11?string media:flags.14?InputMedia reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector = Bool; messages.getBotCallbackAnswer#9342ca07 flags:# game:flags.1?true peer:InputPeer msg_id:int data:flags.0?bytes password:flags.2?InputCheckPasswordSRP = messages.BotCallbackAnswer; messages.setBotCallbackAnswer#d58f130a flags:# alert:flags.1?true query_id:long message:flags.0?string url:flags.2?string cache_time:int = Bool; messages.getPeerDialogs#e470bcfd peers:Vector = messages.PeerDialogs; -messages.saveDraft#7ff3b806 flags:# no_webpage:flags.1?true invert_media:flags.6?true reply_to:flags.4?InputReplyTo peer:InputPeer message:string entities:flags.3?Vector media:flags.5?InputMedia = Bool; +messages.saveDraft#d372c5ce flags:# no_webpage:flags.1?true invert_media:flags.6?true reply_to:flags.4?InputReplyTo peer:InputPeer message:string entities:flags.3?Vector media:flags.5?InputMedia effect:flags.7?long = Bool; messages.getAllDrafts#6a3f8d65 = Updates; messages.getFeaturedStickers#64780b14 hash:long = messages.FeaturedStickers; messages.readFeaturedStickers#5b118126 id:Vector = Bool; @@ -1445,14 +1583,14 @@ messages.reorderPinnedDialogs#3b1adf37 flags:# force:flags.0?true folder_id:int messages.getPinnedDialogs#d6b94df2 folder_id:int = messages.PeerDialogs; messages.setBotShippingResults#e5f672fa flags:# query_id:long error:flags.0?string shipping_options:flags.1?Vector = Bool; messages.setBotPrecheckoutResults#9c2dd95 flags:# success:flags.1?true query_id:long error:flags.0?string = Bool; -messages.uploadMedia#519bc2b1 peer:InputPeer media:InputMedia = MessageMedia; +messages.uploadMedia#14967978 flags:# business_connection_id:flags.0?string peer:InputPeer media:InputMedia = MessageMedia; messages.sendScreenshotNotification#a1405817 peer:InputPeer reply_to:InputReplyTo random_id:long = Updates; messages.getFavedStickers#4f1aaa9 hash:long = messages.FavedStickers; messages.faveSticker#b9ffc55b id:InputDocument unfave:Bool = Bool; messages.getUnreadMentions#f107e790 flags:# peer:InputPeer top_msg_id:flags.0?int offset_id:int add_offset:int limit:int max_id:int min_id:int = messages.Messages; messages.readMentions#36e5bf4d flags:# peer:InputPeer top_msg_id:flags.0?int = messages.AffectedHistory; messages.getRecentLocations#702a40e0 peer:InputPeer limit:int hash:long = messages.Messages; -messages.sendMultiMedia#456e8987 flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true update_stickersets_order:flags.15?true invert_media:flags.16?true peer:InputPeer reply_to:flags.0?InputReplyTo multi_media:Vector schedule_date:flags.10?int send_as:flags.13?InputPeer = Updates; +messages.sendMultiMedia#37b74355 flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true update_stickersets_order:flags.15?true invert_media:flags.16?true peer:InputPeer reply_to:flags.0?InputReplyTo multi_media:Vector schedule_date:flags.10?int send_as:flags.13?InputPeer quick_reply_shortcut:flags.17?InputQuickReplyShortcut effect:flags.18?long = Updates; messages.uploadEncryptedFile#5057c497 peer:InputEncryptedChat file:InputEncryptedFile = EncryptedFile; messages.searchStickerSets#35705b8a flags:# exclude_featured:flags.0?true q:string hash:long = messages.FoundStickerSets; messages.getSplitRanges#1cff7e08 = Vector; @@ -1479,7 +1617,7 @@ messages.sendScheduledMessages#bd38850a peer:InputPeer id:Vector = Updates; messages.deleteScheduledMessages#59ae2b16 peer:InputPeer id:Vector = Updates; messages.getPollVotes#b86e380e flags:# peer:InputPeer id:int option:flags.0?bytes offset:flags.1?string limit:int = messages.VotesList; messages.toggleStickerSets#b5052fea flags:# uninstall:flags.0?true archive:flags.1?true unarchive:flags.2?true stickersets:Vector = Bool; -messages.getDialogFilters#f19ed96d = Vector; +messages.getDialogFilters#efd48c89 = messages.DialogFilters; messages.getSuggestedDialogFilters#a29cd42c = Vector; messages.updateDialogFilter#1ad4a04a flags:# id:int filter:flags.0?DialogFilter = Bool; messages.updateDialogFiltersOrder#c563c1e4 order:Vector = Bool; @@ -1514,7 +1652,7 @@ messages.saveDefaultSendAs#ccfddf96 peer:InputPeer send_as:InputPeer = Bool; messages.sendReaction#d30d78d4 flags:# big:flags.1?true add_to_recent:flags.2?true peer:InputPeer msg_id:int reaction:flags.0?Vector = Updates; messages.getMessagesReactions#8bba90e6 peer:InputPeer id:Vector = Updates; messages.getMessageReactionsList#461b3f48 flags:# peer:InputPeer id:int reaction:flags.0?Reaction offset:flags.1?string limit:int = messages.MessageReactionsList; -messages.setChatAvailableReactions#feb16771 peer:InputPeer available_reactions:ChatReactions = Updates; +messages.setChatAvailableReactions#5a150bd4 flags:# peer:InputPeer available_reactions:ChatReactions reactions_limit:flags.0?int = Updates; messages.getAvailableReactions#18dea0ac hash:int = messages.AvailableReactions; messages.setDefaultReaction#4f47a016 reaction:Reaction = Bool; messages.translateText#63183030 flags:# peer:flags.0?InputPeer id:flags.0?Vector text:flags.1?Vector to_lang:string = messages.TranslatedText; @@ -1524,9 +1662,9 @@ messages.searchSentMedia#107e31a0 q:string filter:MessagesFilter limit:int = mes messages.getAttachMenuBots#16fcc2cb hash:long = AttachMenuBots; messages.getAttachMenuBot#77216192 bot:InputUser = AttachMenuBotsBot; messages.toggleBotInAttachMenu#69f59d69 flags:# write_allowed:flags.0?true bot:InputUser enabled:Bool = Bool; -messages.requestWebView#269dc2c1 flags:# from_bot_menu:flags.4?true silent:flags.5?true peer:InputPeer bot:InputUser url:flags.1?string start_param:flags.3?string theme_params:flags.2?DataJSON platform:string reply_to:flags.0?InputReplyTo send_as:flags.13?InputPeer = WebViewResult; +messages.requestWebView#269dc2c1 flags:# from_bot_menu:flags.4?true silent:flags.5?true compact:flags.7?true peer:InputPeer bot:InputUser url:flags.1?string start_param:flags.3?string theme_params:flags.2?DataJSON platform:string reply_to:flags.0?InputReplyTo send_as:flags.13?InputPeer = WebViewResult; messages.prolongWebView#b0d81a83 flags:# silent:flags.5?true peer:InputPeer bot:InputUser query_id:long reply_to:flags.0?InputReplyTo send_as:flags.13?InputPeer = Bool; -messages.requestSimpleWebView#1a46500a flags:# from_switch_webview:flags.1?true from_side_menu:flags.2?true bot:InputUser url:flags.3?string start_param:flags.4?string theme_params:flags.0?DataJSON platform:string = SimpleWebViewResult; +messages.requestSimpleWebView#413a3e73 flags:# from_switch_webview:flags.1?true from_side_menu:flags.2?true compact:flags.7?true bot:InputUser url:flags.3?string start_param:flags.4?string theme_params:flags.0?DataJSON platform:string = WebViewResult; messages.sendWebViewResultMessage#a4314f5 bot_query_id:string result:InputBotInlineResult = WebViewMessageSent; messages.sendWebViewData#dc0242c8 bot:InputUser random_id:long button_text:string data:string = Updates; messages.transcribeAudio#269e9a49 peer:InputPeer msg_id:int = messages.TranscribedAudio; @@ -1548,7 +1686,7 @@ messages.getEmojiProfilePhotoGroups#21a548f3 hash:int = messages.EmojiGroups; messages.searchCustomEmoji#2c11c0d7 emoticon:string hash:long = EmojiList; messages.togglePeerTranslations#e47cb579 flags:# disabled:flags.0?true peer:InputPeer = Bool; messages.getBotApp#34fdc5c3 app:InputBotApp hash:long = messages.BotApp; -messages.requestAppWebView#8c5a3b3c flags:# write_allowed:flags.0?true peer:InputPeer app:InputBotApp start_param:flags.1?string theme_params:flags.2?DataJSON platform:string = AppWebViewResult; +messages.requestAppWebView#53618bce flags:# write_allowed:flags.0?true compact:flags.7?true peer:InputPeer app:InputBotApp start_param:flags.1?string theme_params:flags.2?DataJSON platform:string = WebViewResult; messages.setChatWallPaper#8ffacae1 flags:# for_both:flags.3?true revert:flags.4?true peer:InputPeer wallpaper:flags.0?InputWallPaper settings:flags.2?WallPaperSettings id:flags.1?int = Updates; messages.searchEmojiStickerSets#92b4494c flags:# exclude_featured:flags.0?true q:string hash:long = messages.FoundStickerSets; messages.getSavedDialogs#5381d21a flags:# exclude_pinned:flags.0?true offset_date:int offset_id:int offset_peer:InputPeer limit:int hash:long = messages.SavedDialogs; @@ -1561,6 +1699,21 @@ messages.getSavedReactionTags#3637e05b flags:# peer:flags.0?InputPeer hash:long messages.updateSavedReactionTag#60297dec flags:# reaction:Reaction title:flags.0?string = Bool; messages.getDefaultTagReactions#bdf93428 hash:long = messages.Reactions; messages.getOutboxReadDate#8c4bfe5d peer:InputPeer msg_id:int = OutboxReadDate; +messages.getQuickReplies#d483f2a8 hash:long = messages.QuickReplies; +messages.reorderQuickReplies#60331907 order:Vector = Bool; +messages.checkQuickReplyShortcut#f1d0fbd3 shortcut:string = Bool; +messages.editQuickReplyShortcut#5c003cef shortcut_id:int shortcut:string = Bool; +messages.deleteQuickReplyShortcut#3cc04740 shortcut_id:int = Bool; +messages.getQuickReplyMessages#94a495c3 flags:# shortcut_id:int id:flags.0?Vector hash:long = messages.Messages; +messages.sendQuickReplyMessages#6c750de1 peer:InputPeer shortcut_id:int id:Vector random_id:Vector = Updates; +messages.deleteQuickReplyMessages#e105e910 shortcut_id:int id:Vector = Updates; +messages.toggleDialogFilterTags#fd2dda49 enabled:Bool = Bool; +messages.getMyStickers#d0b5e1fc offset_id:long limit:int = messages.MyStickers; +messages.getEmojiStickerGroups#1dd840f5 hash:int = messages.EmojiGroups; +messages.getAvailableEffects#dea20a39 hash:int = messages.AvailableEffects; +messages.editFactCheck#589ee75 peer:InputPeer msg_id:int text:TextWithEntities = Updates; +messages.deleteFactCheck#d1da940c peer:InputPeer msg_id:int = Updates; +messages.getFactCheck#b9cdc5ee peer:InputPeer msg_id:Vector = Vector; updates.getState#edd4882a = updates.State; updates.getDifference#19c2f763 flags:# pts:int pts_limit:flags.1?int pts_total_limit:flags.0?int date:int qts:int qts_limit:flags.2?int = updates.Difference; updates.getChannelDifference#3173d78 flags:# force:flags.0?true channel:InputChannel filter:ChannelMessagesFilter pts:int limit:int = updates.ChannelDifference; @@ -1601,6 +1754,7 @@ help.getCountriesList#735787a8 lang_code:string hash:int = help.CountriesList; help.getPremiumPromo#b81b93d4 = help.PremiumPromo; help.getPeerColors#da80f42f hash:int = help.PeerColors; help.getPeerProfileColors#abcfa9fd hash:int = help.PeerColors; +help.getTimezonesList#49b30240 hash:int = help.TimezonesList; channels.readHistory#cc104937 channel:InputChannel max_id:int = Bool; channels.deleteMessages#84c1fd4e channel:InputChannel id:Vector = messages.AffectedMessages; channels.reportSpam#f44a8315 channel:InputChannel participant:InputPeer id:Vector = Bool; @@ -1617,11 +1771,11 @@ channels.checkUsername#10e6bd2c channel:InputChannel username:string = Bool; channels.updateUsername#3514b3de channel:InputChannel username:string = Bool; channels.joinChannel#24b524c5 channel:InputChannel = Updates; channels.leaveChannel#f836aa95 channel:InputChannel = Updates; -channels.inviteToChannel#199f3a6c channel:InputChannel users:Vector = Updates; +channels.inviteToChannel#c9e33d54 channel:InputChannel users:Vector = messages.InvitedUsers; channels.deleteChannel#c0111fe3 channel:InputChannel = Updates; channels.exportMessageLink#e63fadeb flags:# grouped:flags.0?true thread:flags.1?true channel:InputChannel id:int = ExportedMessageLink; channels.toggleSignatures#1f69b606 channel:InputChannel enabled:Bool = Updates; -channels.getAdminedPublicChannels#f8b036af flags:# by_location:flags.0?true check_limit:flags.1?true = messages.Chats; +channels.getAdminedPublicChannels#f8b036af flags:# by_location:flags.0?true check_limit:flags.1?true for_personal:flags.2?true = messages.Chats; channels.editBanned#96e6cd81 channel:InputChannel participant:InputPeer banned_rights:ChatBannedRights = Updates; channels.getAdminLog#33ddf480 flags:# channel:InputChannel q:string events_filter:flags.0?ChannelAdminLogEventsFilter admins:flags.1?Vector max_id:long min_id:long limit:int = channels.AdminLogResults; channels.setStickers#ea8ca4f9 channel:InputChannel stickerset:InputStickerSet = Bool; @@ -1659,10 +1813,13 @@ channels.toggleParticipantsHidden#6a6e7854 channel:InputChannel enabled:Bool = U channels.clickSponsoredMessage#18afbc93 channel:InputChannel random_id:bytes = Bool; channels.updateColor#d8aa3671 flags:# for_profile:flags.1?true channel:InputChannel color:flags.2?int background_emoji_id:flags.0?long = Updates; channels.toggleViewForumAsMessages#9738bb15 channel:InputChannel enabled:Bool = Updates; -channels.getChannelRecommendations#83b70d97 channel:InputChannel = messages.Chats; +channels.getChannelRecommendations#25a71742 flags:# channel:flags.0?InputChannel = messages.Chats; channels.updateEmojiStatus#f0d3e6a8 channel:InputChannel emoji_status:EmojiStatus = Updates; channels.setBoostsToUnblockRestrictions#ad399cee channel:InputChannel boosts:int = Updates; channels.setEmojiStickers#3cd930b7 channel:InputChannel stickerset:InputStickerSet = Bool; +channels.reportSponsoredMessage#af8ff6b9 channel:InputChannel random_id:bytes option:bytes = channels.SponsoredMessageReportResult; +channels.restrictSponsoredMessages#9ae91519 channel:InputChannel restricted:Bool = Updates; +channels.searchPosts#d19f987b hashtag:string offset_rate:int offset_peer:InputPeer offset_id:int limit:int = messages.Messages; bots.sendCustomRequest#aa2769ed custom_method:string params:DataJSON = DataJSON; bots.answerWebhookJSONQuery#e6213f4d query_id:long data:DataJSON = Bool; bots.setBotCommands#517165a scope:BotCommandScope lang_code:string commands:Vector = Bool; @@ -1695,7 +1852,16 @@ payments.checkGiftCode#8e51b4c1 slug:string = payments.CheckedGiftCode; payments.applyGiftCode#f6e26854 slug:string = Updates; payments.getGiveawayInfo#f4239425 peer:InputPeer msg_id:int = payments.GiveawayInfo; payments.launchPrepaidGiveaway#5ff58f20 peer:InputPeer giveaway_id:long purpose:InputStorePaymentPurpose = Updates; -stickers.createStickerSet#9021ab67 flags:# masks:flags.0?true animated:flags.1?true videos:flags.4?true emojis:flags.5?true text_color:flags.6?true user_id:InputUser title:string short_name:string thumb:flags.2?InputDocument stickers:Vector software:flags.3?string = messages.StickerSet; +payments.getStarsTopupOptions#c00ec7d3 = Vector; +payments.getStarsStatus#104fcfa7 peer:InputPeer = payments.StarsStatus; +payments.getStarsTransactions#97938d5a flags:# inbound:flags.0?true outbound:flags.1?true ascending:flags.2?true peer:InputPeer offset:string limit:int = payments.StarsStatus; +payments.sendStarsForm#2bb731d flags:# form_id:long invoice:InputInvoice = payments.PaymentResult; +payments.refundStarsCharge#25ae8f4a user_id:InputUser charge_id:string = Updates; +payments.getStarsRevenueStats#d91ffad6 flags:# dark:flags.0?true peer:InputPeer = payments.StarsRevenueStats; +payments.getStarsRevenueWithdrawalUrl#13bbe8b3 peer:InputPeer stars:long password:InputCheckPasswordSRP = payments.StarsRevenueWithdrawalUrl; +payments.getStarsRevenueAdsAccountUrl#d1d7efc5 peer:InputPeer = payments.StarsRevenueAdsAccountUrl; +payments.getStarsTransactionsByID#27842d2e peer:InputPeer id:Vector = payments.StarsStatus; +stickers.createStickerSet#9021ab67 flags:# masks:flags.0?true emojis:flags.5?true text_color:flags.6?true user_id:InputUser title:string short_name:string thumb:flags.2?InputDocument stickers:Vector software:flags.3?string = messages.StickerSet; stickers.removeStickerFromSet#f7760f51 sticker:InputDocument = messages.StickerSet; stickers.changeStickerPosition#ffb6d4ca sticker:InputDocument position:int = messages.StickerSet; stickers.addStickerToSet#8653febe stickerset:InputStickerSet sticker:InputStickerSetItem = messages.StickerSet; @@ -1705,6 +1871,7 @@ stickers.suggestShortName#4dafc503 title:string = stickers.SuggestedShortName; stickers.changeSticker#f5537ebc flags:# sticker:InputDocument emoji:flags.0?string mask_coords:flags.1?MaskCoords keywords:flags.2?string = messages.StickerSet; stickers.renameStickerSet#124b1c00 stickerset:InputStickerSet title:string = messages.StickerSet; stickers.deleteStickerSet#87704394 stickerset:InputStickerSet = Bool; +stickers.replaceSticker#4696459a sticker:InputDocument new_sticker:InputStickerSetItem = messages.StickerSet; phone.getCallConfig#55451fa9 = DataJSON; phone.requestCall#42ff96ed flags:# video:flags.0?true user_id:InputUser random_id:int g_a_hash:bytes protocol:PhoneCallProtocol = phone.PhoneCall; phone.acceptCall#3bd2b4a0 peer:InputPhoneCall g_b:bytes protocol:PhoneCallProtocol = phone.PhoneCall; @@ -1749,6 +1916,9 @@ stats.getMessagePublicForwards#5f150144 channel:InputChannel msg_id:int offset:s stats.getMessageStats#b6e0a3f5 flags:# dark:flags.0?true channel:InputChannel msg_id:int = stats.MessageStats; stats.getStoryStats#374fef40 flags:# dark:flags.0?true peer:InputPeer id:int = stats.StoryStats; stats.getStoryPublicForwards#a6437ef6 peer:InputPeer id:int offset:string limit:int = stats.PublicForwards; +stats.getBroadcastRevenueStats#75dfb671 flags:# dark:flags.0?true channel:InputChannel = stats.BroadcastRevenueStats; +stats.getBroadcastRevenueWithdrawalUrl#2a65ef73 channel:InputChannel password:InputCheckPasswordSRP = stats.BroadcastRevenueWithdrawalUrl; +stats.getBroadcastRevenueTransactions#69280f channel:InputChannel offset:int limit:int = stats.BroadcastRevenueTransactions; chatlists.exportChatlistInvite#8472478e chatlist:InputChatlist title:string peers:Vector = chatlists.ExportedChatlistInvite; chatlists.deleteExportedInvite#719c5c5e chatlist:InputChatlist slug:string = Bool; chatlists.editExportedInvite#653db63d flags:# chatlist:InputChatlist slug:string title:flags.1?string peers:flags.2?Vector = ExportedChatlistInvite; @@ -1784,9 +1954,19 @@ stories.getPeerMaxIDs#535983c3 id:Vector = Vector; stories.getChatsToSend#a56a8b60 = messages.Chats; stories.togglePeerStoriesHidden#bd0415c4 peer:InputPeer hidden:Bool = Bool; stories.getStoryReactionsList#b9b2881f flags:# forwards_first:flags.2?true peer:InputPeer id:int reaction:flags.0?Reaction offset:flags.1?string limit:int = stories.StoryReactionsList; +stories.togglePinnedToTop#b297e9b peer:InputPeer id:Vector = Bool; +stories.searchPosts#6cea116a flags:# hashtag:flags.0?string area:flags.1?MediaArea offset:string limit:int = stories.FoundStories; premium.getBoostsList#60f67660 flags:# gifts:flags.0?true peer:InputPeer offset:string limit:int = premium.BoostsList; premium.getMyBoosts#be77b4a = premium.MyBoosts; premium.applyBoost#6b7da746 flags:# slots:flags.0?Vector peer:InputPeer = premium.MyBoosts; premium.getBoostsStatus#42f1f61 peer:InputPeer = premium.BoostsStatus; premium.getUserBoosts#39854d1f peer:InputPeer user_id:InputUser = premium.BoostsList; +smsjobs.isEligibleToJoin#edc39d0 = smsjobs.EligibilityToJoin; +smsjobs.join#a74ece2d = Bool; +smsjobs.leave#9898ad73 = Bool; +smsjobs.updateSettings#93fa0bf flags:# allow_international:flags.0?true = Bool; +smsjobs.getStatus#10a698e8 = smsjobs.Status; +smsjobs.getSmsJob#778d902f job_id:string = SmsJob; +smsjobs.finishJob#4f1ebf24 flags:# job_id:string error:flags.0?string = Bool; +fragment.getCollectibleInfo#be1e85ba collectible:InputCollectible = fragment.CollectibleInfo; `; diff --git a/gramjs/tl/custom/file.ts b/gramjs/tl/custom/file.ts index d8790fb3..d36f2853 100644 --- a/gramjs/tl/custom/file.ts +++ b/gramjs/tl/custom/file.ts @@ -69,7 +69,9 @@ export class File { get size() { if (this.media instanceof Api.Photo) { - return _photoSizeByteCount(this.media.sizes[this.media.sizes.length -1]); + return _photoSizeByteCount( + this.media.sizes[this.media.sizes.length - 1] + ); } else if (this.media instanceof Api.Document) { return this.media.size; } diff --git a/gramjs/tl/custom/forward.ts b/gramjs/tl/custom/forward.ts index e3d7fae5..3abc89c0 100644 --- a/gramjs/tl/custom/forward.ts +++ b/gramjs/tl/custom/forward.ts @@ -54,6 +54,7 @@ export class Forward extends SenderGetter { } ChatGetter.initChatClass(this, { chatPeer: peer, + chat: chat, inputChat: inputChat, }); SenderGetter.initSenderClass(this, { diff --git a/gramjs/tl/custom/message.ts b/gramjs/tl/custom/message.ts index d2deb04e..25a0a412 100644 --- a/gramjs/tl/custom/message.ts +++ b/gramjs/tl/custom/message.ts @@ -618,7 +618,8 @@ export class CustomMessage extends SenderGetter { ); if (this._client._errorHandler) { await this._client._errorHandler(e as Error); - } if (this._client._log.canSend(LogLevel.ERROR)) { + } + if (this._client._log.canSend(LogLevel.ERROR)) { console.error(e); } } @@ -920,7 +921,7 @@ export class CustomMessage extends SenderGetter { async edit(params: Omit) { const param = params as EditMessageParams; - if (this.fwdFrom || !this.out || !this._client) return undefined; + if (this.fwdFrom || !this._client) return undefined; if (param.linkPreview == undefined) { param.linkPreview = !!this.webPreview; } @@ -1041,7 +1042,7 @@ export class CustomMessage extends SenderGetter { } } else { for (const answer of answers) { - if (answer.text == text) { + if (answer.text.text == text) { return [answer.option]; } } diff --git a/gramjs/tl/custom/messageButton.ts b/gramjs/tl/custom/messageButton.ts index e9e183fd..86bf189e 100644 --- a/gramjs/tl/custom/messageButton.ts +++ b/gramjs/tl/custom/messageButton.ts @@ -153,7 +153,7 @@ export class MessageButton { ); } if (sharePhone == true || typeof sharePhone == "string") { - const me = (await this._client.getMe()) as Api.User; + const me = await this._client.getMe(); sharePhone = new Api.InputMediaContact({ phoneNumber: (sharePhone == true ? me.phone : sharePhone) || "", diff --git a/gramjs/tl/patched/index.ts b/gramjs/tl/patched/index.ts index 7deefe9d..55fb123c 100644 --- a/gramjs/tl/patched/index.ts +++ b/gramjs/tl/patched/index.ts @@ -80,6 +80,7 @@ function patchClass(clazz: Function) { function patchAll() { patchClass(Api.Message); patchClass(Api.MessageService); + patchClass(Api.MessageEmpty); } export { patchAll }; diff --git a/gramjs/tl/static/api.tl b/gramjs/tl/static/api.tl index 1f17c1a7..394a50ef 100644 --- a/gramjs/tl/static/api.tl +++ b/gramjs/tl/static/api.tl @@ -38,12 +38,13 @@ inputMediaVenue#c13d1c11 geo_point:InputGeoPoint title:string address:string pro inputMediaPhotoExternal#e5bbfe1a flags:# spoiler:flags.1?true url:string ttl_seconds:flags.0?int = InputMedia; inputMediaDocumentExternal#fb52dc99 flags:# spoiler:flags.1?true url:string ttl_seconds:flags.0?int = InputMedia; inputMediaGame#d33f43f3 id:InputGame = InputMedia; -inputMediaInvoice#8eb5a6d5 flags:# title:string description:string photo:flags.0?InputWebDocument invoice:Invoice payload:bytes provider:string provider_data:DataJSON start_param:flags.1?string extended_media:flags.2?InputMedia = InputMedia; +inputMediaInvoice#405fef0d flags:# title:string description:string photo:flags.0?InputWebDocument invoice:Invoice payload:bytes provider:flags.3?string provider_data:DataJSON start_param:flags.1?string extended_media:flags.2?InputMedia = InputMedia; inputMediaGeoLive#971fa843 flags:# stopped:flags.0?true geo_point:InputGeoPoint heading:flags.2?int period:flags.1?int proximity_notification_radius:flags.3?int = InputMedia; inputMediaPoll#f94e5f1 flags:# poll:Poll correct_answers:flags.0?Vector solution:flags.1?string solution_entities:flags.1?Vector = InputMedia; inputMediaDice#e66fbf7b emoticon:string = InputMedia; inputMediaStory#89fdd778 peer:InputPeer id:int = InputMedia; inputMediaWebPage#c21b8849 flags:# force_large_media:flags.0?true force_small_media:flags.1?true optional:flags.2?true url:string = InputMedia; +inputMediaPaidMedia#aa661fc3 stars_amount:long extended_media:Vector = InputMedia; inputChatPhotoEmpty#1ca48f57 = InputChatPhoto; inputChatUploadedPhoto#bdcdaec0 flags:# file:flags.0?InputFile video:flags.1?InputFile video_start_ts:flags.2?double video_emoji_markup:flags.3?VideoSize = InputChatPhoto; @@ -82,7 +83,7 @@ storage.fileMp4#b3cea0e4 = storage.FileType; storage.fileWebp#1081464c = storage.FileType; userEmpty#d3bc4b7a id:long = User; -user#215c4438 flags:# self:flags.10?true contact:flags.11?true mutual_contact:flags.12?true deleted:flags.13?true bot:flags.14?true bot_chat_history:flags.15?true bot_nochats:flags.16?true verified:flags.17?true restricted:flags.18?true min:flags.20?true bot_inline_geo:flags.21?true support:flags.23?true scam:flags.24?true apply_min_photo:flags.25?true fake:flags.26?true bot_attach_menu:flags.27?true premium:flags.28?true attach_menu_enabled:flags.29?true flags2:# bot_can_edit:flags2.1?true close_friend:flags2.2?true stories_hidden:flags2.3?true stories_unavailable:flags2.4?true contact_require_premium:flags2.10?true id:long access_hash:flags.0?long first_name:flags.1?string last_name:flags.2?string username:flags.3?string phone:flags.4?string photo:flags.5?UserProfilePhoto status:flags.6?UserStatus bot_info_version:flags.14?int restriction_reason:flags.18?Vector bot_inline_placeholder:flags.19?string lang_code:flags.22?string emoji_status:flags.30?EmojiStatus usernames:flags2.0?Vector stories_max_id:flags2.5?int color:flags2.8?PeerColor profile_color:flags2.9?PeerColor = User; +user#215c4438 flags:# self:flags.10?true contact:flags.11?true mutual_contact:flags.12?true deleted:flags.13?true bot:flags.14?true bot_chat_history:flags.15?true bot_nochats:flags.16?true verified:flags.17?true restricted:flags.18?true min:flags.20?true bot_inline_geo:flags.21?true support:flags.23?true scam:flags.24?true apply_min_photo:flags.25?true fake:flags.26?true bot_attach_menu:flags.27?true premium:flags.28?true attach_menu_enabled:flags.29?true flags2:# bot_can_edit:flags2.1?true close_friend:flags2.2?true stories_hidden:flags2.3?true stories_unavailable:flags2.4?true contact_require_premium:flags2.10?true bot_business:flags2.11?true id:long access_hash:flags.0?long first_name:flags.1?string last_name:flags.2?string username:flags.3?string phone:flags.4?string photo:flags.5?UserProfilePhoto status:flags.6?UserStatus bot_info_version:flags.14?int restriction_reason:flags.18?Vector bot_inline_placeholder:flags.19?string lang_code:flags.22?string emoji_status:flags.30?EmojiStatus usernames:flags2.0?Vector stories_max_id:flags2.5?int color:flags2.8?PeerColor profile_color:flags2.9?PeerColor = User; userProfilePhotoEmpty#4f11bae1 = UserProfilePhoto; userProfilePhoto#82d1f706 flags:# has_video:flags.0?true personal:flags.2?true photo_id:long stripped_thumb:flags.1?bytes dc_id:int = UserProfilePhoto; @@ -100,8 +101,8 @@ chatForbidden#6592a1a7 id:long title:string = Chat; channel#aadfc8f flags:# creator:flags.0?true left:flags.2?true broadcast:flags.5?true verified:flags.7?true megagroup:flags.8?true restricted:flags.9?true signatures:flags.11?true min:flags.12?true scam:flags.19?true has_link:flags.20?true has_geo:flags.21?true slowmode_enabled:flags.22?true call_active:flags.23?true call_not_empty:flags.24?true fake:flags.25?true gigagroup:flags.26?true noforwards:flags.27?true join_to_send:flags.28?true join_request:flags.29?true forum:flags.30?true flags2:# stories_hidden:flags2.1?true stories_hidden_min:flags2.2?true stories_unavailable:flags2.3?true id:long access_hash:flags.13?long title:string username:flags.6?string photo:ChatPhoto date:int restriction_reason:flags.9?Vector admin_rights:flags.14?ChatAdminRights banned_rights:flags.15?ChatBannedRights default_banned_rights:flags.18?ChatBannedRights participants_count:flags.17?int usernames:flags2.0?Vector stories_max_id:flags2.4?int color:flags2.7?PeerColor profile_color:flags2.8?PeerColor emoji_status:flags2.9?EmojiStatus level:flags2.10?int = Chat; channelForbidden#17d493d5 flags:# broadcast:flags.5?true megagroup:flags.8?true id:long access_hash:long title:string until_date:flags.16?int = Chat; -chatFull#c9d31138 flags:# can_set_username:flags.7?true has_scheduled:flags.8?true translations_disabled:flags.19?true id:long about:string participants:ChatParticipants chat_photo:flags.2?Photo notify_settings:PeerNotifySettings exported_invite:flags.13?ExportedChatInvite bot_info:flags.3?Vector pinned_msg_id:flags.6?int folder_id:flags.11?int call:flags.12?InputGroupCall ttl_period:flags.14?int groupcall_default_join_as:flags.15?Peer theme_emoticon:flags.16?string requests_pending:flags.17?int recent_requesters:flags.17?Vector available_reactions:flags.18?ChatReactions = ChatFull; -channelFull#44c054a7 flags:# can_view_participants:flags.3?true can_set_username:flags.6?true can_set_stickers:flags.7?true hidden_prehistory:flags.10?true can_set_location:flags.16?true has_scheduled:flags.19?true can_view_stats:flags.20?true blocked:flags.22?true flags2:# can_delete_channel:flags2.0?true antispam:flags2.1?true participants_hidden:flags2.2?true translations_disabled:flags2.3?true stories_pinned_available:flags2.5?true view_forum_as_messages:flags2.6?true id:long about:string participants_count:flags.0?int admins_count:flags.1?int kicked_count:flags.2?int banned_count:flags.2?int online_count:flags.13?int read_inbox_max_id:int read_outbox_max_id:int unread_count:int chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:flags.23?ExportedChatInvite bot_info:Vector migrated_from_chat_id:flags.4?long migrated_from_max_id:flags.4?int pinned_msg_id:flags.5?int stickerset:flags.8?StickerSet available_min_id:flags.9?int folder_id:flags.11?int linked_chat_id:flags.14?long location:flags.15?ChannelLocation slowmode_seconds:flags.17?int slowmode_next_send_date:flags.18?int stats_dc:flags.12?int pts:int call:flags.21?InputGroupCall ttl_period:flags.24?int pending_suggestions:flags.25?Vector groupcall_default_join_as:flags.26?Peer theme_emoticon:flags.27?string requests_pending:flags.28?int recent_requesters:flags.28?Vector default_send_as:flags.29?Peer available_reactions:flags.30?ChatReactions stories:flags2.4?PeerStories wallpaper:flags2.7?WallPaper boosts_applied:flags2.8?int boosts_unrestrict:flags2.9?int emojiset:flags2.10?StickerSet = ChatFull; +chatFull#2633421b flags:# can_set_username:flags.7?true has_scheduled:flags.8?true translations_disabled:flags.19?true id:long about:string participants:ChatParticipants chat_photo:flags.2?Photo notify_settings:PeerNotifySettings exported_invite:flags.13?ExportedChatInvite bot_info:flags.3?Vector pinned_msg_id:flags.6?int folder_id:flags.11?int call:flags.12?InputGroupCall ttl_period:flags.14?int groupcall_default_join_as:flags.15?Peer theme_emoticon:flags.16?string requests_pending:flags.17?int recent_requesters:flags.17?Vector available_reactions:flags.18?ChatReactions reactions_limit:flags.20?int = ChatFull; +channelFull#bbab348d flags:# can_view_participants:flags.3?true can_set_username:flags.6?true can_set_stickers:flags.7?true hidden_prehistory:flags.10?true can_set_location:flags.16?true has_scheduled:flags.19?true can_view_stats:flags.20?true blocked:flags.22?true flags2:# can_delete_channel:flags2.0?true antispam:flags2.1?true participants_hidden:flags2.2?true translations_disabled:flags2.3?true stories_pinned_available:flags2.5?true view_forum_as_messages:flags2.6?true restricted_sponsored:flags2.11?true can_view_revenue:flags2.12?true paid_media_allowed:flags2.14?true can_view_stars_revenue:flags2.15?true id:long about:string participants_count:flags.0?int admins_count:flags.1?int kicked_count:flags.2?int banned_count:flags.2?int online_count:flags.13?int read_inbox_max_id:int read_outbox_max_id:int unread_count:int chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:flags.23?ExportedChatInvite bot_info:Vector migrated_from_chat_id:flags.4?long migrated_from_max_id:flags.4?int pinned_msg_id:flags.5?int stickerset:flags.8?StickerSet available_min_id:flags.9?int folder_id:flags.11?int linked_chat_id:flags.14?long location:flags.15?ChannelLocation slowmode_seconds:flags.17?int slowmode_next_send_date:flags.18?int stats_dc:flags.12?int pts:int call:flags.21?InputGroupCall ttl_period:flags.24?int pending_suggestions:flags.25?Vector groupcall_default_join_as:flags.26?Peer theme_emoticon:flags.27?string requests_pending:flags.28?int recent_requesters:flags.28?Vector default_send_as:flags.29?Peer available_reactions:flags.30?ChatReactions reactions_limit:flags2.13?int stories:flags2.4?PeerStories wallpaper:flags2.7?WallPaper boosts_applied:flags2.8?int boosts_unrestrict:flags2.9?int emojiset:flags2.10?StickerSet = ChatFull; chatParticipant#c02d4007 user_id:long inviter_id:long date:int = ChatParticipant; chatParticipantCreator#e46bcee4 user_id:long = ChatParticipant; @@ -114,7 +115,7 @@ chatPhotoEmpty#37c1011c = ChatPhoto; chatPhoto#1c6e1c11 flags:# has_video:flags.0?true photo_id:long stripped_thumb:flags.1?bytes dc_id:int = ChatPhoto; messageEmpty#90a6ca84 flags:# id:int peer_id:flags.0?Peer = Message; -message#1e4c8a69 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true from_scheduled:flags.18?true legacy:flags.19?true edit_hide:flags.21?true pinned:flags.24?true noforwards:flags.26?true invert_media:flags.27?true id:int from_id:flags.8?Peer from_boosts_applied:flags.29?int peer_id:Peer saved_peer_id:flags.28?Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long reply_to:flags.3?MessageReplyHeader date:int message:string media:flags.9?MessageMedia reply_markup:flags.6?ReplyMarkup entities:flags.7?Vector views:flags.10?int forwards:flags.10?int replies:flags.23?MessageReplies edit_date:flags.15?int post_author:flags.16?string grouped_id:flags.17?long reactions:flags.20?MessageReactions restriction_reason:flags.22?Vector ttl_period:flags.25?int = Message; +message#94345242 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true from_scheduled:flags.18?true legacy:flags.19?true edit_hide:flags.21?true pinned:flags.24?true noforwards:flags.26?true invert_media:flags.27?true flags2:# offline:flags2.1?true id:int from_id:flags.8?Peer from_boosts_applied:flags.29?int peer_id:Peer saved_peer_id:flags.28?Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long via_business_bot_id:flags2.0?long reply_to:flags.3?MessageReplyHeader date:int message:string media:flags.9?MessageMedia reply_markup:flags.6?ReplyMarkup entities:flags.7?Vector views:flags.10?int forwards:flags.10?int replies:flags.23?MessageReplies edit_date:flags.15?int post_author:flags.16?string grouped_id:flags.17?long reactions:flags.20?MessageReactions restriction_reason:flags.22?Vector ttl_period:flags.25?int quick_reply_shortcut_id:flags.30?int effect:flags2.2?long factcheck:flags2.3?FactCheck = Message; messageService#2b085862 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true legacy:flags.19?true id:int from_id:flags.8?Peer peer_id:Peer reply_to:flags.3?MessageReplyHeader date:int action:MessageAction ttl_period:flags.25?int = Message; messageMediaEmpty#3ded6320 = MessageMedia; @@ -133,6 +134,7 @@ messageMediaDice#3f7ee58b value:int emoticon:string = MessageMedia; messageMediaStory#68cb6283 flags:# via_mention:flags.1?true peer:Peer id:int story:flags.0?StoryItem = MessageMedia; messageMediaGiveaway#daad85b0 flags:# only_new_subscribers:flags.0?true winners_are_visible:flags.2?true channels:Vector countries_iso2:flags.1?Vector prize_description:flags.3?string quantity:int months:int until_date:int = MessageMedia; messageMediaGiveawayResults#c6991068 flags:# only_new_subscribers:flags.0?true refunded:flags.2?true channel_id:long additional_peers_count:flags.3?int launch_msg_id:int winners_count:int unclaimed_count:int winners:Vector months:int prize_description:flags.1?string until_date:int = MessageMedia; +messageMediaPaidMedia#a8852491 stars_amount:long extended_media:Vector = MessageMedia; messageActionEmpty#b6aef7b0 = MessageAction; messageActionChatCreate#bd47cbad title:string users:Vector = MessageAction; @@ -176,6 +178,8 @@ messageActionGiftCode#678c2e09 flags:# via_giveaway:flags.0?true unclaimed:flags messageActionGiveawayLaunch#332ba9ed = MessageAction; messageActionGiveawayResults#2a9fadc5 winners_count:int unclaimed_count:int = MessageAction; messageActionBoostApply#cc02aa6d boosts:int = MessageAction; +messageActionRequestedPeerSentMe#93b31848 button_id:int peers:Vector = MessageAction; +messageActionPaymentRefunded#41b3e202 flags:# peer:Peer currency:string total_amount:long payload:flags.0?bytes charge:PaymentCharge = MessageAction; dialog#d58a08c6 flags:# pinned:flags.2?true unread_mark:flags.3?true view_forum_as_messages:flags.6?true peer:Peer top_message:int read_inbox_max_id:int read_outbox_max_id:int unread_count:int unread_mentions_count:int unread_reactions_count:int notify_settings:PeerNotifySettings pts:flags.0?int draft:flags.1?DraftMessage folder_id:flags.4?int ttl_period:flags.5?int = Dialog; dialogFolder#71bd134c flags:# pinned:flags.2?true folder:Folder peer:Peer top_message:int unread_muted_peers_count:int unread_unmuted_peers_count:int unread_muted_messages_count:int unread_unmuted_messages_count:int = Dialog; @@ -211,7 +215,7 @@ inputPeerNotifySettings#cacb6ae2 flags:# show_previews:flags.0?Bool silent:flags peerNotifySettings#99622c0c flags:# show_previews:flags.0?Bool silent:flags.1?Bool mute_until:flags.2?int ios_sound:flags.3?NotificationSound android_sound:flags.4?NotificationSound other_sound:flags.5?NotificationSound stories_muted:flags.6?Bool stories_hide_sender:flags.7?Bool stories_ios_sound:flags.8?NotificationSound stories_android_sound:flags.9?NotificationSound stories_other_sound:flags.10?NotificationSound = PeerNotifySettings; -peerSettings#a518110d flags:# report_spam:flags.0?true add_contact:flags.1?true block_contact:flags.2?true share_contact:flags.3?true need_contacts_exception:flags.4?true report_geo:flags.5?true autoarchived:flags.7?true invite_members:flags.8?true request_chat_broadcast:flags.10?true geo_distance:flags.6?int request_chat_title:flags.9?string request_chat_date:flags.9?int = PeerSettings; +peerSettings#acd66c5e flags:# report_spam:flags.0?true add_contact:flags.1?true block_contact:flags.2?true share_contact:flags.3?true need_contacts_exception:flags.4?true report_geo:flags.5?true autoarchived:flags.7?true invite_members:flags.8?true request_chat_broadcast:flags.10?true business_bot_paused:flags.11?true business_bot_can_reply:flags.12?true geo_distance:flags.6?int request_chat_title:flags.9?string request_chat_date:flags.9?int business_bot_id:flags.13?long business_bot_manage_url:flags.13?string = PeerSettings; wallPaper#a437c3ed id:long flags:# creator:flags.0?true default:flags.1?true pattern:flags.3?true dark:flags.4?true access_hash:long slug:string document:Document settings:flags.2?WallPaperSettings = WallPaper; wallPaperNoFile#e0804116 id:long flags:# default:flags.1?true dark:flags.4?true settings:flags.2?WallPaperSettings = WallPaper; @@ -227,7 +231,7 @@ inputReportReasonFake#f5ddd6e7 = ReportReason; inputReportReasonIllegalDrugs#a8eb2be = ReportReason; inputReportReasonPersonalDetails#9ec7863d = ReportReason; -userFull#b9b12c6c flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true can_pin_message:flags.7?true has_scheduled:flags.12?true video_calls_available:flags.13?true voice_messages_forbidden:flags.20?true translations_disabled:flags.23?true stories_pinned_available:flags.26?true blocked_my_stories_from:flags.27?true wallpaper_overridden:flags.28?true contact_require_premium:flags.29?true read_dates_private:flags.30?true id:long about:flags.1?string settings:PeerSettings personal_photo:flags.21?Photo profile_photo:flags.2?Photo fallback_photo:flags.22?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo pinned_msg_id:flags.6?int common_chats_count:int folder_id:flags.11?int ttl_period:flags.14?int theme_emoticon:flags.15?string private_forward_name:flags.16?string bot_group_admin_rights:flags.17?ChatAdminRights bot_broadcast_admin_rights:flags.18?ChatAdminRights premium_gifts:flags.19?Vector wallpaper:flags.24?WallPaper stories:flags.25?PeerStories = UserFull; +userFull#cc997720 flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true can_pin_message:flags.7?true has_scheduled:flags.12?true video_calls_available:flags.13?true voice_messages_forbidden:flags.20?true translations_disabled:flags.23?true stories_pinned_available:flags.26?true blocked_my_stories_from:flags.27?true wallpaper_overridden:flags.28?true contact_require_premium:flags.29?true read_dates_private:flags.30?true flags2:# sponsored_enabled:flags2.7?true id:long about:flags.1?string settings:PeerSettings personal_photo:flags.21?Photo profile_photo:flags.2?Photo fallback_photo:flags.22?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo pinned_msg_id:flags.6?int common_chats_count:int folder_id:flags.11?int ttl_period:flags.14?int theme_emoticon:flags.15?string private_forward_name:flags.16?string bot_group_admin_rights:flags.17?ChatAdminRights bot_broadcast_admin_rights:flags.18?ChatAdminRights premium_gifts:flags.19?Vector wallpaper:flags.24?WallPaper stories:flags.25?PeerStories business_work_hours:flags2.0?BusinessWorkHours business_location:flags2.1?BusinessLocation business_greeting_message:flags2.2?BusinessGreetingMessage business_away_message:flags2.3?BusinessAwayMessage business_intro:flags2.4?BusinessIntro birthday:flags2.5?Birthday personal_channel_id:flags2.6?long personal_channel_message:flags2.6?int = UserFull; contact#145ade0b user_id:long mutual:Bool = Contact; @@ -383,12 +387,11 @@ updateUserEmojiStatus#28373599 user_id:long emoji_status:EmojiStatus = Update; updateRecentEmojiStatuses#30f443db = Update; updateRecentReactions#6f7863f4 = Update; updateMoveStickerSetToTop#86fccf85 flags:# masks:flags.0?true emojis:flags.1?true stickerset:long = Update; -updateMessageExtendedMedia#5a73a98c peer:Peer msg_id:int extended_media:MessageExtendedMedia = Update; +updateMessageExtendedMedia#d5a41724 peer:Peer msg_id:int extended_media:Vector = Update; updateChannelPinnedTopic#192efbe3 flags:# pinned:flags.0?true channel_id:long topic_id:int = Update; updateChannelPinnedTopics#fe198602 flags:# channel_id:long order:flags.0?Vector = Update; updateUser#20529438 user_id:long = Update; updateAutoSaveSettings#ec05b097 = Update; -updateGroupInvitePrivacyForbidden#ccf08ad6 user_id:long = Update; updateStory#75b3b798 peer:Peer story:StoryItem = Update; updateReadStories#f74e932b peer:Peer max_id:int = Update; updateStoryID#1bf335b9 id:int random_id:long = Update; @@ -402,6 +405,21 @@ updateBotMessageReactions#9cb7759 peer:Peer msg_id:int date:int reactions:Vector updateSavedDialogPinned#aeaf9e74 flags:# pinned:flags.0?true peer:DialogPeer = Update; updatePinnedSavedDialogs#686c85a6 flags:# order:flags.0?Vector = Update; updateSavedReactionTags#39c67432 = Update; +updateSmsJob#f16269d4 job_id:string = Update; +updateQuickReplies#f9470ab2 quick_replies:Vector = Update; +updateNewQuickReply#f53da717 quick_reply:QuickReply = Update; +updateDeleteQuickReply#53e6f1ec shortcut_id:int = Update; +updateQuickReplyMessage#3e050d0f message:Message = Update; +updateDeleteQuickReplyMessages#566fe7cd shortcut_id:int messages:Vector = Update; +updateBotBusinessConnect#8ae5c97a connection:BotBusinessConnection qts:int = Update; +updateBotNewBusinessMessage#9ddb347c flags:# connection_id:string message:Message reply_to_message:flags.0?Message qts:int = Update; +updateBotEditBusinessMessage#7df587c flags:# connection_id:string message:Message reply_to_message:flags.0?Message qts:int = Update; +updateBotDeleteBusinessMessage#a02a982e connection_id:string peer:Peer messages:Vector qts:int = Update; +updateNewStoryReaction#1824e40b story_id:int peer:Peer reaction:Reaction = Update; +updateBroadcastRevenueTransactions#dfd961f5 peer:Peer balances:BroadcastRevenueBalances = Update; +updateStarsBalance#fb85198 balance:long = Update; +updateBusinessBotCallbackQuery#1ea2fda7 flags:# query_id:long user_id:long connection_id:string message:Message reply_to_message:flags.2?Message chat_instance:long data:flags.0?bytes = Update; +updateStarsRevenueStatus#a584b019 peer:Peer status:StarsRevenueStatus = Update; updates.state#a56c2a3e pts:int qts:int date:int seq:int unread_count:int = updates.State; @@ -507,6 +525,7 @@ inputPrivacyKeyPhoneNumber#352dafa = InputPrivacyKey; inputPrivacyKeyAddedByPhone#d1219bdd = InputPrivacyKey; inputPrivacyKeyVoiceMessages#aee69d68 = InputPrivacyKey; inputPrivacyKeyAbout#3823cc40 = InputPrivacyKey; +inputPrivacyKeyBirthday#d65a11cc = InputPrivacyKey; privacyKeyStatusTimestamp#bc2eab30 = PrivacyKey; privacyKeyChatInvite#500e6dfa = PrivacyKey; @@ -518,6 +537,7 @@ privacyKeyPhoneNumber#d19ae46d = PrivacyKey; privacyKeyAddedByPhone#42ffd42b = PrivacyKey; privacyKeyVoiceMessages#697f414 = PrivacyKey; privacyKeyAbout#a486b761 = PrivacyKey; +privacyKeyBirthday#2000a518 = PrivacyKey; inputPrivacyValueAllowContacts#d09e07b = InputPrivacyRule; inputPrivacyValueAllowAll#184b35ce = InputPrivacyRule; @@ -528,6 +548,7 @@ inputPrivacyValueDisallowUsers#90110467 users:Vector = InputPrivacyRu inputPrivacyValueAllowChatParticipants#840649cf chats:Vector = InputPrivacyRule; inputPrivacyValueDisallowChatParticipants#e94f0f86 chats:Vector = InputPrivacyRule; inputPrivacyValueAllowCloseFriends#2f453e49 = InputPrivacyRule; +inputPrivacyValueAllowPremium#77cdc9f1 = InputPrivacyRule; privacyValueAllowContacts#fffe1bac = PrivacyRule; privacyValueAllowAll#65427b82 = PrivacyRule; @@ -538,6 +559,7 @@ privacyValueDisallowUsers#e4621141 users:Vector = PrivacyRule; privacyValueAllowChatParticipants#6b134e8e chats:Vector = PrivacyRule; privacyValueDisallowChatParticipants#41c87565 chats:Vector = PrivacyRule; privacyValueAllowCloseFriends#f7e8d89b = PrivacyRule; +privacyValueAllowPremium#ece9814b = PrivacyRule; account.privacyRules#50a04e45 rules:Vector chats:Vector users:Vector = account.PrivacyRules; @@ -600,7 +622,7 @@ inputStickerSetEmojiDefaultStatuses#29d0f5ee = InputStickerSet; inputStickerSetEmojiDefaultTopicIcons#44c1f8e9 = InputStickerSet; inputStickerSetEmojiChannelDefaultStatuses#49748553 = InputStickerSet; -stickerSet#2dd14edc flags:# archived:flags.1?true official:flags.2?true masks:flags.3?true animated:flags.5?true videos:flags.6?true emojis:flags.7?true text_color:flags.9?true channel_emoji_status:flags.10?true installed_date:flags.0?int id:long access_hash:long title:string short_name:string thumbs:flags.4?Vector thumb_dc_id:flags.4?int thumb_version:flags.4?int thumb_document_id:flags.8?long count:int hash:int = StickerSet; +stickerSet#2dd14edc flags:# archived:flags.1?true official:flags.2?true masks:flags.3?true emojis:flags.7?true text_color:flags.9?true channel_emoji_status:flags.10?true creator:flags.11?true installed_date:flags.0?int id:long access_hash:long title:string short_name:string thumbs:flags.4?Vector thumb_dc_id:flags.4?int thumb_version:flags.4?int thumb_document_id:flags.8?long count:int hash:int = StickerSet; messages.stickerSet#6e153f16 set:StickerSet packs:Vector keywords:Vector documents:Vector = messages.StickerSet; messages.stickerSetNotModified#d3f924eb = messages.StickerSet; @@ -625,6 +647,7 @@ keyboardButtonUserProfile#308660c1 text:string user_id:long = KeyboardButton; keyboardButtonWebView#13767230 text:string url:string = KeyboardButton; keyboardButtonSimpleWebView#a0c0505c text:string url:string = KeyboardButton; keyboardButtonRequestPeer#53d7bfd8 text:string button_id:int peer_type:RequestPeerType max_quantity:int = KeyboardButton; +inputKeyboardButtonRequestPeer#c9662d05 flags:# name_requested:flags.0?true username_requested:flags.1?true photo_requested:flags.2?true text:string button_id:int peer_type:RequestPeerType max_quantity:int = KeyboardButton; keyboardButtonRow#77608b83 buttons:Vector = KeyboardButtonRow; @@ -653,7 +676,7 @@ messageEntityStrike#bf0693d4 offset:int length:int = MessageEntity; messageEntityBankCard#761e6af4 offset:int length:int = MessageEntity; messageEntitySpoiler#32ca960f offset:int length:int = MessageEntity; messageEntityCustomEmoji#c8cf05f8 offset:int length:int document_id:long = MessageEntity; -messageEntityBlockquote#20df5d0 offset:int length:int = MessageEntity; +messageEntityBlockquote#f1ccaaac flags:# collapsed:flags.0?true offset:int length:int = MessageEntity; inputChannelEmpty#ee8c1e86 = InputChannel; inputChannel#f35aec28 channel_id:long access_hash:long = InputChannel; @@ -741,7 +764,9 @@ auth.sentCodeTypeMissedCall#82006484 prefix:string length:int = auth.SentCodeTyp auth.sentCodeTypeEmailCode#f450f59b flags:# apple_signin_allowed:flags.0?true google_signin_allowed:flags.1?true email_pattern:string length:int reset_available_period:flags.3?int reset_pending_date:flags.4?int = auth.SentCodeType; auth.sentCodeTypeSetUpEmailRequired#a5491dea flags:# apple_signin_allowed:flags.0?true google_signin_allowed:flags.1?true = auth.SentCodeType; auth.sentCodeTypeFragmentSms#d9565c39 url:string length:int = auth.SentCodeType; -auth.sentCodeTypeFirebaseSms#e57b1432 flags:# nonce:flags.0?bytes receipt:flags.1?string push_timeout:flags.1?int length:int = auth.SentCodeType; +auth.sentCodeTypeFirebaseSms#9fd736 flags:# nonce:flags.0?bytes play_integrity_project_id:flags.2?long play_integrity_nonce:flags.2?bytes receipt:flags.1?string push_timeout:flags.1?int length:int = auth.SentCodeType; +auth.sentCodeTypeSmsWord#a416ac81 flags:# beginning:flags.0?string = auth.SentCodeType; +auth.sentCodeTypeSmsPhrase#b37794af flags:# beginning:flags.0?string = auth.SentCodeType; messages.botCallbackAnswer#36585ea4 flags:# alert:flags.1?true has_url:flags.3?true native_ui:flags.4?true message:flags.0?string url:flags.2?string cache_time:int = messages.BotCallbackAnswer; @@ -772,7 +797,7 @@ contacts.topPeers#70b772a8 categories:Vector chats:Vector< contacts.topPeersDisabled#b52c939d = contacts.TopPeers; draftMessageEmpty#1b0c841a flags:# date:flags.0?int = DraftMessage; -draftMessage#3fccf7ef flags:# no_webpage:flags.1?true invert_media:flags.6?true reply_to:flags.4?InputReplyTo message:string entities:flags.3?Vector media:flags.5?InputMedia date:int = DraftMessage; +draftMessage#2d65321f flags:# no_webpage:flags.1?true invert_media:flags.6?true reply_to:flags.4?InputReplyTo message:string entities:flags.3?Vector media:flags.5?InputMedia date:int effect:flags.7?long = DraftMessage; messages.featuredStickersNotModified#c6dc0c66 count:int = messages.FeaturedStickers; messages.featuredStickers#be382906 flags:# premium:flags.0?true hash:long count:int sets:Vector unread:Vector = messages.FeaturedStickers; @@ -882,6 +907,7 @@ inputWebFileAudioAlbumThumbLocation#f46fe924 flags:# small:flags.2?true document upload.webFile#21e753bc size:int mime_type:string file_type:storage.FileType mtime:int bytes:bytes = upload.WebFile; payments.paymentForm#a0058751 flags:# can_save_credentials:flags.2?true password_missing:flags.3?true form_id:long bot_id:long title:string description:string photo:flags.5?WebDocument invoice:Invoice provider_id:long url:string native_provider:flags.4?string native_params:flags.4?DataJSON additional_methods:flags.6?Vector saved_info:flags.0?PaymentRequestedInfo saved_credentials:flags.1?Vector users:Vector = payments.PaymentForm; +payments.paymentFormStars#7bf6b15c flags:# form_id:long bot_id:long title:string description:string photo:flags.5?WebDocument invoice:Invoice users:Vector = payments.PaymentForm; payments.validatedRequestedInfo#d1451883 flags:# id:flags.0?string shipping_options:flags.1?Vector = payments.ValidatedRequestedInfo; @@ -889,6 +915,7 @@ payments.paymentResult#4e5f810d updates:Updates = payments.PaymentResult; payments.paymentVerificationNeeded#d8411139 url:string = payments.PaymentResult; payments.paymentReceipt#70c4fe03 flags:# date:int bot_id:long provider_id:long title:string description:string photo:flags.2?WebDocument invoice:Invoice info:flags.0?PaymentRequestedInfo shipping:flags.1?ShippingOption tip_amount:flags.3?long currency:string total_amount:long credentials_title:string users:Vector = payments.PaymentReceipt; +payments.paymentReceiptStars#dabbf83a flags:# date:int bot_id:long title:string description:string photo:flags.2?WebDocument invoice:Invoice currency:string total_amount:long transaction_id:string users:Vector = payments.PaymentReceipt; payments.savedInfo#fb8fe43c flags:# has_saved_credentials:flags.1?true saved_info:flags.0?PaymentRequestedInfo = payments.SavedInfo; @@ -909,7 +936,7 @@ phoneCallEmpty#5366c915 id:long = PhoneCall; phoneCallWaiting#c5226f17 flags:# video:flags.6?true id:long access_hash:long date:int admin_id:long participant_id:long protocol:PhoneCallProtocol receive_date:flags.0?int = PhoneCall; phoneCallRequested#14b0ed0c flags:# video:flags.6?true id:long access_hash:long date:int admin_id:long participant_id:long g_a_hash:bytes protocol:PhoneCallProtocol = PhoneCall; phoneCallAccepted#3660c311 flags:# video:flags.6?true id:long access_hash:long date:int admin_id:long participant_id:long g_b:bytes protocol:PhoneCallProtocol = PhoneCall; -phoneCall#967f7c67 flags:# p2p_allowed:flags.5?true video:flags.6?true id:long access_hash:long date:int admin_id:long participant_id:long g_a_or_b:bytes key_fingerprint:long protocol:PhoneCallProtocol connections:Vector start_date:int = PhoneCall; +phoneCall#30535af5 flags:# p2p_allowed:flags.5?true video:flags.6?true id:long access_hash:long date:int admin_id:long participant_id:long g_a_or_b:bytes key_fingerprint:long protocol:PhoneCallProtocol connections:Vector start_date:int custom_parameters:flags.7?DataJSON = PhoneCall; phoneCallDiscarded#50ca4de1 flags:# need_rating:flags.2?true need_debug:flags.3?true video:flags.6?true id:long reason:flags.0?PhoneCallDiscardReason duration:flags.1?int = PhoneCall; phoneConnection#9cc123c7 flags:# tcp:flags.0?true id:long ip:string ipv6:string port:int peer_tag:bytes = PhoneConnection; @@ -1133,9 +1160,9 @@ help.supportName#8c05f1c9 name:string = help.SupportName; help.userInfoEmpty#f3ae2eed = help.UserInfo; help.userInfo#1eb3758 message:string entities:Vector author:string date:int = help.UserInfo; -pollAnswer#6ca9c2e9 text:string option:bytes = PollAnswer; +pollAnswer#ff16e2ca text:TextWithEntities option:bytes = PollAnswer; -poll#86e18161 id:long flags:# closed:flags.0?true public_voters:flags.1?true multiple_choice:flags.2?true quiz:flags.3?true question:string answers:Vector close_period:flags.4?int close_date:flags.5?int = Poll; +poll#58747131 id:long flags:# closed:flags.0?true public_voters:flags.1?true multiple_choice:flags.2?true quiz:flags.3?true question:TextWithEntities answers:Vector close_period:flags.4?int close_date:flags.5?int = Poll; pollAnswerVoters#3b6ddad2 flags:# chosen:flags.0?true correct:flags.1?true option:bytes voters:int = PollAnswerVoters; @@ -1156,7 +1183,7 @@ inputWallPaperNoFile#967a462e id:long = InputWallPaper; account.wallPapersNotModified#1c199183 = account.WallPapers; account.wallPapers#cdc3858c hash:long wallpapers:Vector = account.WallPapers; -codeSettings#ad253d78 flags:# allow_flashcall:flags.0?true current_number:flags.1?true allow_app_hash:flags.4?true allow_missed_call:flags.5?true allow_firebase:flags.7?true logout_tokens:flags.6?Vector token:flags.8?string app_sandbox:flags.8?Bool = CodeSettings; +codeSettings#ad253d78 flags:# allow_flashcall:flags.0?true current_number:flags.1?true allow_app_hash:flags.4?true allow_missed_call:flags.5?true allow_firebase:flags.7?true unknown_number:flags.9?true logout_tokens:flags.6?Vector token:flags.8?string app_sandbox:flags.8?Bool = CodeSettings; wallPaperSettings#372efcd0 flags:# blur:flags.1?true motion:flags.2?true background_color:flags.0?int second_background_color:flags.4?int third_background_color:flags.5?int fourth_background_color:flags.6?int intensity:flags.3?int rotation:flags.4?int emoticon:flags.7?string = WallPaperSettings; @@ -1221,6 +1248,7 @@ themeSettings#fa58b6d4 flags:# message_colors_animated:flags.2?true base_theme:B webPageAttributeTheme#54b56617 flags:# documents:flags.0?Vector settings:flags.1?ThemeSettings = WebPageAttribute; webPageAttributeStory#2e94c3e7 flags:# peer:Peer id:int story:flags.0?StoryItem = WebPageAttribute; +webPageAttributeStickerSet#50cc03d3 flags:# emojis:flags.0?true text_color:flags.1?true stickers:Vector = WebPageAttribute; messages.votesList#4899484e flags:# count:int votes:Vector chats:Vector users:Vector next_offset:flags.0?string = messages.VotesList; @@ -1228,9 +1256,9 @@ bankCardOpenUrl#f568028a url:string name:string = BankCardOpenUrl; payments.bankCardData#3e24e573 title:string open_urls:Vector = payments.BankCardData; -dialogFilter#7438f7e8 flags:# contacts:flags.0?true non_contacts:flags.1?true groups:flags.2?true broadcasts:flags.3?true bots:flags.4?true exclude_muted:flags.11?true exclude_read:flags.12?true exclude_archived:flags.13?true id:int title:string emoticon:flags.25?string pinned_peers:Vector include_peers:Vector exclude_peers:Vector = DialogFilter; +dialogFilter#5fb5523b flags:# contacts:flags.0?true non_contacts:flags.1?true groups:flags.2?true broadcasts:flags.3?true bots:flags.4?true exclude_muted:flags.11?true exclude_read:flags.12?true exclude_archived:flags.13?true id:int title:string emoticon:flags.25?string color:flags.27?int pinned_peers:Vector include_peers:Vector exclude_peers:Vector = DialogFilter; dialogFilterDefault#363293ae = DialogFilter; -dialogFilterChatlist#d64a04a8 flags:# has_my_invites:flags.26?true id:int title:string emoticon:flags.25?string pinned_peers:Vector include_peers:Vector = DialogFilter; +dialogFilterChatlist#9fe28ea4 flags:# has_my_invites:flags.26?true id:int title:string emoticon:flags.25?string color:flags.27?int pinned_peers:Vector include_peers:Vector = DialogFilter; dialogFilterSuggested#77744d4a filter:DialogFilter description:string = DialogFilterSuggested; @@ -1346,7 +1374,7 @@ account.resetPasswordFailedWait#e3779861 retry_date:int = account.ResetPasswordR account.resetPasswordRequestedWait#e9effc7d until_date:int = account.ResetPasswordResult; account.resetPasswordOk#e926d63e = account.ResetPasswordResult; -sponsoredMessage#ed5383f7 flags:# recommended:flags.5?true show_peer_photo:flags.6?true random_id:bytes from_id:flags.3?Peer chat_invite:flags.4?ChatInvite chat_invite_hash:flags.4?string channel_post:flags.2?int start_param:flags.0?string webpage:flags.9?SponsoredWebPage app:flags.10?BotApp message:string entities:flags.1?Vector button_text:flags.11?string sponsor_info:flags.7?string additional_info:flags.8?string = SponsoredMessage; +sponsoredMessage#bdedf566 flags:# recommended:flags.5?true can_report:flags.12?true random_id:bytes url:string title:string message:string entities:flags.1?Vector photo:flags.6?Photo color:flags.13?PeerColor button_text:string sponsor_info:flags.7?string additional_info:flags.8?string = SponsoredMessage; messages.sponsoredMessages#c9ee1d87 flags:# posts_between:flags.0?int messages:Vector chats:Vector users:Vector = messages.SponsoredMessages; messages.sponsoredMessagesEmpty#1839490f = messages.SponsoredMessages; @@ -1397,9 +1425,7 @@ attachMenuBots#3c4301c0 hash:long bots:Vector users:Vector attachMenuBotsBot#93bf667f bot:AttachMenuBot users:Vector = AttachMenuBotsBot; -webViewResultUrl#c14557c query_id:long url:string = WebViewResult; - -simpleWebViewResultUrl#882f76bb url:string = SimpleWebViewResult; +webViewResultUrl#4d22ff98 flags:# fullsize:flags.1?true query_id:flags.0?long url:string = WebViewResult; webViewMessageSent#c94511c flags:# msg_id:flags.0?InputBotInlineMessageID = WebViewMessageSent; @@ -1427,6 +1453,7 @@ attachMenuPeerTypeBroadcast#7bfbdefc = AttachMenuPeerType; inputInvoiceMessage#c5b56859 peer:InputPeer msg_id:int = InputInvoice; inputInvoiceSlug#c326caef slug:string = InputInvoice; inputInvoicePremiumGiftCode#98986c0d purpose:InputStorePaymentPurpose option:PremiumGiftCodeOption = InputInvoice; +inputInvoiceStars#1da33ad8 option:StarsTopupOption = InputInvoice; payments.exportedInvoice#aed0cbd9 url:string = payments.ExportedInvoice; @@ -1438,6 +1465,7 @@ inputStorePaymentPremiumSubscription#a6751e66 flags:# restore:flags.0?true upgra inputStorePaymentGiftPremium#616f7fe8 user_id:InputUser currency:string amount:long = InputStorePaymentPurpose; inputStorePaymentPremiumGiftCode#a3805f3f flags:# users:Vector boost_peer:flags.0?InputPeer currency:string amount:long = InputStorePaymentPurpose; inputStorePaymentPremiumGiveaway#160544ca flags:# only_new_subscribers:flags.0?true winners_are_visible:flags.3?true boost_peer:InputPeer additional_peers:flags.1?Vector countries_iso2:flags.2?Vector prize_description:flags.4?string random_id:long until_date:int currency:string amount:long = InputStorePaymentPurpose; +inputStorePaymentStars#4f0ee8df flags:# stars:long currency:string amount:long = InputStorePaymentPurpose; premiumGiftOption#74c34319 flags:# months:int currency:string amount:long bot_url:string store_product:flags.0?string = PremiumGiftOption; @@ -1500,6 +1528,8 @@ emojiListNotModified#481eadfa = EmojiList; emojiList#7a1e11d1 hash:long document_id:Vector = EmojiList; emojiGroup#7a9abda9 title:string icon_emoji_id:long emoticons:Vector = EmojiGroup; +emojiGroupGreeting#80d26cc7 title:string icon_emoji_id:long emoticons:Vector = EmojiGroup; +emojiGroupPremium#93bcf34 title:string icon_emoji_id:long = EmojiGroup; messages.emojiGroupsNotModified#6fb4ad87 = messages.EmojiGroups; messages.emojiGroups#881fb94b hash:int groups:Vector = messages.EmojiGroups; @@ -1525,8 +1555,6 @@ botApp#95fcd1d6 flags:# id:long access_hash:long short_name:string title:string messages.botApp#eb50adf5 flags:# inactive:flags.0?true request_write_access:flags.1?true has_settings:flags.2?true app:BotApp = messages.BotApp; -appWebViewResultUrl#3c1b4f0d url:string = AppWebViewResult; - inlineBotWebView#b57295d5 text:string url:string = InlineBotWebView; readParticipantDate#4a4ff172 user_id:long date:int = ReadParticipantDate; @@ -1550,8 +1578,6 @@ messagePeerVote#b6cc2d5c peer:Peer option:bytes date:int = MessagePeerVote; messagePeerVoteInputOption#74cda504 peer:Peer date:int = MessagePeerVote; messagePeerVoteMultiple#4628f6e6 peer:Peer options:Vector date:int = MessagePeerVote; -sponsoredWebPage#3db8ec63 flags:# url:string site_name:string photo:flags.0?Photo = SponsoredWebPage; - storyViews#8d595cd6 flags:# has_viewers:flags.1?true views_count:int forwards_count:flags.2?int reactions:flags.3?Vector reactions_count:flags.4?int recent_viewers:flags.0?Vector = StoryViews; storyItemDeleted#51e6ee4f id:int = StoryItem; @@ -1561,7 +1587,7 @@ storyItem#79b26a24 flags:# pinned:flags.5?true public:flags.7?true close_friends stories.allStoriesNotModified#1158fe3e flags:# state:string stealth_mode:StoriesStealthMode = stories.AllStories; stories.allStories#6efc5e81 flags:# has_more:flags.0?true count:int state:string peer_stories:Vector chats:Vector users:Vector stealth_mode:StoriesStealthMode = stories.AllStories; -stories.stories#5dd8c3c8 count:int stories:Vector chats:Vector users:Vector = stories.Stories; +stories.stories#63c3dd0a flags:# count:int stories:Vector pinned_to_top:flags.0?Vector chats:Vector users:Vector = stories.Stories; storyView#b0bdeac5 flags:# blocked:flags.0?true blocked_my_stories_from:flags.1?true user_id:long date:int reaction:flags.2?Reaction = StoryView; storyViewPublicForward#9083670b flags:# blocked:flags.0?true blocked_my_stories_from:flags.1?true message:Message = StoryView; @@ -1578,14 +1604,15 @@ exportedStoryLink#3fc9053b link:string = ExportedStoryLink; storiesStealthMode#712e27fd flags:# active_until_date:flags.0?int cooldown_until_date:flags.1?int = StoriesStealthMode; -mediaAreaCoordinates#3d1ea4e x:double y:double w:double h:double rotation:double = MediaAreaCoordinates; +mediaAreaCoordinates#cfc9e002 flags:# x:double y:double w:double h:double rotation:double radius:flags.0?double = MediaAreaCoordinates; mediaAreaVenue#be82db9c coordinates:MediaAreaCoordinates geo:GeoPoint title:string address:string provider:string venue_id:string venue_type:string = MediaArea; inputMediaAreaVenue#b282217f coordinates:MediaAreaCoordinates query_id:long result_id:string = MediaArea; -mediaAreaGeoPoint#df8b3b22 coordinates:MediaAreaCoordinates geo:GeoPoint = MediaArea; +mediaAreaGeoPoint#cad5452d flags:# coordinates:MediaAreaCoordinates geo:GeoPoint address:flags.0?GeoPointAddress = MediaArea; mediaAreaSuggestedReaction#14455871 flags:# dark:flags.0?true flipped:flags.1?true coordinates:MediaAreaCoordinates reaction:Reaction = MediaArea; mediaAreaChannelPost#770416af coordinates:MediaAreaCoordinates channel_id:long msg_id:int = MediaArea; inputMediaAreaChannelPost#2271f2bf coordinates:MediaAreaCoordinates channel:InputChannel msg_id:int = MediaArea; +mediaAreaUrl#37381085 coordinates:MediaAreaCoordinates url:string = MediaArea; peerStories#9a35e999 flags:# peer:Peer max_read_id:flags.0?int stories:Vector = PeerStories; @@ -1653,6 +1680,152 @@ messages.savedReactionTags#3259950a tags:Vector hash:long = me outboxReadDate#3bb842ac date:int = OutboxReadDate; +smsjobs.eligibleToJoin#dc8b44cf terms_url:string monthly_sent_sms:int = smsjobs.EligibilityToJoin; + +smsjobs.status#2aee9191 flags:# allow_international:flags.0?true recent_sent:int recent_since:int recent_remains:int total_sent:int total_since:int last_gift_slug:flags.1?string terms_url:string = smsjobs.Status; + +smsJob#e6a1eeb8 job_id:string phone_number:string text:string = SmsJob; + +businessWeeklyOpen#120b1ab9 start_minute:int end_minute:int = BusinessWeeklyOpen; + +businessWorkHours#8c92b098 flags:# open_now:flags.0?true timezone_id:string weekly_open:Vector = BusinessWorkHours; + +businessLocation#ac5c1af7 flags:# geo_point:flags.0?GeoPoint address:string = BusinessLocation; + +inputBusinessRecipients#6f8b32aa flags:# existing_chats:flags.0?true new_chats:flags.1?true contacts:flags.2?true non_contacts:flags.3?true exclude_selected:flags.5?true users:flags.4?Vector = InputBusinessRecipients; + +businessRecipients#21108ff7 flags:# existing_chats:flags.0?true new_chats:flags.1?true contacts:flags.2?true non_contacts:flags.3?true exclude_selected:flags.5?true users:flags.4?Vector = BusinessRecipients; + +businessAwayMessageScheduleAlways#c9b9e2b9 = BusinessAwayMessageSchedule; +businessAwayMessageScheduleOutsideWorkHours#c3f2f501 = BusinessAwayMessageSchedule; +businessAwayMessageScheduleCustom#cc4d9ecc start_date:int end_date:int = BusinessAwayMessageSchedule; + +inputBusinessGreetingMessage#194cb3b shortcut_id:int recipients:InputBusinessRecipients no_activity_days:int = InputBusinessGreetingMessage; + +businessGreetingMessage#e519abab shortcut_id:int recipients:BusinessRecipients no_activity_days:int = BusinessGreetingMessage; + +inputBusinessAwayMessage#832175e0 flags:# offline_only:flags.0?true shortcut_id:int schedule:BusinessAwayMessageSchedule recipients:InputBusinessRecipients = InputBusinessAwayMessage; + +businessAwayMessage#ef156a5c flags:# offline_only:flags.0?true shortcut_id:int schedule:BusinessAwayMessageSchedule recipients:BusinessRecipients = BusinessAwayMessage; + +timezone#ff9289f5 id:string name:string utc_offset:int = Timezone; + +help.timezonesListNotModified#970708cc = help.TimezonesList; +help.timezonesList#7b74ed71 timezones:Vector hash:int = help.TimezonesList; + +quickReply#697102b shortcut_id:int shortcut:string top_message:int count:int = QuickReply; + +inputQuickReplyShortcut#24596d41 shortcut:string = InputQuickReplyShortcut; +inputQuickReplyShortcutId#1190cf1 shortcut_id:int = InputQuickReplyShortcut; + +messages.quickReplies#c68d6695 quick_replies:Vector messages:Vector chats:Vector users:Vector = messages.QuickReplies; +messages.quickRepliesNotModified#5f91eb5b = messages.QuickReplies; + +connectedBot#bd068601 flags:# can_reply:flags.0?true bot_id:long recipients:BusinessBotRecipients = ConnectedBot; + +account.connectedBots#17d7f87b connected_bots:Vector users:Vector = account.ConnectedBots; + +messages.dialogFilters#2ad93719 flags:# tags_enabled:flags.0?true filters:Vector = messages.DialogFilters; + +birthday#6c8e1e06 flags:# day:int month:int year:flags.0?int = Birthday; + +botBusinessConnection#896433b4 flags:# can_reply:flags.0?true disabled:flags.1?true connection_id:string user_id:long dc_id:int date:int = BotBusinessConnection; + +inputBusinessIntro#9c469cd flags:# title:string description:string sticker:flags.0?InputDocument = InputBusinessIntro; + +businessIntro#5a0a066d flags:# title:string description:string sticker:flags.0?Document = BusinessIntro; + +messages.myStickers#faff629d count:int sets:Vector = messages.MyStickers; + +inputCollectibleUsername#e39460a9 username:string = InputCollectible; +inputCollectiblePhone#a2e214a4 phone:string = InputCollectible; + +fragment.collectibleInfo#6ebdff91 purchase_date:int currency:string amount:long crypto_currency:string crypto_amount:long url:string = fragment.CollectibleInfo; + +inputBusinessBotRecipients#c4e5921e flags:# existing_chats:flags.0?true new_chats:flags.1?true contacts:flags.2?true non_contacts:flags.3?true exclude_selected:flags.5?true users:flags.4?Vector exclude_users:flags.6?Vector = InputBusinessBotRecipients; + +businessBotRecipients#b88cf373 flags:# existing_chats:flags.0?true new_chats:flags.1?true contacts:flags.2?true non_contacts:flags.3?true exclude_selected:flags.5?true users:flags.4?Vector exclude_users:flags.6?Vector = BusinessBotRecipients; + +contactBirthday#1d998733 contact_id:long birthday:Birthday = ContactBirthday; + +contacts.contactBirthdays#114ff30d contacts:Vector users:Vector = contacts.ContactBirthdays; + +missingInvitee#628c9224 flags:# premium_would_allow_invite:flags.0?true premium_required_for_pm:flags.1?true user_id:long = MissingInvitee; + +messages.invitedUsers#7f5defa6 updates:Updates missing_invitees:Vector = messages.InvitedUsers; + +inputBusinessChatLink#11679fa7 flags:# message:string entities:flags.0?Vector title:flags.1?string = InputBusinessChatLink; + +businessChatLink#b4ae666f flags:# link:string message:string entities:flags.0?Vector title:flags.1?string views:int = BusinessChatLink; + +account.businessChatLinks#ec43a2d1 links:Vector chats:Vector users:Vector = account.BusinessChatLinks; + +account.resolvedBusinessChatLinks#9a23af21 flags:# peer:Peer message:string entities:flags.0?Vector chats:Vector users:Vector = account.ResolvedBusinessChatLinks; + +requestedPeerUser#d62ff46a flags:# user_id:long first_name:flags.0?string last_name:flags.0?string username:flags.1?string photo:flags.2?Photo = RequestedPeer; +requestedPeerChat#7307544f flags:# chat_id:long title:flags.0?string photo:flags.2?Photo = RequestedPeer; +requestedPeerChannel#8ba403e4 flags:# channel_id:long title:flags.0?string username:flags.1?string photo:flags.2?Photo = RequestedPeer; + +sponsoredMessageReportOption#430d3150 text:string option:bytes = SponsoredMessageReportOption; + +channels.sponsoredMessageReportResultChooseOption#846f9e42 title:string options:Vector = channels.SponsoredMessageReportResult; +channels.sponsoredMessageReportResultAdsHidden#3e3bcf2f = channels.SponsoredMessageReportResult; +channels.sponsoredMessageReportResultReported#ad798849 = channels.SponsoredMessageReportResult; + +stats.broadcastRevenueStats#5407e297 top_hours_graph:StatsGraph revenue_graph:StatsGraph balances:BroadcastRevenueBalances usd_rate:double = stats.BroadcastRevenueStats; + +stats.broadcastRevenueWithdrawalUrl#ec659737 url:string = stats.BroadcastRevenueWithdrawalUrl; + +broadcastRevenueTransactionProceeds#557e2cc4 amount:long from_date:int to_date:int = BroadcastRevenueTransaction; +broadcastRevenueTransactionWithdrawal#5a590978 flags:# pending:flags.0?true failed:flags.2?true amount:long date:int provider:string transaction_date:flags.1?int transaction_url:flags.1?string = BroadcastRevenueTransaction; +broadcastRevenueTransactionRefund#42d30d2e amount:long date:int provider:string = BroadcastRevenueTransaction; + +stats.broadcastRevenueTransactions#87158466 count:int transactions:Vector = stats.BroadcastRevenueTransactions; + +reactionNotificationsFromContacts#bac3a61a = ReactionNotificationsFrom; +reactionNotificationsFromAll#4b9e22a0 = ReactionNotificationsFrom; + +reactionsNotifySettings#56e34970 flags:# messages_notify_from:flags.0?ReactionNotificationsFrom stories_notify_from:flags.1?ReactionNotificationsFrom sound:NotificationSound show_previews:Bool = ReactionsNotifySettings; + +broadcastRevenueBalances#8438f1c6 current_balance:long available_balance:long overall_revenue:long = BroadcastRevenueBalances; + +availableEffect#93c3e27e flags:# premium_required:flags.2?true id:long emoticon:string static_icon_id:flags.0?long effect_sticker_id:long effect_animation_id:flags.1?long = AvailableEffect; + +messages.availableEffectsNotModified#d1ed9a5b = messages.AvailableEffects; +messages.availableEffects#bddb616e hash:int effects:Vector documents:Vector = messages.AvailableEffects; + +factCheck#b89bfccf flags:# need_check:flags.0?true country:flags.1?string text:flags.1?TextWithEntities hash:long = FactCheck; + +starsTransactionPeerUnsupported#95f2bfe4 = StarsTransactionPeer; +starsTransactionPeerAppStore#b457b375 = StarsTransactionPeer; +starsTransactionPeerPlayMarket#7b560a0b = StarsTransactionPeer; +starsTransactionPeerPremiumBot#250dbaf8 = StarsTransactionPeer; +starsTransactionPeerFragment#e92fd902 = StarsTransactionPeer; +starsTransactionPeer#d80da15d peer:Peer = StarsTransactionPeer; +starsTransactionPeerAds#60682812 = StarsTransactionPeer; + +starsTopupOption#bd915c0 flags:# extended:flags.1?true stars:long store_product:flags.0?string currency:string amount:long = StarsTopupOption; + +starsTransaction#2db5418f flags:# refund:flags.3?true pending:flags.4?true failed:flags.6?true id:string stars:long date:int peer:StarsTransactionPeer title:flags.0?string description:flags.1?string photo:flags.2?WebDocument transaction_date:flags.5?int transaction_url:flags.5?string bot_payload:flags.7?bytes msg_id:flags.8?int extended_media:flags.9?Vector = StarsTransaction; + +payments.starsStatus#8cf4ee60 flags:# balance:long history:Vector next_offset:flags.0?string chats:Vector users:Vector = payments.StarsStatus; + +foundStory#e87acbc0 peer:Peer story:StoryItem = FoundStory; + +stories.foundStories#e2de7737 flags:# count:int stories:Vector next_offset:flags.0?string chats:Vector users:Vector = stories.FoundStories; + +geoPointAddress#de4c5d93 flags:# country_iso2:string state:flags.0?string city:flags.1?string street:flags.2?string = GeoPointAddress; + +starsRevenueStatus#79342946 flags:# withdrawal_enabled:flags.0?true current_balance:long available_balance:long overall_revenue:long next_withdrawal_at:flags.1?int = StarsRevenueStatus; + +payments.starsRevenueStats#c92bb73b revenue_graph:StatsGraph status:StarsRevenueStatus usd_rate:double = payments.StarsRevenueStats; + +payments.starsRevenueWithdrawalUrl#1dab80b7 url:string = payments.StarsRevenueWithdrawalUrl; + +payments.starsRevenueAdsAccountUrl#394e7f21 url:string = payments.StarsRevenueAdsAccountUrl; + +inputStarsTransaction#206ae6d1 flags:# refund:flags.0?true id:string = InputStarsTransaction; + ---functions--- invokeAfterMsg#cb9f372d {X:Type} msg_id:long query:!X = X; @@ -1662,6 +1835,9 @@ invokeWithLayer#da9b0d0d {X:Type} layer:int query:!X = X; invokeWithoutUpdates#bf9459b7 {X:Type} query:!X = X; invokeWithMessagesRange#365275f2 {X:Type} range:MessageRange query:!X = X; invokeWithTakeout#aca9fd2e {X:Type} takeout_id:long query:!X = X; +invokeWithBusinessConnection#dd289f8e {X:Type} connection_id:string query:!X = X; +invokeWithGooglePlayIntegrity#1df92984 {X:Type} nonce:string token:string query:!X = X; +invokeWithApnsSecret#0dae54f8 {X:Type} nonce:string secret:string query:!X = X; auth.sendCode#a677244f phone_number:string api_id:int api_hash:string settings:CodeSettings = auth.SentCode; auth.signUp#aac7b717 flags:# no_joined_notifications:flags.0?true phone_number:string phone_code_hash:string first_name:string last_name:string = auth.Authorization; @@ -1675,7 +1851,7 @@ auth.importBotAuthorization#67a3ff2c flags:int api_id:int api_hash:string bot_au auth.checkPassword#d18b4d16 password:InputCheckPasswordSRP = auth.Authorization; auth.requestPasswordRecovery#d897bc66 = auth.PasswordRecovery; auth.recoverPassword#37096c70 flags:# code:string new_settings:flags.0?account.PasswordInputSettings = auth.Authorization; -auth.resendCode#3ef1a9bf phone_number:string phone_code_hash:string = auth.SentCode; +auth.resendCode#cae47523 flags:# phone_number:string phone_code_hash:string reason:flags.0?string = auth.SentCode; auth.cancelCode#1f040578 phone_number:string phone_code_hash:string = Bool; auth.dropTempAuthKeys#8e48a188 except_auth_keys:Vector = Bool; auth.exportLoginToken#b7e085fe api_id:int api_hash:string except_ids:Vector = auth.LoginToken; @@ -1683,8 +1859,9 @@ auth.importLoginToken#95ac5ce4 token:bytes = auth.LoginToken; auth.acceptLoginToken#e894ad4d token:bytes = Authorization; auth.checkRecoveryPassword#d36bf79 code:string = Bool; auth.importWebTokenAuthorization#2db873a9 api_id:int api_hash:string web_auth_token:string = auth.Authorization; -auth.requestFirebaseSms#89464b50 flags:# phone_number:string phone_code_hash:string safety_net_token:flags.0?string ios_push_secret:flags.1?string = Bool; +auth.requestFirebaseSms#8e39261e flags:# phone_number:string phone_code_hash:string safety_net_token:flags.0?string play_integrity_token:flags.2?string ios_push_secret:flags.1?string = Bool; auth.resetLoginEmail#7e960193 phone_number:string phone_code_hash:string = auth.SentCode; +auth.reportMissingCode#cb9deff6 phone_number:string phone_code_hash:string mnc:string = Bool; account.registerDevice#ec86017a flags:# no_muted:flags.0?true token_type:int token:string app_sandbox:Bool secret:bytes other_uids:Vector = Bool; account.unregisterDevice#6a0d3206 token_type:int token:string other_uids:Vector = Bool; @@ -1778,6 +1955,26 @@ account.updateColor#7cefa15d flags:# for_profile:flags.1?true color:flags.2?int account.getDefaultBackgroundEmojis#a60ab9ce hash:long = EmojiList; account.getChannelDefaultEmojiStatuses#7727a7d5 hash:long = account.EmojiStatuses; account.getChannelRestrictedStatusEmojis#35a9e0d5 hash:long = EmojiList; +account.updateBusinessWorkHours#4b00e066 flags:# business_work_hours:flags.0?BusinessWorkHours = Bool; +account.updateBusinessLocation#9e6b131a flags:# geo_point:flags.1?InputGeoPoint address:flags.0?string = Bool; +account.updateBusinessGreetingMessage#66cdafc4 flags:# message:flags.0?InputBusinessGreetingMessage = Bool; +account.updateBusinessAwayMessage#a26a7fa5 flags:# message:flags.0?InputBusinessAwayMessage = Bool; +account.updateConnectedBot#43d8521d flags:# can_reply:flags.0?true deleted:flags.1?true bot:InputUser recipients:InputBusinessBotRecipients = Updates; +account.getConnectedBots#4ea4c80f = account.ConnectedBots; +account.getBotBusinessConnection#76a86270 connection_id:string = Updates; +account.updateBusinessIntro#a614d034 flags:# intro:flags.0?InputBusinessIntro = Bool; +account.toggleConnectedBotPaused#646e1097 peer:InputPeer paused:Bool = Bool; +account.disablePeerConnectedBot#5e437ed9 peer:InputPeer = Bool; +account.updateBirthday#cc6e0c11 flags:# birthday:flags.0?Birthday = Bool; +account.createBusinessChatLink#8851e68e link:InputBusinessChatLink = BusinessChatLink; +account.editBusinessChatLink#8c3410af slug:string link:InputBusinessChatLink = BusinessChatLink; +account.deleteBusinessChatLink#60073674 slug:string = Bool; +account.getBusinessChatLinks#6f70dde1 = account.BusinessChatLinks; +account.resolveBusinessChatLink#5492e5ee slug:string = account.ResolvedBusinessChatLinks; +account.updatePersonalChannel#d94305e0 channel:InputChannel = Bool; +account.toggleSponsoredMessages#b9d9a38d enabled:Bool = Bool; +account.getReactionsNotifySettings#6dd654c = ReactionsNotifySettings; +account.setReactionsNotifySettings#316ce548 settings:ReactionsNotifySettings = ReactionsNotifySettings; users.getUsers#d91a548 id:Vector = Vector; users.getFullUser#b60f5918 id:InputUser = users.UserFull; @@ -1809,6 +2006,7 @@ contacts.exportContactToken#f8654027 = ExportedContactToken; contacts.importContactToken#13005788 token:string = User; contacts.editCloseFriends#ba6705f0 id:Vector = Bool; contacts.setBlocked#94c65c76 flags:# my_stories_from:flags.0?true id:Vector limit:int = Bool; +contacts.getBirthdays#daeda864 = contacts.ContactBirthdays; messages.getMessages#63c66506 id:Vector = messages.Messages; messages.getDialogs#a0f4cb4f flags:# exclude_pinned:flags.0?true folder_id:flags.1?int offset_date:int offset_id:int offset_peer:InputPeer limit:int hash:long = messages.Dialogs; @@ -1819,9 +2017,9 @@ messages.deleteHistory#b08f922a flags:# just_clear:flags.0?true revoke:flags.1?t messages.deleteMessages#e58e95d2 flags:# revoke:flags.0?true id:Vector = messages.AffectedMessages; messages.receivedMessages#5a954c0 max_id:int = Vector; messages.setTyping#58943ee2 flags:# peer:InputPeer top_msg_id:flags.0?int action:SendMessageAction = Bool; -messages.sendMessage#280d096f flags:# no_webpage:flags.1?true silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true update_stickersets_order:flags.15?true invert_media:flags.16?true peer:InputPeer reply_to:flags.0?InputReplyTo message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector schedule_date:flags.10?int send_as:flags.13?InputPeer = Updates; -messages.sendMedia#72ccc23d flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true update_stickersets_order:flags.15?true invert_media:flags.16?true peer:InputPeer reply_to:flags.0?InputReplyTo media:InputMedia message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector schedule_date:flags.10?int send_as:flags.13?InputPeer = Updates; -messages.forwardMessages#c661bbc4 flags:# silent:flags.5?true background:flags.6?true with_my_score:flags.8?true drop_author:flags.11?true drop_media_captions:flags.12?true noforwards:flags.14?true from_peer:InputPeer id:Vector random_id:Vector to_peer:InputPeer top_msg_id:flags.9?int schedule_date:flags.10?int send_as:flags.13?InputPeer = Updates; +messages.sendMessage#983f9745 flags:# no_webpage:flags.1?true silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true update_stickersets_order:flags.15?true invert_media:flags.16?true peer:InputPeer reply_to:flags.0?InputReplyTo message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector schedule_date:flags.10?int send_as:flags.13?InputPeer quick_reply_shortcut:flags.17?InputQuickReplyShortcut effect:flags.18?long = Updates; +messages.sendMedia#7852834e flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true update_stickersets_order:flags.15?true invert_media:flags.16?true peer:InputPeer reply_to:flags.0?InputReplyTo media:InputMedia message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector schedule_date:flags.10?int send_as:flags.13?InputPeer quick_reply_shortcut:flags.17?InputQuickReplyShortcut effect:flags.18?long = Updates; +messages.forwardMessages#d5039208 flags:# silent:flags.5?true background:flags.6?true with_my_score:flags.8?true drop_author:flags.11?true drop_media_captions:flags.12?true noforwards:flags.14?true from_peer:InputPeer id:Vector random_id:Vector to_peer:InputPeer top_msg_id:flags.9?int schedule_date:flags.10?int send_as:flags.13?InputPeer quick_reply_shortcut:flags.17?InputQuickReplyShortcut = Updates; messages.reportSpam#cf1592db peer:InputPeer = Bool; messages.getPeerSettings#efd9a6a2 peer:InputPeer = messages.PeerSettings; messages.report#8953ab4e peer:InputPeer id:Vector reason:ReportReason message:string = Bool; @@ -1829,9 +2027,9 @@ messages.getChats#49e9528f id:Vector = messages.Chats; messages.getFullChat#aeb00b34 chat_id:long = messages.ChatFull; messages.editChatTitle#73783ffd chat_id:long title:string = Updates; messages.editChatPhoto#35ddd674 chat_id:long photo:InputChatPhoto = Updates; -messages.addChatUser#f24753e3 chat_id:long user_id:InputUser fwd_limit:int = Updates; +messages.addChatUser#cbc6d107 chat_id:long user_id:InputUser fwd_limit:int = messages.InvitedUsers; messages.deleteChatUser#a2185cab flags:# revoke_history:flags.0?true chat_id:long user_id:InputUser = Updates; -messages.createChat#34a818 flags:# users:Vector title:string ttl_period:flags.0?int = Updates; +messages.createChat#92ceddd4 flags:# users:Vector title:string ttl_period:flags.0?int = messages.InvitedUsers; messages.getDhConfig#26cf8950 version:int random_length:int = messages.DhConfig; messages.requestEncryption#f64daf43 user_id:InputUser random_id:int g_a:bytes = EncryptedChat; messages.acceptEncryption#3dbc0415 peer:InputEncryptedChat g_b:bytes key_fingerprint:long = EncryptedChat; @@ -1857,21 +2055,21 @@ messages.startBot#e6df7378 bot:InputUser peer:InputPeer random_id:long start_par messages.getMessagesViews#5784d3e1 peer:InputPeer id:Vector increment:Bool = messages.MessageViews; messages.editChatAdmin#a85bd1c2 chat_id:long user_id:InputUser is_admin:Bool = Bool; messages.migrateChat#a2875319 chat_id:long = Updates; -messages.searchGlobal#4bc6589a flags:# folder_id:flags.0?int q:string filter:MessagesFilter min_date:int max_date:int offset_rate:int offset_peer:InputPeer offset_id:int limit:int = messages.Messages; +messages.searchGlobal#4bc6589a flags:# broadcasts_only:flags.1?true folder_id:flags.0?int q:string filter:MessagesFilter min_date:int max_date:int offset_rate:int offset_peer:InputPeer offset_id:int limit:int = messages.Messages; messages.reorderStickerSets#78337739 flags:# masks:flags.0?true emojis:flags.1?true order:Vector = Bool; messages.getDocumentByHash#b1f2061f sha256:bytes size:long mime_type:string = Document; messages.getSavedGifs#5cf09635 hash:long = messages.SavedGifs; messages.saveGif#327a30cb id:InputDocument unsave:Bool = Bool; messages.getInlineBotResults#514e999d flags:# bot:InputUser peer:InputPeer geo_point:flags.0?InputGeoPoint query:string offset:string = messages.BotResults; messages.setInlineBotResults#bb12a419 flags:# gallery:flags.0?true private:flags.1?true query_id:long results:Vector cache_time:int next_offset:flags.2?string switch_pm:flags.3?InlineBotSwitchPM switch_webview:flags.4?InlineBotWebView = Bool; -messages.sendInlineBotResult#f7bc68ba flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true hide_via:flags.11?true peer:InputPeer reply_to:flags.0?InputReplyTo random_id:long query_id:long id:string schedule_date:flags.10?int send_as:flags.13?InputPeer = Updates; +messages.sendInlineBotResult#3ebee86a flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true hide_via:flags.11?true peer:InputPeer reply_to:flags.0?InputReplyTo random_id:long query_id:long id:string schedule_date:flags.10?int send_as:flags.13?InputPeer quick_reply_shortcut:flags.17?InputQuickReplyShortcut = Updates; messages.getMessageEditData#fda68d36 peer:InputPeer id:int = messages.MessageEditData; -messages.editMessage#48f71778 flags:# no_webpage:flags.1?true invert_media:flags.16?true peer:InputPeer id:int message:flags.11?string media:flags.14?InputMedia reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector schedule_date:flags.15?int = Updates; +messages.editMessage#dfd14005 flags:# no_webpage:flags.1?true invert_media:flags.16?true peer:InputPeer id:int message:flags.11?string media:flags.14?InputMedia reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector schedule_date:flags.15?int quick_reply_shortcut_id:flags.17?int = Updates; messages.editInlineBotMessage#83557dba flags:# no_webpage:flags.1?true invert_media:flags.16?true id:InputBotInlineMessageID message:flags.11?string media:flags.14?InputMedia reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector = Bool; messages.getBotCallbackAnswer#9342ca07 flags:# game:flags.1?true peer:InputPeer msg_id:int data:flags.0?bytes password:flags.2?InputCheckPasswordSRP = messages.BotCallbackAnswer; messages.setBotCallbackAnswer#d58f130a flags:# alert:flags.1?true query_id:long message:flags.0?string url:flags.2?string cache_time:int = Bool; messages.getPeerDialogs#e470bcfd peers:Vector = messages.PeerDialogs; -messages.saveDraft#7ff3b806 flags:# no_webpage:flags.1?true invert_media:flags.6?true reply_to:flags.4?InputReplyTo peer:InputPeer message:string entities:flags.3?Vector media:flags.5?InputMedia = Bool; +messages.saveDraft#d372c5ce flags:# no_webpage:flags.1?true invert_media:flags.6?true reply_to:flags.4?InputReplyTo peer:InputPeer message:string entities:flags.3?Vector media:flags.5?InputMedia effect:flags.7?long = Bool; messages.getAllDrafts#6a3f8d65 = Updates; messages.getFeaturedStickers#64780b14 hash:long = messages.FeaturedStickers; messages.readFeaturedStickers#5b118126 id:Vector = Bool; @@ -1892,14 +2090,14 @@ messages.reorderPinnedDialogs#3b1adf37 flags:# force:flags.0?true folder_id:int messages.getPinnedDialogs#d6b94df2 folder_id:int = messages.PeerDialogs; messages.setBotShippingResults#e5f672fa flags:# query_id:long error:flags.0?string shipping_options:flags.1?Vector = Bool; messages.setBotPrecheckoutResults#9c2dd95 flags:# success:flags.1?true query_id:long error:flags.0?string = Bool; -messages.uploadMedia#519bc2b1 peer:InputPeer media:InputMedia = MessageMedia; +messages.uploadMedia#14967978 flags:# business_connection_id:flags.0?string peer:InputPeer media:InputMedia = MessageMedia; messages.sendScreenshotNotification#a1405817 peer:InputPeer reply_to:InputReplyTo random_id:long = Updates; messages.getFavedStickers#4f1aaa9 hash:long = messages.FavedStickers; messages.faveSticker#b9ffc55b id:InputDocument unfave:Bool = Bool; messages.getUnreadMentions#f107e790 flags:# peer:InputPeer top_msg_id:flags.0?int offset_id:int add_offset:int limit:int max_id:int min_id:int = messages.Messages; messages.readMentions#36e5bf4d flags:# peer:InputPeer top_msg_id:flags.0?int = messages.AffectedHistory; messages.getRecentLocations#702a40e0 peer:InputPeer limit:int hash:long = messages.Messages; -messages.sendMultiMedia#456e8987 flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true update_stickersets_order:flags.15?true invert_media:flags.16?true peer:InputPeer reply_to:flags.0?InputReplyTo multi_media:Vector schedule_date:flags.10?int send_as:flags.13?InputPeer = Updates; +messages.sendMultiMedia#37b74355 flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true update_stickersets_order:flags.15?true invert_media:flags.16?true peer:InputPeer reply_to:flags.0?InputReplyTo multi_media:Vector schedule_date:flags.10?int send_as:flags.13?InputPeer quick_reply_shortcut:flags.17?InputQuickReplyShortcut effect:flags.18?long = Updates; messages.uploadEncryptedFile#5057c497 peer:InputEncryptedChat file:InputEncryptedFile = EncryptedFile; messages.searchStickerSets#35705b8a flags:# exclude_featured:flags.0?true q:string hash:long = messages.FoundStickerSets; messages.getSplitRanges#1cff7e08 = Vector; @@ -1926,7 +2124,7 @@ messages.sendScheduledMessages#bd38850a peer:InputPeer id:Vector = Updates; messages.deleteScheduledMessages#59ae2b16 peer:InputPeer id:Vector = Updates; messages.getPollVotes#b86e380e flags:# peer:InputPeer id:int option:flags.0?bytes offset:flags.1?string limit:int = messages.VotesList; messages.toggleStickerSets#b5052fea flags:# uninstall:flags.0?true archive:flags.1?true unarchive:flags.2?true stickersets:Vector = Bool; -messages.getDialogFilters#f19ed96d = Vector; +messages.getDialogFilters#efd48c89 = messages.DialogFilters; messages.getSuggestedDialogFilters#a29cd42c = Vector; messages.updateDialogFilter#1ad4a04a flags:# id:int filter:flags.0?DialogFilter = Bool; messages.updateDialogFiltersOrder#c563c1e4 order:Vector = Bool; @@ -1961,7 +2159,7 @@ messages.saveDefaultSendAs#ccfddf96 peer:InputPeer send_as:InputPeer = Bool; messages.sendReaction#d30d78d4 flags:# big:flags.1?true add_to_recent:flags.2?true peer:InputPeer msg_id:int reaction:flags.0?Vector = Updates; messages.getMessagesReactions#8bba90e6 peer:InputPeer id:Vector = Updates; messages.getMessageReactionsList#461b3f48 flags:# peer:InputPeer id:int reaction:flags.0?Reaction offset:flags.1?string limit:int = messages.MessageReactionsList; -messages.setChatAvailableReactions#feb16771 peer:InputPeer available_reactions:ChatReactions = Updates; +messages.setChatAvailableReactions#5a150bd4 flags:# peer:InputPeer available_reactions:ChatReactions reactions_limit:flags.0?int = Updates; messages.getAvailableReactions#18dea0ac hash:int = messages.AvailableReactions; messages.setDefaultReaction#4f47a016 reaction:Reaction = Bool; messages.translateText#63183030 flags:# peer:flags.0?InputPeer id:flags.0?Vector text:flags.1?Vector to_lang:string = messages.TranslatedText; @@ -1971,9 +2169,9 @@ messages.searchSentMedia#107e31a0 q:string filter:MessagesFilter limit:int = mes messages.getAttachMenuBots#16fcc2cb hash:long = AttachMenuBots; messages.getAttachMenuBot#77216192 bot:InputUser = AttachMenuBotsBot; messages.toggleBotInAttachMenu#69f59d69 flags:# write_allowed:flags.0?true bot:InputUser enabled:Bool = Bool; -messages.requestWebView#269dc2c1 flags:# from_bot_menu:flags.4?true silent:flags.5?true peer:InputPeer bot:InputUser url:flags.1?string start_param:flags.3?string theme_params:flags.2?DataJSON platform:string reply_to:flags.0?InputReplyTo send_as:flags.13?InputPeer = WebViewResult; +messages.requestWebView#269dc2c1 flags:# from_bot_menu:flags.4?true silent:flags.5?true compact:flags.7?true peer:InputPeer bot:InputUser url:flags.1?string start_param:flags.3?string theme_params:flags.2?DataJSON platform:string reply_to:flags.0?InputReplyTo send_as:flags.13?InputPeer = WebViewResult; messages.prolongWebView#b0d81a83 flags:# silent:flags.5?true peer:InputPeer bot:InputUser query_id:long reply_to:flags.0?InputReplyTo send_as:flags.13?InputPeer = Bool; -messages.requestSimpleWebView#1a46500a flags:# from_switch_webview:flags.1?true from_side_menu:flags.2?true bot:InputUser url:flags.3?string start_param:flags.4?string theme_params:flags.0?DataJSON platform:string = SimpleWebViewResult; +messages.requestSimpleWebView#413a3e73 flags:# from_switch_webview:flags.1?true from_side_menu:flags.2?true compact:flags.7?true bot:InputUser url:flags.3?string start_param:flags.4?string theme_params:flags.0?DataJSON platform:string = WebViewResult; messages.sendWebViewResultMessage#a4314f5 bot_query_id:string result:InputBotInlineResult = WebViewMessageSent; messages.sendWebViewData#dc0242c8 bot:InputUser random_id:long button_text:string data:string = Updates; messages.transcribeAudio#269e9a49 peer:InputPeer msg_id:int = messages.TranscribedAudio; @@ -1995,7 +2193,7 @@ messages.getEmojiProfilePhotoGroups#21a548f3 hash:int = messages.EmojiGroups; messages.searchCustomEmoji#2c11c0d7 emoticon:string hash:long = EmojiList; messages.togglePeerTranslations#e47cb579 flags:# disabled:flags.0?true peer:InputPeer = Bool; messages.getBotApp#34fdc5c3 app:InputBotApp hash:long = messages.BotApp; -messages.requestAppWebView#8c5a3b3c flags:# write_allowed:flags.0?true peer:InputPeer app:InputBotApp start_param:flags.1?string theme_params:flags.2?DataJSON platform:string = AppWebViewResult; +messages.requestAppWebView#53618bce flags:# write_allowed:flags.0?true compact:flags.7?true peer:InputPeer app:InputBotApp start_param:flags.1?string theme_params:flags.2?DataJSON platform:string = WebViewResult; messages.setChatWallPaper#8ffacae1 flags:# for_both:flags.3?true revert:flags.4?true peer:InputPeer wallpaper:flags.0?InputWallPaper settings:flags.2?WallPaperSettings id:flags.1?int = Updates; messages.searchEmojiStickerSets#92b4494c flags:# exclude_featured:flags.0?true q:string hash:long = messages.FoundStickerSets; messages.getSavedDialogs#5381d21a flags:# exclude_pinned:flags.0?true offset_date:int offset_id:int offset_peer:InputPeer limit:int hash:long = messages.SavedDialogs; @@ -2008,6 +2206,21 @@ messages.getSavedReactionTags#3637e05b flags:# peer:flags.0?InputPeer hash:long messages.updateSavedReactionTag#60297dec flags:# reaction:Reaction title:flags.0?string = Bool; messages.getDefaultTagReactions#bdf93428 hash:long = messages.Reactions; messages.getOutboxReadDate#8c4bfe5d peer:InputPeer msg_id:int = OutboxReadDate; +messages.getQuickReplies#d483f2a8 hash:long = messages.QuickReplies; +messages.reorderQuickReplies#60331907 order:Vector = Bool; +messages.checkQuickReplyShortcut#f1d0fbd3 shortcut:string = Bool; +messages.editQuickReplyShortcut#5c003cef shortcut_id:int shortcut:string = Bool; +messages.deleteQuickReplyShortcut#3cc04740 shortcut_id:int = Bool; +messages.getQuickReplyMessages#94a495c3 flags:# shortcut_id:int id:flags.0?Vector hash:long = messages.Messages; +messages.sendQuickReplyMessages#6c750de1 peer:InputPeer shortcut_id:int id:Vector random_id:Vector = Updates; +messages.deleteQuickReplyMessages#e105e910 shortcut_id:int id:Vector = Updates; +messages.toggleDialogFilterTags#fd2dda49 enabled:Bool = Bool; +messages.getMyStickers#d0b5e1fc offset_id:long limit:int = messages.MyStickers; +messages.getEmojiStickerGroups#1dd840f5 hash:int = messages.EmojiGroups; +messages.getAvailableEffects#dea20a39 hash:int = messages.AvailableEffects; +messages.editFactCheck#589ee75 peer:InputPeer msg_id:int text:TextWithEntities = Updates; +messages.deleteFactCheck#d1da940c peer:InputPeer msg_id:int = Updates; +messages.getFactCheck#b9cdc5ee peer:InputPeer msg_id:Vector = Vector; updates.getState#edd4882a = updates.State; updates.getDifference#19c2f763 flags:# pts:int pts_limit:flags.1?int pts_total_limit:flags.0?int date:int qts:int qts_limit:flags.2?int = updates.Difference; @@ -2052,6 +2265,7 @@ help.getCountriesList#735787a8 lang_code:string hash:int = help.CountriesList; help.getPremiumPromo#b81b93d4 = help.PremiumPromo; help.getPeerColors#da80f42f hash:int = help.PeerColors; help.getPeerProfileColors#abcfa9fd hash:int = help.PeerColors; +help.getTimezonesList#49b30240 hash:int = help.TimezonesList; channels.readHistory#cc104937 channel:InputChannel max_id:int = Bool; channels.deleteMessages#84c1fd4e channel:InputChannel id:Vector = messages.AffectedMessages; @@ -2069,11 +2283,11 @@ channels.checkUsername#10e6bd2c channel:InputChannel username:string = Bool; channels.updateUsername#3514b3de channel:InputChannel username:string = Bool; channels.joinChannel#24b524c5 channel:InputChannel = Updates; channels.leaveChannel#f836aa95 channel:InputChannel = Updates; -channels.inviteToChannel#199f3a6c channel:InputChannel users:Vector = Updates; +channels.inviteToChannel#c9e33d54 channel:InputChannel users:Vector = messages.InvitedUsers; channels.deleteChannel#c0111fe3 channel:InputChannel = Updates; channels.exportMessageLink#e63fadeb flags:# grouped:flags.0?true thread:flags.1?true channel:InputChannel id:int = ExportedMessageLink; channels.toggleSignatures#1f69b606 channel:InputChannel enabled:Bool = Updates; -channels.getAdminedPublicChannels#f8b036af flags:# by_location:flags.0?true check_limit:flags.1?true = messages.Chats; +channels.getAdminedPublicChannels#f8b036af flags:# by_location:flags.0?true check_limit:flags.1?true for_personal:flags.2?true = messages.Chats; channels.editBanned#96e6cd81 channel:InputChannel participant:InputPeer banned_rights:ChatBannedRights = Updates; channels.getAdminLog#33ddf480 flags:# channel:InputChannel q:string events_filter:flags.0?ChannelAdminLogEventsFilter admins:flags.1?Vector max_id:long min_id:long limit:int = channels.AdminLogResults; channels.setStickers#ea8ca4f9 channel:InputChannel stickerset:InputStickerSet = Bool; @@ -2111,10 +2325,13 @@ channels.toggleParticipantsHidden#6a6e7854 channel:InputChannel enabled:Bool = U channels.clickSponsoredMessage#18afbc93 channel:InputChannel random_id:bytes = Bool; channels.updateColor#d8aa3671 flags:# for_profile:flags.1?true channel:InputChannel color:flags.2?int background_emoji_id:flags.0?long = Updates; channels.toggleViewForumAsMessages#9738bb15 channel:InputChannel enabled:Bool = Updates; -channels.getChannelRecommendations#83b70d97 channel:InputChannel = messages.Chats; +channels.getChannelRecommendations#25a71742 flags:# channel:flags.0?InputChannel = messages.Chats; channels.updateEmojiStatus#f0d3e6a8 channel:InputChannel emoji_status:EmojiStatus = Updates; channels.setBoostsToUnblockRestrictions#ad399cee channel:InputChannel boosts:int = Updates; channels.setEmojiStickers#3cd930b7 channel:InputChannel stickerset:InputStickerSet = Bool; +channels.reportSponsoredMessage#af8ff6b9 channel:InputChannel random_id:bytes option:bytes = channels.SponsoredMessageReportResult; +channels.restrictSponsoredMessages#9ae91519 channel:InputChannel restricted:Bool = Updates; +channels.searchPosts#d19f987b hashtag:string offset_rate:int offset_peer:InputPeer offset_id:int limit:int = messages.Messages; bots.sendCustomRequest#aa2769ed custom_method:string params:DataJSON = DataJSON; bots.answerWebhookJSONQuery#e6213f4d query_id:long data:DataJSON = Bool; @@ -2149,8 +2366,17 @@ payments.checkGiftCode#8e51b4c1 slug:string = payments.CheckedGiftCode; payments.applyGiftCode#f6e26854 slug:string = Updates; payments.getGiveawayInfo#f4239425 peer:InputPeer msg_id:int = payments.GiveawayInfo; payments.launchPrepaidGiveaway#5ff58f20 peer:InputPeer giveaway_id:long purpose:InputStorePaymentPurpose = Updates; - -stickers.createStickerSet#9021ab67 flags:# masks:flags.0?true animated:flags.1?true videos:flags.4?true emojis:flags.5?true text_color:flags.6?true user_id:InputUser title:string short_name:string thumb:flags.2?InputDocument stickers:Vector software:flags.3?string = messages.StickerSet; +payments.getStarsTopupOptions#c00ec7d3 = Vector; +payments.getStarsStatus#104fcfa7 peer:InputPeer = payments.StarsStatus; +payments.getStarsTransactions#97938d5a flags:# inbound:flags.0?true outbound:flags.1?true ascending:flags.2?true peer:InputPeer offset:string limit:int = payments.StarsStatus; +payments.sendStarsForm#2bb731d flags:# form_id:long invoice:InputInvoice = payments.PaymentResult; +payments.refundStarsCharge#25ae8f4a user_id:InputUser charge_id:string = Updates; +payments.getStarsRevenueStats#d91ffad6 flags:# dark:flags.0?true peer:InputPeer = payments.StarsRevenueStats; +payments.getStarsRevenueWithdrawalUrl#13bbe8b3 peer:InputPeer stars:long password:InputCheckPasswordSRP = payments.StarsRevenueWithdrawalUrl; +payments.getStarsRevenueAdsAccountUrl#d1d7efc5 peer:InputPeer = payments.StarsRevenueAdsAccountUrl; +payments.getStarsTransactionsByID#27842d2e peer:InputPeer id:Vector = payments.StarsStatus; + +stickers.createStickerSet#9021ab67 flags:# masks:flags.0?true emojis:flags.5?true text_color:flags.6?true user_id:InputUser title:string short_name:string thumb:flags.2?InputDocument stickers:Vector software:flags.3?string = messages.StickerSet; stickers.removeStickerFromSet#f7760f51 sticker:InputDocument = messages.StickerSet; stickers.changeStickerPosition#ffb6d4ca sticker:InputDocument position:int = messages.StickerSet; stickers.addStickerToSet#8653febe stickerset:InputStickerSet sticker:InputStickerSetItem = messages.StickerSet; @@ -2160,6 +2386,7 @@ stickers.suggestShortName#4dafc503 title:string = stickers.SuggestedShortName; stickers.changeSticker#f5537ebc flags:# sticker:InputDocument emoji:flags.0?string mask_coords:flags.1?MaskCoords keywords:flags.2?string = messages.StickerSet; stickers.renameStickerSet#124b1c00 stickerset:InputStickerSet title:string = messages.StickerSet; stickers.deleteStickerSet#87704394 stickerset:InputStickerSet = Bool; +stickers.replaceSticker#4696459a sticker:InputDocument new_sticker:InputStickerSetItem = messages.StickerSet; phone.getCallConfig#55451fa9 = DataJSON; phone.requestCall#42ff96ed flags:# video:flags.0?true user_id:InputUser random_id:int g_a_hash:bytes protocol:PhoneCallProtocol = phone.PhoneCall; @@ -2208,6 +2435,9 @@ stats.getMessagePublicForwards#5f150144 channel:InputChannel msg_id:int offset:s stats.getMessageStats#b6e0a3f5 flags:# dark:flags.0?true channel:InputChannel msg_id:int = stats.MessageStats; stats.getStoryStats#374fef40 flags:# dark:flags.0?true peer:InputPeer id:int = stats.StoryStats; stats.getStoryPublicForwards#a6437ef6 peer:InputPeer id:int offset:string limit:int = stats.PublicForwards; +stats.getBroadcastRevenueStats#75dfb671 flags:# dark:flags.0?true channel:InputChannel = stats.BroadcastRevenueStats; +stats.getBroadcastRevenueWithdrawalUrl#2a65ef73 channel:InputChannel password:InputCheckPasswordSRP = stats.BroadcastRevenueWithdrawalUrl; +stats.getBroadcastRevenueTransactions#69280f channel:InputChannel offset:int limit:int = stats.BroadcastRevenueTransactions; chatlists.exportChatlistInvite#8472478e chatlist:InputChatlist title:string peers:Vector = chatlists.ExportedChatlistInvite; chatlists.deleteExportedInvite#719c5c5e chatlist:InputChatlist slug:string = Bool; @@ -2245,6 +2475,8 @@ stories.getPeerMaxIDs#535983c3 id:Vector = Vector; stories.getChatsToSend#a56a8b60 = messages.Chats; stories.togglePeerStoriesHidden#bd0415c4 peer:InputPeer hidden:Bool = Bool; stories.getStoryReactionsList#b9b2881f flags:# forwards_first:flags.2?true peer:InputPeer id:int reaction:flags.0?Reaction offset:flags.1?string limit:int = stories.StoryReactionsList; +stories.togglePinnedToTop#b297e9b peer:InputPeer id:Vector = Bool; +stories.searchPosts#6cea116a flags:# hashtag:flags.0?string area:flags.1?MediaArea offset:string limit:int = stories.FoundStories; premium.getBoostsList#60f67660 flags:# gifts:flags.0?true peer:InputPeer offset:string limit:int = premium.BoostsList; premium.getMyBoosts#be77b4a = premium.MyBoosts; @@ -2252,4 +2484,14 @@ premium.applyBoost#6b7da746 flags:# slots:flags.0?Vector peer:InputPeer = p premium.getBoostsStatus#42f1f61 peer:InputPeer = premium.BoostsStatus; premium.getUserBoosts#39854d1f peer:InputPeer user_id:InputUser = premium.BoostsList; -// LAYER 174 +smsjobs.isEligibleToJoin#edc39d0 = smsjobs.EligibilityToJoin; +smsjobs.join#a74ece2d = Bool; +smsjobs.leave#9898ad73 = Bool; +smsjobs.updateSettings#93fa0bf flags:# allow_international:flags.0?true = Bool; +smsjobs.getStatus#10a698e8 = smsjobs.Status; +smsjobs.getSmsJob#778d902f job_id:string = SmsJob; +smsjobs.finishJob#4f1ebf24 flags:# job_id:string error:flags.0?string = Bool; + +fragment.getCollectibleInfo#be1e85ba collectible:InputCollectible = fragment.CollectibleInfo; + +// LAYER 184 diff --git a/gramjs/tl/types-generator/template.js b/gramjs/tl/types-generator/template.js index 179df543..e1fba9db 100644 --- a/gramjs/tl/types-generator/template.js +++ b/gramjs/tl/types-generator/template.js @@ -192,7 +192,7 @@ ${indent}}`.trim(); function renderValueType(type, isVector, isTlType) { if (WEIRD_TYPES.has(type)) { - return type; + return isVector ? `${type}[]` : type; } let resType; diff --git a/package-lock.json b/package-lock.json index 08624d0f..a352608d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,22 +1,19 @@ { "name": "telegram", - "version": "2.20.4", + "version": "2.26.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "telegram", - "version": "2.20.4", + "version": "2.26.2", "license": "MIT", "dependencies": { "@cryptography/aes": "^0.1.1", - "@grammyjs/conversations": "^1.2.0", "async-mutex": "^0.3.0", "big-integer": "^1.6.48", "buffer": "^6.0.3", - "grammy": "^1.21.1", "htmlparser2": "^6.1.0", - "input": "^1.0.1", "mime": "^3.0.0", "node-localstorage": "^2.2.1", "pako": "^2.0.3", @@ -1446,20 +1443,6 @@ "resolved": "https://registry.npmjs.org/@cryptography/aes/-/aes-0.1.1.tgz", "integrity": "sha512-PcYz4FDGblO6tM2kSC+VzhhK62vml6k6/YAkiWtyPvrgJVfnDRoHGDtKn5UiaRRUrvUTTocBpvc2rRgTCqxjsg==" }, - "node_modules/@deno/shim-deno": { - "version": "0.16.1", - "resolved": "https://registry.npmjs.org/@deno/shim-deno/-/shim-deno-0.16.1.tgz", - "integrity": "sha512-s9v0kzF5bm/o9TgdwvsraHx6QNllYrXXmKzgOG2lh4LFXnVMr2gpjK/c/ve6EflQn1MqImcWmVD8HAv5ahuuZQ==", - "dependencies": { - "@deno/shim-deno-test": "^0.4.0", - "which": "^2.0.2" - } - }, - "node_modules/@deno/shim-deno-test": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/@deno/shim-deno-test/-/shim-deno-test-0.4.0.tgz", - "integrity": "sha512-oYWcD7CpERZy/TXMTM9Tgh1HD/POHlbY9WpzmAk+5H8DohcxG415Qws8yLGlim3EaKBT2v3lJv01x4G0BosnaQ==" - }, "node_modules/@discoveryjs/json-ext": { "version": "0.5.5", "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.5.tgz", @@ -1469,26 +1452,6 @@ "node": ">=10.0.0" } }, - "node_modules/@grammyjs/conversations": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@grammyjs/conversations/-/conversations-1.2.0.tgz", - "integrity": "sha512-d06nGFPlcea4UqjOcxCm5rwiV74bZQVUWQl3YVQp5TwC0oCHNK+PXgqaKkVgkfcYSMyx3dADRBuBkcGt+yiyDA==", - "dependencies": { - "debug": "^4.3.4", - "o-son": "^1.0.1" - }, - "engines": { - "node": "^12.20.0 || >=14.13.1" - }, - "peerDependencies": { - "grammy": "^1.20.1" - } - }, - "node_modules/@grammyjs/types": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/@grammyjs/types/-/types-3.5.2.tgz", - "integrity": "sha512-KZlJcOdgD8N6SMIHWfwmb11L5/L2+rptWBxCexbzNCry/wfLXFFGFniyUrySnvFo+cWMxgy5GuImwY3mhUrP8g==" - }, "node_modules/@istanbuljs/load-nyc-config": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", @@ -2179,14 +2142,14 @@ } }, "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", - "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", + "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", "dev": true, "dependencies": { - "@jridgewell/set-array": "^1.0.1", + "@jridgewell/set-array": "^1.2.1", "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" + "@jridgewell/trace-mapping": "^0.3.24" }, "engines": { "node": ">=6.0.0" @@ -2202,22 +2165,22 @@ } }, "node_modules/@jridgewell/set-array": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", - "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", + "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", "dev": true, "engines": { "node": ">=6.0.0" } }, "node_modules/@jridgewell/source-map": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.2.tgz", - "integrity": "sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw==", + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.6.tgz", + "integrity": "sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ==", "dev": true, "dependencies": { - "@jridgewell/gen-mapping": "^0.3.0", - "@jridgewell/trace-mapping": "^0.3.9" + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25" } }, "node_modules/@jridgewell/sourcemap-codec": { @@ -2227,13 +2190,13 @@ "dev": true }, "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.18", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz", - "integrity": "sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==", + "version": "0.3.25", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", "dev": true, "dependencies": { - "@jridgewell/resolve-uri": "3.1.0", - "@jridgewell/sourcemap-codec": "1.4.14" + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" } }, "node_modules/@sinclair/typebox": { @@ -2301,30 +2264,10 @@ "@babel/types": "^7.3.0" } }, - "node_modules/@types/eslint": { - "version": "8.4.1", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.4.1.tgz", - "integrity": "sha512-GE44+DNEyxxh2Kc6ro/VkIj+9ma0pO0bwv9+uHSyBrikYOHr8zYcdPvnBOp1aw8s+CjRvuSx7CyWqRrNFQ59mA==", - "dev": true, - "dependencies": { - "@types/estree": "*", - "@types/json-schema": "*" - } - }, - "node_modules/@types/eslint-scope": { - "version": "3.7.3", - "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.3.tgz", - "integrity": "sha512-PB3ldyrcnAicT35TWPs5IcwKD8S333HMaa2VVv4+wdvebJkjWuW/xESoB8IwRcog8HYVYamb1g/R31Qv5Bx03g==", - "dev": true, - "dependencies": { - "@types/eslint": "*", - "@types/estree": "*" - } - }, "node_modules/@types/estree": { - "version": "0.0.51", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.51.tgz", - "integrity": "sha512-CuPgU6f3eT/XgKKPqKd/gLZV1Xmvf1a2R5POBOGQa6uv82xpls89HU5zKeVoyR8XzHd1RGNOlQlvUe3CFkjWNQ==", + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", + "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==", "dev": true }, "node_modules/@types/events": { @@ -2446,148 +2389,148 @@ "dev": true }, "node_modules/@webassemblyjs/ast": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.1.tgz", - "integrity": "sha512-ukBh14qFLjxTQNTXocdyksN5QdM28S1CxHt2rdskFyL+xFV7VremuBLVbmCePj+URalXBENx/9Lm7lnhihtCSw==", + "version": "1.12.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.12.1.tgz", + "integrity": "sha512-EKfMUOPRRUTy5UII4qJDGPpqfwjOmZ5jeGFwid9mnoqIFK+e0vqoi1qH56JpmZSzEL53jKnNzScdmftJyG5xWg==", "dev": true, "dependencies": { - "@webassemblyjs/helper-numbers": "1.11.1", - "@webassemblyjs/helper-wasm-bytecode": "1.11.1" + "@webassemblyjs/helper-numbers": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6" } }, "node_modules/@webassemblyjs/floating-point-hex-parser": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.1.tgz", - "integrity": "sha512-iGRfyc5Bq+NnNuX8b5hwBrRjzf0ocrJPI6GWFodBFzmFnyvrQ83SHKhmilCU/8Jv67i4GJZBMhEzltxzcNagtQ==", + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz", + "integrity": "sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==", "dev": true }, "node_modules/@webassemblyjs/helper-api-error": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.1.tgz", - "integrity": "sha512-RlhS8CBCXfRUR/cwo2ho9bkheSXG0+NwooXcc3PAILALf2QLdFyj7KGsKRbVc95hZnhnERon4kW/D3SZpp6Tcg==", + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz", + "integrity": "sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==", "dev": true }, "node_modules/@webassemblyjs/helper-buffer": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.1.tgz", - "integrity": "sha512-gwikF65aDNeeXa8JxXa2BAk+REjSyhrNC9ZwdT0f8jc4dQQeDQ7G4m0f2QCLPJiMTTO6wfDmRmj/pW0PsUvIcA==", + "version": "1.12.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.12.1.tgz", + "integrity": "sha512-nzJwQw99DNDKr9BVCOZcLuJJUlqkJh+kVzVl6Fmq/tI5ZtEyWT1KZMyOXltXLZJmDtvLCDgwsyrkohEtopTXCw==", "dev": true }, "node_modules/@webassemblyjs/helper-numbers": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.1.tgz", - "integrity": "sha512-vDkbxiB8zfnPdNK9Rajcey5C0w+QJugEglN0of+kmO8l7lDb77AnlKYQF7aarZuCrv+l0UvqL+68gSDr3k9LPQ==", + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz", + "integrity": "sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==", "dev": true, "dependencies": { - "@webassemblyjs/floating-point-hex-parser": "1.11.1", - "@webassemblyjs/helper-api-error": "1.11.1", + "@webassemblyjs/floating-point-hex-parser": "1.11.6", + "@webassemblyjs/helper-api-error": "1.11.6", "@xtuc/long": "4.2.2" } }, "node_modules/@webassemblyjs/helper-wasm-bytecode": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.1.tgz", - "integrity": "sha512-PvpoOGiJwXeTrSf/qfudJhwlvDQxFgelbMqtq52WWiXC6Xgg1IREdngmPN3bs4RoO83PnL/nFrxucXj1+BX62Q==", + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz", + "integrity": "sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==", "dev": true }, "node_modules/@webassemblyjs/helper-wasm-section": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.1.tgz", - "integrity": "sha512-10P9No29rYX1j7F3EVPX3JvGPQPae+AomuSTPiF9eBQeChHI6iqjMIwR9JmOJXwpnn/oVGDk7I5IlskuMwU/pg==", + "version": "1.12.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.12.1.tgz", + "integrity": "sha512-Jif4vfB6FJlUlSbgEMHUyk1j234GTNG9dBJ4XJdOySoj518Xj0oGsNi59cUQF4RRMS9ouBUxDDdyBVfPTypa5g==", "dev": true, "dependencies": { - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/helper-buffer": "1.11.1", - "@webassemblyjs/helper-wasm-bytecode": "1.11.1", - "@webassemblyjs/wasm-gen": "1.11.1" + "@webassemblyjs/ast": "1.12.1", + "@webassemblyjs/helper-buffer": "1.12.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/wasm-gen": "1.12.1" } }, "node_modules/@webassemblyjs/ieee754": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.1.tgz", - "integrity": "sha512-hJ87QIPtAMKbFq6CGTkZYJivEwZDbQUgYd3qKSadTNOhVY7p+gfP6Sr0lLRVTaG1JjFj+r3YchoqRYxNH3M0GQ==", + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz", + "integrity": "sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==", "dev": true, "dependencies": { "@xtuc/ieee754": "^1.2.0" } }, "node_modules/@webassemblyjs/leb128": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.1.tgz", - "integrity": "sha512-BJ2P0hNZ0u+Th1YZXJpzW6miwqQUGcIHT1G/sf72gLVD9DZ5AdYTqPNbHZh6K1M5VmKvFXwGSWZADz+qBWxeRw==", + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.6.tgz", + "integrity": "sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==", "dev": true, "dependencies": { "@xtuc/long": "4.2.2" } }, "node_modules/@webassemblyjs/utf8": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.1.tgz", - "integrity": "sha512-9kqcxAEdMhiwQkHpkNiorZzqpGrodQQ2IGrHHxCy+Ozng0ofyMA0lTqiLkVs1uzTRejX+/O0EOT7KxqVPuXosQ==", + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.6.tgz", + "integrity": "sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==", "dev": true }, "node_modules/@webassemblyjs/wasm-edit": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.1.tgz", - "integrity": "sha512-g+RsupUC1aTHfR8CDgnsVRVZFJqdkFHpsHMfJuWQzWU3tvnLC07UqHICfP+4XyL2tnr1amvl1Sdp06TnYCmVkA==", + "version": "1.12.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.12.1.tgz", + "integrity": "sha512-1DuwbVvADvS5mGnXbE+c9NfA8QRcZ6iKquqjjmR10k6o+zzsRVesil54DKexiowcFCPdr/Q0qaMgB01+SQ1u6g==", "dev": true, "dependencies": { - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/helper-buffer": "1.11.1", - "@webassemblyjs/helper-wasm-bytecode": "1.11.1", - "@webassemblyjs/helper-wasm-section": "1.11.1", - "@webassemblyjs/wasm-gen": "1.11.1", - "@webassemblyjs/wasm-opt": "1.11.1", - "@webassemblyjs/wasm-parser": "1.11.1", - "@webassemblyjs/wast-printer": "1.11.1" + "@webassemblyjs/ast": "1.12.1", + "@webassemblyjs/helper-buffer": "1.12.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/helper-wasm-section": "1.12.1", + "@webassemblyjs/wasm-gen": "1.12.1", + "@webassemblyjs/wasm-opt": "1.12.1", + "@webassemblyjs/wasm-parser": "1.12.1", + "@webassemblyjs/wast-printer": "1.12.1" } }, "node_modules/@webassemblyjs/wasm-gen": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.1.tgz", - "integrity": "sha512-F7QqKXwwNlMmsulj6+O7r4mmtAlCWfO/0HdgOxSklZfQcDu0TpLiD1mRt/zF25Bk59FIjEuGAIyn5ei4yMfLhA==", + "version": "1.12.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.12.1.tgz", + "integrity": "sha512-TDq4Ojh9fcohAw6OIMXqiIcTq5KUXTGRkVxbSo1hQnSy6lAM5GSdfwWeSxpAo0YzgsgF182E/U0mDNhuA0tW7w==", "dev": true, "dependencies": { - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/helper-wasm-bytecode": "1.11.1", - "@webassemblyjs/ieee754": "1.11.1", - "@webassemblyjs/leb128": "1.11.1", - "@webassemblyjs/utf8": "1.11.1" + "@webassemblyjs/ast": "1.12.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/ieee754": "1.11.6", + "@webassemblyjs/leb128": "1.11.6", + "@webassemblyjs/utf8": "1.11.6" } }, "node_modules/@webassemblyjs/wasm-opt": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.1.tgz", - "integrity": "sha512-VqnkNqnZlU5EB64pp1l7hdm3hmQw7Vgqa0KF/KCNO9sIpI6Fk6brDEiX+iCOYrvMuBWDws0NkTOxYEb85XQHHw==", + "version": "1.12.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.12.1.tgz", + "integrity": "sha512-Jg99j/2gG2iaz3hijw857AVYekZe2SAskcqlWIZXjji5WStnOpVoat3gQfT/Q5tb2djnCjBtMocY/Su1GfxPBg==", "dev": true, "dependencies": { - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/helper-buffer": "1.11.1", - "@webassemblyjs/wasm-gen": "1.11.1", - "@webassemblyjs/wasm-parser": "1.11.1" + "@webassemblyjs/ast": "1.12.1", + "@webassemblyjs/helper-buffer": "1.12.1", + "@webassemblyjs/wasm-gen": "1.12.1", + "@webassemblyjs/wasm-parser": "1.12.1" } }, "node_modules/@webassemblyjs/wasm-parser": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.1.tgz", - "integrity": "sha512-rrBujw+dJu32gYB7/Lup6UhdkPx9S9SnobZzRVL7VcBH9Bt9bCBLEuX/YXOOtBsOZ4NQrRykKhffRWHvigQvOA==", + "version": "1.12.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.12.1.tgz", + "integrity": "sha512-xikIi7c2FHXysxXe3COrVUPSheuBtpcfhbpFj4gmu7KRLYOzANztwUU0IbsqvMqzuNK2+glRGWCEqZo1WCLyAQ==", "dev": true, "dependencies": { - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/helper-api-error": "1.11.1", - "@webassemblyjs/helper-wasm-bytecode": "1.11.1", - "@webassemblyjs/ieee754": "1.11.1", - "@webassemblyjs/leb128": "1.11.1", - "@webassemblyjs/utf8": "1.11.1" + "@webassemblyjs/ast": "1.12.1", + "@webassemblyjs/helper-api-error": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/ieee754": "1.11.6", + "@webassemblyjs/leb128": "1.11.6", + "@webassemblyjs/utf8": "1.11.6" } }, "node_modules/@webassemblyjs/wast-printer": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.1.tgz", - "integrity": "sha512-IQboUWM4eKzWW+N/jij2sRatKMh99QEelo3Eb2q0qXkvPRISAj8Qxtmw5itwqK+TTkBuUIE45AxYPToqPtL5gg==", + "version": "1.12.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.12.1.tgz", + "integrity": "sha512-+X4WAlOisVWQMikjbcvY2e0rwPsKQ9F688lksZhBcPycBBuii3O7m8FACbDMWDojpAqvjIncrG8J0XHKyQfVeA==", "dev": true, "dependencies": { - "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/ast": "1.12.1", "@xtuc/long": "4.2.2" } }, @@ -2639,21 +2582,10 @@ "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", "dev": true }, - "node_modules/abort-controller": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", - "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", - "dependencies": { - "event-target-shim": "^5.0.0" - }, - "engines": { - "node": ">=6.5" - } - }, "node_modules/acorn": { - "version": "8.8.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", - "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", + "version": "8.12.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.12.1.tgz", + "integrity": "sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==", "dev": true, "bin": { "acorn": "bin/acorn" @@ -2662,11 +2594,14 @@ "node": ">=0.4.0" } }, - "node_modules/acorn-import-assertions": { - "version": "1.7.6", - "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.7.6.tgz", - "integrity": "sha512-FlVvVFA1TX6l3lp8VjDnYYq7R1nyW6x3svAt4nDgrWQ9SBaSh9CnbwgSUTasgfNfOG5HlM1ehugCvM+hjo56LA==", - "dev": true + "node_modules/acorn-import-attributes": { + "version": "1.9.5", + "resolved": "https://registry.npmjs.org/acorn-import-attributes/-/acorn-import-attributes-1.9.5.tgz", + "integrity": "sha512-n02Vykv5uA3eHGM/Z2dQrcD56kL8TyDb2p1+0P83PClMnC/nc+anbQRhIOWnSq4Ke/KvDPrY3C9hDtC/A3eHnQ==", + "dev": true, + "peerDependencies": { + "acorn": "^8" + } }, "node_modules/ajv": { "version": "6.12.6", @@ -2985,20 +2920,6 @@ "@babel/core": "^7.0.0" } }, - "node_modules/babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha512-ITKNuq2wKlW1fJg9sSW52eepoYgZBggvOAHC0u/CYu/qxQ9EVzThCgR69BnSXLHjy2f7SY5zaQ4yt7H9ZVxY2g==", - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "node_modules/babel-runtime/node_modules/regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==" - }, "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", @@ -3038,12 +2959,12 @@ } }, "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dev": true, "dependencies": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" }, "engines": { "node": ">=8" @@ -3227,22 +3148,6 @@ "integrity": "sha512-cOU9usZw8/dXIXKtwa8pM0OTJQuJkxMN6w30csNRUerHfeQ5R6U3kkU/FtJeIf3M202OHfY2U8ccInBG7/xogA==", "dev": true }, - "node_modules/cli-cursor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-1.0.2.tgz", - "integrity": "sha512-25tABq090YNKkF6JH7lcwO0zFJTRke4Jcq9iX2nr/Sz0Cjjv4gckmwlW6Ty/aoyFd6z3ysR2hMGC2GFugmBo6A==", - "dependencies": { - "restore-cursor": "^1.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/cli-width": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.1.tgz", - "integrity": "sha512-GRMWDxpOB6Dgk2E5Uo+3eEBvtOOlimMmpbFiKuLFnQzYDavtLFY3K5ona41jgN/WdRZtG7utuVSVTL4HbZHGkw==" - }, "node_modules/cliui": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", @@ -3281,14 +3186,6 @@ "node": ">= 0.12.0" } }, - "node_modules/code-point-at": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", - "integrity": "sha512-RpAVKQA5T63xEj6/giIbUEtZwJ4UFIc3ZtvEkiaUERylqe8xb5IvqcgOurZLahv93CLKfxcw5YI+DZcUBRyLXA==", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/collect-v8-coverage": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz", @@ -3337,13 +3234,6 @@ "safe-buffer": "~5.1.1" } }, - "node_modules/core-js": { - "version": "2.6.12", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.12.tgz", - "integrity": "sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==", - "deprecated": "core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.", - "hasInstallScript": true - }, "node_modules/core-js-compat": { "version": "3.33.2", "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.33.2.tgz", @@ -3396,6 +3286,7 @@ "version": "4.3.4", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, "dependencies": { "ms": "2.1.2" }, @@ -3618,9 +3509,9 @@ } }, "node_modules/es-module-lexer": { - "version": "0.9.3", - "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-0.9.3.tgz", - "integrity": "sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==", + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.5.4.tgz", + "integrity": "sha512-MVNK56NiMrOwitFB7cqDwq0CQutbw+0BvLshJSse0MUNU+y1FC3bUS/AQg7oUng+/wKrrki7JfmwtVHkVfPLlw==", "dev": true }, "node_modules/es-to-primitive": { @@ -3641,13 +3532,18 @@ } }, "node_modules/es5-ext": { - "version": "0.10.53", - "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.53.tgz", - "integrity": "sha512-Xs2Stw6NiNHWypzRTY1MtaG/uJlwCk8kH81920ma8mvN8Xq1gsfhZvpkImLQArw8AHnv8MT2I45J3c0R8slE+Q==", + "version": "0.10.64", + "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.64.tgz", + "integrity": "sha512-p2snDhiLaXe6dahss1LddxqEm+SkuDvV8dnIQG0MWjyHpcMNfXKPE+/Cc0y+PhxJX3A4xGNeFCj5oc0BUh6deg==", + "hasInstallScript": true, "dependencies": { - "es6-iterator": "~2.0.3", - "es6-symbol": "~3.1.3", - "next-tick": "~1.0.0" + "es6-iterator": "^2.0.3", + "es6-symbol": "^3.1.3", + "esniff": "^2.0.1", + "next-tick": "^1.1.0" + }, + "engines": { + "node": ">=0.10" } }, "node_modules/es6-iterator": { @@ -3682,6 +3578,7 @@ "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true, "engines": { "node": ">=0.8.0" } @@ -3708,6 +3605,25 @@ "node": ">=4.0" } }, + "node_modules/esniff": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/esniff/-/esniff-2.0.1.tgz", + "integrity": "sha512-kTUIGKQ/mDPFoJ0oVfcmyJn4iBDRptjNVIzwIFR7tqWXdVI9xfA2RMwY/gbSpJG3lkdWNEjLap/NqVHZiJsdfg==", + "dependencies": { + "d": "^1.0.1", + "es5-ext": "^0.10.62", + "event-emitter": "^0.3.5", + "type": "^2.7.2" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esniff/node_modules/type": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz", + "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==" + }, "node_modules/esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", @@ -3751,12 +3667,13 @@ "node": ">=0.10.0" } }, - "node_modules/event-target-shim": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", - "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", - "engines": { - "node": ">=6" + "node_modules/event-emitter": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz", + "integrity": "sha512-D9rRn9y7kLPnJ+hMq7S/nhvoKwwvVJahBi2BPmx3bvbsEdK3W9ii8cBSGjP+72/LnM4n6fo3+dkCX5FeTQruXA==", + "dependencies": { + "d": "1", + "es5-ext": "~0.10.14" } }, "node_modules/events": { @@ -3797,14 +3714,6 @@ "node": ">= 0.8.0" } }, - "node_modules/exit-hook": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/exit-hook/-/exit-hook-1.1.1.tgz", - "integrity": "sha512-MsG3prOVw1WtLXAZbM3KiYtooKR1LvxHh3VHsVtIy0uiUu8usxgB/94DP2HxtD/661lLdB6yzQ09lGJSQr6nkg==", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/expect": { "version": "29.5.0", "resolved": "https://registry.npmjs.org/expect/-/expect-29.5.0.tgz", @@ -3861,22 +3770,10 @@ "bser": "2.1.1" } }, - "node_modules/figures": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/figures/-/figures-1.7.0.tgz", - "integrity": "sha512-UxKlfCRuCBxSXU4C6t9scbDyWZ4VlaFFdojKtzJuSkuOBQ5CNFum+zZXFwHjo+CxBC1t6zlYPgHIgFjL8ggoEQ==", - "dependencies": { - "escape-string-regexp": "^1.0.5", - "object-assign": "^4.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dev": true, "dependencies": { "to-regex-range": "^5.0.1" @@ -4043,23 +3940,9 @@ } }, "node_modules/graceful-fs": { - "version": "4.2.9", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.9.tgz", - "integrity": "sha512-NtNxqUcXgpW2iMrfqSfR73Glt39K+BLwWsPs94yR63v45T0Wbej7eRmL5cWfwEgqXnmjQp3zaJTshdRW/qC2ZQ==" - }, - "node_modules/grammy": { - "version": "1.21.1", - "resolved": "https://registry.npmjs.org/grammy/-/grammy-1.21.1.tgz", - "integrity": "sha512-gXHHU83yffHtxutuQlyefClFZN+3bZrmGXYcKVAE2R9SSNlnW9ohF4dC7omn6gHhBoZNRiRS4kumiFc12sal3A==", - "dependencies": { - "@grammyjs/types": "3.5.2", - "abort-controller": "^3.0.0", - "debug": "^4.3.4", - "node-fetch": "^2.7.0" - }, - "engines": { - "node": "^12.20.0 || >=14.13.1" - } + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" }, "node_modules/has": { "version": "1.0.3", @@ -4073,25 +3956,6 @@ "node": ">= 0.4.0" } }, - "node_modules/has-ansi": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", - "integrity": "sha512-C8vBJ8DwUCx19vhm7urhTuUsr4/IyP6l4VzNQDv+ryHQObW3TTTp9yB68WpYgRe2bbaGuZ/se74IqFeVnMnLZg==", - "dependencies": { - "ansi-regex": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/has-ansi/node_modules/ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/has-bigints": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.1.tgz", @@ -4205,172 +4069,6 @@ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", "dev": true }, - "node_modules/input": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/input/-/input-1.0.1.tgz", - "integrity": "sha512-5DKQKQ7Nm/CaPGYKF74uUvk5ftC3S04fLYWcDrNG2rOVhhRgB4E2J8JNb7AAh+RlQ/954ukas4bEbrRQ3/kPGA==", - "dependencies": { - "babel-runtime": "^6.6.1", - "chalk": "^1.1.1", - "inquirer": "^0.12.0", - "lodash": "^4.6.1" - }, - "engines": { - "node": ">=0.12" - } - }, - "node_modules/input/node_modules/ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/input/node_modules/ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/input/node_modules/chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A==", - "dependencies": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/input/node_modules/strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", - "dependencies": { - "ansi-regex": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/input/node_modules/supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==", - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/inquirer": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-0.12.0.tgz", - "integrity": "sha512-bOetEz5+/WpgaW4D1NYOk1aD+JCqRjqu/FwRFgnIfiP7FC/zinsrfyO1vlS3nyH/R7S0IH3BIHBu4DBIDSqiGQ==", - "dependencies": { - "ansi-escapes": "^1.1.0", - "ansi-regex": "^2.0.0", - "chalk": "^1.0.0", - "cli-cursor": "^1.0.1", - "cli-width": "^2.0.0", - "figures": "^1.3.5", - "lodash": "^4.3.0", - "readline2": "^1.0.1", - "run-async": "^0.1.0", - "rx-lite": "^3.1.2", - "string-width": "^1.0.1", - "strip-ansi": "^3.0.0", - "through": "^2.3.6" - } - }, - "node_modules/inquirer/node_modules/ansi-escapes": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-1.4.0.tgz", - "integrity": "sha512-wiXutNjDUlNEDWHcYH3jtZUhd3c4/VojassD8zHdHCY13xbZy2XbW+NKQwA0tWGBVzDA9qEzYwfoSsWmviidhw==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/inquirer/node_modules/ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/inquirer/node_modules/ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/inquirer/node_modules/chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A==", - "dependencies": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/inquirer/node_modules/is-fullwidth-code-point": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "integrity": "sha512-1pqUqRjkhPJ9miNq9SwMfdvi6lBJcd6eFxvfaivQhaH3SgisfiuudvFntdKOmxuee/77l+FPjKrQjWvmPjWrRw==", - "dependencies": { - "number-is-nan": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/inquirer/node_modules/string-width": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha512-0XsVpQLnVCXHJfyEs8tC0zpTVIr5PKKsQtkT29IwupnPTjtPmQ3xT/4yCREF9hYkV/3M3kzcUTSAZT6a6h81tw==", - "dependencies": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/inquirer/node_modules/strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", - "dependencies": { - "ansi-regex": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/inquirer/node_modules/supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==", - "engines": { - "node": ">=0.8.0" - } - }, "node_modules/internal-slot": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.3.tgz", @@ -4687,7 +4385,8 @@ "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=" + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", + "dev": true }, "node_modules/isobject": { "version": "3.0.1", @@ -6451,9 +6150,9 @@ } }, "node_modules/jest-worker": { - "version": "27.2.5", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.2.5.tgz", - "integrity": "sha512-HTjEPZtcNKZ4LnhSp02NEH4vE+5OpJ0EsOWYvGQpHgUMLngydESAAMH5Wd/asPf29+XUDQZszxpLg1BkIIA2aw==", + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", + "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", "dev": true, "dependencies": { "@types/node": "*", @@ -6483,6 +6182,9 @@ }, "engines": { "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" } }, "node_modules/js-tokens": { @@ -6631,11 +6333,6 @@ "node": ">=8" } }, - "node_modules/lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" - }, "node_modules/lodash.debounce": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", @@ -6725,13 +6422,13 @@ "dev": true }, "node_modules/micromatch": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.4.tgz", - "integrity": "sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", "dev": true, "dependencies": { - "braces": "^3.0.1", - "picomatch": "^2.2.3" + "braces": "^3.0.3", + "picomatch": "^2.3.1" }, "engines": { "node": ">=8.6" @@ -6799,12 +6496,8 @@ "node_modules/ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" - }, - "node_modules/mute-stream": { - "version": "0.0.5", - "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.5.tgz", - "integrity": "sha512-EbrziT4s8cWPmzr47eYVW3wimS4HsvlnV5ri1xw1aR6JQo/OrJX5rkl32K/QQHdxeabJETtfeaROGhd8W7uBgg==" + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true }, "node_modules/natural-compare": { "version": "1.4.0", @@ -6819,28 +6512,9 @@ "dev": true }, "node_modules/next-tick": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.0.0.tgz", - "integrity": "sha1-yobR/ogoFpsBICCOPchCS524NCw=" - }, - "node_modules/node-fetch": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", - "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.1.0.tgz", + "integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==" }, "node_modules/node-gyp-build": { "version": "4.3.0", @@ -6906,30 +6580,6 @@ "node": ">=8" } }, - "node_modules/number-is-nan": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/o-son": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/o-son/-/o-son-1.0.4.tgz", - "integrity": "sha512-tdGKxZgiTexSv97/igC2m8Y6FljgwvwHW/Zy3ql3Jx6MPKrPKaBDLhV7rz8uuLjcDPw6Pxa2PVsnWwen59MmnQ==", - "dependencies": { - "@deno/shim-deno": "~0.16.1" - } - }, - "node_modules/object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/object-inspect": { "version": "1.12.0", "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.0.tgz", @@ -6967,6 +6617,7 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, "dependencies": { "wrappy": "1" } @@ -7090,12 +6741,15 @@ "dev": true }, "node_modules/picomatch": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.0.tgz", - "integrity": "sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "dev": true, "engines": { "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" } }, "node_modules/pirates": { @@ -7246,27 +6900,6 @@ "util-deprecate": "~1.0.1" } }, - "node_modules/readline2": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/readline2/-/readline2-1.0.1.tgz", - "integrity": "sha512-8/td4MmwUB6PkZUbV25uKz7dfrmjYWxsW8DVfibWdlHRk/l/DfHKn4pU+dfcoGLFgWOdyGCzINRQD7jn+Bv+/g==", - "dependencies": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "mute-stream": "0.0.5" - } - }, - "node_modules/readline2/node_modules/is-fullwidth-code-point": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "integrity": "sha512-1pqUqRjkhPJ9miNq9SwMfdvi6lBJcd6eFxvfaivQhaH3SgisfiuudvFntdKOmxuee/77l+FPjKrQjWvmPjWrRw==", - "dependencies": { - "number-is-nan": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/real-cancellable-promise": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/real-cancellable-promise/-/real-cancellable-promise-1.1.1.tgz", @@ -7410,39 +7043,6 @@ "node": ">=10" } }, - "node_modules/restore-cursor": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-1.0.1.tgz", - "integrity": "sha512-reSjH4HuiFlxlaBaFCiS6O76ZGG2ygKoSlCsipKdaZuKSPx/+bt9mULkn4l0asVzbEfQQmXRg6Wp6gv6m0wElw==", - "dependencies": { - "exit-hook": "^1.0.0", - "onetime": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/restore-cursor/node_modules/onetime": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz", - "integrity": "sha512-GZ+g4jayMqzCRMgB2sol7GiCLjKfS1PINkjmx8spcKce1LiVqcbQreXwqs2YAFXC6R03VIG28ZS31t8M866v6A==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/run-async": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/run-async/-/run-async-0.1.0.tgz", - "integrity": "sha512-qOX+w+IxFgpUpJfkv2oGN0+ExPs68F4sZHfaRRx4dDexAQkG83atugKVEylyT5ARees3HBbfmuvnjbrd8j9Wjw==", - "dependencies": { - "once": "^1.3.0" - } - }, - "node_modules/rx-lite": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/rx-lite/-/rx-lite-3.1.2.tgz", - "integrity": "sha512-1I1+G2gteLB8Tkt8YI1sJvSIfa0lWuRtC8GjvtyPBcLSF5jBCCJJqKrpER5JU5r6Bhe+i9/pK3VMuUcXu0kdwQ==" - }, "node_modules/safe-buffer": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", @@ -7473,9 +7073,9 @@ } }, "node_modules/serialize-javascript": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", - "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz", + "integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==", "dev": true, "dependencies": { "randombytes": "^2.1.0" @@ -7578,9 +7178,9 @@ } }, "node_modules/socks": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.1.tgz", - "integrity": "sha512-B6w7tkwNid7ToxjZ08rQMT8M9BJAf8DKx8Ft4NivzH0zBUfd6jldGcisJn/RLgxcX3FPNDdNQCUEMMT79b+oCQ==", + "version": "2.8.3", + "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.3.tgz", + "integrity": "sha512-l5x7VUUWbjVFbafGLxPWkYsHIhEvmF85tbIeFZWc8ZPtoMyybuEhL7Jye/ooC4/d48FgOjSJXgsF/AJPYCW8Zw==", "dependencies": { "ip-address": "^9.0.5", "smart-buffer": "^4.2.0" @@ -7776,13 +7376,13 @@ } }, "node_modules/terser": { - "version": "5.14.2", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.14.2.tgz", - "integrity": "sha512-oL0rGeM/WFQCUd0y2QrWxYnq7tfSuKBiqTjRPWrRgB46WD/kiwHwF8T23z78H6Q6kGCuuHcPB+KULHRdxvVGQA==", + "version": "5.32.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.32.0.tgz", + "integrity": "sha512-v3Gtw3IzpBJ0ugkxEX8U0W6+TnPKRRCWGh1jC/iM/e3Ki5+qvO1L1EAZ56bZasc64aXHwRHNIQEzm6//i5cemQ==", "dev": true, "dependencies": { - "@jridgewell/source-map": "^0.3.2", - "acorn": "^8.5.0", + "@jridgewell/source-map": "^0.3.3", + "acorn": "^8.8.2", "commander": "^2.20.0", "source-map-support": "~0.5.20" }, @@ -7790,42 +7390,47 @@ "terser": "bin/terser" }, "engines": { - "node": ">=10" - } - }, - "node_modules/terser-webpack-plugin": { - "version": "5.2.4", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.2.4.tgz", - "integrity": "sha512-E2CkNMN+1cho04YpdANyRrn8CyN4yMy+WdFKZIySFZrGXZxJwJP6PMNGGc/Mcr6qygQHUUqRxnAPmi0M9f00XA==", - "dev": true, - "dependencies": { - "jest-worker": "^27.0.6", - "p-limit": "^3.1.0", - "schema-utils": "^3.1.1", - "serialize-javascript": "^6.0.0", - "source-map": "^0.6.1", - "terser": "^5.7.2" - }, - "engines": { - "node": ">= 10.13.0" + "node": ">=10" } }, - "node_modules/terser-webpack-plugin/node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "node_modules/terser-webpack-plugin": { + "version": "5.3.10", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.10.tgz", + "integrity": "sha512-BKFPWlPDndPs+NGGCr1U59t0XScL5317Y0UReNrHaw9/FwhPENlq6bfgs+4yPfyP51vqC1bQ4rp1EfXW5ZSH9w==", "dev": true, "dependencies": { - "yocto-queue": "^0.1.0" + "@jridgewell/trace-mapping": "^0.3.20", + "jest-worker": "^27.4.5", + "schema-utils": "^3.1.1", + "serialize-javascript": "^6.0.1", + "terser": "^5.26.0" }, "engines": { - "node": ">=10" + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.1.0" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "uglify-js": { + "optional": true + } } }, "node_modules/terser-webpack-plugin/node_modules/schema-utils": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", - "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", + "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", "dev": true, "dependencies": { "@types/json-schema": "^7.0.8", @@ -7834,15 +7439,10 @@ }, "engines": { "node": ">= 10.13.0" - } - }, - "node_modules/terser-webpack-plugin/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" } }, "node_modules/test-exclude": { @@ -7859,11 +7459,6 @@ "node": ">=8" } }, - "node_modules/through": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", - "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==" - }, "node_modules/tmpl": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", @@ -7891,11 +7486,6 @@ "node": ">=8.0" } }, - "node_modules/tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" - }, "node_modules/ts-custom-error": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/ts-custom-error/-/ts-custom-error-3.2.0.tgz", @@ -8379,9 +7969,9 @@ } }, "node_modules/watchpack": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", - "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.2.tgz", + "integrity": "sha512-TnbFSbcOCcDgjZ4piURLCbJ3nJhznVh9kw6F6iokjiFPl8ONxe9A6nMDVXDiNbrSfLILs6vB07F7wLBrwPYzJw==", "dev": true, "dependencies": { "glob-to-regexp": "^0.4.1", @@ -8391,40 +7981,34 @@ "node": ">=10.13.0" } }, - "node_modules/webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" - }, "node_modules/webpack": { - "version": "5.77.0", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.77.0.tgz", - "integrity": "sha512-sbGNjBr5Ya5ss91yzjeJTLKyfiwo5C628AFjEa6WSXcZa4E+F57om3Cc8xLb1Jh0b243AWuSYRf3dn7HVeFQ9Q==", + "version": "5.94.0", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.94.0.tgz", + "integrity": "sha512-KcsGn50VT+06JH/iunZJedYGUJS5FGjow8wb9c0v5n1Om8O1g4L6LjtfxwlXIATopoQu+vOXXa7gYisWxCoPyg==", "dev": true, "dependencies": { - "@types/eslint-scope": "^3.7.3", - "@types/estree": "^0.0.51", - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/wasm-edit": "1.11.1", - "@webassemblyjs/wasm-parser": "1.11.1", + "@types/estree": "^1.0.5", + "@webassemblyjs/ast": "^1.12.1", + "@webassemblyjs/wasm-edit": "^1.12.1", + "@webassemblyjs/wasm-parser": "^1.12.1", "acorn": "^8.7.1", - "acorn-import-assertions": "^1.7.6", - "browserslist": "^4.14.5", + "acorn-import-attributes": "^1.9.5", + "browserslist": "^4.21.10", "chrome-trace-event": "^1.0.2", - "enhanced-resolve": "^5.10.0", - "es-module-lexer": "^0.9.0", + "enhanced-resolve": "^5.17.1", + "es-module-lexer": "^1.2.1", "eslint-scope": "5.1.1", "events": "^3.2.0", "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.2.9", + "graceful-fs": "^4.2.11", "json-parse-even-better-errors": "^2.3.1", "loader-runner": "^4.2.0", "mime-types": "^2.1.27", "neo-async": "^2.6.2", - "schema-utils": "^3.1.0", + "schema-utils": "^3.2.0", "tapable": "^2.1.1", - "terser-webpack-plugin": "^5.1.3", - "watchpack": "^2.4.0", + "terser-webpack-plugin": "^5.3.10", + "watchpack": "^2.4.1", "webpack-sources": "^3.2.3" }, "bin": { @@ -8524,9 +8108,9 @@ } }, "node_modules/webpack/node_modules/enhanced-resolve": { - "version": "5.12.0", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.12.0.tgz", - "integrity": "sha512-QHTXI/sZQmko1cbDoNAa3mJ5qhWUUNAq3vR0/YiD379fWQrcfuoX1+HW2S0MTt7XmoPLapdaDKUtelUSPic7hQ==", + "version": "5.17.1", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.17.1.tgz", + "integrity": "sha512-LMHl3dXhTcfv8gM4kEzIUeTQ+7fpdA0l2tUf34BddXPkz2A5xJ5L/Pchd5BL6rdccM9QGvu0sWZzK1Z1t4wwyg==", "dev": true, "dependencies": { "graceful-fs": "^4.2.4", @@ -8537,9 +8121,9 @@ } }, "node_modules/webpack/node_modules/schema-utils": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", - "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", + "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", "dev": true, "dependencies": { "@types/json-schema": "^7.0.8", @@ -8548,6 +8132,10 @@ }, "engines": { "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" } }, "node_modules/webpack/node_modules/tapable": { @@ -8588,19 +8176,11 @@ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" }, - "node_modules/whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, "dependencies": { "isexe": "^2.0.0" }, @@ -8706,7 +8286,8 @@ "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true }, "node_modules/write-file-atomic": { "version": "4.0.2", @@ -9901,40 +9482,12 @@ "resolved": "https://registry.npmjs.org/@cryptography/aes/-/aes-0.1.1.tgz", "integrity": "sha512-PcYz4FDGblO6tM2kSC+VzhhK62vml6k6/YAkiWtyPvrgJVfnDRoHGDtKn5UiaRRUrvUTTocBpvc2rRgTCqxjsg==" }, - "@deno/shim-deno": { - "version": "0.16.1", - "resolved": "https://registry.npmjs.org/@deno/shim-deno/-/shim-deno-0.16.1.tgz", - "integrity": "sha512-s9v0kzF5bm/o9TgdwvsraHx6QNllYrXXmKzgOG2lh4LFXnVMr2gpjK/c/ve6EflQn1MqImcWmVD8HAv5ahuuZQ==", - "requires": { - "@deno/shim-deno-test": "^0.4.0", - "which": "^2.0.2" - } - }, - "@deno/shim-deno-test": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/@deno/shim-deno-test/-/shim-deno-test-0.4.0.tgz", - "integrity": "sha512-oYWcD7CpERZy/TXMTM9Tgh1HD/POHlbY9WpzmAk+5H8DohcxG415Qws8yLGlim3EaKBT2v3lJv01x4G0BosnaQ==" - }, "@discoveryjs/json-ext": { "version": "0.5.5", "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.5.tgz", "integrity": "sha512-6nFkfkmSeV/rqSaS4oWHgmpnYw194f6hmWF5is6b0J1naJZoiD0NTc9AiUwPHvWsowkjuHErCZT1wa0jg+BLIA==", "dev": true }, - "@grammyjs/conversations": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@grammyjs/conversations/-/conversations-1.2.0.tgz", - "integrity": "sha512-d06nGFPlcea4UqjOcxCm5rwiV74bZQVUWQl3YVQp5TwC0oCHNK+PXgqaKkVgkfcYSMyx3dADRBuBkcGt+yiyDA==", - "requires": { - "debug": "^4.3.4", - "o-son": "^1.0.1" - } - }, - "@grammyjs/types": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/@grammyjs/types/-/types-3.5.2.tgz", - "integrity": "sha512-KZlJcOdgD8N6SMIHWfwmb11L5/L2+rptWBxCexbzNCry/wfLXFFGFniyUrySnvFo+cWMxgy5GuImwY3mhUrP8g==" - }, "@istanbuljs/load-nyc-config": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", @@ -10459,14 +10012,14 @@ } }, "@jridgewell/gen-mapping": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", - "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", + "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", "dev": true, "requires": { - "@jridgewell/set-array": "^1.0.1", + "@jridgewell/set-array": "^1.2.1", "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" + "@jridgewell/trace-mapping": "^0.3.24" } }, "@jridgewell/resolve-uri": { @@ -10476,19 +10029,19 @@ "dev": true }, "@jridgewell/set-array": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", - "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", + "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", "dev": true }, "@jridgewell/source-map": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.2.tgz", - "integrity": "sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw==", + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.6.tgz", + "integrity": "sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ==", "dev": true, "requires": { - "@jridgewell/gen-mapping": "^0.3.0", - "@jridgewell/trace-mapping": "^0.3.9" + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25" } }, "@jridgewell/sourcemap-codec": { @@ -10498,13 +10051,13 @@ "dev": true }, "@jridgewell/trace-mapping": { - "version": "0.3.18", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz", - "integrity": "sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==", + "version": "0.3.25", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", "dev": true, "requires": { - "@jridgewell/resolve-uri": "3.1.0", - "@jridgewell/sourcemap-codec": "1.4.14" + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" } }, "@sinclair/typebox": { @@ -10572,30 +10125,10 @@ "@babel/types": "^7.3.0" } }, - "@types/eslint": { - "version": "8.4.1", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.4.1.tgz", - "integrity": "sha512-GE44+DNEyxxh2Kc6ro/VkIj+9ma0pO0bwv9+uHSyBrikYOHr8zYcdPvnBOp1aw8s+CjRvuSx7CyWqRrNFQ59mA==", - "dev": true, - "requires": { - "@types/estree": "*", - "@types/json-schema": "*" - } - }, - "@types/eslint-scope": { - "version": "3.7.3", - "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.3.tgz", - "integrity": "sha512-PB3ldyrcnAicT35TWPs5IcwKD8S333HMaa2VVv4+wdvebJkjWuW/xESoB8IwRcog8HYVYamb1g/R31Qv5Bx03g==", - "dev": true, - "requires": { - "@types/eslint": "*", - "@types/estree": "*" - } - }, "@types/estree": { - "version": "0.0.51", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.51.tgz", - "integrity": "sha512-CuPgU6f3eT/XgKKPqKd/gLZV1Xmvf1a2R5POBOGQa6uv82xpls89HU5zKeVoyR8XzHd1RGNOlQlvUe3CFkjWNQ==", + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", + "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==", "dev": true }, "@types/events": { @@ -10717,148 +10250,148 @@ "dev": true }, "@webassemblyjs/ast": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.1.tgz", - "integrity": "sha512-ukBh14qFLjxTQNTXocdyksN5QdM28S1CxHt2rdskFyL+xFV7VremuBLVbmCePj+URalXBENx/9Lm7lnhihtCSw==", + "version": "1.12.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.12.1.tgz", + "integrity": "sha512-EKfMUOPRRUTy5UII4qJDGPpqfwjOmZ5jeGFwid9mnoqIFK+e0vqoi1qH56JpmZSzEL53jKnNzScdmftJyG5xWg==", "dev": true, "requires": { - "@webassemblyjs/helper-numbers": "1.11.1", - "@webassemblyjs/helper-wasm-bytecode": "1.11.1" + "@webassemblyjs/helper-numbers": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6" } }, "@webassemblyjs/floating-point-hex-parser": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.1.tgz", - "integrity": "sha512-iGRfyc5Bq+NnNuX8b5hwBrRjzf0ocrJPI6GWFodBFzmFnyvrQ83SHKhmilCU/8Jv67i4GJZBMhEzltxzcNagtQ==", + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz", + "integrity": "sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==", "dev": true }, "@webassemblyjs/helper-api-error": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.1.tgz", - "integrity": "sha512-RlhS8CBCXfRUR/cwo2ho9bkheSXG0+NwooXcc3PAILALf2QLdFyj7KGsKRbVc95hZnhnERon4kW/D3SZpp6Tcg==", + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz", + "integrity": "sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==", "dev": true }, "@webassemblyjs/helper-buffer": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.1.tgz", - "integrity": "sha512-gwikF65aDNeeXa8JxXa2BAk+REjSyhrNC9ZwdT0f8jc4dQQeDQ7G4m0f2QCLPJiMTTO6wfDmRmj/pW0PsUvIcA==", + "version": "1.12.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.12.1.tgz", + "integrity": "sha512-nzJwQw99DNDKr9BVCOZcLuJJUlqkJh+kVzVl6Fmq/tI5ZtEyWT1KZMyOXltXLZJmDtvLCDgwsyrkohEtopTXCw==", "dev": true }, "@webassemblyjs/helper-numbers": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.1.tgz", - "integrity": "sha512-vDkbxiB8zfnPdNK9Rajcey5C0w+QJugEglN0of+kmO8l7lDb77AnlKYQF7aarZuCrv+l0UvqL+68gSDr3k9LPQ==", + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz", + "integrity": "sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==", "dev": true, "requires": { - "@webassemblyjs/floating-point-hex-parser": "1.11.1", - "@webassemblyjs/helper-api-error": "1.11.1", + "@webassemblyjs/floating-point-hex-parser": "1.11.6", + "@webassemblyjs/helper-api-error": "1.11.6", "@xtuc/long": "4.2.2" } }, "@webassemblyjs/helper-wasm-bytecode": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.1.tgz", - "integrity": "sha512-PvpoOGiJwXeTrSf/qfudJhwlvDQxFgelbMqtq52WWiXC6Xgg1IREdngmPN3bs4RoO83PnL/nFrxucXj1+BX62Q==", + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz", + "integrity": "sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==", "dev": true }, "@webassemblyjs/helper-wasm-section": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.1.tgz", - "integrity": "sha512-10P9No29rYX1j7F3EVPX3JvGPQPae+AomuSTPiF9eBQeChHI6iqjMIwR9JmOJXwpnn/oVGDk7I5IlskuMwU/pg==", + "version": "1.12.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.12.1.tgz", + "integrity": "sha512-Jif4vfB6FJlUlSbgEMHUyk1j234GTNG9dBJ4XJdOySoj518Xj0oGsNi59cUQF4RRMS9ouBUxDDdyBVfPTypa5g==", "dev": true, "requires": { - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/helper-buffer": "1.11.1", - "@webassemblyjs/helper-wasm-bytecode": "1.11.1", - "@webassemblyjs/wasm-gen": "1.11.1" + "@webassemblyjs/ast": "1.12.1", + "@webassemblyjs/helper-buffer": "1.12.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/wasm-gen": "1.12.1" } }, "@webassemblyjs/ieee754": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.1.tgz", - "integrity": "sha512-hJ87QIPtAMKbFq6CGTkZYJivEwZDbQUgYd3qKSadTNOhVY7p+gfP6Sr0lLRVTaG1JjFj+r3YchoqRYxNH3M0GQ==", + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz", + "integrity": "sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==", "dev": true, "requires": { "@xtuc/ieee754": "^1.2.0" } }, "@webassemblyjs/leb128": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.1.tgz", - "integrity": "sha512-BJ2P0hNZ0u+Th1YZXJpzW6miwqQUGcIHT1G/sf72gLVD9DZ5AdYTqPNbHZh6K1M5VmKvFXwGSWZADz+qBWxeRw==", + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.6.tgz", + "integrity": "sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==", "dev": true, "requires": { "@xtuc/long": "4.2.2" } }, "@webassemblyjs/utf8": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.1.tgz", - "integrity": "sha512-9kqcxAEdMhiwQkHpkNiorZzqpGrodQQ2IGrHHxCy+Ozng0ofyMA0lTqiLkVs1uzTRejX+/O0EOT7KxqVPuXosQ==", + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.6.tgz", + "integrity": "sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==", "dev": true }, "@webassemblyjs/wasm-edit": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.1.tgz", - "integrity": "sha512-g+RsupUC1aTHfR8CDgnsVRVZFJqdkFHpsHMfJuWQzWU3tvnLC07UqHICfP+4XyL2tnr1amvl1Sdp06TnYCmVkA==", + "version": "1.12.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.12.1.tgz", + "integrity": "sha512-1DuwbVvADvS5mGnXbE+c9NfA8QRcZ6iKquqjjmR10k6o+zzsRVesil54DKexiowcFCPdr/Q0qaMgB01+SQ1u6g==", "dev": true, "requires": { - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/helper-buffer": "1.11.1", - "@webassemblyjs/helper-wasm-bytecode": "1.11.1", - "@webassemblyjs/helper-wasm-section": "1.11.1", - "@webassemblyjs/wasm-gen": "1.11.1", - "@webassemblyjs/wasm-opt": "1.11.1", - "@webassemblyjs/wasm-parser": "1.11.1", - "@webassemblyjs/wast-printer": "1.11.1" + "@webassemblyjs/ast": "1.12.1", + "@webassemblyjs/helper-buffer": "1.12.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/helper-wasm-section": "1.12.1", + "@webassemblyjs/wasm-gen": "1.12.1", + "@webassemblyjs/wasm-opt": "1.12.1", + "@webassemblyjs/wasm-parser": "1.12.1", + "@webassemblyjs/wast-printer": "1.12.1" } }, "@webassemblyjs/wasm-gen": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.1.tgz", - "integrity": "sha512-F7QqKXwwNlMmsulj6+O7r4mmtAlCWfO/0HdgOxSklZfQcDu0TpLiD1mRt/zF25Bk59FIjEuGAIyn5ei4yMfLhA==", + "version": "1.12.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.12.1.tgz", + "integrity": "sha512-TDq4Ojh9fcohAw6OIMXqiIcTq5KUXTGRkVxbSo1hQnSy6lAM5GSdfwWeSxpAo0YzgsgF182E/U0mDNhuA0tW7w==", "dev": true, "requires": { - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/helper-wasm-bytecode": "1.11.1", - "@webassemblyjs/ieee754": "1.11.1", - "@webassemblyjs/leb128": "1.11.1", - "@webassemblyjs/utf8": "1.11.1" + "@webassemblyjs/ast": "1.12.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/ieee754": "1.11.6", + "@webassemblyjs/leb128": "1.11.6", + "@webassemblyjs/utf8": "1.11.6" } }, "@webassemblyjs/wasm-opt": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.1.tgz", - "integrity": "sha512-VqnkNqnZlU5EB64pp1l7hdm3hmQw7Vgqa0KF/KCNO9sIpI6Fk6brDEiX+iCOYrvMuBWDws0NkTOxYEb85XQHHw==", + "version": "1.12.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.12.1.tgz", + "integrity": "sha512-Jg99j/2gG2iaz3hijw857AVYekZe2SAskcqlWIZXjji5WStnOpVoat3gQfT/Q5tb2djnCjBtMocY/Su1GfxPBg==", "dev": true, "requires": { - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/helper-buffer": "1.11.1", - "@webassemblyjs/wasm-gen": "1.11.1", - "@webassemblyjs/wasm-parser": "1.11.1" + "@webassemblyjs/ast": "1.12.1", + "@webassemblyjs/helper-buffer": "1.12.1", + "@webassemblyjs/wasm-gen": "1.12.1", + "@webassemblyjs/wasm-parser": "1.12.1" } }, "@webassemblyjs/wasm-parser": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.1.tgz", - "integrity": "sha512-rrBujw+dJu32gYB7/Lup6UhdkPx9S9SnobZzRVL7VcBH9Bt9bCBLEuX/YXOOtBsOZ4NQrRykKhffRWHvigQvOA==", + "version": "1.12.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.12.1.tgz", + "integrity": "sha512-xikIi7c2FHXysxXe3COrVUPSheuBtpcfhbpFj4gmu7KRLYOzANztwUU0IbsqvMqzuNK2+glRGWCEqZo1WCLyAQ==", "dev": true, "requires": { - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/helper-api-error": "1.11.1", - "@webassemblyjs/helper-wasm-bytecode": "1.11.1", - "@webassemblyjs/ieee754": "1.11.1", - "@webassemblyjs/leb128": "1.11.1", - "@webassemblyjs/utf8": "1.11.1" + "@webassemblyjs/ast": "1.12.1", + "@webassemblyjs/helper-api-error": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/ieee754": "1.11.6", + "@webassemblyjs/leb128": "1.11.6", + "@webassemblyjs/utf8": "1.11.6" } }, "@webassemblyjs/wast-printer": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.1.tgz", - "integrity": "sha512-IQboUWM4eKzWW+N/jij2sRatKMh99QEelo3Eb2q0qXkvPRISAj8Qxtmw5itwqK+TTkBuUIE45AxYPToqPtL5gg==", + "version": "1.12.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.12.1.tgz", + "integrity": "sha512-+X4WAlOisVWQMikjbcvY2e0rwPsKQ9F688lksZhBcPycBBuii3O7m8FACbDMWDojpAqvjIncrG8J0XHKyQfVeA==", "dev": true, "requires": { - "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/ast": "1.12.1", "@xtuc/long": "4.2.2" } }, @@ -10897,25 +10430,18 @@ "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", "dev": true }, - "abort-controller": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", - "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", - "requires": { - "event-target-shim": "^5.0.0" - } - }, "acorn": { - "version": "8.8.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", - "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", + "version": "8.12.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.12.1.tgz", + "integrity": "sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==", "dev": true }, - "acorn-import-assertions": { - "version": "1.7.6", - "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.7.6.tgz", - "integrity": "sha512-FlVvVFA1TX6l3lp8VjDnYYq7R1nyW6x3svAt4nDgrWQ9SBaSh9CnbwgSUTasgfNfOG5HlM1ehugCvM+hjo56LA==", - "dev": true + "acorn-import-attributes": { + "version": "1.9.5", + "resolved": "https://registry.npmjs.org/acorn-import-attributes/-/acorn-import-attributes-1.9.5.tgz", + "integrity": "sha512-n02Vykv5uA3eHGM/Z2dQrcD56kL8TyDb2p1+0P83PClMnC/nc+anbQRhIOWnSq4Ke/KvDPrY3C9hDtC/A3eHnQ==", + "dev": true, + "requires": {} }, "ajv": { "version": "6.12.6", @@ -11170,22 +10696,6 @@ "babel-preset-current-node-syntax": "^1.0.0" } }, - "babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha512-ITKNuq2wKlW1fJg9sSW52eepoYgZBggvOAHC0u/CYu/qxQ9EVzThCgR69BnSXLHjy2f7SY5zaQ4yt7H9ZVxY2g==", - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - }, - "dependencies": { - "regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==" - } - } - }, "balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", @@ -11219,12 +10729,12 @@ } }, "braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dev": true, "requires": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" } }, "browserslist": { @@ -11343,19 +10853,6 @@ "integrity": "sha512-cOU9usZw8/dXIXKtwa8pM0OTJQuJkxMN6w30csNRUerHfeQ5R6U3kkU/FtJeIf3M202OHfY2U8ccInBG7/xogA==", "dev": true }, - "cli-cursor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-1.0.2.tgz", - "integrity": "sha512-25tABq090YNKkF6JH7lcwO0zFJTRke4Jcq9iX2nr/Sz0Cjjv4gckmwlW6Ty/aoyFd6z3ysR2hMGC2GFugmBo6A==", - "requires": { - "restore-cursor": "^1.0.1" - } - }, - "cli-width": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.1.tgz", - "integrity": "sha512-GRMWDxpOB6Dgk2E5Uo+3eEBvtOOlimMmpbFiKuLFnQzYDavtLFY3K5ona41jgN/WdRZtG7utuVSVTL4HbZHGkw==" - }, "cliui": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", @@ -11384,11 +10881,6 @@ "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", "dev": true }, - "code-point-at": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", - "integrity": "sha512-RpAVKQA5T63xEj6/giIbUEtZwJ4UFIc3ZtvEkiaUERylqe8xb5IvqcgOurZLahv93CLKfxcw5YI+DZcUBRyLXA==" - }, "collect-v8-coverage": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz", @@ -11437,11 +10929,6 @@ "safe-buffer": "~5.1.1" } }, - "core-js": { - "version": "2.6.12", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.12.tgz", - "integrity": "sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==" - }, "core-js-compat": { "version": "3.33.2", "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.33.2.tgz", @@ -11487,6 +10974,7 @@ "version": "4.3.4", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, "requires": { "ms": "2.1.2" } @@ -11656,9 +11144,9 @@ } }, "es-module-lexer": { - "version": "0.9.3", - "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-0.9.3.tgz", - "integrity": "sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==", + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.5.4.tgz", + "integrity": "sha512-MVNK56NiMrOwitFB7cqDwq0CQutbw+0BvLshJSse0MUNU+y1FC3bUS/AQg7oUng+/wKrrki7JfmwtVHkVfPLlw==", "dev": true }, "es-to-primitive": { @@ -11673,13 +11161,14 @@ } }, "es5-ext": { - "version": "0.10.53", - "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.53.tgz", - "integrity": "sha512-Xs2Stw6NiNHWypzRTY1MtaG/uJlwCk8kH81920ma8mvN8Xq1gsfhZvpkImLQArw8AHnv8MT2I45J3c0R8slE+Q==", + "version": "0.10.64", + "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.64.tgz", + "integrity": "sha512-p2snDhiLaXe6dahss1LddxqEm+SkuDvV8dnIQG0MWjyHpcMNfXKPE+/Cc0y+PhxJX3A4xGNeFCj5oc0BUh6deg==", "requires": { - "es6-iterator": "~2.0.3", - "es6-symbol": "~3.1.3", - "next-tick": "~1.0.0" + "es6-iterator": "^2.0.3", + "es6-symbol": "^3.1.3", + "esniff": "^2.0.1", + "next-tick": "^1.1.0" } }, "es6-iterator": { @@ -11710,7 +11199,8 @@ "escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==" + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true }, "eslint-scope": { "version": "5.1.1", @@ -11730,6 +11220,24 @@ } } }, + "esniff": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/esniff/-/esniff-2.0.1.tgz", + "integrity": "sha512-kTUIGKQ/mDPFoJ0oVfcmyJn4iBDRptjNVIzwIFR7tqWXdVI9xfA2RMwY/gbSpJG3lkdWNEjLap/NqVHZiJsdfg==", + "requires": { + "d": "^1.0.1", + "es5-ext": "^0.10.62", + "event-emitter": "^0.3.5", + "type": "^2.7.2" + }, + "dependencies": { + "type": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz", + "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==" + } + } + }, "esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", @@ -11757,10 +11265,14 @@ "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", "dev": true }, - "event-target-shim": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", - "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==" + "event-emitter": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz", + "integrity": "sha512-D9rRn9y7kLPnJ+hMq7S/nhvoKwwvVJahBi2BPmx3bvbsEdK3W9ii8cBSGjP+72/LnM4n6fo3+dkCX5FeTQruXA==", + "requires": { + "d": "1", + "es5-ext": "~0.10.14" + } }, "events": { "version": "3.3.0", @@ -11791,11 +11303,6 @@ "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", "dev": true }, - "exit-hook": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/exit-hook/-/exit-hook-1.1.1.tgz", - "integrity": "sha512-MsG3prOVw1WtLXAZbM3KiYtooKR1LvxHh3VHsVtIy0uiUu8usxgB/94DP2HxtD/661lLdB6yzQ09lGJSQr6nkg==" - }, "expect": { "version": "29.5.0", "resolved": "https://registry.npmjs.org/expect/-/expect-29.5.0.tgz", @@ -11851,19 +11358,10 @@ "bser": "2.1.1" } }, - "figures": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/figures/-/figures-1.7.0.tgz", - "integrity": "sha512-UxKlfCRuCBxSXU4C6t9scbDyWZ4VlaFFdojKtzJuSkuOBQ5CNFum+zZXFwHjo+CxBC1t6zlYPgHIgFjL8ggoEQ==", - "requires": { - "escape-string-regexp": "^1.0.5", - "object-assign": "^4.1.0" - } - }, "fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dev": true, "requires": { "to-regex-range": "^5.0.1" @@ -11987,20 +11485,9 @@ "dev": true }, "graceful-fs": { - "version": "4.2.9", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.9.tgz", - "integrity": "sha512-NtNxqUcXgpW2iMrfqSfR73Glt39K+BLwWsPs94yR63v45T0Wbej7eRmL5cWfwEgqXnmjQp3zaJTshdRW/qC2ZQ==" - }, - "grammy": { - "version": "1.21.1", - "resolved": "https://registry.npmjs.org/grammy/-/grammy-1.21.1.tgz", - "integrity": "sha512-gXHHU83yffHtxutuQlyefClFZN+3bZrmGXYcKVAE2R9SSNlnW9ohF4dC7omn6gHhBoZNRiRS4kumiFc12sal3A==", - "requires": { - "@grammyjs/types": "3.5.2", - "abort-controller": "^3.0.0", - "debug": "^4.3.4", - "node-fetch": "^2.7.0" - } + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" }, "has": { "version": "1.0.3", @@ -12011,21 +11498,6 @@ "function-bind": "^1.1.1" } }, - "has-ansi": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", - "integrity": "sha512-C8vBJ8DwUCx19vhm7urhTuUsr4/IyP6l4VzNQDv+ryHQObW3TTTp9yB68WpYgRe2bbaGuZ/se74IqFeVnMnLZg==", - "requires": { - "ansi-regex": "^2.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==" - } - } - }, "has-bigints": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.1.tgz", @@ -12112,134 +11584,6 @@ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", "dev": true }, - "input": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/input/-/input-1.0.1.tgz", - "integrity": "sha512-5DKQKQ7Nm/CaPGYKF74uUvk5ftC3S04fLYWcDrNG2rOVhhRgB4E2J8JNb7AAh+RlQ/954ukas4bEbrRQ3/kPGA==", - "requires": { - "babel-runtime": "^6.6.1", - "chalk": "^1.1.1", - "inquirer": "^0.12.0", - "lodash": "^4.6.1" - }, - "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==" - }, - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==" - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A==", - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==" - } - } - }, - "inquirer": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-0.12.0.tgz", - "integrity": "sha512-bOetEz5+/WpgaW4D1NYOk1aD+JCqRjqu/FwRFgnIfiP7FC/zinsrfyO1vlS3nyH/R7S0IH3BIHBu4DBIDSqiGQ==", - "requires": { - "ansi-escapes": "^1.1.0", - "ansi-regex": "^2.0.0", - "chalk": "^1.0.0", - "cli-cursor": "^1.0.1", - "cli-width": "^2.0.0", - "figures": "^1.3.5", - "lodash": "^4.3.0", - "readline2": "^1.0.1", - "run-async": "^0.1.0", - "rx-lite": "^3.1.2", - "string-width": "^1.0.1", - "strip-ansi": "^3.0.0", - "through": "^2.3.6" - }, - "dependencies": { - "ansi-escapes": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-1.4.0.tgz", - "integrity": "sha512-wiXutNjDUlNEDWHcYH3jtZUhd3c4/VojassD8zHdHCY13xbZy2XbW+NKQwA0tWGBVzDA9qEzYwfoSsWmviidhw==" - }, - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==" - }, - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==" - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A==", - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "is-fullwidth-code-point": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "integrity": "sha512-1pqUqRjkhPJ9miNq9SwMfdvi6lBJcd6eFxvfaivQhaH3SgisfiuudvFntdKOmxuee/77l+FPjKrQjWvmPjWrRw==", - "requires": { - "number-is-nan": "^1.0.0" - } - }, - "string-width": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha512-0XsVpQLnVCXHJfyEs8tC0zpTVIr5PKKsQtkT29IwupnPTjtPmQ3xT/4yCREF9hYkV/3M3kzcUTSAZT6a6h81tw==", - "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==" - } - } - }, "internal-slot": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.3.tgz", @@ -12459,7 +11803,8 @@ "isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=" + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", + "dev": true }, "isobject": { "version": "3.0.1", @@ -13768,9 +13113,9 @@ } }, "jest-worker": { - "version": "27.2.5", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.2.5.tgz", - "integrity": "sha512-HTjEPZtcNKZ4LnhSp02NEH4vE+5OpJ0EsOWYvGQpHgUMLngydESAAMH5Wd/asPf29+XUDQZszxpLg1BkIIA2aw==", + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", + "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", "dev": true, "requires": { "@types/node": "*", @@ -13907,11 +13252,6 @@ "p-locate": "^4.1.0" } }, - "lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" - }, "lodash.debounce": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", @@ -13986,13 +13326,13 @@ "dev": true }, "micromatch": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.4.tgz", - "integrity": "sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", "dev": true, "requires": { - "braces": "^3.0.1", - "picomatch": "^2.2.3" + "braces": "^3.0.3", + "picomatch": "^2.3.1" } }, "mime": { @@ -14039,12 +13379,8 @@ "ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" - }, - "mute-stream": { - "version": "0.0.5", - "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.5.tgz", - "integrity": "sha512-EbrziT4s8cWPmzr47eYVW3wimS4HsvlnV5ri1xw1aR6JQo/OrJX5rkl32K/QQHdxeabJETtfeaROGhd8W7uBgg==" + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true }, "natural-compare": { "version": "1.4.0", @@ -14059,17 +13395,9 @@ "dev": true }, "next-tick": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.0.0.tgz", - "integrity": "sha1-yobR/ogoFpsBICCOPchCS524NCw=" - }, - "node-fetch": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", - "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", - "requires": { - "whatwg-url": "^5.0.0" - } + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.1.0.tgz", + "integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==" }, "node-gyp-build": { "version": "4.3.0", @@ -14123,24 +13451,6 @@ "path-key": "^3.0.0" } }, - "number-is-nan": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ==" - }, - "o-son": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/o-son/-/o-son-1.0.4.tgz", - "integrity": "sha512-tdGKxZgiTexSv97/igC2m8Y6FljgwvwHW/Zy3ql3Jx6MPKrPKaBDLhV7rz8uuLjcDPw6Pxa2PVsnWwen59MmnQ==", - "requires": { - "@deno/shim-deno": "~0.16.1" - } - }, - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==" - }, "object-inspect": { "version": "1.12.0", "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.0.tgz", @@ -14169,6 +13479,7 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, "requires": { "wrappy": "1" } @@ -14265,9 +13576,9 @@ "dev": true }, "picomatch": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.0.tgz", - "integrity": "sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "dev": true }, "pirates": { @@ -14380,26 +13691,6 @@ "util-deprecate": "~1.0.1" } }, - "readline2": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/readline2/-/readline2-1.0.1.tgz", - "integrity": "sha512-8/td4MmwUB6PkZUbV25uKz7dfrmjYWxsW8DVfibWdlHRk/l/DfHKn4pU+dfcoGLFgWOdyGCzINRQD7jn+Bv+/g==", - "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "mute-stream": "0.0.5" - }, - "dependencies": { - "is-fullwidth-code-point": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "integrity": "sha512-1pqUqRjkhPJ9miNq9SwMfdvi6lBJcd6eFxvfaivQhaH3SgisfiuudvFntdKOmxuee/77l+FPjKrQjWvmPjWrRw==", - "requires": { - "number-is-nan": "^1.0.0" - } - } - } - }, "real-cancellable-promise": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/real-cancellable-promise/-/real-cancellable-promise-1.1.1.tgz", @@ -14518,35 +13809,6 @@ "integrity": "sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg==", "dev": true }, - "restore-cursor": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-1.0.1.tgz", - "integrity": "sha512-reSjH4HuiFlxlaBaFCiS6O76ZGG2ygKoSlCsipKdaZuKSPx/+bt9mULkn4l0asVzbEfQQmXRg6Wp6gv6m0wElw==", - "requires": { - "exit-hook": "^1.0.0", - "onetime": "^1.0.0" - }, - "dependencies": { - "onetime": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz", - "integrity": "sha512-GZ+g4jayMqzCRMgB2sol7GiCLjKfS1PINkjmx8spcKce1LiVqcbQreXwqs2YAFXC6R03VIG28ZS31t8M866v6A==" - } - } - }, - "run-async": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/run-async/-/run-async-0.1.0.tgz", - "integrity": "sha512-qOX+w+IxFgpUpJfkv2oGN0+ExPs68F4sZHfaRRx4dDexAQkG83atugKVEylyT5ARees3HBbfmuvnjbrd8j9Wjw==", - "requires": { - "once": "^1.3.0" - } - }, - "rx-lite": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/rx-lite/-/rx-lite-3.1.2.tgz", - "integrity": "sha512-1I1+G2gteLB8Tkt8YI1sJvSIfa0lWuRtC8GjvtyPBcLSF5jBCCJJqKrpER5JU5r6Bhe+i9/pK3VMuUcXu0kdwQ==" - }, "safe-buffer": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", @@ -14571,9 +13833,9 @@ "dev": true }, "serialize-javascript": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", - "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz", + "integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==", "dev": true, "requires": { "randombytes": "^2.1.0" @@ -14654,9 +13916,9 @@ "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==" }, "socks": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.1.tgz", - "integrity": "sha512-B6w7tkwNid7ToxjZ08rQMT8M9BJAf8DKx8Ft4NivzH0zBUfd6jldGcisJn/RLgxcX3FPNDdNQCUEMMT79b+oCQ==", + "version": "2.8.3", + "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.3.tgz", + "integrity": "sha512-l5x7VUUWbjVFbafGLxPWkYsHIhEvmF85tbIeFZWc8ZPtoMyybuEhL7Jye/ooC4/d48FgOjSJXgsF/AJPYCW8Zw==", "requires": { "ip-address": "^9.0.5", "smart-buffer": "^4.2.0" @@ -14807,56 +14069,40 @@ "dev": true }, "terser": { - "version": "5.14.2", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.14.2.tgz", - "integrity": "sha512-oL0rGeM/WFQCUd0y2QrWxYnq7tfSuKBiqTjRPWrRgB46WD/kiwHwF8T23z78H6Q6kGCuuHcPB+KULHRdxvVGQA==", + "version": "5.32.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.32.0.tgz", + "integrity": "sha512-v3Gtw3IzpBJ0ugkxEX8U0W6+TnPKRRCWGh1jC/iM/e3Ki5+qvO1L1EAZ56bZasc64aXHwRHNIQEzm6//i5cemQ==", "dev": true, "requires": { - "@jridgewell/source-map": "^0.3.2", - "acorn": "^8.5.0", + "@jridgewell/source-map": "^0.3.3", + "acorn": "^8.8.2", "commander": "^2.20.0", "source-map-support": "~0.5.20" } }, "terser-webpack-plugin": { - "version": "5.2.4", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.2.4.tgz", - "integrity": "sha512-E2CkNMN+1cho04YpdANyRrn8CyN4yMy+WdFKZIySFZrGXZxJwJP6PMNGGc/Mcr6qygQHUUqRxnAPmi0M9f00XA==", + "version": "5.3.10", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.10.tgz", + "integrity": "sha512-BKFPWlPDndPs+NGGCr1U59t0XScL5317Y0UReNrHaw9/FwhPENlq6bfgs+4yPfyP51vqC1bQ4rp1EfXW5ZSH9w==", "dev": true, "requires": { - "jest-worker": "^27.0.6", - "p-limit": "^3.1.0", + "@jridgewell/trace-mapping": "^0.3.20", + "jest-worker": "^27.4.5", "schema-utils": "^3.1.1", - "serialize-javascript": "^6.0.0", - "source-map": "^0.6.1", - "terser": "^5.7.2" + "serialize-javascript": "^6.0.1", + "terser": "^5.26.0" }, "dependencies": { - "p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "requires": { - "yocto-queue": "^0.1.0" - } - }, "schema-utils": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", - "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", + "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", "dev": true, "requires": { "@types/json-schema": "^7.0.8", "ajv": "^6.12.5", "ajv-keywords": "^3.5.2" } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true } } }, @@ -14871,11 +14117,6 @@ "minimatch": "^3.0.4" } }, - "through": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", - "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==" - }, "tmpl": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", @@ -14897,11 +14138,6 @@ "is-number": "^7.0.0" } }, - "tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" - }, "ts-custom-error": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/ts-custom-error/-/ts-custom-error-3.2.0.tgz", @@ -15241,56 +14477,50 @@ } }, "watchpack": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", - "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.2.tgz", + "integrity": "sha512-TnbFSbcOCcDgjZ4piURLCbJ3nJhznVh9kw6F6iokjiFPl8ONxe9A6nMDVXDiNbrSfLILs6vB07F7wLBrwPYzJw==", "dev": true, "requires": { "glob-to-regexp": "^0.4.1", "graceful-fs": "^4.1.2" } }, - "webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" - }, "webpack": { - "version": "5.77.0", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.77.0.tgz", - "integrity": "sha512-sbGNjBr5Ya5ss91yzjeJTLKyfiwo5C628AFjEa6WSXcZa4E+F57om3Cc8xLb1Jh0b243AWuSYRf3dn7HVeFQ9Q==", + "version": "5.94.0", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.94.0.tgz", + "integrity": "sha512-KcsGn50VT+06JH/iunZJedYGUJS5FGjow8wb9c0v5n1Om8O1g4L6LjtfxwlXIATopoQu+vOXXa7gYisWxCoPyg==", "dev": true, "requires": { - "@types/eslint-scope": "^3.7.3", - "@types/estree": "^0.0.51", - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/wasm-edit": "1.11.1", - "@webassemblyjs/wasm-parser": "1.11.1", + "@types/estree": "^1.0.5", + "@webassemblyjs/ast": "^1.12.1", + "@webassemblyjs/wasm-edit": "^1.12.1", + "@webassemblyjs/wasm-parser": "^1.12.1", "acorn": "^8.7.1", - "acorn-import-assertions": "^1.7.6", - "browserslist": "^4.14.5", + "acorn-import-attributes": "^1.9.5", + "browserslist": "^4.21.10", "chrome-trace-event": "^1.0.2", - "enhanced-resolve": "^5.10.0", - "es-module-lexer": "^0.9.0", + "enhanced-resolve": "^5.17.1", + "es-module-lexer": "^1.2.1", "eslint-scope": "5.1.1", "events": "^3.2.0", "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.2.9", + "graceful-fs": "^4.2.11", "json-parse-even-better-errors": "^2.3.1", "loader-runner": "^4.2.0", "mime-types": "^2.1.27", "neo-async": "^2.6.2", - "schema-utils": "^3.1.0", + "schema-utils": "^3.2.0", "tapable": "^2.1.1", - "terser-webpack-plugin": "^5.1.3", - "watchpack": "^2.4.0", + "terser-webpack-plugin": "^5.3.10", + "watchpack": "^2.4.1", "webpack-sources": "^3.2.3" }, "dependencies": { "enhanced-resolve": { - "version": "5.12.0", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.12.0.tgz", - "integrity": "sha512-QHTXI/sZQmko1cbDoNAa3mJ5qhWUUNAq3vR0/YiD379fWQrcfuoX1+HW2S0MTt7XmoPLapdaDKUtelUSPic7hQ==", + "version": "5.17.1", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.17.1.tgz", + "integrity": "sha512-LMHl3dXhTcfv8gM4kEzIUeTQ+7fpdA0l2tUf34BddXPkz2A5xJ5L/Pchd5BL6rdccM9QGvu0sWZzK1Z1t4wwyg==", "dev": true, "requires": { "graceful-fs": "^4.2.4", @@ -15298,9 +14528,9 @@ } }, "schema-utils": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", - "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", + "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", "dev": true, "requires": { "@types/json-schema": "^7.0.8", @@ -15394,19 +14624,11 @@ } } }, - "whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", - "requires": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, "which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, "requires": { "isexe": "^2.0.0" } @@ -15484,7 +14706,8 @@ "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true }, "write-file-atomic": { "version": "4.0.2", diff --git a/package.json b/package.json index 93de9f47..88f6b020 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "telegram", - "version": "2.20.4", + "version": "2.26.2", "description": "NodeJS/Browser MTProto API Telegram client library,", "main": "index.js", "types": "index.d.ts", @@ -57,21 +57,18 @@ }, "dependencies": { "@cryptography/aes": "^0.1.1", - "@grammyjs/conversations": "^1.2.0", "async-mutex": "^0.3.0", "big-integer": "^1.6.48", "buffer": "^6.0.3", - "grammy": "^1.21.1", "htmlparser2": "^6.1.0", - "input": "^1.0.1", "mime": "^3.0.0", - "node-localstorage": "^2.2.1", "pako": "^2.0.3", "path-browserify": "^1.0.1", "real-cancellable-promise": "^1.1.1", - "socks": "^2.6.2", "store2": "^2.13.0", "ts-custom-error": "^3.2.0", - "websocket": "^1.0.34" + "websocket": "^1.0.34", + "node-localstorage": "^2.2.1", + "socks": "^2.6.2" } -} +} \ No newline at end of file