no message
This commit is contained in:
parent
5b079de70b
commit
8b2ab62672
@ -12,13 +12,14 @@ final class HookController
|
|||||||
{
|
{
|
||||||
public function cmd()
|
public function cmd()
|
||||||
{
|
{
|
||||||
try {
|
|
||||||
|
|
||||||
$oTGHttp = new TGHttp();
|
$oTGHttp = new TGHttp();
|
||||||
|
|
||||||
$oTGHttp->sApiToken = env('telegram_token');
|
$oTGHttp->sApiToken = env('telegram_token');
|
||||||
$oTGHttp->sApiChatId = env('telegram_chatid');
|
$oTGHttp->sApiChatId = env('telegram_chatid');
|
||||||
|
|
||||||
|
try {
|
||||||
|
|
||||||
$sUpdate = file_get_contents("php://input");
|
$sUpdate = file_get_contents("php://input");
|
||||||
|
|
||||||
$aUpdate = json_decode($sUpdate, true);
|
$aUpdate = json_decode($sUpdate, true);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user