send_media_group¶
-
template<class Agent>
api_result<array_t<message_t>, Agent&&> send_media_group(Agent &&agent, send_media_group_args_t args)¶
-
template<class Agent, class F>
void send_media_group(Agent &&agent, send_media_group_args_t args, F &&callback)¶ agent
is any object satisfying agent concept.callback
is any callable object acceptingexpected<array_t<message_t>>
.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.
-
struct send_media_group_args_t¶
Arguments that should be passed to
send_media_group()
.Unique identifier for the target chat or username of the target channel (in the format @channelusername)
-
array_t<variant_t<input_media_audio_t, input_media_document_t, input_media_photo_t, input_media_video_t>> media¶
A JSON-serialized array describing messages to be sent, must include 2-10 items
-
optional_t<string_t> business_connection_id¶
Unique identifier of the business connection on behalf of which the message will be sent
-
optional_t<integer_t> message_thread_id¶
Unique identifier for the target message thread (topic) of the forum; for forum supergroups only
-
optional_t<boolean_t> disable_notification¶
Sends messages silently. Users will receive a notification with no sound.
-
optional_t<boolean_t> protect_content¶
Protects the contents of the sent messages from forwarding and saving
-
optional_t<string_t> message_effect_id¶
Unique identifier of the message effect to be added to the message; for private chats only
-
optional_t<reply_parameters_t> reply_parameters¶
Description of the message to reply to
-
array_t<variant_t<input_media_audio_t, input_media_document_t, input_media_photo_t, input_media_video_t>> media¶