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.
- package/index.d.ts +10 -1
- 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
|
|
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;
|