Skip to content

Troubles after Telegram update on November 21, 2016 #332

@deios0

Description

@deios0

Hi guys, we got troubles after last Telegram update with this:

Your bot will now get updates about posts in channels. Added new fields channel_post and edited_channel_post to Update.

Here is an exception we were getting after update:
[2016-11-23 23:59:59] prod.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function getFrom() on null in /app/Services/TelegramCommands/SystemCommands/GenericmessageCommand.php:49

We fixed it with the following code, could you please add fixes to repository?

public function messenger() { if (array_key_exists("edited_channel_post", \Illuminate\Support\Facades\Input::get())) return; if (array_key_exists("channel_post", \Illuminate\Support\Facades\Input::get())) return; $this->api->handle(); }

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