PHP Класс Longman\TelegramBot\Commands\AdminCommands\SendtochannelCommand

Наследование: extends Longman\TelegramBot\Commands\AdminCommand
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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