Skip to content

Reactions Broken on Channels - Fix Attached #1470

Open
@init2null

Description

@init2null

🐞 Bug Report

Telegram Bot errors out when doing a handleGetUpdates ("Call to a member function getChat() on null") after a user reacts to a channel post. Here's the fix.

In DB::insertMessageReactionCount, this line referencing $message_reaction should be this:

if ($chat = $message_reaction_count->getChat()) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions