|
@@ -500,6 +500,10 @@ class GroupController extends BaseController {
|
|
|
$group_id = (int) $args['group_id'];
|
|
|
$user_id = (int) $args['block_id'];
|
|
|
|
|
|
+ if ($user_id == TG_BOT_ID) {
|
|
|
+ Response::error(CODE_NO_PERMITION, 'can not block TG_BOT');
|
|
|
+ }
|
|
|
+
|
|
|
$this->_checkGroupAdmin($group_id);
|
|
|
|
|
|
$objUserGroup = new UserGroup();
|