Skip to content

Instantly share code, notes, and snippets.

@testpnz
Created December 1, 2017 23:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save testpnz/aaaab66f09c6f9efb54f05b642d92597 to your computer and use it in GitHub Desktop.
Save testpnz/aaaab66f09c6f9efb54f05b642d92597 to your computer and use it in GitHub Desktop.
Telegram Bot for hackers
<?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
@colgfbg
Copy link

colgfbg commented Mar 2, 2018

Gem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment