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

QVector< InputMediaPhoto> cannot be used #15

Open
kleuter opened this issue Apr 10, 2024 · 1 comment
Open

QVector< InputMediaPhoto> cannot be used #15

kleuter opened this issue Apr 10, 2024 · 1 comment

Comments

@kleuter
Copy link

kleuter commented Apr 10, 2024

You cannot actually use any of Telegram::Bot::sendMediaGroup methods, because you cannot create such vectors as QVector<InputMediaPhoto> for example.

One can only create such vectors using initializers:

QVector< InputMediaPhoto> v = { InputMediaPhoto(new QFile()), InputMediaPhoto(new QFile()) };

But you cannot add new items to it:

v.emplace_back(InputMediaPhoto(new QFile()) );

Possible solution: const Type type = Type::PHOTO; must be changed to Type type = Type::PHOTO; in the header.

@kleuter kleuter changed the title Telegram::Bot::sendMediaGroup is broken QVector< InputMediaPhoto> cannot be used Apr 11, 2024
@kleuter
Copy link
Author

kleuter commented Feb 4, 2025

Same for InputMediaVideo

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