telegram-bot-api-nodejs 1.2.15 → 1.2.16

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.
Files changed (2) hide show
  1. package/index.d.ts +10 -1
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -553,12 +553,21 @@ export interface PaidMediaInfo {
553
553
  star_count: number;
554
554
  paid_media: PaidMedia[];
555
555
  }
556
- export interface PaidMedia {
556
+ export type PaidMedia = PaidMediaPreview | PaidMediaPhoto | PaidMediaVideo;
557
+ export interface PaidMediaPreview {
557
558
  type: "preview";
558
559
  width: number;
559
560
  height: number;
560
561
  duration: number;
561
562
  }
563
+ export interface PaidMediaPhoto {
564
+ type: "photo";
565
+ photo: PhotoSize;
566
+ }
567
+ export interface PaidMediaVideo {
568
+ type: "video";
569
+ video: Video;
570
+ }
562
571
  export interface InputMediaBase {
563
572
  media: string;
564
573
  caption?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "telegram-bot-api-nodejs",
3
- "version": "1.2.15",
3
+ "version": "1.2.16",
4
4
  "description": "Telegram Bot API client for nodejs",
5
5
  "type": "module",
6
6
  "main": "index.js",