Closed
Description
Problem:
When using $response = Request::getStickerSet($data);
, $response->getResult()
returns a Chat object (Entity), instead of the intended StickerSet object (Entity). This makes getStickerSet
unusable.
Cause:
StickerSet has a title
field. ServerResponse interprets anything with a title
field as a Chat object.
Fix:
Add a line to interpret something with the field stickers
as a StickerSet, above the line for title
.
Relevant code:
core/src/Entities/ServerResponse.php
Line 116 in 7b5bf5f
Metadata
Metadata
Assignees
Labels
No labels