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."