Skip to main content
Latest
method GroupChatOperationsApi.prototype.phoneIdGroupConfigPost
import { GroupChatOperationsApi } from "https://deno.land/x/periskope_maytapi_deno@v1.4.0/index.ts";

Change config of a group conversation. To learn conversation_id you can use /getGroups endpoint. You can change who can edit group info(edit), can send message(send) and disappearing messages enabled(disappear). For edit and send config you can use values "admins" or "all". Disappear only accepts true/false values. Config values are optional. If you want to only change a config you should only use that config's key in request body.

Parameters

phoneId: string

ID of the phone registered to the product, assigned by the database automatically. Can be obtained by calling GET listPhones.

phoneIdGroupConfigPostRequest: PhoneIdGroupConfigPostRequest

Group conversation id and number is required for the actions.

optional
_options: Configuration