@vk-io/streaming
    Preparing search index...

    Class StreamingContext<S>

    Type Parameters

    • S = ContextDefaultState

    Hierarchy

    Indexable

    • [key: string]: any
    Index

    Constructors

    Properties

    $groupId?: number
    api: API
    attachments: (Attachment<object, string> | ExternalAttachment<object, string>)[]
    state: S
    subTypes: string[]
    type: string
    upload: Upload

    Accessors

    • get "[toStringTag]"(): string

      Returns custom tag

      Returns string

    • get author(): {
          author_url: string;
          id: number;
          platform?: number;
          shared_post_author_id?: number;
          shared_post_author_url?: string;
      }

      Returns the information of author

      Returns {
          author_url: string;
          id: number;
          platform?: number;
          shared_post_author_id?: number;
          shared_post_author_url?: string;
      }

    Methods

    • Returns the attachments

      Parameters

      • type: "audio" | AUDIO

      Returns AudioAttachment[]

    • Returns the attachments

      Parameters

      • type: "audio_message" | AUDIO_MESSAGE

      Returns AudioMessageAttachment[]

    • Returns the attachments

      Parameters

      • type: "graffiti" | GRAFFITI

      Returns GraffitiAttachment[]

    • Returns the attachments

      Parameters

      • type: "doc" | DOCUMENT

      Returns DocumentAttachment[]

    • Returns the attachments

      Parameters

      • type: "market_album" | MARKET_ALBUM

      Returns MarketAlbumAttachment[]

    • Returns the attachments

      Parameters

      • type: "market" | MARKET

      Returns MarketAttachment[]

    • Returns the attachments

      Parameters

      • type: "photo" | PHOTO

      Returns PhotoAttachment[]

    • Returns the attachments

      Parameters

      • type: "story" | STORY

      Returns StoryAttachment[]

    • Returns the attachments

      Parameters

      • type: "video" | VIDEO

      Returns VideoAttachment[]

    • Returns the attachments

      Parameters

      • type: "wall" | WALL

      Returns WallAttachment[]

    • Returns the attachments

      Parameters

      • type: "poll" | POLL

      Returns PollAttachment[]

    • Returns the attachments

      Parameters

      • type: "gift" | GIFT

      Returns GiftAttachment[]

    • Returns the attachments

      Parameters

      • type: "link" | LINK

      Returns LinkAttachment[]

    • Returns the attachments

      Parameters

      • type: "sticker" | STICKER

      Returns StickerAttachment[]

    • Returns the attachments

      Parameters

      • type: "wall_reply" | WALL_REPLY

      Returns WallReplyAttachment[]

    • Checks for the presence of attachments

      Parameters

      • Optionaltype: AttachmentTypeString | AttachmentType

      Returns boolean

    • Checks whether the context of some of these types

      Parameters

      • rawTypes: string[]

      Returns boolean

    • Returns data for JSON

      Returns object