Link Search Menu Expand Document


Back to index

Author: Daniil Gentili

Represents a Telegram story.


  • $pinned: bool Whether this story is pinned
  • $public: bool Whether this story is visible to everyone
  • $closeFriends: bool Whether this story is visible to only close friends of the user (@see Privacy::AllowCloseFriends)
  • $contacts: bool Whether this story is only visible to your countacts
  • $selectedContacts: bool Whether this story is only visible to a select list of contacts
  • $protected: bool Whether this media is protected
  • $edited: bool Whether this story was edited
  • $date: int When was the story sent
  • $expireDate: int Expiration date of the story
  • $caption: string Story caption
  • $entities: list<\MessageEntity> Message entities for story caption
  • $media: \danog\MadelineProto\EventHandler\Media\Gif|\danog\MadelineProto\EventHandler\Media\Photo|\danog\MadelineProto\EventHandler\Media\Video Attached media.
  • $privacy: list<\RuleDestination>
  • $sentReaction: string|int|null Our reaction to the story
  • $reactionCount: ?int Reaction counter
  • $views: ?int View counter
  • $recentViewers: list<int> List of users who recently viewed the story
  • $senderId: int ID of the sender of the story
  • $id: int Story ID

Method list:


reply(string $message, \danog\MadelineProto\ParseMode $parseMode = \danog\MadelineProto\ParseMode::TEXT, array|null $replyMarkup = NULL, int|null $scheduleDate = NULL, bool $silent = false, bool $background = false, bool $clearDraft = false, bool $noWebpage = false, bool $updateStickersetsOrder = false): \danog\MadelineProto\EventHandler\Message

Reply to the story.


  • $message: string Message to send
  • $parseMode: \danog\MadelineProto\ParseMode Parse mode
  • $replyMarkup: array|null Keyboard information.
  • $scheduleDate: int|null Schedule date.
  • $silent: bool Whether to send the message silently, without triggering notifications.
  • $background: bool Send this message as background message
  • $clearDraft: bool Clears the draft field
  • $noWebpage: bool Set this flag to disable generation of the webpage preview
  • $updateStickersetsOrder: bool Whether to move used stickersets to top

See also:

delete(): void

Delete the story.

Export story link e.g:

report(\danog\MadelineProto\EventHandler\Message\ReportReason $reason, string $message = ''): bool

Report a story for violation of telegram’s Terms of Service.


  • $reason: \danog\MadelineProto\EventHandler\Message\ReportReason Why is story being reported
  • $message: string Comment for report moderation

See also:

pin(): void

Pin a story.

unpin(): void

Unpin a story.

view(): bool

Mark story as read.

addReaction(int|string $reaction, bool $recent = true): \danog\MadelineProto\EventHandler\Story\StoryReaction

Reaction to story.


  • $reaction: int|string string or int Reaction
  • $recent: bool

See also:

delReaction(bool $recent = true): \danog\MadelineProto\EventHandler\Story\StoryReaction

Delete reaction from story.


  • $recent: bool string or int Reaction

See also:

getHTML(bool $allowTelegramTags = false): string

Get an HTML version of the story caption.


  • $allowTelegramTags: bool Whether to allow telegram-specific tags like tg-spoiler, tg-emoji, mention links and so on…

Generated by danog/phpdoc