Telegram Bot

dev
GeekQu 7 years ago
parent fa6026c4c9
commit 33aeabf077
No known key found for this signature in database
GPG Key ID: F0EEABFCD04A5891

@ -92,7 +92,9 @@ class Callback
'reply_to_message_id' => null,
'reply_markup' => json_encode(
[
'inline_keyboard' => Reply::getInlinekeyboard()
'inline_keyboard' => [
Reply::getInlinekeyboard()
]
]
),
];
@ -113,7 +115,9 @@ class Callback
'reply_to_message_id' => null,
'reply_markup' => json_encode(
[
'inline_keyboard' => Reply::getInlinekeyboard()
'inline_keyboard' => [
Reply::getInlinekeyboard()
]
]
),
];

@ -68,7 +68,7 @@ class HelpCommand extends Command
} else {
// 群组
if (Config::get('new_telegram_group_quiet') === true) {
if (Config::get('new_telegram_group_quiet') === true || strpos($Message->getText(), '/' . $this->name) !== 0) {
// 群组中不回应
return;
}

@ -83,6 +83,9 @@ class UnbindCommand extends Command
}
$text = '发送 **/unbind 账户邮箱** 进行解绑.';
if ($MessageText != '') {
$text = '键入的 Email 地址与您的账户不匹配.';
}
// 回送信息
$this->replyWithMessage(

@ -66,16 +66,20 @@ class Reply
case 'user.index':
// 用户中心
if ($user->class > 0) {
$text = '尊敬的 VIP ' . $user->class . '您好:';
$text = '尊敬的 VIP ' . $user->class . ' 您好:';
} else {
$text = '尊敬的用户您好:';
}
$text .= (PHP_EOL . PHP_EOL .
'当前余额:' .
'在线设备:' .
'端口速率:' .
'上次使用:' .
'过期时间:');
'当前余额:' . $user->money .
PHP_EOL .
'在线设备:' . ($user->node_connector != 0 ? $user->online_ip_count() . '/' . $user->node_connector : $user->online_ip_count() . '/ 不限制') .
PHP_EOL .
'端口速率:' . ($user->node_speedlimit != 0 ? $user->node_speedlimit . 'Mbps' : '无限制') .
PHP_EOL .
'上次使用:' . $user->lastSsTime() .
PHP_EOL .
'过期时间:' . $user->class_expire);
$return = [
'text' => $text,
'keyboard' => [

Loading…
Cancel
Save