telegram-bot-api-nodejs 1.2.2 → 1.2.3
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/index.d.ts +4 -0
- package/index.js +1 -8
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -686,8 +686,12 @@ export interface ChatPermissions {
|
|
|
686
686
|
}
|
|
687
687
|
export interface Sticker {
|
|
688
688
|
file_id: string;
|
|
689
|
+
file_unique_id: string;
|
|
690
|
+
type: "regular" | "mask" | "custom_emoji";
|
|
689
691
|
width: number;
|
|
690
692
|
height: number;
|
|
693
|
+
is_animated: boolean;
|
|
694
|
+
is_video: boolean;
|
|
691
695
|
thumbnail?: PhotoSize;
|
|
692
696
|
/** @deprecated */
|
|
693
697
|
thumb?: PhotoSize;
|
package/index.js
CHANGED
|
@@ -302,14 +302,7 @@ function parsePhotoSize(p) {
|
|
|
302
302
|
};
|
|
303
303
|
}
|
|
304
304
|
function parseSticker(v) {
|
|
305
|
-
return
|
|
306
|
-
file_id: String(v.file_id),
|
|
307
|
-
width: Number(v.width),
|
|
308
|
-
height: Number(v.height),
|
|
309
|
-
thumb: v.thumb ? parsePhotoSize(v.thumb) : void 0,
|
|
310
|
-
thumbnail: v.thumbnail ? parsePhotoSize(v.thumbnail) : void 0,
|
|
311
|
-
emoji: String(v.emoji),
|
|
312
|
-
};
|
|
305
|
+
return v;
|
|
313
306
|
}
|
|
314
307
|
function parseVideo(v) {
|
|
315
308
|
return {
|