Skip to content

createSecretChat

Sahri Riza Umami edited this page Jul 2, 2018 · 4 revisions

Returns an existing chat corresponding to a known secret chat.

createSecretChat(secret_chat_id, callback, data)
Field Type Description
secret_chat_id int32 SecretChat identifier

Example

  • Returns existing chat corresponding to 926994922 chat.

    createSecretChat(926994922)

    Response:

    {
      ["@type"] = "chat",
      client_data = "",
      id = "-1999073005078",
      is_pinned = false,
      last_read_inbox_message_id = 0,
      last_read_outbox_message_id = 0,
      notification_settings = {
        ["@type"] = "notificationSettings",
        mute_for = 0,
        show_preview = true,
        sound = "default"
      },
      order = "0",
      photo = {
        ["@type"] = "chatPhoto",
        big = {
          ["@type"] = "file",
          expected_size = 0,
          id = 2,
          ["local"] = {
            ["@type"] = "localFile",
            can_be_deleted = false,
            can_be_downloaded = true,
            downloaded_prefix_size = 0,
            downloaded_size = 0,
            is_downloading_active = false,
            is_downloading_completed = false,
            path = ""
          },
          remote = {
            ["@type"] = "remoteFile",
            id = "AQADBQADzacxG1ACfAEACLIXHSwABDkQ5rMLq76zojAAAgI",
            is_uploading_active = false,
            is_uploading_completed = true,
            uploaded_size = 0
          },
          size = 0
        },
        small = {
          ["@type"] = "file",
          expected_size = 0,
          id = 1,
          ["local"] = {
            ["@type"] = "localFile",
            can_be_deleted = false,
            can_be_downloaded = true,
            downloaded_prefix_size = 0,
            downloaded_size = 0,
            is_downloading_active = false,
            is_downloading_completed = false,
            path = ""
          },
          remote = {
            ["@type"] = "remoteFile",
            id = "AQADBQADzacxG1ACfAEACLIXHSwABGJb2dSNxephoDAAAgI",
            is_uploading_active = false,
            is_uploading_completed = true,
            uploaded_size = 0
          },
          size = 0
        }
      },
      reply_markup_message_id = 0,
      title = "Mentari",
      type = {
        ["@type"] = "chatTypeSecret",
        secret_chat_id = 926994922,
        user_id = 133780085
      },
      unread_count = 0,
      unread_mention_count = 0
    }

Frequently Asked Questions
The Functions

Clone this wiki locally