PhotoSize
fields
| field | type | required | description |
|---|---|---|---|
file_id | string | required | Identifier for this file, which can be used to download or reuse the file |
file_unique_id | string | required | Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file. |
width | number | required | Photo width |
height | number | required | Photo height |
file_size | number | optional | Optional. File size in bytes |
import
import type { PhotoSize } from "@yaebal/types";used by
types
- Animation
- Audio
- ChatShared
- Document
- ExternalReplyInfo
- Game
- LivePhoto
- Message
- PaidMediaPhoto
- PollMedia
- RichBlockPhoto
- SharedUser
- Sticker
- StickerSet
- UserProfilePhotos
- Video
- VideoNote
official Bot API docs: https://core.telegram.org/bots/api/#photosize