Clean up API ID references

This commit is contained in:
Daniil Gentili 2018-05-08 19:08:09 +00:00
parent 36850e70d6
commit 3c8e440ba6
7 changed files with 5 additions and 10 deletions

View File

@ -1,2 +0,0 @@
MTPROTO_NUMBER=+393924682693
MTPROTO_SETTINGS={"app_info":{"api_id":6,"api_hash":"eb06d4abfb49dc3eeb1aeb98ae0f581e"},"connection_settings":{"all":{"test_mode":true}}}

View File

@ -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');
$MadelineProto = new \danog\MadelineProto\API('bot.madeline', $settings);
$MadelineProto->start(); $MadelineProto->start();
$MadelineProto->setEventHandler('\EventHandler'); $MadelineProto->setEventHandler('\EventHandler');

View File

@ -2,7 +2,7 @@
require 'vendor/autoload.php'; 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->start();
$me = $MadelineProto->get_self(); $me = $MadelineProto->get_self();

View File

@ -12,7 +12,7 @@ If not, see <http://www.gnu.org/licenses/>.
*/ */
require '../vendor/autoload.php'; require '../vendor/autoload.php';
$settings = ['app_info' => ['api_id' => 6, 'api_hash' => 'eb06d4abfb49dc3eeb1aeb98ae0f581e']]; $settings = [];
$Lua = false; $Lua = false;
try { try {

View File

@ -13,7 +13,6 @@ If not, see <http://www.gnu.org/licenses/>.
require '../vendor/autoload.php'; require '../vendor/autoload.php';
$settings = []; $settings = [];
$settings = ['app_info' => ['api_id' => 6, 'api_hash' => 'eb06d4abfb49dc3eeb1aeb98ae0f581e']];
$MadelineProto = false; $MadelineProto = false;
try { try {

View File

@ -12,7 +12,7 @@ If not, see <http://www.gnu.org/licenses/>.
*/ */
require '../vendor/autoload.php'; require '../vendor/autoload.php';
$settings = ['app_info' => ['api_id' => 6, 'api_hash' => 'eb06d4abfb49dc3eeb1aeb98ae0f581e']]; $settings = [];
$MadelineProto = false; $MadelineProto = false;
$uMadelineProto = false; $uMadelineProto = false;

View File

@ -11,7 +11,7 @@ You should have received a copy of the GNU General Public License along with Mad
If not, see <http://www.gnu.org/licenses/>. If not, see <http://www.gnu.org/licenses/>.
*/ */
require '../vendor/autoload.php'; require '../vendor/autoload.php';
$settings = ['app_info' => ['api_id' => 6, 'api_hash' => 'eb06d4abfb49dc3eeb1aeb98ae0f581e']]; $settings = [];
include_once 'token.php'; include_once 'token.php';
try { try {