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.
 
 
 
 
 

40 lines
1.0 KiB

import type ListenerSetter from "./helpers/listenerSetter";
import type { Chat, Document, User } from "./layer";
declare global {
interface AddEventListenerOptions extends EventListenerOptions {
once?: boolean;
passive?: boolean;
// ls?: ListenerSetter;
}
type UserId = User.user['id'];
type ChatId = Chat.chat['id'];
// type PeerId = `u${UserId}` | `c${ChatId}`;
// type PeerId = `${UserId}` | `-${ChatId}`;
type PeerId = number;
// type PeerId = number;
type BotId = UserId;
type DocId = Document.document['id'];
type Long = string | number;
type MTLong = string;
type LocalErrorType = 'DOWNLOAD_CANCELED';
type ServerErrorType = 'FILE_REFERENCE_EXPIRED';
interface Error {
type?: LocalErrorType | ServerErrorType;
}
declare module 'worker-loader!*' {
class WebpackWorker extends Worker {
constructor();
}
export default WebpackWorker;
}
declare const electronHelpers: {
openExternal(url): void;
} | undefined;
}