Skip to content

Instantly share code, notes, and snippets.

🐗
Elderly hog

Elderly Hog ingria

🐗
Elderly hog
Block or report user

Report or block ingria

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ingria
ingria / hellobot.php
Created Jul 2, 2018
Simple PHP Telegram Bot
View hellobot.php
<?php
define('BOT_TOKEN', '12345678:replace-me-with-real-token');
define('API_URL', 'https://api.telegram.org/bot'.BOT_TOKEN.'/');
function apiRequestWebhook($method, $parameters) {
if (!is_string($method)) {
error_log("Method name must be a string\n");
return false;
}
View danted.conf
# /etc/danted.conf
logoutput: syslog /var/log/sockd.log
internal: ens3 port = 1080
external: ens3
clientmethod: none
socksmethod: none
# Если нужна авторизация, заменить на:
You can’t perform that action at this time.