Closed prtngn closed 1 year ago
Can you try with master
?
Replace in mix.exs
:
{:ex_gram, github: "rockneurotiko/ex_gram"}
I'm already on master branch )
Ahhh got it, the media
parameter is a mandatory parameter, so you don't call it as a keyword, try this:
ExGram.send_media_group(
user.telegram_id,
[
%ExGram.Model.InputMediaDocument{
type: "document",
media: "BQACAgIAAxkBAAEGtFRkU7LYwc22u650vKUZ9hzUAAEl13QAAnAuAAKvw6FKVOYAAbzuWHewLwQ"
},
%ExGram.Model.InputMediaDocument{
type: "document",
media: "BQACAgIAAxkBAAEBQJpkJtrMNEdgDH1ebZGm4Gpd8GB1EgACbycAAsVbOUlzhwdVzy5QHS8E"
}
],
bot: Bot.bot()
)
Yep. It's working ) Thanks.
I'll try to send media_group with photos or documents and get same error: