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 undefinedWhether 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 undefinedIf set, disables forwards, screenshots, and downloads.
fwdModified
: boolean or undefinedSet this flag when reposting stories with fwdFromId+fwdFromId, if the media was modified before reposting.
peer
: Raw.TypeInputPeerThe peer to send the story as.
media
: Raw.TypeInputMediaThe story media.
mediaAreas
: Array of Raw.TypeMediaArea or undefinedMedia areas associated to the story, see here for more info.
caption
: string or undefinedStory caption.
entities
: Array of Raw.TypeMessageEntity or undefinedMessage entities for styled text, if allowed by the storiesEntities client configuration parameter.
privacyRules
: Array of Raw.TypeInputPrivacyRulePrivacy rules for the story, indicating who can or can’t view the story.
randomId
: bigintUnique client message id required to prevent message resending.
period
: number or undefinedPeriod 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 undefinedIf set, indicates that this story is a repost of story with id fwdFromStory posted by the peer in fwdFromId.
fwdFromStory
: number or undefinedIf set, indicates that this story is a repost of story with id fwdFromStory posted by the peer in fwdFromId.