for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace LeoCarmo\TelegramBot\Model;
use LeoCarmo\TelegramBot\Traits\SetReplyMarkupButton;
class Message extends Model
{
use SetReplyMarkupButton;
/**
* https://core.telegram.org/bots/api#sendmessage
* @var string
*/
protected $method = 'sendMessage';
* @var array
protected $required = [
'chat_id', 'text'
];
* @var string|integer
protected $chat_id;
protected $text;
* @url https://core.telegram.org/bots/api#formatting-options
protected $parse_mode = 'markdown';
* @var boolean
protected $disable_web_page_preview;
protected $disable_notification;
* @var integer
protected $reply_to_message_id;
* @var
protected $reply_markup;
* Unique identifier for the target chat or username of the target channel
* Required parameter
*
* @param string|integer $chat_id
* @return $this
public function setChatId($chat_id)
$this->chat_id = $chat_id;
return $this;
}
* Text of the message to be sent
* @param string $text
public function setText(string $text)
$this->text = $text;