mirror of
https://github.com/danog/AltervistaUserBot.git
synced 2024-12-02 17:28:03 +01:00
9247b4c51b
fixed !off command fixed multi login other minor fixes
42 lines
682 B
PHP
42 lines
682 B
PHP
<?php
|
|
|
|
//li ottieni da my.telegram.org
|
|
$api_id = 12345;
|
|
$api_hash = 'ksdjfsdkjvksjvbdksvjdsv';
|
|
|
|
$numero_di_telefono = '123456789'; //devi inserire anche il prefisso nazionale senza +
|
|
|
|
$leggi_messaggi_in_uscita = false;
|
|
|
|
$lista_admin = [
|
|
40955937, //id di Bruno :D
|
|
12344567, //un id probabilmente inesistente
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//header("Content-Type: text/plain");
|
|
ini_set('display_errors', TRUE);
|
|
error_reporting(E_ALL);
|
|
if (!file_exists('bot.lock')) {
|
|
touch('bot.lock');
|
|
}
|
|
$lock = fopen('bot.lock', 'r+');
|
|
flock($lock, LOCK_EX);
|
|
|
|
require __DIR__ . '/phar.php';
|
|
require __DIR__ . '/HttpProxy.php';
|
|
require __DIR__ . '/functions.php';
|