Class StreamingContext<S>

Type Parameters

  • S = ContextDefaultState

Hierarchy

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;
    }

    • author_url: string
    • id: number
    • Optional platform?: number
    • Optional shared_post_author_id?: number
    • Optional shared_post_author_url?: string
  • get authorPlatform(): undefined | number
  • Returns the author platform

    • 1 - m.vk.com or other unknown application
    • 2 - iPhone
    • 3 - iPad
    • 4 - Android
    • 5 - Windows Phone
    • 6 - Windows
    • 7 - vk.com or other unknown application

    Returns undefined | number

Methods

  • Returns the attachments

    Parameters

    • type: "audio" | AUDIO

    Returns AudioAttachment[]

  • Parameters

    • type: "audio_message" | AUDIO_MESSAGE

    Returns AudioMessageAttachment[]

  • Parameters

    • type: "graffiti" | GRAFFITI

    Returns GraffitiAttachment[]

  • Parameters

    • type: "doc" | DOCUMENT

    Returns DocumentAttachment[]

  • Parameters

    • type: "market_album" | MARKET_ALBUM

    Returns MarketAlbumAttachment[]

  • Parameters

    • type: "market" | MARKET

    Returns MarketAttachment[]

  • Parameters

    • type: "photo" | PHOTO

    Returns PhotoAttachment[]

  • Parameters

    • type: "story" | STORY

    Returns StoryAttachment[]

  • Parameters

    • type: "video" | VIDEO

    Returns VideoAttachment[]

  • Parameters

    • type: "wall" | WALL

    Returns WallAttachment[]

  • Parameters

    • type: "poll" | POLL

    Returns PollAttachment[]

  • Parameters

    • type: "gift" | GIFT

    Returns GiftAttachment[]

  • Parameters

    • type: "link" | LINK

    Returns LinkAttachment[]

  • Parameters

    • type: "sticker" | STICKER

    Returns StickerAttachment[]

  • Parameters

    • type: "wall_reply" | WALL_REPLY

    Returns WallReplyAttachment[]

  • Checks for the presence of attachments

    Parameters

    • Optional type: AttachmentTypeString | AttachmentType

    Returns boolean

  • Checks whether the context of some of these types

    Parameters

    • rawTypes: string[]

    Returns boolean

  • Returns data for JSON

    Returns object

Generated using TypeDoc