Class KickChatMemberMethod.
Methods
KickChatMemberMethod constructor.
create(integer|string $chatId, integer $userId, array|null $data = null
) : \TgBotApi\BotApiBase\Method\KickChatMemberMethod
Static
Parameters
$chatId
integer
string
$userId
integer
$data
array
null
Exceptions
\TgBotApi\BotApiBase\Exception\BadArgumentException |
|
Returns
\TgBotApi\BotApiBase\Method\KickChatMemberMethod
fill()
fill(array $data, array $forbidden = array()
)
Inherited
Parameters
$data
array
$forbidden
array
Exceptions
\TgBotApi\BotApiBase\Exception\BadArgumentException |
|
Properties
Unique identifier for the target chat or username of the target channel (in the format @channelusername).
$chatId : integer | string
Optional. Date when the user will be unbanned, \DateTimeInterface.
$untilDate : \DateTimeInterface | null
If user is banned for more than 366 days or less than 30 seconds
from the current time they are considered to be banned forever.
Unique identifier of the target user.
$userId : integer