|
@@ -109,15 +109,17 @@ 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);
|
|
|
- $topService = new TopUpService();
|
|
|
|
|
- $res = $topService->scan($chatId, $messageId);
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- $telegram->deleteMessage([
|
|
|
|
|
- 'chat_id' => $chatId,
|
|
|
|
|
- 'message_id' => $messageId,
|
|
|
|
|
|
|
+ $telegram->sendMessage([
|
|
|
|
|
+ 'chat_id'=>$chatId,
|
|
|
|
|
+ 'text'=>$type
|
|
|
]);
|
|
]);
|
|
|
- $telegram->sendPhoto($res);
|
|
|
|
|
|
|
+// $topService = new TopUpService();
|
|
|
|
|
+// $res = $topService->scan($chatId, $messageId);
|
|
|
|
|
+// $telegram->deleteMessage([
|
|
|
|
|
+// 'chat_id' => $chatId,
|
|
|
|
|
+// 'message_id' => $messageId,
|
|
|
|
|
+// ]);
|
|
|
|
|
+// $telegram->sendPhoto($res);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//点击充值按钮
|
|
//点击充值按钮
|