Skip to content

createNewSecretChat

Sahri Riza Umami edited this page Sep 9, 2017 · 4 revisions

Creates new secret chat, returns created chat.

createNewSecretChat(user_id)
Field Type Description
user_id int32 Identifier of a user to create secret chat with

Example

Creates new secret chat with user 133780085.

createNewSecretChat(133780085)

Response:

{
  _ = "chat",
  client_data = "",
  id = "-1979302587633",
  is_pinned = false,
  last_read_inbox_message_id = 0,
  last_read_outbox_message_id = 0,
  notification_settings = {
    _ = "notificationSettings",
    mute_for = 0,
    show_preview = true,
    sound = "default"
  },
  order = 0,
  photo = {
    _ = "chatPhoto",
    big = {
      _ = "file",
      id = 274,
      is_being_downloaded = false,
      is_being_uploaded = false,
      local_size = 0,
      path = "",
      persistent_id = "AQADBQADs6cxG8uUIBYACDcdzDIABAqdBynDDuIi8zoCAAEC",
      remote_size = 0,
      size = 0
    },
    small = {
      _ = "file",
      id = 273,
      is_being_downloaded = false,
      is_being_uploaded = false,
      local_size = 0,
      path = "",
      persistent_id = "AQADBQADs6cxG8uUIBYACDcdzDIABGyfLe1irdwv8ToCAAEC",
      remote_size = 0,
      size = 0
    }
  },
  reply_markup_message_id = 0,
  title = "Just another Telegram user",
  type = {
    _ = "chatTypeSecret",
    secret_chat_id = 697402367,
    user_id = 133780085
  },
  unread_count = 0
}

Frequently Asked Questions
The Functions

Clone this wiki locally