Skip to content

Commit 6133faa

Browse files
authored
disable verify SSL by default
1 parent ee8e607 commit 6133faa

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/TelegramBotHandler.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,12 @@ protected function write(array $record): void
6666
*/
6767
protected function send(string $message, $option = []): void
6868
{
69-
try {
69+
try {
70+
if(!isset($option['verify'])){
71+
$option['verify'] = false;
72+
}
7073
if (!is_null($this->proxy)) {
71-
$option['proxy'] = $this->proxy;
74+
$option['proxy'] = $this->proxy;a
7275
}
7376
$httpClient = new Client($option);
7477

0 commit comments

Comments
 (0)