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
})
This:
Parameters:
Name | Type | Description |
---|---|---|
chatId | number | | Unique identifier for the target chat or username of the target channel (in the format @channelusername) |
extra | ExtraMediaGroup | | Extra parameters |
signal | AbortSignal | Abort signal |
Returns:
- Type:
- Promise.<Array.<Message>>
Type Definitions
MediaGroupOptions
Type:
Properties- object
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
store | object | <optional> | Map-like object | |
timeout | number | <optional> | 100 | Timeout in milliseconds. By default, |
allowedUpdates | Array.<('video'|'audio'|'photo'|'document')> | <optional> | List of allowed updates. By default, |