Raw.stories.SendStory

Raw.stories.SendStory

Uploads a telegram story.

stories.sendStory#e4e6694b flags:# pinned:flags.2?true noforwards:flags.4?true fwd_modified:flags.7?true peer:InputPeer media:InputMedia media_areas:flags.5?Vector<MediaArea> caption:flags.0?string entities:flags.1?Vector<MessageEntity> privacy_rules:Vector<InputPrivacyRule> random_id:long period:flags.3?int fwd_from_id:flags.6?InputPeer fwd_from_story:flags.6?int = Updates;
export namespace Raw {
  export namespace stories {
    export class SendStory {
      constructor(params: {
        pinned?: boolean;
        noforwards?: boolean;
        fwdModified?: boolean;
        peer: Raw.TypeInputPeer;
        media: Raw.TypeInputMedia;
        mediaAreas?: Array<Raw.TypeMediaArea>;
        caption?: string;
        entities?: Array<Raw.TypeMessageEntity>;
        privacyRules: Array<Raw.TypeInputPrivacyRule>;
        randomId: bigint;
        period?: number;
        fwdFromId?: Raw.TypeInputPeer;
        fwdFromStory?: number;
      }) {}
    }
  }
}

This is a function constructor, you can use it as method when call invoke

Layer: 185
Constructor ID: 0xe4e6694b

Property

  • pinned : boolean or undefined

    Whether to add the story to the profile automatically upon expiration. if not set, the story will only be added to the archive, see here for more info.

  • noforwards : boolean or undefined

    If set, disables forwards, screenshots, and downloads.

  • fwdModified : boolean or undefined

    Set this flag when reposting stories with fwdFromId+fwdFromId, if the media was modified before reposting.

  • peer : Raw.TypeInputPeer

    The peer to send the story as.

  • media : Raw.TypeInputMedia

    The story media.

  • mediaAreas : Array of Raw.TypeMediaArea or undefined

    Media areas associated to the story, see here for more info.

  • caption : string or undefined

    Story caption.

  • entities : Array of Raw.TypeMessageEntity or undefined

    Message entities for styled text, if allowed by the storiesEntities client configuration parameter.

  • privacyRules : Array of Raw.TypeInputPrivacyRule

    Privacy rules for the story, indicating who can or can’t view the story.

  • randomId : bigint

    Unique client message id required to prevent message resending.

  • period : number or undefined

    Period after which the story is moved to archive (and to the profile if pinned is set), in seconds; must be one of 6 * 3600, 12 * 3600, 86400, or 2 * 86400 for telegram premium users, and 86400 otherwise.

  • fwdFromId : Raw.TypeInputPeer or undefined

    If set, indicates that this story is a repost of story with id fwdFromStory posted by the peer in fwdFromId.

  • fwdFromStory : number or undefined

    If set, indicates that this story is a repost of story with id fwdFromStory posted by the peer in fwdFromId.

Results

Raw.TypeUpdates