Skip to content

[Feature request] Add a caption to sendMediaGroup #208

Closed
@mario-amazing

Description

@mario-amazing

SendMediaGroup don't have it's own caption parametr.
Solution is to add it to the first media as described here.

Current solution(add index caption under the hood):

respond_with :media_group, media: media_group

def media_group
  bot_session['files_ids'].map.with_index { |file_id, index| { type: 'photo', media: file_id }.merge(index == 0 ? { caption: t('.content') } : {}) }
end

Request Feature:

respond_with :media_group, media: media_group, caption: t('.content')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions