账户解绑增加提示

Admin-mod-add-vmess-sub
GeekQu 7 years ago
parent ee4060f8ab
commit ae330b454c
No known key found for this signature in database
GPG Key ID: F0EEABFCD04A5891

@ -650,9 +650,10 @@ class UserCallback
// Telegram 账户解绑
$Data['AllowEditMessage'] = false;
$sendMessage = [
'text' => '发送 <strong>/unbind 账户邮箱</strong> 进行解绑.',
'text' => \App\Utils\Telegram\Commands\UnbindCommand::sendtext(),
'disable_web_page_preview' => false,
'reply_to_message_id' => null,
'parse_mode' => 'Markdown',
'reply_markup' => null
];
break;

@ -78,7 +78,7 @@ class UnbindCommand extends Command
return;
}
$text = '发送 **/unbind 账户邮箱** 进行解绑.';
$text = self::sendtext();
if ($MessageText != '') {
$text = '键入的 Email 地址与您的账户不匹配.';
}
@ -92,4 +92,13 @@ class UnbindCommand extends Command
);
}
}
public function sendtext()
{
$text = '发送 **/unbind 账户邮箱** 进行解绑.';
if (Config::get('unbind_kick_member') === true) {
$text .= PHP_EOL . PHP_EOL . '根据管理员的设定,您解绑账户将会被自动移出用户群.';
}
return $text;
}
}

Loading…
Cancel
Save