diff --git a/bots/MadelineProto_bot.php b/bots/MadelineProto_bot.php
index c595966e..f2c8c360 100755
--- a/bots/MadelineProto_bot.php
+++ b/bots/MadelineProto_bot.php
@@ -13,7 +13,7 @@ If not, see .
require '../vendor/autoload.php';
$settings = [];
-$settings = ["app_info"=>["api_id"=>6,"api_hash"=>"eb06d4abfb49dc3eeb1aeb98ae0f581e"]];
+$settings = ['app_info'=>['api_id'=>6, 'api_hash'=>'eb06d4abfb49dc3eeb1aeb98ae0f581e']];
$MadelineProto = false;
try {
$MadelineProto = \danog\MadelineProto\Serialization::deserialize('MadelineProto_bot.madeline');
@@ -67,7 +67,7 @@ while (true) {
continue;
}
try {
- if (isset($update['update']['message']['message']) &&preg_match('|/start|', $update['update']['message']['message'])) {
+ if (isset($update['update']['message']['message']) && preg_match('|/start|', $update['update']['message']['message'])) {
$MadelineProto->messages->sendMessage(['peer' => $update['update']['message']['from_id'], 'message' => $start, 'reply_to_msg_id' => $update['update']['message']['id'], 'parse_mode' => 'markdown', 'reply_markup' => $reply_markup]);
}
} catch (\danog\MadelineProto\RPCErrorException $e) {
diff --git a/bots/pipesbot.php b/bots/pipesbot.php
index 1aa8c78c..369d331c 100755
--- a/bots/pipesbot.php
+++ b/bots/pipesbot.php
@@ -12,18 +12,18 @@ If not, see .
*/
require '../vendor/autoload.php';
-$settings = ["app_info"=>["api_id"=>6,"api_hash"=>"eb06d4abfb49dc3eeb1aeb98ae0f581e"]];
+$settings = ['app_info'=>['api_id'=>6, 'api_hash'=>'eb06d4abfb49dc3eeb1aeb98ae0f581e']];
$MadelineProto = false;
$uMadelineProto = false;
try {
$MadelineProto = \danog\MadelineProto\Serialization::deserialize('pipesbot.madeline');
} catch (\danog\MadelineProto\Exception $e) {
-var_dump($e->getMessage());
+ var_dump($e->getMessage());
}
try {
$uMadelineProto = \danog\MadelineProto\Serialization::deserialize('pwr.madeline');
} catch (\danog\MadelineProto\Exception $e) {
-var_dump($e->getMessage());
+ var_dump($e->getMessage());
}
if (file_exists('token.php') && $MadelineProto === false) {
include_once 'token.php';