SetChatPermissionsRequest

data class SetChatPermissionsRequest(chat_id: String, permissions: ChatPermissions) : TelegramRequest

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.

Constructors

SetChatPermissionsRequest
Link copied to clipboard
fun SetChatPermissionsRequest(chat_id: String, permissions: ChatPermissions)

Properties

chat_id
Link copied to clipboard
val chat_id: String
Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
permissions
Link copied to clipboard
val permissions: ChatPermissions
New default chat permissions