@tgsnake/fileid
Version:
core framework for tgsnake for generating file id
35 lines • 1.29 kB
TypeScript
/**
* tgsnake - Telegram MTProto framework for nodejs.
* Copyright (C) 2022 butthx <https://github.com/butthx>
*
* THIS FILE IS PART OF TGSNAKE
*
* tgsnake is a free software : you can redistribute it and/or modify
* it under the terms of the MIT License as published.
*/
import { Options } from './index.js';
import type { Decode } from './decode.js';
export declare class Encode {
/**
* Identifier for this file, which can be used to download or reuse the file
*/
fileId: string;
/**
* Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file
*/
fileUniqueId: string;
constructor({ fileId, fileUniqueId, }: {
/**
* Identifier for this file, which can be used to download or reuse the file
*/
fileId: string;
/**
* Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file
*/
fileUniqueId: string;
});
static encode(file: Options | Decode): Encode;
static fileId(file: Options | Decode): string;
static uniqueId(file: Options | Decode): string;
}
//# sourceMappingURL=encode.d.ts.map