PHP 클래스 Longman\TelegramBot\Commands\AdminCommands\SendtochannelCommand

상속: extends Longman\TelegramBot\Commands\AdminCommand
파일 보기 프로젝트 열기: akalongman/php-telegram-bot

보호된 프로퍼티들

프로퍼티 타입 설명
$conversation Longman\TelegramBot\Conversation Conversation Object
$description string
$name string
$need_mysql boolean
$usage string
$version string

공개 메소드들

메소드 설명
execute ( ) : ServerResponse | mixed Command execute method
executeNoDb ( ) : mixed Execute without db

보호된 메소드들

메소드 설명
publish ( Message $message, integer $channel, string | null $caption = null ) : string Publish a message to a channel and return success or failure message
sendBack ( Message $message, array $data ) : ServerResponse SendBack

메소드 상세

execute() 공개 메소드

Command execute method
public execute ( ) : ServerResponse | mixed
리턴 Longman\TelegramBot\Entities\ServerResponse | mixed

executeNoDb() 공개 메소드

Execute without db
public executeNoDb ( ) : mixed
리턴 mixed

publish() 보호된 메소드

Publish a message to a channel and return success or failure message
protected publish ( Message $message, integer $channel, string | null $caption = null ) : string
$message Longman\TelegramBot\Entities\Message
$channel integer
$caption string | null
리턴 string

sendBack() 보호된 메소드

Received a message, the bot can send a copy of it to another chat/channel. You don't have to care about the type of the message, the function detect it and use the proper REQUEST:: function to send it. $data include all the var that you need to send the message to the proper chat
protected sendBack ( Message $message, array $data ) : ServerResponse
$message Longman\TelegramBot\Entities\Message
$data array
리턴 Longman\TelegramBot\Entities\ServerResponse

프로퍼티 상세

$conversation 보호되어 있는 프로퍼티

Conversation Object
protected Conversation,Longman\TelegramBot $conversation
리턴 Longman\TelegramBot\Conversation

$description 보호되어 있는 프로퍼티

protected string $description
리턴 string

$name 보호되어 있는 프로퍼티

protected string $name
리턴 string

$need_mysql 보호되어 있는 프로퍼티

protected bool $need_mysql
리턴 boolean

$usage 보호되어 있는 프로퍼티

protected string $usage
리턴 string

$version 보호되어 있는 프로퍼티

protected string $version
리턴 string