sendMediaGroup method
Future<List<Message> >
sendMediaGroup(
- ChatID chatId,
- List<
InputMedia> media, { - bool? disableNotification,
- bool? allowSendingWithoutReply,
- int? replyToMessageId,
inherited
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 list of Messages that were sent is returned.
Implementation
Future<List<Message>> sendMediaGroup(
ChatID chatId,
List<InputMedia> media, {
bool? disableNotification,
bool? allowSendingWithoutReply,
int? replyToMessageId,
}) {
return _client.apiCall(_token, 'sendMediaGroup', {
'chat_id': chatId,
'media': media,
'disable_notification': disableNotification,
'allow_sending_without_reply': allowSendingWithoutReply,
'reply_to_message_id': replyToMessageId
});
}