From 3c8e440ba6ea1d0f4d58878a93ab4a5ad403b23c Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Tue, 8 May 2018 19:08:09 +0000 Subject: [PATCH] Clean up API ID references --- .env.calls | 2 -- bot.php | 4 +--- index.php | 2 +- lua/madeline.php | 2 +- userbots/MadelineProto_bot.php | 1 - userbots/pipesbot.php | 2 +- userbots/pwrtelegram_debug_bot.php | 2 +- 7 files changed, 5 insertions(+), 10 deletions(-) delete mode 100644 .env.calls diff --git a/.env.calls b/.env.calls deleted file mode 100644 index 5c321e81..00000000 --- a/.env.calls +++ /dev/null @@ -1,2 +0,0 @@ -MTPROTO_NUMBER=+393924682693 -MTPROTO_SETTINGS={"app_info":{"api_id":6,"api_hash":"eb06d4abfb49dc3eeb1aeb98ae0f581e"},"connection_settings":{"all":{"test_mode":true}}} diff --git a/bot.php b/bot.php index 01af487b..61bd8153 100755 --- a/bot.php +++ b/bot.php @@ -48,9 +48,7 @@ class EventHandler extends \danog\MadelineProto\EventHandler } } -$settings = ['app_info' => ['api_id' => 6, 'api_hash' => 'eb06d4abfb49dc3eeb1aeb98ae0f581e'], 'updates' => ['handle_updates' => true]]; - -$MadelineProto = new \danog\MadelineProto\API('bot.madeline', $settings); +$MadelineProto = new \danog\MadelineProto\API('bot.madeline'); $MadelineProto->start(); $MadelineProto->setEventHandler('\EventHandler'); diff --git a/index.php b/index.php index b8200e93..bd2f1b6c 100644 --- a/index.php +++ b/index.php @@ -2,7 +2,7 @@ require 'vendor/autoload.php'; -$MadelineProto = new \danog\MadelineProto\API('session.madeline'); //, ['app_info' => ['api_id' => 6, 'api_hash' => 'eb06d4abfb49dc3eeb1aeb98ae0f581e']]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $me = $MadelineProto->start(); $me = $MadelineProto->get_self(); diff --git a/lua/madeline.php b/lua/madeline.php index b4ea2da8..91f33c91 100755 --- a/lua/madeline.php +++ b/lua/madeline.php @@ -12,7 +12,7 @@ If not, see . */ require '../vendor/autoload.php'; -$settings = ['app_info' => ['api_id' => 6, 'api_hash' => 'eb06d4abfb49dc3eeb1aeb98ae0f581e']]; +$settings = []; $Lua = false; try { diff --git a/userbots/MadelineProto_bot.php b/userbots/MadelineProto_bot.php index de502c02..9353cf45 100755 --- a/userbots/MadelineProto_bot.php +++ b/userbots/MadelineProto_bot.php @@ -13,7 +13,6 @@ If not, see . require '../vendor/autoload.php'; $settings = []; -$settings = ['app_info' => ['api_id' => 6, 'api_hash' => 'eb06d4abfb49dc3eeb1aeb98ae0f581e']]; $MadelineProto = false; try { diff --git a/userbots/pipesbot.php b/userbots/pipesbot.php index b4e2e451..8a986366 100755 --- a/userbots/pipesbot.php +++ b/userbots/pipesbot.php @@ -12,7 +12,7 @@ If not, see . */ require '../vendor/autoload.php'; -$settings = ['app_info' => ['api_id' => 6, 'api_hash' => 'eb06d4abfb49dc3eeb1aeb98ae0f581e']]; +$settings = []; $MadelineProto = false; $uMadelineProto = false; diff --git a/userbots/pwrtelegram_debug_bot.php b/userbots/pwrtelegram_debug_bot.php index a16e34a9..b317b348 100755 --- a/userbots/pwrtelegram_debug_bot.php +++ b/userbots/pwrtelegram_debug_bot.php @@ -11,7 +11,7 @@ You should have received a copy of the GNU General Public License along with Mad If not, see . */ require '../vendor/autoload.php'; -$settings = ['app_info' => ['api_id' => 6, 'api_hash' => 'eb06d4abfb49dc3eeb1aeb98ae0f581e']]; +$settings = []; include_once 'token.php'; try {