From 5dd54b9590d14ba9fd045e5d4e6c28430a3f0735 Mon Sep 17 00:00:00 2001 From: SMAZNet Date: Fri, 12 May 2017 23:04:40 +0430 Subject: [PATCH] Update bot.php (#115) * Update bot.php * Update bot.php --- bot.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bot.php b/bot.php index 637e6237..6b587cdc 100755 --- a/bot.php +++ b/bot.php @@ -13,17 +13,17 @@ If not, see . require 'vendor/autoload.php'; $settings = []; - +// $token="Uncomment and put your Token here"; try { $MadelineProto = \danog\MadelineProto\Serialization::deserialize('bot.madeline'); } catch (\danog\MadelineProto\Exception $e) { - if (file_exists('token.php')) { - include_once 'token.php'; + if (isset($token)) { + $MadelineProto = new \danog\MadelineProto\API($settings); $authorization = $MadelineProto->bot_login($token); \danog\MadelineProto\Logger::log([$authorization], \danog\MadelineProto\Logger::NOTICE); } else { - echo 'token.php does not exist'; + echo 'token does not exist'; die; } }