diff --git a/BOT.php b/BOT.php index e62f27a..ee28801 100644 --- a/BOT.php +++ b/BOT.php @@ -24,6 +24,11 @@ require_once(PATH.'classes'.DIRECTORY_SEPARATOR.TYPE.DIRECTORY_SEPARATOR.'init.p $plugin_sendto = $from; require_once $value; break; + }elseif (preg_match("/^(".preg_quote($TAG, '/').$plugin_name.")|(".preg_quote($TAG, '/').$plugin_name.preg_quote('@').BOT_NAME.")$/", $text)) { + $plugin_text = $matches[2]; + $plugin_sendto = $from; + require_once $value; + break; } } } diff --git a/classes/Telegram-Bot/Base.php b/classes/Telegram-Bot/Base.php index 8d6fedd..ee7d090 100644 --- a/classes/Telegram-Bot/Base.php +++ b/classes/Telegram-Bot/Base.php @@ -1,5 +1,4 @@ =5.3.0", + } +} \ No newline at end of file diff --git a/plugins/help.php b/plugins/help.php index 8ec4849..fee840e 100644 --- a/plugins/help.php +++ b/plugins/help.php @@ -1,6 +1,6 @@ msg($plugin_sendto, $msg); }else{