Telegram Web K with changes to work inside I2P https://web.telegram.i2p/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
800 B

import type { ApiError } from "./lib/mtproto/apiManager";
export type InvokeApiOptions = Partial<{
dcID: number,
floodMaxTimeout: number,
noErrorBox: true,
fileUpload: true,
ignoreErrors: true,
fileDownload: true,
createNetworker: true,
singleInRequest: true,
startMaxLength: number,
prepareTempMessageID: string,
afterMessageID: string,
resultType: string,
timeout: number,
waitTime: number,
stopTime: number,
rawError: any
}>;
export type WorkerTaskTemplate = {
type: string,
id: number,
payload?: any,
error?: ApiError
};
export type Modify<T, R> = Omit<T, keyof R> & R;
//export type Parameters<T> = T extends (... args: infer T) => any ? T : never;
export type ArgumentTypes<F extends Function> = F extends (...args: infer A) => any ? A : never;