-
Notifications
You must be signed in to change notification settings - Fork 1
/
types.d.ts
32 lines (30 loc) · 1.02 KB
/
types.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import * as TelegramBot from "node-telegram-bot-api";
type CommandCallback = (bot: TelegramBot, msg: TelegramBot.Message, match: string[]) => void;
interface groupSettings {
lang: string;
rules: string;
channelID: string;
thread_id_rules: string;
thread_id_notifications: string;
thread_id_welcome: string;
greeting_mode: boolean;
admin_reportable: boolean;
captcha: boolean;
enforcement: boolean;
federation_id: string;
federation_id_following: string;
}
interface groupSettingsUnderspecified {
lang: string | undefined;
rules: string | undefined;
channelID: string | undefined;
thread_id_rules: string | undefined;
thread_id_notifications: string | undefined;
thread_id_welcome: string | undefined;
greeting_mode: boolean | undefined;
captcha: boolean | undefined;
admin_reportable: boolean;
enforcement: boolean | undefined;
federation_id: string | undefined;
federation_id_following: string | undefined;
}