for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace LeoCarmo\TelegramBot\Model;
class ChatAction extends Model
{
/**
* https://core.telegram.org/bots/api#sendchataction
* @var string
*/
protected $method = 'sendChatAction';
* @var array
protected $required = [
'chat_id', 'action'
];
* @var string|integer
protected $chat_id;
protected $action;
* 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;
}
* Type of action to broadcast. Choose one, depending on what the user is about to receive:
* typing for text messages
* upload_photo for photos
* record_video or upload_video for videos
* record_audio or upload_audio for audio files
* upload_document for general files
* find_location for location data
* record_video_note or upload_video_note for video notes
* @param string $action
public function setAction(string $action)
$this->action = $action;