UNPKG

1.06 kBTypeScriptView Raw
1export default class BotsTelegramUserModel extends Model {
2 static schema: {
3 /** Unique identifier for this user or bot */
4 id: {
5 type: NumberConstructor;
6 };
7 /** True, if this user is a bot */
8 is_bot: {
9 type: BooleanConstructor;
10 };
11 /** User's or bot's first name */
12 first_name: {
13 type: StringConstructor;
14 };
15 /** User's or bot's last name */
16 last_name: {
17 type: StringConstructor;
18 };
19 /** User's or bot's username */
20 username: {
21 type: StringConstructor;
22 };
23 /** IETF language tag of the user's language */
24 language_code: {
25 type: StringConstructor;
26 };
27 meta: {
28 type: ObjectConstructor;
29 };
30 };
31 static options: {
32 model: string;
33 collection: string;
34 timestamps: boolean;
35 };
36 setRef(data: any): void;
37 setLang(data: any, telegramLocale: any): void;
38}
39import Model from "@lskjs/db/Model";