projects
/
SonOfLokstallBot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add return type to getTelegram - really need to do this everywhere
[SonOfLokstallBot.git]
/
common.php
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);
}