set_chat_permissions#

template<class Connector>
api_result<boolean_t, Connector&&> set_chat_permissions(Connector &&connector, set_chat_permissions_args_t args)#
template<class Connector>
api_result<boolean_t, Connector&&> call(Connector &&connector, set_chat_permissions_args_t args)#

connector is any object satisfying connector concept.

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.

struct set_chat_permissions_args_t#

Arguments that should be passed to set_chat_permissions().

variant_t<integer_t, string_t> chat_id#

Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)

chat_permissions_t permissions#

New default chat permissions