Skip to content

getGroupsInCommon

Sahri Riza Umami edited this page Jul 1, 2018 · 1 revision

Returns a list of common chats with a given user.
Chats are sorted by their type and creation date

getGroupsInCommon(user_id, offset_chat_id, limit, callback, data)
Field Type Description
user_id int32 User identifier.
offset_chat_id int53 Chat identifier starting from which to return chats; use 0 for the first request.
limit int32 Maximum number of chats to be returned; up to 100.

Example

  • Get a list of common chats with user 133780085.

    getGroupsInCommon(133780085)

    Response:

    {
      ["@type"] = "chats",
      chat_ids = {
        "-1008989898989",
        "-1009090909090"
      }
    }

Frequently Asked Questions
The Functions

Clone this wiki locally