|
|
@@ -258,6 +258,13 @@ class TelegramWebHook extends Controller
|
|
|
// $telegram->sendMessage($res);
|
|
|
}
|
|
|
|
|
|
+ //查看开奖历史图片
|
|
|
+ $pattern = "/^showLotteryHistory@@\d+$/";
|
|
|
+ if (preg_match($pattern, $data)) {
|
|
|
+ $id = preg_replace('/^showLotteryHistory@@/', '', $data);
|
|
|
+ $res = IssueService::sendLotteryImage($chatId, $id);
|
|
|
+ }
|
|
|
+
|
|
|
//选择投注记录
|
|
|
$pattern = "/^betRecordType@@\d+$/";
|
|
|
if (preg_match($pattern, $data)) {
|
|
|
@@ -761,12 +768,7 @@ class TelegramWebHook extends Controller
|
|
|
$telegram->editMessageText($res);
|
|
|
}
|
|
|
|
|
|
- //查看开奖历史图片
|
|
|
- $pattern = "/^showLotteryHistory@@\d+$/";
|
|
|
- if (preg_match($pattern, $data)) {
|
|
|
- $id = preg_replace('/^showLotteryHistory@@/', '', $data);
|
|
|
- $res = IssueService::sendLotteryImage($chatId, $id);
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
//选择提现地址
|
|
|
$pattern = "/^withdrawAddress@@choose\d+$/";
|