UNPKG

1.11 kBTypeScriptView Raw
1export default class BotsTelegramChatModel extends Model {
2 static schema: {
3 /** Unique identifier for this chat. This number may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier. */
4 id: {
5 type: NumberConstructor;
6 };
7 /** Type of chat, can be either “private”, “group”, “supergroup” or “channel” */
8 type: {
9 type: StringConstructor;
10 };
11 /** Username, for private chats, supergroups and channels if available */
12 username: {
13 type: StringConstructor;
14 };
15 /** Title, for supergroups, channels and group chats */
16 title: {
17 type: StringConstructor;
18 };
19 meta: {
20 type: ObjectConstructor;
21 };
22 };
23 static options: {
24 model: string;
25 collection: string;
26 timestamps: boolean;
27 };
28}
29import Model from "@lskjs/db/Model";