Skip to content

createNewSecretChat

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

Creates a new secret chat.
Returns the newly created chat.

createNewSecretChat(user_id, callback, data)
Field Type Description
user_id int32 Identifier of the target user.

Example

  • Creates new secret chat with user 133780085.

    createNewSecretChat(133780085)

    Response:

    {
      ["@type"] = "chat",
      can_be_reported = false,
      client_data = "",
      id = "-1999220738443",
      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 = 10,
          ["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 = "AQADBQADvKcxG-t28AEACEIpHSwABDCcHxjsa4E_sL4AAgI",
            is_uploading_active = false,
            is_uploading_completed = true,
            uploaded_size = 0
          },
          size = 0
        },
        small = {
          ["@type"] = "file",
          expected_size = 0,
          id = 9,
          ["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 = "AQADBQADvKcxG-t28AEACEIpHSwABEVfAAH9wVzjlK6-AAIC",
            is_uploading_active = false,
            is_uploading_completed = true,
            uploaded_size = 0
          },
          size = 0
        }
      },
      reply_markup_message_id = 0,
      title = "si_hekel",
      type = {
        ["@type"] = "chatTypeSecret",
        secret_chat_id = 779261557,
        user_id = 133780085
      },
      unread_count = 0,
      unread_mention_count = 0
    }

Frequently Asked Questions
The Functions

Clone this wiki locally