fix jibit error
This commit is contained in:
@@ -786,11 +786,13 @@ TXT;
|
||||
|
||||
private function sendTelegram(string $token, string $chatId, string $message): \Illuminate\Http\Client\Response
|
||||
{
|
||||
// تلگرام مستقیم از سرور اغلب فیلتر است — از پروکسی wwwapp استفاده میشود (مثل کد قدیمی)
|
||||
return Http::withOptions(Controller::httpClientOptions())
|
||||
->timeout(6)
|
||||
->post("https://api.telegram.org/bot{$token}/sendMessage", [
|
||||
'chat_id' => $chatId,
|
||||
'text' => $message,
|
||||
->get('https://api.wwwapp.ir/telegran_send.php', [
|
||||
'chatId' => $chatId,
|
||||
'message' => $message,
|
||||
'botToken' => $token,
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -862,12 +864,12 @@ TXT;
|
||||
return max(0, $minSeconds - (now()->timestamp - $lastSent));
|
||||
}
|
||||
|
||||
/** @return array<int, string> */
|
||||
private function hasPriceChannelAccess(): bool
|
||||
{
|
||||
return $this->config->getBool('price_channel_access', false);
|
||||
}
|
||||
|
||||
/** @return array<int, string> */
|
||||
private function parseList(string $raw): array
|
||||
{
|
||||
$parts = preg_split('/[,\n]+/', trim($raw)) ?: [];
|
||||
|
||||
Reference in New Issue
Block a user