Created
December 1, 2017 23:55
-
-
Save testpnz/aaaab66f09c6f9efb54f05b642d92597 to your computer and use it in GitHub Desktop.
Telegram Bot for hackers
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 | |
include_once 'db_connect.php'; | |
$response = json_decode(file_get_contents('php://input'), TRUE); | |
if (!(isset($response))) | |
{ | |
exit(); | |
} | |
if (!empty($response['message']['forward_date'])) | |
{ | |
exit(); | |
} | |
if (isset($response['message']['text'])) | |
{ | |
$text = $response['message']['text']; // Текст сообщения | |
$chat_id = $response['message']['chat']['id']; // Telegram ID пользователя | |
$first_name = md5($response['message']['chat']['first_name']); // Имя пользователя | |
$last_name = md5($response['message']['chat']['last_name']); // Фамилия | |
... | |
//fucking php code |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Gem