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.
36 lines
945 B
36 lines
945 B
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; |
|
} |
|
|
|
interface HTMLCanvasElement { |
|
dpr?: number |
|
} |
|
|
|
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 const electronHelpers: { |
|
openExternal(url): void; |
|
} | undefined; |
|
}
|
|
|