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