Class SetChatPermissionsMethod.

Use this method to set default chat permissions for all members. The bot must be an administrator in the group or a supergroup for this to work and must have the can_restrict_members admin rights. Returns True on success.

see
package Default

 Methods

create()

create(integer|string $chatId, \TgBotApi\BotApiBase\Type\ChatPermissionsType $permissions) : \TgBotApi\BotApiBase\Method\SetChatPermissionsMethod
Static

Parameters

$chatId

integerstring

$permissions

\TgBotApi\BotApiBase\Type\ChatPermissionsType

Returns

\TgBotApi\BotApiBase\Method\SetChatPermissionsMethod

 Properties

 

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

$chatId : integer | string

Default

 

$permissions

$permissions : \TgBotApi\BotApiBase\Type\ChatPermissionsType

Default