Class RestrictChatMemberMethod.

see
package Default

 Methods

create()

create($chatId, integer $userId, \TgBotApi\BotApiBase\Type\ChatPermissionsType $chatPermissionsType, array|null $data = null) : \TgBotApi\BotApiBase\Method\RestrictChatMemberMethod
Static

Parameters

$chatId

$userId

integer

$chatPermissionsType

\TgBotApi\BotApiBase\Type\ChatPermissionsType

$data

arraynull

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

Returns

\TgBotApi\BotApiBase\Method\RestrictChatMemberMethod

createOld()

createOld($chatId, integer $userId, array|null $data = null) : \TgBotApi\BotApiBase\Method\RestrictChatMemberMethod
Static
deprecated
see

Parameters

$chatId

$userId

integer

$data

arraynull

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

Returns

\TgBotApi\BotApiBase\Method\RestrictChatMemberMethod

fill()

fill(array $data, array $forbidden = array()
Inherited

Parameters

$data

array

$forbidden

array

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

 Properties

 

Optional. Pass True, if the user may add web page previews to their messages, implies can_send_media_messages.

$canAddWebPagePreviews : boolean | null

Default

deprecated
 

Optional. Pass True, if the user can send audios, documents, photos, videos, video notes and voice notes, implies can_send_messages.

$canSendMediaMessages : boolean | null

Default

deprecated
 

Optional. Pass True, if the user can send text messages, contacts, locations and venues.

$canSendMessages : boolean | null

Default

deprecated
 

Optional. Pass True, if the user can send animations, games, stickers and use inline bots, implies can_send_media_messages.

$canSendOtherMessages : boolean | null

Default

deprecated
 

Unique identifier for the target chat or username of the target channel (in the format @channelusername).

$chatId : integer | string

Default

 

New user permissions.

$permissions : \TgBotApi\BotApiBase\Type\ChatPermissionsType

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