Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/grammy/mod.ts>Api#sendMediaGroup

The Telegram Bot Framework.
Very Popular
Latest
method Api.prototype.sendMediaGroup
import { Api } from "https://deno.land/x/grammy@v1.32.0/mod.ts";

Use this method to send a group of photos, videos, documents or audios as an album. Documents and audio files can be only grouped in an album with messages of the same type. On success, an array of Messages that were sent is returned.

Parameters

chat_id: number | string

Unique identifier for the target chat or username of the target channel (in the format @channelusername)

An array describing messages to be sent, must include 2-10 items

optional
other: Other<R, "sendMediaGroup", "chat_id" | "media">

Optional remaining parameters, confer the official reference below

optional
signal: AbortSignal

Optional AbortSignal to cancel the request

Official reference: https://core.telegram.org/bots/api#sendmediagroup