From 6bff30cf124db6784976c1e053f43ff76fadee3e Mon Sep 17 00:00:00 2001 From: Manuel1510 Date: Thu, 2 Mar 2017 23:16:07 +0100 Subject: [PATCH] changed channelRoleModerator to channelRoleEditor in addadmin function --- supergroup.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/supergroup.php b/supergroup.php index 6fb3124..7c9c5d8 100644 --- a/supergroup.php +++ b/supergroup.php @@ -49,13 +49,13 @@ function addadmin($update, $MadelineProto, $msg) } if (isset($userid)) { $mention = html_mention($username, $userid); - $channelRoleModerator = [ - '_' => 'channelRoleModerator', + $channelRoleEditor = [ + '_' => 'channelRoleEditor', ]; try { $editadmin = $MadelineProto->channels->editAdmin( ['channel' => $peer, 'user_id' => $userid, - 'role' => $channelRoleModerator ] + 'role' => $channelRoleEditor ] ); $str = $responses['addadmin']['success']; $repl = array(