|
@@ -109,17 +109,13 @@ class TelegramWebHook extends Controller
|
|
|
//选择充值地址
|
|
//选择充值地址
|
|
|
if ($data === "topUp@@TRC20" || $data === "topUp@@ERC20") {
|
|
if ($data === "topUp@@TRC20" || $data === "topUp@@ERC20") {
|
|
|
$type = preg_replace('/^topUp@@/', '', $data);
|
|
$type = preg_replace('/^topUp@@/', '', $data);
|
|
|
- $telegram->sendMessage([
|
|
|
|
|
- 'chat_id'=>$chatId,
|
|
|
|
|
- 'text'=>$type
|
|
|
|
|
|
|
+ $topService = new TopUpService();
|
|
|
|
|
+ $res = $topService->scan($chatId, $messageId);
|
|
|
|
|
+ $telegram->deleteMessage([
|
|
|
|
|
+ 'chat_id' => $chatId,
|
|
|
|
|
+ 'message_id' => $messageId,
|
|
|
]);
|
|
]);
|
|
|
-// $topService = new TopUpService();
|
|
|
|
|
-// $res = $topService->scan($chatId, $messageId);
|
|
|
|
|
-// $telegram->deleteMessage([
|
|
|
|
|
-// 'chat_id' => $chatId,
|
|
|
|
|
-// 'message_id' => $messageId,
|
|
|
|
|
-// ]);
|
|
|
|
|
-// $telegram->sendPhoto($res);
|
|
|
|
|
|
|
+ $telegram->sendPhoto($res);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//点击充值按钮
|
|
//点击充值按钮
|