Skip to content

Commit 3f8058a

Browse files
authored
bug fix external telegram api url
bug fix external telegram api url
1 parent a81fae1 commit 3f8058a

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

7878
if (strpos($this->botApi, 'https://api.telegram.org') != -1) {
79-
$url = $this->botApi . $this->token . '/SendMessage';
80-
} else {
8179
$url = $this->botApi;
80+
} else {
81+
$url = $this->botApi . $this->token . '/SendMessage';
8282
}
8383

8484
$options = [

0 commit comments

Comments
 (0)