Class KickChatMemberMethod.

see
package Default

 Methods

KickChatMemberMethod constructor.

create(integer|string $chatId, integer $userId, array|null $data = null) : \TgBotApi\BotApiBase\Method\KickChatMemberMethod
Static

Parameters

$chatId

integerstring

$userId

integer

$data

arraynull

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

Default

 

Optional. Date when the user will be unbanned, \DateTimeInterface.

$untilDate : \DateTimeInterface | null

Default

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

Default