Skip to content

GramIO API Reference / @gramio/contexts/dist / StoryAttachment

Class: StoryAttachment

Defined in: contexts/index.d.ts:816

This object represents a story.

Documentation

Extends

Constructors

Constructor

new StoryAttachment(payload): StoryAttachment

Defined in: contexts/index.d.ts:802

Parameters

ParameterType
payloadTelegramStory

Returns

StoryAttachment

Inherited from

Story.constructor

Properties

PropertyTypeInherited fromDefined in
attachmentTypeAttachmentTypeAttachment.attachmentTypecontexts/index.d.ts:817
payloadTelegramStoryStory.payloadcontexts/index.d.ts:801

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

Defined in: contexts/index.d.ts:804

MDN

Returns

string

Inherited from

Story.[toStringTag]


chat

Get Signature

get chat(): Chat

Defined in: contexts/index.d.ts:808

Chat that posted the story

Returns

Chat

Inherited from

Story.chat


id

Get Signature

get id(): number

Defined in: contexts/index.d.ts:806

Unique identifier for the story in the chat

Returns

number

Inherited from

Story.id