|
@@ -26,6 +26,7 @@ use Telegram\Bot\Exceptions\TelegramSDKException;
|
|
|
use Illuminate\Support\Facades\Log;
|
|
|
use App\Models\Config;
|
|
|
use App\Services\GameplayRuleService;
|
|
|
+use App\Services\BetService;
|
|
|
|
|
|
class TelegramWebHook extends Controller
|
|
|
{
|
|
@@ -231,11 +232,8 @@ class TelegramWebHook extends Controller
|
|
|
break;
|
|
|
default:
|
|
|
|
|
|
- $gameplay = GameplayRuleService::bettingRuleVerify($text);
|
|
|
- $this->telegram->sendMessage([
|
|
|
- 'chat_id' => $chatId,
|
|
|
- 'text' => '‼️‼️未知命令,请点击下方菜单按钮选择功能'
|
|
|
- ]);
|
|
|
+ $returnMsg = BetService::bet($chatId,$text);
|
|
|
+ $this->telegram->sendMessage($returnMsg);
|
|
|
}
|
|
|
}
|
|
|
}
|