Skip to content

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

Class: StoryAttachment ​

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

This object represents a story.

Documentation

Extends ​

Constructors ​

Constructor ​

new StoryAttachment(payload): StoryAttachment

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

Parameters ​

ParameterType
payloadTelegramStory

Returns ​

StoryAttachment

Inherited from ​

Story.constructor

Properties ​

PropertyTypeInherited fromDefined in
attachmentTypeAttachmentTypeAttachment.attachmentTypecontexts/index.d.ts:1115
payloadTelegramStoryStory.payloadcontexts/index.d.ts:1099

Accessors ​

[toStringTag] ​

Get Signature ​

get [toStringTag](): string

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

MDN

Returns ​

string

Inherited from ​

Story.[toStringTag]


chat ​

Get Signature ​

get chat(): Chat

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

Chat that posted the story

Returns ​

Chat

Inherited from ​

Story.chat


id ​

Get Signature ​

get id(): number

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

Unique identifier for the story in the chat

Returns ​

number

Inherited from ​

Story.id