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.

37 lines
945 B

3 years ago
import type ListenerSetter from "./helpers/listenerSetter";
3 years ago
import type { Chat, Document, User } from "./layer";
3 years ago
declare global {
interface AddEventListenerOptions extends EventListenerOptions {
once?: boolean;
passive?: boolean;
// ls?: ListenerSetter;
}
interface HTMLCanvasElement {
dpr?: number
}
3 years ago
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;
}
3 years ago
declare const electronHelpers: {
openExternal(url): void;
} | undefined;
}