From: Cameron Ball Date: Tue, 27 Nov 2018 05:43:39 +0000 (+0800) Subject: Respond to chat instead of user when checking allowed ids X-Git-Url: http://git.cameron1729.xyz/?p=SonOfLokstallBot.git;a=commitdiff_plain;h=d7748f66a94898ab4fdb3c0ef97695497fc96b83 Respond to chat instead of user when checking allowed ids --- diff --git a/purjolok.php b/purjolok.php index 4566cea..2b7954b 100644 --- a/purjolok.php +++ b/purjolok.php @@ -7,7 +7,7 @@ use Telegram\Bot\Commands\Command; if(!canChatWith(getTelegram()->getWebhookUpdates())) { getTelegram()->sendMessage([ - 'chat_id' => getTelegram()->getWebhookUpdates()->get('message')->get('from')->get('id'), + 'chat_id' => getTelegram()->getWebhookUpdates()->get('message')->get('chat')->get('id'), 'text' => "Sorry, Dad says I can't talk to you." ]); exit(0);