From 487cefb41895a7be5b2aba49a6801a51ec8e9fea Mon Sep 17 00:00:00 2001 From: GeekQu Date: Thu, 26 Dec 2019 23:38:21 +0800 Subject: [PATCH] Telegram Bot --- app/Utils/Telegram/Reply.php | 40 ++++++++++++++++++++++++++++-------- 1 file changed, 31 insertions(+), 9 deletions(-) diff --git a/app/Utils/Telegram/Reply.php b/app/Utils/Telegram/Reply.php index 28710b70..3fd6a222 100644 --- a/app/Utils/Telegram/Reply.php +++ b/app/Utils/Telegram/Reply.php @@ -127,20 +127,42 @@ class Reply } $keyboard = [ [ - 'text' => '重置订阅链接', - 'callback_data' => 'user.edit.update_link' + [ + 'text' => '重置订阅链接', + 'callback_data' => 'user.edit.update_link' + ], + [ + 'text' => '重置链接密码', + 'callback_data' => 'user.edit.update_passwd' + ] ], [ - 'text' => '重置链接密码', - 'callback_data' => 'user.edit.update_passwd' - ] + [ + 'text' => '更改加密方式', + 'callback_data' => 'user.edit.encrypt' + ], + [ + 'text' => '更改协议类型', + 'callback_data' => 'user.edit.protocol' + ] + ], + [ + [ + 'text' => '更改混淆类型', + 'callback_data' => 'user.edit.obfs' + ], + ], + [ + [ + 'text' => '每日邮件接收', + 'callback_data' => 'user.edit.sendemail' + ], + ], + $back ]; $return = [ 'text' => $text, - 'keyboard' => [ - $keyboard, - $back - ], + 'keyboard' => $keyboard, ]; break; }