From 211e44c1618093b0a19ec690af47b9f15cb9e8b3 Mon Sep 17 00:00:00 2001 From: Cameron Ball Date: Sat, 22 Dec 2018 22:47:42 +0800 Subject: [PATCH] Another minor fix to canChatWith... --- src/purjolok.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/purjolok.php b/src/purjolok.php index bc938dd..53b8146 100644 --- a/src/purjolok.php +++ b/src/purjolok.php @@ -5,7 +5,7 @@ require_once('common.php'); use Telegram\Bot\Actions; use Telegram\Bot\Commands\Command; -if(getTelegram()->getWebHookUpdates() && !canChatWith(getTelegram()->getWebhookUpdates())) { +if(getTelegram()->getWebHookUpdates()->get('message') && !canChatWith(getTelegram()->getWebhookUpdates())) { getTelegram()->sendMessage([ 'chat_id' => getTelegram()->getWebhookUpdates()->get('message')->get('chat')->get('id'), 'text' => "Sorry, Dad says I can't talk to you." -- 2.11.0