Skip to content

toggleSupergroupIsAllHistoryAvailable

Sahri Riza Umami edited this page Jun 23, 2018 · 1 revision

Toggles whether the message history of a supergroup is available to new members; requires appropriate administrator rights in the supergroup.

toggleSupergroupIsAllHistoryAvailable(supergroup_id, is_all_history_available, callback, data)
Field Type Description
supergroup_id int32 The identifier of the supergroup.
is_all_history_available Bool The new value of is_all_history_available.

Example

  • Toggles whether the message history of supergroup 1234567890 is available to new members.

    toggleSupergroupIsAllHistoryAvailable(1234567890, 1)

    Response:

    {
      ["@type"] = "ok"
    }
  • Toggles whether the message history of supergroup 1234567890 is not available to new members.

    toggleSupergroupIsAllHistoryAvailable(1234567890, 0)

    Response:

    {
      ["@type"] = "ok"
    }

Frequently Asked Questions
The Functions

Clone this wiki locally