GramIO API Reference / @gramio/files/dist / MediaInput
Class: MediaInput
Defined in: files/index.d.ts:48
Class-helper with static methods that represents the content of a media message to be sent.
Constructors
Constructor
new MediaInput():
MediaInput
Returns
MediaInput
Methods
animation()
staticanimation(media,options?):TelegramInputMediaAnimation
Defined in: files/index.d.ts:54
Represents an animation file (GIF or H.264/MPEG-4 AVC video without sound) to be sent.
Parameters
| Parameter | Type |
|---|---|
media | string | Blob |
options? | Omit<TelegramInputMediaAnimation, "media" | "type"> |
Returns
audio()
staticaudio(media,options?):TelegramInputMediaAudio
Defined in: files/index.d.ts:66
Represents an audio file to be treated as music to be sent.
Parameters
| Parameter | Type |
|---|---|
media | string | Blob |
options? | Omit<TelegramInputMediaAudio, "media" | "type"> |
Returns
document()
staticdocument(media,options?):TelegramInputMediaDocument
Defined in: files/index.d.ts:60
Represents a general file to be sent.
Parameters
| Parameter | Type |
|---|---|
media | string | Blob |
options? | Omit<TelegramInputMediaDocument, "media" | "type"> |
Returns
photo()
staticphoto(media,options?):TelegramInputMediaPhoto
Defined in: files/index.d.ts:72
Represents a photo to be sent.
Parameters
| Parameter | Type |
|---|---|
media | string | Blob |
options? | Omit<TelegramInputMediaPhoto, "media" | "type"> |
Returns
video()
staticvideo(media,options?):TelegramInputMediaVideo
Defined in: files/index.d.ts:78
Represents a video to be sent.
Parameters
| Parameter | Type |
|---|---|
media | string | Blob |
options? | Omit<TelegramInputMediaVideo, "media" | "type"> |