anote
1import { Context } from "telegraf";
2
3export interface Note {
4name: string;
5body: string;
6}
7
8export interface YBucketItem {
9Key: string;
10LastModified: string;
11Size: number;
12}
13
14export interface YBucket {
15IsTruncated: boolean;
16Contents: YBucketItem[];
17Name: string;
18Prefix: string;
19KeyCount: number;
20CommonPrefixes: Prefix[];
21}
22
23export interface YResponse {
24ETag: string;
25Location: string;
26key: string;
27Key: string;
28Bucket: string;
29}
30
31export interface Prefix {
32Prefix: string;
33}
34
35export interface ICommand {
36execute(): Promise<string | null>;
37}
38
39export interface SessionData {
40messageContext: Context;
41}
42
43export interface BotContext extends Context {
44session?: SessionData;
45}