Skip to content

Commit ae982f5

Browse files
committed
fix: update dependency
1 parent 6a094e5 commit ae982f5

File tree

2 files changed

+20
-13
lines changed

2 files changed

+20
-13
lines changed

composer.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@
2222
"name": "Tan Nguyen",
2323
"email": "tannp27@gmail.com",
2424
"homepage": "https://tanhongit.com",
25-
"role": "Lead"
26-
},
27-
{
28-
"name": "Xuan Thinh",
29-
"email": "pxthinh.vn@gmail.com",
3025
"role": "Developer"
3126
}
3227
],
@@ -42,10 +37,10 @@
4237
},
4338
"require": {
4439
"php": "^8.1",
45-
"cslant/telegram-git-notifier": "^v1.3.2"
40+
"cslant/telegram-git-notifier": "^v1.3"
4641
},
4742
"require-dev": {
48-
"friendsofphp/php-cs-fixer": "^v3.37.1",
43+
"friendsofphp/php-cs-fixer": "^v3.37",
4944
"nunomaduro/collision": "^7.10",
5045
"nunomaduro/larastan": "^2.6",
5146
"orchestra/testbench": "^8.14",

src/Http/Actions/WebhookAction.php

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,36 +19,48 @@ public function __construct()
1919
/**
2020
* Set webhook for telegram bot.
2121
*
22-
* @return false|string
22+
* @return string
2323
*
2424
* @throws WebhookException
2525
*/
26-
public function set(): false|string
26+
public function set(): string
2727
{
2828
return $this->webhook->setWebhook();
2929
}
3030

3131
/**
3232
* Delete webhook for telegram bot.
3333
*
34-
* @return false|string
34+
* @return string
3535
*
3636
* @throws WebhookException
3737
*/
38-
public function delete(): false|string
38+
public function delete(): string
3939
{
4040
return $this->webhook->deleteWebHook();
4141
}
4242

4343
/**
4444
* Get webhook update.
4545
*
46-
* @return false|string
46+
* @return string
4747
*
4848
* @throws WebhookException
4949
*/
50-
public function getUpdates(): false|string
50+
public function getUpdates(): string
5151
{
5252
return $this->webhook->getUpdates();
5353
}
54+
55+
/**
56+
* Get webhook info.
57+
*
58+
* @return string
59+
*
60+
* @throws WebhookException
61+
*/
62+
public function getWebHookInfo(): string
63+
{
64+
return $this->webhook->getWebHookInfo();
65+
}
5466
}

0 commit comments

Comments
 (0)