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

Loading file like resource #17

Merged
merged 1 commit into from
Aug 20, 2015
Merged

Loading file like resource #17

merged 1 commit into from
Aug 20, 2015

Conversation

rkhitin
Copy link
Contributor

@rkhitin rkhitin commented Aug 7, 2015

Now file can be load like resource. For example: $telegram->sendDocument($chatId, fopen($imageUrl));

@jonnywilliamson
Copy link
Contributor

What benefit does this give us?

Does it allow us to send a file that's not local? Ie

$telegram->sendDocument($chatId, fopen('http://example.com/demo.pdf'))

If so, then +1

@rkhitin
Copy link
Contributor Author

rkhitin commented Aug 20, 2015

Yes. That was the goal.

@irazasyed
Copy link
Owner

Have you tested this? @rkhitin

@rkhitin
Copy link
Contributor Author

rkhitin commented Aug 20, 2015

Of course, it's working in real project right now. And, actually, there only two lines was changed.

irazasyed added a commit that referenced this pull request Aug 20, 2015
Add support to load resource directly in uploadFile.
@irazasyed irazasyed merged commit 91ed3a1 into irazasyed:master Aug 20, 2015
@irazasyed
Copy link
Owner

Thanks for the PR. Merged. Will tag the update soon.

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

Successfully merging this pull request may close these issues.

3 participants