ID of the chat, its username, phone or "me"
or "self"
Medias contained in the message.
Optional
params: CommonSendParams & {Additional sending parameters
Optional
invertMedia?: booleanWhether to invert media position.
Currently only supported for web previews and makes the client render the preview above the caption and not below.
Optional
progressCallback?: (index: number, uploaded: number, total: number) => voidFunction that will be called after some part has been uploaded. Only used when a file that requires uploading is passed, and not used when uploading a thumbnail.
Send a group of media.
To add a caption to the group, add caption to the first media in the group and don't add caption for any other.