Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Telegram::Bot::sendMediaGroup is broken #16

Open
kleuter opened this issue Apr 11, 2024 · 0 comments
Open

Telegram::Bot::sendMediaGroup is broken #16

kleuter opened this issue Apr 11, 2024 · 0 comments

Comments

@kleuter
Copy link

kleuter commented Apr 11, 2024

Error 400 (Bad Request: can't parse InputMedia: media not found)

Simple example:

auto photo_file = std::make_shared<QFile>("D:/1.png");
auto photo_file2 = std::make_shared<QFile>("D:/2.png");

bool bOk1 = photo_file->open(QIODevice::ReadOnly);
bool bOk2 = photo_file2->open(QIODevice::ReadOnly);

Q_ASSERT(bOk1 && bOk2);

_bot->sendMediaGroup(chat_id,
    { InputMediaPhoto(photo_file.get()), InputMediaPhoto(photo_file2.get()) },
    {  }
).get();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant