Skip to content

getStickerSet returns a Chat object for getResult #836

Closed
@Taeir

Description

@Taeir

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:

'title' => 'Chat', //Response from getChat

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions