File tree Expand file tree Collapse file tree 3 files changed +18
-5
lines changed Expand file tree Collapse file tree 3 files changed +18
-5
lines changed Original file line number Diff line number Diff line change 1
1
server {
2
2
listen 80;
3
- server_name telegram-nofity-bot .com;
3
+ server_name telegram-git-notifier .com;
4
4
5
- error_log /var/log/nginx/telegram-nofity-bot -error.log;
6
- access_log /var/log/nginx/telegram-nofity-bot -access.log;
5
+ error_log /var/log/nginx/telegram-git-notifier -error.log;
6
+ access_log /var/log/nginx/telegram-git-notifier -access.log;
7
7
8
8
root /var/www/html/;
9
9
index index.php index.html index.htm;
Original file line number Diff line number Diff line change 3
3
namespace CSlant \TelegramGitNotifierApp \Http \Actions ;
4
4
5
5
use CSlant \TelegramGitNotifier \Bot ;
6
+ use CSlant \TelegramGitNotifier \Exceptions \BotException ;
7
+ use CSlant \TelegramGitNotifier \Exceptions \CallbackException ;
8
+ use CSlant \TelegramGitNotifier \Exceptions \ConfigFileException ;
6
9
use CSlant \TelegramGitNotifier \Exceptions \EntryNotFoundException ;
7
10
use CSlant \TelegramGitNotifier \Exceptions \InvalidViewTemplateException ;
8
11
use CSlant \TelegramGitNotifier \Exceptions \MessageIsEmptyException ;
@@ -25,6 +28,9 @@ class IndexAction
25
28
26
29
protected Request $ request ;
27
30
31
+ /**
32
+ * @throws ConfigFileException
33
+ */
28
34
public function __construct ()
29
35
{
30
36
$ this ->client = new Client ();
@@ -38,10 +44,12 @@ public function __construct()
38
44
* Handle telegram git notifier app
39
45
*
40
46
* @return void
41
- * @throws InvalidViewTemplateException
42
- * @throws SendNotificationException
43
47
* @throws EntryNotFoundException
48
+ * @throws InvalidViewTemplateException
44
49
* @throws MessageIsEmptyException
50
+ * @throws SendNotificationException
51
+ * @throws BotException
52
+ * @throws CallbackException
45
53
*/
46
54
public function __invoke (): void
47
55
{
Original file line number Diff line number Diff line change 4
4
5
5
use CSlant \TelegramGitNotifier \Bot ;
6
6
use CSlant \TelegramGitNotifier \Constants \SettingConstant ;
7
+ use CSlant \TelegramGitNotifier \Exceptions \BotException ;
8
+ use CSlant \TelegramGitNotifier \Exceptions \CallbackException ;
7
9
use CSlant \TelegramGitNotifier \Exceptions \InvalidViewTemplateException ;
8
10
use CSlant \TelegramGitNotifier \Exceptions \MessageIsEmptyException ;
9
11
use CSlant \TelegramGitNotifierApp \Traits \Markup ;
@@ -26,6 +28,8 @@ public function __construct(Bot $bot)
26
28
*
27
29
* @return void
28
30
* @throws MessageIsEmptyException
31
+ * @throws BotException
32
+ * @throws CallbackException
29
33
*/
30
34
public function answerBackButton (string $ callback ): void
31
35
{
@@ -67,6 +71,7 @@ public function answerBackButton(string $callback): void
67
71
* @return void
68
72
* @throws MessageIsEmptyException
69
73
* @throws InvalidViewTemplateException
74
+ * @throws BotException|CallbackException
70
75
*/
71
76
public function handle (): void
72
77
{
You can’t perform that action at this time.
0 commit comments