Last active
July 13, 2017 12:29
-
-
Save smaznet/fc025150f5a242db319c944041d3353d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once ("../core/telegramhelper.php"); // git clone https://github.com/smaznet/simplePhpBot | |
$update=json_decode(file_get_contents("php://input")); | |
$TL=new telegramhelper("TOKEN"); | |
} | |
if ($update instanceof stdClass){ | |
telegramhelper::parseUpdate($update); | |
} | |
$TL->makeHTTPRequest('sendMessage',['text'=>$Text,'chat_id'=>$ChatId]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment