projects
/
SonOfLokstallBot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bc3496
)
Another minor fix to canChatWith...
author
Cameron Ball
<cameron@cameron1729.xyz>
Sat, 22 Dec 2018 14:47:42 +0000
(22:47 +0800)
committer
Cameron Ball
<cameron@cameron1729.xyz>
Fri, 28 Dec 2018 06:27:20 +0000
(14:27 +0800)
src/purjolok.php
patch
|
blob
|
history
diff --git
a/src/purjolok.php
b/src/purjolok.php
index
bc938dd
..
53b8146
100644
(file)
--- 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."