Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/TelegramBotHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,41 +13,41 @@ class TelegramBotHandler extends AbstractProcessingHandler implements HandlerInt
* text parameter in sendMessage method
* @see https://core.telegram.org/bots/api#sendmessage
*/
private const TELEGRAM_MESSAGE_SIZE = 4096;
protected const TELEGRAM_MESSAGE_SIZE = 4096;

/**
* bot api url
* @var string
*/
private $botApi;
protected $botApi;

/**
* Telegram bot access token provided by BotFather.
* Create telegram bot with https://telegram.me/BotFather and use access token from it.
* @var string
*/
private $token;
protected $token;

/**
* if telegram is blocked in your region you can use proxy
* @var null
*/
private $proxy;
protected $proxy;

/**
* Telegram channel name.
* Since to start with '@' symbol as prefix.
* @var string
*/
private $chatId;
protected $chatId;

/**
* If chat groups are used instead of telegram channels,
* and the ability to set topics on groups is enabled,
* this configuration can be utilized.
* @var string|null
*/
private $topicId;
protected $topicId;

/**
* @param string $token Telegram bot access token provided by BotFather
Expand Down