danog\MadelineProto\EventHandler\Story\Story
Author: Daniil Gentili daniil@daniil.it
Represents a Telegram story.
Properties
$pinned:boolWhether this story is pinned$public:boolWhether this story is visible to everyone$closeFriends:boolWhether this story is visible to only close friends of the user (@see Privacy::AllowCloseFriends)$contacts:boolWhether this story is only visible to your countacts$selectedContacts:boolWhether this story is only visible to a select list of contacts$protected:boolWhether this media is protected$edited:boolWhether this story was edited$date:intWhen was the story sent$expireDate:intExpiration date of the story$caption:stringStory 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:?intReaction counter$views:?intView counter$recentViewers:list<int>List of users who recently viewed the story$matches:list<string>Regex matches, if a filter regex is present$matchesAll:array<array-key, (array<array-key, (list{string, int} | null | string)> | mixed)>Regex matches, if a filter multiple match regex is present$senderId:intID of the sender of the story$id:intStory ID
Method list:
reply(string $message, \danog\MadelineProto\ParseMode $parseMode = \danog\MadelineProto\ParseMode::TEXT, (array|null) $replyMarkup = NULL, (integer|null) $scheduleDate = NULL, boolean $silent = false, boolean $background = false, boolean $clearDraft = false, boolean $noWebpage = false, boolean $updateStickersetsOrder = false): \danog\MadelineProto\EventHandler\Messagedelete(): voidexportLink(): stringreport(\danog\MadelineProto\EventHandler\Message\ReportReason $reason, string $message = ''): booleanpin(): voidunpin(): voidview(): booleanaddReaction((integer|string) $reaction, boolean $recent = true): \danog\MadelineProto\EventHandler\Story\StoryReactiondelReaction(boolean $recent = true): \danog\MadelineProto\EventHandler\Story\StoryReactiongetHTML(bool $allowTelegramTags = false): string
Methods:
reply(string $message, \danog\MadelineProto\ParseMode $parseMode = \danog\MadelineProto\ParseMode::TEXT, (array|null) $replyMarkup = NULL, (integer|null) $scheduleDate = NULL, boolean $silent = false, boolean $background = false, boolean $clearDraft = false, boolean $noWebpage = false, boolean $updateStickersetsOrder = false): \danog\MadelineProto\EventHandler\Message
Reply to the story.
Parameters:
$message:stringMessage to send$parseMode:\danog\MadelineProto\ParseModeParse mode$replyMarkup:(array|null)Keyboard information.$scheduleDate:(integer|null)Schedule date.$silent:booleanWhether to send the message silently, without triggering notifications.$background:booleanSend this message as background message$clearDraft:booleanClears the draft field$noWebpage:booleanSet this flag to disable generation of the webpage preview$updateStickersetsOrder:booleanWhether to move used stickersets to top
See also:
\danog\MadelineProto\ParseMode: Indicates a parsing mode for text.\danog\MadelineProto\EventHandler\Message: Represents an incoming or outgoing message.
delete(): void
Delete the story.
exportLink(): string
Export story link e.g: https://t.me/username/s/storyid.
report(\danog\MadelineProto\EventHandler\Message\ReportReason $reason, string $message = ''): boolean
Report a story for violation of telegram’s Terms of Service.
Parameters:
$reason:\danog\MadelineProto\EventHandler\Message\ReportReasonWhy is story being reported$message:stringComment for report moderation
See also:
pin(): void
Pin a story.
unpin(): void
Unpin a story.
view(): boolean
Mark story as read.
addReaction((integer|string) $reaction, boolean $recent = true): \danog\MadelineProto\EventHandler\Story\StoryReaction
Reaction to story.
Parameters:
$reaction:(integer|string)string or int Reaction$recent:boolean
See also:
delReaction(boolean $recent = true): \danog\MadelineProto\EventHandler\Story\StoryReaction
Delete reaction from story.
Parameters:
$recent:booleanstring or int Reaction
See also:
getHTML(bool $allowTelegramTags = false): string
Get an HTML version of the story caption.
Parameters:
$allowTelegramTags:boolWhether to allow telegram-specific tags like tg-spoiler, tg-emoji, mention links and so on…
Generated by danog/phpdoc