Methods

copyMediaGroup(chatId, extra, signal) → {Promise.<Array.<Message>>}

Copies media group to chat with given id

bot.on('media_group', async ctx => {
  await ctx.copyMediaGroup(123456) // 123456 - chat id
})
Parameters:
NameTypeDescription
chatIdnumber | string

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

extraExtraMediaGroup | Extra

Extra parameters

signalAbortSignal

Abort signal

Returns:
Type: 
Promise.<Array.<Message>>

Type Definitions

MediaGroupOptions

Type:
  • object
Properties
NameTypeAttributesDefaultDescription
storeobject<optional>

Map-like object

timeoutnumber<optional>
100

Timeout in milliseconds. By default, 100. After this timeout, the media group is considered fully received.

allowedUpdatesArray.<('video'|'audio'|'photo'|'document')><optional>

List of allowed updates. By default, video, audio, photo and document