@mtkruto/node 0.1.106 → 0.1.107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/4_constants.d.ts +2 -2
- package/esm/4_constants.js +2 -2
- package/esm/client/3_types.d.ts +17 -12
- package/esm/client/4_client.d.ts +47 -20
- package/esm/client/4_client.js +56 -37
- package/esm/tl/2_types.d.ts +231 -55
- package/esm/tl/2_types.js +782 -150
- package/esm/tl/3_functions.d.ts +159 -53
- package/esm/tl/3_functions.js +488 -147
- package/esm/types/0_audio.d.ts +9 -9
- package/esm/types/0_bot_command.d.ts +2 -0
- package/esm/types/0_chat_action.d.ts +1 -0
- package/esm/types/0_chat_administrator_rights.d.ts +13 -13
- package/esm/types/0_chat_photo.d.ts +7 -6
- package/esm/types/0_chat_photo.js +1 -1
- package/esm/types/0_contact.d.ts +6 -6
- package/esm/types/0_dice.d.ts +3 -3
- package/esm/types/0_force_reply.d.ts +4 -4
- package/esm/types/0_input_contact_message_content.d.ts +5 -0
- package/esm/types/0_input_location_message_content.d.ts +7 -0
- package/esm/types/0_input_venue_message_content.d.ts +10 -1
- package/esm/types/0_keyboard_button_poll_type.d.ts +3 -3
- package/esm/types/0_location.d.ts +7 -7
- package/esm/types/0_login_url.d.ts +4 -5
- package/esm/types/0_mask_position.d.ts +0 -1
- package/esm/types/0_message_entity.d.ts +5 -5
- package/esm/types/0_parse_mode.d.ts +1 -0
- package/esm/types/0_poll_option.d.ts +2 -2
- package/esm/types/0_reply_keyboard_remove.d.ts +3 -3
- package/esm/types/0_thumbnail.d.ts +6 -6
- package/esm/types/0_venue.d.ts +6 -6
- package/esm/types/0_voice.d.ts +6 -6
- package/esm/types/0_web_app_info.d.ts +1 -2
- package/esm/types/1_animation.d.ts +9 -9
- package/esm/types/1_chat.d.ts +29 -28
- package/esm/types/1_document.d.ts +6 -7
- package/esm/types/1_keyboard_button.d.ts +1 -1
- package/esm/types/1_photo.d.ts +3 -3
- package/esm/types/1_sticker.d.ts +2 -2
- package/esm/types/1_user.d.ts +2 -1
- package/esm/types/1_video.d.ts +4 -4
- package/esm/types/1_video_note.d.ts +3 -3
- package/package.json +1 -1
- package/script/4_constants.d.ts +2 -2
- package/script/4_constants.js +2 -2
- package/script/client/3_types.d.ts +17 -12
- package/script/client/4_client.d.ts +47 -20
- package/script/client/4_client.js +56 -37
- package/script/tl/2_types.d.ts +231 -55
- package/script/tl/2_types.js +824 -179
- package/script/tl/3_functions.d.ts +159 -53
- package/script/tl/3_functions.js +510 -159
- package/script/types/0_audio.d.ts +9 -9
- package/script/types/0_bot_command.d.ts +2 -0
- package/script/types/0_chat_action.d.ts +1 -0
- package/script/types/0_chat_administrator_rights.d.ts +13 -13
- package/script/types/0_chat_photo.d.ts +7 -6
- package/script/types/0_chat_photo.js +1 -1
- package/script/types/0_contact.d.ts +6 -6
- package/script/types/0_dice.d.ts +3 -3
- package/script/types/0_force_reply.d.ts +4 -4
- package/script/types/0_input_contact_message_content.d.ts +5 -0
- package/script/types/0_input_location_message_content.d.ts +7 -0
- package/script/types/0_input_venue_message_content.d.ts +10 -1
- package/script/types/0_keyboard_button_poll_type.d.ts +3 -3
- package/script/types/0_location.d.ts +7 -7
- package/script/types/0_login_url.d.ts +4 -5
- package/script/types/0_mask_position.d.ts +0 -1
- package/script/types/0_message_entity.d.ts +5 -5
- package/script/types/0_parse_mode.d.ts +1 -0
- package/script/types/0_poll_option.d.ts +2 -2
- package/script/types/0_reply_keyboard_remove.d.ts +3 -3
- package/script/types/0_thumbnail.d.ts +6 -6
- package/script/types/0_venue.d.ts +6 -6
- package/script/types/0_voice.d.ts +6 -6
- package/script/types/0_web_app_info.d.ts +1 -2
- package/script/types/1_animation.d.ts +9 -9
- package/script/types/1_chat.d.ts +29 -28
- package/script/types/1_document.d.ts +6 -7
- package/script/types/1_keyboard_button.d.ts +1 -1
- package/script/types/1_photo.d.ts +3 -3
- package/script/types/1_sticker.d.ts +2 -2
- package/script/types/1_user.d.ts +2 -1
- package/script/types/1_video.d.ts +4 -4
- package/script/types/1_video_note.d.ts +3 -3
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { types } from "../2_tl.js";
|
|
2
2
|
import { Thumbnail } from "./0_thumbnail.js";
|
|
3
|
-
/** This object represents a general file (as opposed to photos, voice messages and audio files). */
|
|
4
3
|
export interface Document {
|
|
5
|
-
/**
|
|
4
|
+
/** A file identifier that can be used to download or reuse this file. */
|
|
6
5
|
fileId: string;
|
|
7
|
-
/**
|
|
6
|
+
/** A file identifier that can be used to identify this file. */
|
|
8
7
|
fileUniqueId: string;
|
|
9
|
-
/**
|
|
8
|
+
/** Thumbnails of the document. */
|
|
10
9
|
thumbnails: Thumbnail[];
|
|
11
|
-
/**
|
|
10
|
+
/** The original file name. */
|
|
12
11
|
fileName: string;
|
|
13
|
-
/** MIME type of the file
|
|
12
|
+
/** MIME type of the file. */
|
|
14
13
|
mimeType: string;
|
|
15
|
-
/**
|
|
14
|
+
/** Size of the file in bytes. */
|
|
16
15
|
fileSize: number;
|
|
17
16
|
}
|
|
18
17
|
export declare function constructDocument(document: types.Document, fileNameAttribute: types.DocumentAttributeFilename, fileId: string, fileUniqueId: string): Document;
|
|
@@ -4,7 +4,7 @@ import { KeyboardButtonPollType } from "./0_keyboard_button_poll_type.js";
|
|
|
4
4
|
import { WebAppInfo } from "./0_web_app_info.js";
|
|
5
5
|
export declare namespace KeyboardButton {
|
|
6
6
|
interface Text {
|
|
7
|
-
/**
|
|
7
|
+
/** The button's text. */
|
|
8
8
|
text: string;
|
|
9
9
|
}
|
|
10
10
|
/** This object defines the criteria used to request a suitable user. The identifier of the selected user will be shared with the bot when the corresponding button is pressed. */
|
|
@@ -2,15 +2,15 @@ import { types } from "../2_tl.js";
|
|
|
2
2
|
import { Thumbnail } from "./0_thumbnail.js";
|
|
3
3
|
/** This object represents a photo. */
|
|
4
4
|
export interface Photo {
|
|
5
|
-
/**
|
|
5
|
+
/** A file identifier that can be used to download or reuse this file. */
|
|
6
6
|
fileId: string;
|
|
7
|
-
/**
|
|
7
|
+
/** A file identifier that can be used to identify this file. */
|
|
8
8
|
fileUniqueId: string;
|
|
9
9
|
/** Photo width */
|
|
10
10
|
width: number;
|
|
11
11
|
/** Photo height */
|
|
12
12
|
height: number;
|
|
13
|
-
/**
|
|
13
|
+
/** Size of the file in bytes. */
|
|
14
14
|
fileSize: number;
|
|
15
15
|
thumbnails: Thumbnail[];
|
|
16
16
|
}
|
|
@@ -4,9 +4,9 @@ import { MaskPosition } from "./0_mask_position.js";
|
|
|
4
4
|
import { Thumbnail } from "./0_thumbnail.js";
|
|
5
5
|
/** This object represents a sticker. */
|
|
6
6
|
export interface Sticker {
|
|
7
|
-
/**
|
|
7
|
+
/** A file identifier that can be used to download or reuse this file. */
|
|
8
8
|
fileId: string;
|
|
9
|
-
/**
|
|
9
|
+
/** A file identifier that can be used to identify this file. */
|
|
10
10
|
fileUniqueId: string;
|
|
11
11
|
/** Type of the sticker, currently one of "regular", "mask", "customEmoji". The type of the sticker is independent from its format, which is determined by the fields is_animated and is_video. */
|
|
12
12
|
type: "regular" | "mask" | "customEmoji";
|
package/script/types/1_user.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { Color } from "./0_color.js";
|
|
|
5
5
|
export interface User {
|
|
6
6
|
/** Unique identifier for this user or bot */
|
|
7
7
|
id: number;
|
|
8
|
+
/** A color that can be displayed instead of the user's photo. */
|
|
8
9
|
color: Color;
|
|
9
10
|
/** True, if this user is a bot */
|
|
10
11
|
isBot: boolean;
|
|
@@ -16,7 +17,7 @@ export interface User {
|
|
|
16
17
|
username?: string;
|
|
17
18
|
/** Additional usernames */
|
|
18
19
|
also?: string[];
|
|
19
|
-
/**
|
|
20
|
+
/** The user's photo. */
|
|
20
21
|
photo?: ChatPhoto.User;
|
|
21
22
|
/** [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag) of the user's language */
|
|
22
23
|
languageCode?: string;
|
|
@@ -2,9 +2,9 @@ import { types } from "../2_tl.js";
|
|
|
2
2
|
import { Thumbnail } from "./0_thumbnail.js";
|
|
3
3
|
/** This object represents a video file. */
|
|
4
4
|
export interface Video {
|
|
5
|
-
/**
|
|
5
|
+
/** A file identifier that can be used to download or reuse this file. */
|
|
6
6
|
fileId: string;
|
|
7
|
-
/**
|
|
7
|
+
/** A file identifier that can be used to identify this file. */
|
|
8
8
|
fileUniqueId: string;
|
|
9
9
|
/** Video width as defined by sender */
|
|
10
10
|
width: number;
|
|
@@ -16,9 +16,9 @@ export interface Video {
|
|
|
16
16
|
thumbnails: Thumbnail[];
|
|
17
17
|
/** Original filename as defined by sender */
|
|
18
18
|
fileName?: string;
|
|
19
|
-
/** MIME type of the file
|
|
19
|
+
/** MIME type of the file. */
|
|
20
20
|
mimeType: string;
|
|
21
|
-
/**
|
|
21
|
+
/** Size of the file in bytes. */
|
|
22
22
|
fileSize: number;
|
|
23
23
|
}
|
|
24
24
|
export declare function constructVideo(document: types.Document, videoAttribute: types.DocumentAttributeVideo, fileName: string | undefined, fileId: string, fileUniqueId: string): Video;
|
|
@@ -2,9 +2,9 @@ import { types } from "../2_tl.js";
|
|
|
2
2
|
import { Thumbnail } from "./0_thumbnail.js";
|
|
3
3
|
/** This object represents a video message (available in Telegram apps as of v.4.0). */
|
|
4
4
|
export interface VideoNote {
|
|
5
|
-
/**
|
|
5
|
+
/** A file identifier that can be used to download or reuse this file. */
|
|
6
6
|
fileId: string;
|
|
7
|
-
/**
|
|
7
|
+
/** A file identifier that can be used to identify this file. */
|
|
8
8
|
fileUniqueId: string;
|
|
9
9
|
/** Video width and height (diameter of the video message) as defined by sender */
|
|
10
10
|
length: number;
|
|
@@ -14,7 +14,7 @@ export interface VideoNote {
|
|
|
14
14
|
thumbnails: Thumbnail[];
|
|
15
15
|
/** Original filename as defined by sender */
|
|
16
16
|
fileName?: string;
|
|
17
|
-
/**
|
|
17
|
+
/** Size of the file in bytes. */
|
|
18
18
|
fileSize: number;
|
|
19
19
|
}
|
|
20
20
|
export declare function constructVideoNote(document: types.Document, videoAttribute: types.DocumentAttributeVideo, fileId: string, fileUniqueId: string): VideoNote;
|