Documentation - v0.27.0
    Preparing search index...
    • 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.

      Parameters

      • client: ITelegramClient
      • chatId: InputPeerLike

        ID of the chat, its username, phone or "me" or "self"

      • medias: (string | InputMediaLike)[]

        Medias contained in the message.

      • Optionalparams: CommonSendParams & {
            invertMedia?: boolean;
            progressCallback?: (index: number, uploaded: number, total: number) => void;
        }

        Additional sending parameters

        • OptionalinvertMedia?: boolean

          Whether to invert media position.

          Currently only supported for web previews and makes the client render the preview above the caption and not below.

        • OptionalprogressCallback?: (index: number, uploaded: number, total: number) => void

          Function 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.

      Returns Promise<Message[]>