Clean up API ID references
This commit is contained in:
parent
36850e70d6
commit
3c8e440ba6
@ -1,2 +0,0 @@
|
|||||||
MTPROTO_NUMBER=+393924682693
|
|
||||||
MTPROTO_SETTINGS={"app_info":{"api_id":6,"api_hash":"eb06d4abfb49dc3eeb1aeb98ae0f581e"},"connection_settings":{"all":{"test_mode":true}}}
|
|
4
bot.php
4
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');
|
||||||
|
|
||||||
$MadelineProto = new \danog\MadelineProto\API('bot.madeline', $settings);
|
|
||||||
|
|
||||||
$MadelineProto->start();
|
$MadelineProto->start();
|
||||||
$MadelineProto->setEventHandler('\EventHandler');
|
$MadelineProto->setEventHandler('\EventHandler');
|
||||||
|
@ -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();
|
||||||
|
@ -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 {
|
||||||
|
@ -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 {
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user