Skip to content

getSecretChat

Sahri Riza Umami edited this page Jun 6, 2018 · 6 revisions

Returns information about a secret chat by its identifier.
This is an offline request.

getSecretChat(secret_chat_id)
Field Type Description
secret_chat_id int32 Secret chat identifier

Example

  • Returns information about secret chat 697402367.

    getSecretChat(697402367)

    Response:

    {
      ["@type"] = "secretChat",
      id = 697402367,
      is_outbound = true,
      key_hash = "MaemNasi+t8v9kQLvka0sFMO615eQCJZ68y4UFy8Rmayo5wF",
      layer = 73,
      state = {
        ["@type"] = "secretChatStateReady"
      },
      ttl = 0,
      user_id = 123456789
    }  

Frequently Asked Questions
The Functions

Clone this wiki locally