api.toggleSupergroupIsAllHistoryAvailable()
Toggles whether the message history of a supergroup is available to new members; requires can_change_info administrator right
Parameters
ToggleSupergroupIsAllHistoryAvailableParams:chevron_leftchevron_right
Parameters
Interface
| Name | Type | Description |
|---|---|---|
supergroupId | number | The identifier of the supergroup |
isAllHistoryAvailable | boolean | The new value of is_all_history_available |
Returns
ApiResponse interface:interface ApiResponse {
_: 'toggleSupergroupIsAllHistoryAvailable' | 'error'
airgram: Airgram
request: {
method: 'toggleSupergroupIsAllHistoryAvailable'
params: ToggleSupergroupIsAllHistoryAvailableParams
}
response: |
setState: (nextState: Record<string, unknown>) => void
getState: () => Record<string, unknown>
}