Skip to content

Commit 65b4044

Browse files
authored
Update TelegramBotHandler.php
make class global variable protected to be extendable
1 parent b80938d commit 65b4044

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/TelegramBotHandler.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,41 +13,41 @@ class TelegramBotHandler extends AbstractProcessingHandler implements HandlerInt
1313
* text parameter in sendMessage method
1414
* @see https://core.telegram.org/bots/api#sendmessage
1515
*/
16-
private const TELEGRAM_MESSAGE_SIZE = 4096;
16+
protected const TELEGRAM_MESSAGE_SIZE = 4096;
1717

1818
/**
1919
* bot api url
2020
* @var string
2121
*/
22-
private $botApi;
22+
protected $botApi;
2323

2424
/**
2525
* Telegram bot access token provided by BotFather.
2626
* Create telegram bot with https://telegram.me/BotFather and use access token from it.
2727
* @var string
2828
*/
29-
private $token;
29+
protected $token;
3030

3131
/**
3232
* if telegram is blocked in your region you can use proxy
3333
* @var null
3434
*/
35-
private $proxy;
35+
protected $proxy;
3636

3737
/**
3838
* Telegram channel name.
3939
* Since to start with '@' symbol as prefix.
4040
* @var string
4141
*/
42-
private $chatId;
42+
protected $chatId;
4343

4444
/**
4545
* If chat groups are used instead of telegram channels,
4646
* and the ability to set topics on groups is enabled,
4747
* this configuration can be utilized.
4848
* @var string|null
4949
*/
50-
private $topicId;
50+
protected $topicId;
5151

5252
/**
5353
* @param string $token Telegram bot access token provided by BotFather

0 commit comments

Comments
 (0)