Skip to content

Commit db491f9

Browse files
committed
bug fix check bot api
1 parent 4f89520 commit db491f9

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
@@ -75,10 +75,10 @@ protected function send(string $message, $option = []): void
7575
}
7676
$httpClient = new Client($option);
7777

78-
if (strpos($this->botApi, 'https://api.telegram.org') == -1) {
78+
if (strpos($this->botApi, 'https://api.telegram.org') == false) {
7979
$url = $this->botApi;
8080
} else {
81-
$url = $this->botApi . $this->token . '/SendMessage';
81+
$url = $this->botApi . $this->token . '/SendMessage';
8282
}
8383

8484
$options = [

0 commit comments

Comments
 (0)