Skip to content

Fix getStickerSet (#836) #838

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

Merged
merged 2 commits into from
May 23, 2018
Merged

Conversation

Taeir
Copy link
Contributor

@Taeir Taeir commented May 15, 2018

Fixed Request::getStickerSet($data)->getResult() returning a Chat object. It now returns a StickerSet object as intended.

This fixes #836

getStickerSet actually returned a chat object, instead of the intended StickerSet object.

This fixes php-telegram-bot#836
@Taeir Taeir mentioned this pull request May 15, 2018
@akalongman akalongman requested a review from a team May 16, 2018 09:10
@akalongman
Copy link
Member

@Taeir could you add some simple test for that? Like checking return object type

@Taeir
Copy link
Contributor Author

Taeir commented May 16, 2018

@akalongman Yes, I will do that later today.

Added tests for ServerResponse of getStickerSet.
@Taeir
Copy link
Contributor Author

Taeir commented May 16, 2018

@akalongman I have added the test you requested.

Copy link
Member

@akalongman akalongman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thank you

@akalongman akalongman merged commit 5676b75 into php-telegram-bot:develop May 23, 2018
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.

2 participants