Skip to content

Commit ee8e607

Browse files
authored
Update TelegramBotHandler.php
Bug fix strpos result
1 parent 49ae7ff commit ee8e607

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TelegramBotHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ protected function send(string $message, $option = []): void
7272
}
7373
$httpClient = new Client($option);
7474

75-
if (strpos($this->botApi, 'https://api.telegram.org')) {
75+
if (strpos($this->botApi, 'https://api.telegram.org') != -1) {
7676
$url = $this->botApi . $this->token . '/SendMessage';
7777
} else {
7878
$url = $this->botApi;
@@ -91,4 +91,4 @@ protected function send(string $message, $option = []): void
9191

9292
}
9393
}
94-
}
94+
}

0 commit comments

Comments
 (0)