@mtkruto/node 0.1.107 → 0.1.108
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 +3 -3
- package/esm/5_client.d.ts +1 -0
- package/esm/5_client.js +1 -0
- package/esm/client/3_types.d.ts +1 -1
- package/esm/client/4_client.d.ts +2 -2
- package/esm/tl/2_types.d.ts +441 -58
- package/esm/tl/2_types.js +1584 -118
- package/esm/tl/3_functions.d.ts +113 -16
- package/esm/tl/3_functions.js +364 -39
- package/esm/types/0_message_entity.d.ts +1 -1
- package/esm/types/3_message.js +1 -1
- package/package.json +1 -1
- package/script/4_constants.d.ts +2 -2
- package/script/4_constants.js +3 -3
- package/script/5_client.d.ts +1 -0
- package/script/5_client.js +1 -0
- package/script/client/3_types.d.ts +1 -1
- package/script/client/4_client.d.ts +2 -2
- package/script/tl/2_types.d.ts +441 -58
- package/script/tl/2_types.js +1646 -158
- package/script/tl/3_functions.d.ts +113 -16
- package/script/tl/3_functions.js +386 -53
- package/script/types/0_message_entity.d.ts +1 -1
- package/script/types/3_message.js +1 -1
package/script/4_constants.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ export type PublicKeys = readonly [bigint, [bigint, bigint]][];
|
|
|
4
4
|
export declare const PUBLIC_KEYS: PublicKeys;
|
|
5
5
|
export declare const VECTOR_CONSTRUCTOR = 481674261;
|
|
6
6
|
export declare const INITIAL_DC: DC;
|
|
7
|
-
export declare const LAYER =
|
|
8
|
-
export declare const APP_VERSION = "MTKruto 0.1.
|
|
7
|
+
export declare const LAYER = 166;
|
|
8
|
+
export declare const APP_VERSION = "MTKruto 0.1.108";
|
|
9
9
|
export declare const DEVICE_MODEL: string;
|
|
10
10
|
export declare const LANG_CODE: string;
|
|
11
11
|
export declare const LANG_PACK = "";
|
package/script/4_constants.js
CHANGED
|
@@ -78,9 +78,9 @@ exports.PUBLIC_KEYS = Object.freeze([
|
|
|
78
78
|
],
|
|
79
79
|
]);
|
|
80
80
|
exports.VECTOR_CONSTRUCTOR = 0x1CB5C415;
|
|
81
|
-
exports.INITIAL_DC = "2
|
|
82
|
-
exports.LAYER =
|
|
83
|
-
exports.APP_VERSION = "MTKruto 0.1.
|
|
81
|
+
exports.INITIAL_DC = "2";
|
|
82
|
+
exports.LAYER = 166;
|
|
83
|
+
exports.APP_VERSION = "MTKruto 0.1.108";
|
|
84
84
|
// @ts-ignore: lib
|
|
85
85
|
exports.DEVICE_MODEL = typeof dntShim.Deno === "undefined" ? typeof navigator === "undefined" ? typeof process === "undefined" ? "Unknown" : process.platform + "-" + process.arch : navigator.userAgent.split(" ")[0] : dntShim.Deno.build.os + "-" + dntShim.Deno.build.arch;
|
|
86
86
|
exports.LANG_CODE = typeof navigator === "undefined" ? "en" : navigator.language.split("-")[0];
|
package/script/5_client.d.ts
CHANGED
package/script/5_client.js
CHANGED
|
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./client/2_client_plain.js"), exports);
|
|
18
|
+
__exportStar(require("./client/3_types.js"), exports);
|
|
18
19
|
__exportStar(require("./client/4_client.js"), exports);
|
|
@@ -3,7 +3,7 @@ import { functions, types } from "../2_tl.js";
|
|
|
3
3
|
import { BotCommandScope, CallbackQuery, ChatID, ForceReply, InlineKeyboardMarkup, InlineQuery, InlineQueryResultButton, Message, MessageEntity, ReplyKeyboardMarkup, ReplyKeyboardRemove } from "../3_types.js";
|
|
4
4
|
import { With } from "./0_utilities.js";
|
|
5
5
|
import { ClientPlainParams } from "./2_client_plain.js";
|
|
6
|
-
|
|
6
|
+
import { ParseMode } from "../3_types.js";
|
|
7
7
|
export interface ClientParams extends ClientPlainParams {
|
|
8
8
|
/**
|
|
9
9
|
* A parse mode to use when the `parseMode` parameter is not specified when sending or editing messages. Defauls to `ParseMode.None`.
|
|
@@ -2,11 +2,11 @@ import { MaybePromise } from "../1_utilities.js";
|
|
|
2
2
|
import { functions, ReadObject, types } from "../2_tl.js";
|
|
3
3
|
import { Storage } from "../3_storage.js";
|
|
4
4
|
import { DC } from "../3_transport.js";
|
|
5
|
-
import { BotCommand, ChatAction, ChatID, InlineQueryResult, Message, User } from "../3_types.js";
|
|
5
|
+
import { BotCommand, ChatAction, ChatID, InlineQueryResult, Message, ParseMode, User } from "../3_types.js";
|
|
6
6
|
import { Migrate } from "../4_errors.js";
|
|
7
7
|
import { With } from "./0_utilities.js";
|
|
8
8
|
import { ClientAbstract } from "./1_client_abstract.js";
|
|
9
|
-
import { AnswerCallbackQueryParams, AnswerInlineQueryParams, AuthorizeUserParams, ClientParams, DownloadParams, EditMessageParams, FilterableUpdates, FilterUpdate, ForwardMessagesParams, GetMyCommandsParams, Handler,
|
|
9
|
+
import { AnswerCallbackQueryParams, AnswerInlineQueryParams, AuthorizeUserParams, ClientParams, DownloadParams, EditMessageParams, FilterableUpdates, FilterUpdate, ForwardMessagesParams, GetMyCommandsParams, Handler, SendMessagesParams, SendPollParams, SetMyCommandsParams, Update, UploadParams } from "./3_types.js";
|
|
10
10
|
declare const getEntity: unique symbol;
|
|
11
11
|
declare const getStickerSetName: unique symbol;
|
|
12
12
|
export declare const handleMigrationError: unique symbol;
|