$onlyChatPerms
Will check if the chat has the listed permission and return a error message if not.
Parameters
Parameter | Description |
---|---|
permission | permission chat telegram |
messageError | message error |
Example
<AoiClient>.addCommand({
name: "message",
code: `
$onlyChatPerms[can_send_documents;No perms, Error]
`,
});