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

Add support for sending photos via file_id in MediaGroups #748

Closed
BoBRoID opened this issue May 19, 2020 · 3 comments
Closed

Add support for sending photos via file_id in MediaGroups #748

BoBRoID opened this issue May 19, 2020 · 3 comments

Comments

@BoBRoID
Copy link

BoBRoID commented May 19, 2020

Hello there!
I want to store some photos sent me by users, and share them with him later. I tried a lot of ways and this is my best solution to do that:

            $media = array_map(function($fileId) {
                return ['type' => 'photo', 'media' => $fileId];
            }, $images);

            Telegram::sendMediaGroup(['media' => json_encode($media)]);`

but, unfortunately, I can't send request in this way from the box because of validator. I propose to make one little change to allow send files in this way: in the Http trait in the uploadFile method add check for the json. Check my fork for details.

maybee I miss something from documentation, and there exists other way to send files via telegramId?

@jonnywilliamson
Copy link
Contributor

All this will be taken care of very shortly. We are in midst of big announcement. Hopefully only a very short time until we can do that.

I hope you can wait until then!

Repository owner deleted a comment from punyflash Oct 2, 2020
@topconvert
Copy link

Hello!
When will there be an update to resolve this issue?

@YSRoot
Copy link

YSRoot commented Oct 20, 2022

#1014
in this pr this case solved

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

5 participants