projects
/
SonOfLokstallBot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca95d2c
)
Add return type to getTelegram - really need to do this everywhere
author
Cameron Ball
<cameron@cameron1729.xyz>
Sun, 2 Dec 2018 14:22:58 +0000
(22:22 +0800)
committer
Cameron Ball
<cameron@cameron1729.xyz>
Sun, 2 Dec 2018 14:22:58 +0000
(22:22 +0800)
common.php
patch
|
blob
|
history
diff --git
a/common.php
b/common.php
index
e5424ae
..
e560659
100644
(file)
--- a/
common.php
+++ b/
common.php
@@
-5,7
+5,7
@@
require_once(__DIR__ . '/config.php');
use Telegram\Bot\Api;
-function getTelegram() {
+function getTelegram()
: \Telegram\Bot\Api
{
STATIC $tg;
return $tg = $tg ?? new \Telegram\Bot\Api(BOT_TOKEN);
}