danog\MadelineProto\EventHandler\Message\SecretMessage
Author: Daniil Gentili daniil@daniil.it
Represents New encrypted message.
Properties
$message:stringContent of the message$fwdInfo:?danog\MadelineProto\EventHandler\ForwardedInfoInfo about a forwarded message$command:?stringBot command (if present)$commandType:?danog\MadelineProto\EventHandler\CommandTypeBot command type (if present)$commandArgs:list<string>Bot command arguments (if present)$protected:boolWhether this message is protected$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$media:(danog\MadelineProto\EventHandler\Media\Audio | danog\MadelineProto\EventHandler\Media\Document | danog\MadelineProto\EventHandler\Media\DocumentPhoto | danog\MadelineProto\EventHandler\Media\Gif | danog\MadelineProto\EventHandler\Media\MaskSticker | danog\MadelineProto\EventHandler\Media\Photo | danog\MadelineProto\EventHandler\Media\RoundVideo | danog\MadelineProto\EventHandler\Media\Sticker | danog\MadelineProto\EventHandler\Media\Video | danog\MadelineProto\EventHandler\Media\Voice | null)Attached media.$fromScheduled:boolWhether this message is a sent scheduled message$viaBotId:?intIf the message was generated by an inline query, ID of the bot that generated it$editDate:?intLast edit date of the message$editHide:boolIndicates if the post has a hidden edit, which is an edit that does not modify the actual message content. Used to signify non-content related updates such as reactions.$keyboard:(danog\MadelineProto\EventHandler\Keyboard\InlineKeyboard | danog\MadelineProto\EventHandler\Keyboard\ReplyKeyboard | null)Inline or reply keyboard.$imported:boolWhether this message was imported from a foreign chat service$psaType:?stringFor Public Service Announcement messages, the PSA type$nextSent:?self$views:?intView counter for messages from channels or forwarded from channels$forwards:?intForward counter for messages from channels or forwarded from channels$signature:?stringAuthor of the post, if signatures are enabled for messages from channels or forwarded from channels$entities:list<MessageEntity>Message entities for styled text$groupedId:?intGroup ID for albums.
All messages associated to the same album will have an identical grouped ID.
$poll:?danog\MadelineProto\EventHandler\AbstractPollThe poll$scheduled:boolWhether this message is a scheduled message$id:intMessage ID$out:boolWhether the message is outgoing$chatId:intID of the chat where the message was sent$senderId:intID of the sender of the message$replyToMsgId:?intID of the message to which this message is replying$date:intWhen was the message sent$topicId:?intID of the forum topic where the message was sent$threadId:?intID of the message thread where the message was sent$replyToScheduled:boolWhether this is a reply to a scheduled message$mentioned:boolWhether we were mentioned in this message$silent:boolWhether this message was sent without any notification (silently)$ttlPeriod:?intTime-to-live of the message
Method list:
getReply(string $class = 'danog\\MadelineProto\\EventHandler\\Message\\SecretMessage'): ?\danog\MadelineProto\EventHandler\Message\SecretMessagedelete(boolean $revoke = true): voidscreenShot(): \danog\MadelineProto\EventHandler\Message\Service\DialogScreenshotTakenpin(bool $pmOneside = false, bool $silent = false): voidunpin(bool $pmOneside = false, bool $silent = false): ?\danog\MadelineProto\EventHandler\UpdategetOurReactions(): list<(string|int)>report(\danog\MadelineProto\EventHandler\Message\ReportReason $reason, string $message): boolsaveContact(string $firstName, (string|null) $lastName = NULL, (string|null) $phoneNumber = NULL, bool $addPhonePrivacyException = false): voidremoveContact(): voidinviteToChannel((string|int) $channel): voidaddReaction((string|int) $reaction, bool $big = false, bool $addToRecent = true): list<(string|int)>delReaction((string|int) $reaction): list<(string|int)>translate(string $toLang): stringeditText(string $message, \danog\MadelineProto\ParseMode $parseMode = \danog\MadelineProto\ParseMode::TEXT, (array|null) $replyMarkup = NULL, (int|null) $scheduleDate = NULL, bool $noWebpage = false): \danog\MadelineProto\EventHandler\MessageeditReplyMarkup(array $replyMarkup): \danog\MadelineProto\EventHandler\MessagereplyOrEdit(string $message, \danog\MadelineProto\ParseMode $parseMode = \danog\MadelineProto\ParseMode::TEXT, (array|null) $replyMarkup = NULL, (int|null) $scheduleDate = NULL, bool $noWebpage = false): \danog\MadelineProto\EventHandler\Messageforward((integer|string) $peer, list<int> $id = [], bool $dropAuthor = false, bool $dropCaption = false, int $topicId = 1, boolean $silent = false, boolean $noForwards = false, boolean $background = false, boolean $score = false, (integer|null) $scheduleDate = NULL, (integer|string|null) $sendAs = NULL): non-empty-list<\danog\MadelineProto\EventHandler\Message>getHTML(bool $allowTelegramTags = false): stringisReply(): boolreply(string $message, \danog\MadelineProto\ParseMode $parseMode = \danog\MadelineProto\ParseMode::TEXT, (array|null) $replyMarkup = NULL, (integer|string|null) $sendAs = NULL, (integer|null) $scheduleDate = NULL, boolean $noWebpage = false, boolean $silent = false, boolean $noForwards = false, boolean $background = false, boolean $clearDraft = false, boolean $updateStickersetsOrder = false, ?\Amp\Cancellation $cancellation = NULL): \danog\MadelineProto\EventHandler\MessagereplyDocument((\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream) $file, (\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream|null) $thumb = NULL, string $caption = '', \danog\MadelineProto\ParseMode $parseMode = \danog\MadelineProto\ParseMode::TEXT, ?callable $callback = NULL, ?string $fileName = NULL, ?string $mimeType = NULL, ?int $ttl = NULL, bool $spoiler = false, (array|null) $replyMarkup = NULL, (integer|null) $sendAs = NULL, (integer|null) $scheduleDate = NULL, boolean $silent = false, bool $noForwards = false, boolean $background = false, boolean $clearDraft = false, boolean $updateStickersetsOrder = false, boolean $forceResend = false, \Amp\Cancellation $cancellation = NULL): \danog\MadelineProto\EventHandler\MessagereplyVideo((\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream) $file, (\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream|null) $thumb = NULL, string $caption = '', \danog\MadelineProto\ParseMode $parseMode = \danog\MadelineProto\ParseMode::TEXT, ?callable $callback = NULL, ?string $fileName = NULL, string $mimeType = 'video/mp4', (integer|null) $ttl = NULL, boolean $spoiler = false, boolean $roundMessage = false, boolean $supportsStreaming = true, boolean $noSound = false, (integer|null) $duration = NULL, (integer|null) $width = NULL, (integer|null) $height = NULL, (array|null) $replyMarkup = NULL, (integer|string|null) $sendAs = NULL, (integer|null) $scheduleDate = NULL, boolean $silent = false, boolean $noForwards = false, boolean $background = false, boolean $clearDraft = false, boolean $forceResend = false, bool $updateStickersetsOrder = false, \Amp\Cancellation $cancellation = NULL): \danog\MadelineProto\EventHandler\MessagereplyGif((\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream) $file, (\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream|null) $thumb = NULL, string $caption = '', \danog\MadelineProto\ParseMode $parseMode = \danog\MadelineProto\ParseMode::TEXT, ?callable $callback = NULL, ?string $fileName = NULL, (integer|null) $ttl = NULL, boolean $spoiler = false, (array|null) $replyMarkup = NULL, (integer|string|null) $sendAs = NULL, (integer|null) $scheduleDate = NULL, boolean $silent = false, boolean $noForwards = false, boolean $background = false, boolean $clearDraft = false, boolean $forceResend = false, ?\Amp\Cancellation $cancellation = NULL): \danog\MadelineProto\EventHandler\MessagereplyAudio((\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream) $file, (\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream|null) $thumb = NULL, string $caption = '', \danog\MadelineProto\ParseMode $parseMode = \danog\MadelineProto\ParseMode::TEXT, ?callable $callback = NULL, ?string $fileName = NULL, ?string $mimeType = NULL, (integer|null) $duration = NULL, (string|null) $title = NULL, (string|null) $performer = NULL, ?int $ttl = NULL, (array|null) $replyMarkup = NULL, (integer|string|null) $sendAs = NULL, (integer|null) $scheduleDate = NULL, boolean $silent = false, boolean $noForwards = false, boolean $background = false, boolean $clearDraft = false, boolean $forceResend = false, ?\Amp\Cancellation $cancellation = NULL): \danog\MadelineProto\EventHandler\MessagereplyVoice((\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream) $file, string $caption = '', \danog\MadelineProto\ParseMode $parseMode = \danog\MadelineProto\ParseMode::TEXT, ?callable $callback = NULL, ?string $fileName = NULL, (integer|null) $ttl = NULL, (integer|null) $duration = NULL, (array|null) $waveform = NULL, (array|null) $replyMarkup = NULL, (integer|string|null) $sendAs = NULL, (integer|null) $scheduleDate = NULL, boolean $silent = false, boolean $noForwards = false, boolean $background = false, boolean $clearDraft = false, boolean $forceResend = false, ?\Amp\Cancellation $cancellation = NULL): \danog\MadelineProto\EventHandler\MessagereplyPhoto((\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream) $file, string $caption = '', \danog\MadelineProto\ParseMode $parseMode = \danog\MadelineProto\ParseMode::TEXT, ?callable $callback = NULL, ?string $fileName = NULL, ?int $ttl = NULL, bool $spoiler = false, (array|null) $replyMarkup = NULL, (integer|null) $sendAs = NULL, (integer|null) $scheduleDate = NULL, boolean $silent = false, bool $noForwards = false, boolean $background = false, boolean $clearDraft = false, boolean $updateStickersetsOrder = false, boolean $forceResend = false, \Amp\Cancellation $cancellation = NULL): \danog\MadelineProto\EventHandler\MessagereplySticker((\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream) $file, string $mimeType, string $emoji = '', ?callable $callback = NULL, ?string $fileName = NULL, ?int $ttl = NULL, (array|null) $replyMarkup = NULL, (integer|null) $sendAs = NULL, (integer|null) $scheduleDate = NULL, boolean $silent = false, boolean $noForwards = false, boolean $background = false, boolean $clearDraft = false, boolean $updateStickersetsOrder = false, boolean $forceResend = false, \Amp\Cancellation $cancellation = NULL): \danog\MadelineProto\EventHandler\MessagesendText(string $message, \danog\MadelineProto\ParseMode $parseMode = \danog\MadelineProto\ParseMode::TEXT, (array|null) $replyMarkup = NULL, (integer|string|null) $sendAs = NULL, (integer|null) $scheduleDate = NULL, boolean $noWebpage = false, boolean $silent = false, boolean $noForwards = false, boolean $background = false, boolean $clearDraft = false, boolean $updateStickersetsOrder = false, ?\Amp\Cancellation $cancellation = NULL): \danog\MadelineProto\EventHandler\Messageblock(): boolunblock(): boolgetStories(): list<\danog\MadelineProto\EventHandler\AbstractStory>- [
setAction(\danog\MadelineProto\EventHandler\Action $action = \danog\MadelineProto\EventHandler\Action\Typing::__set_state(array(]]): bool](#setAction) read(bool $readAll = false): booleanenableTTL(int<1, max> $seconds = 86400): \danog\MadelineProto\EventHandler\Message\Service\DialogSetTTLdisableTTL(): \danog\MadelineProto\EventHandler\Message\Service\DialogSetTTLenableAutoTranslate(): booldisableAutoTranslate(): bool
Methods:
getReply(string $class = 'danog\\MadelineProto\\EventHandler\\Message\\SecretMessage'): ?\danog\MadelineProto\EventHandler\Message\SecretMessage
Parameters:
$class:string
delete(boolean $revoke = true): void
Delete the message.
Parameters:
$revoke:booleanWhether to delete the message for all participants of the chat.
screenShot(): \danog\MadelineProto\EventHandler\Message\Service\DialogScreenshotTaken
See also:
pin(bool $pmOneside = false, bool $silent = false): void
Pin a message.
Parameters:
$pmOneside:boolWhether the message should only be pinned on the local side of a one-to-one chat$silent:boolPin the message silently, without triggering a notification
unpin(bool $pmOneside = false, bool $silent = false): ?\danog\MadelineProto\EventHandler\Update
Unpin a message.
Parameters:
$pmOneside:boolWhether the message should only be pinned on the local side of a one-to-one chat$silent:boolPin the message silently, without triggering a notification
See also:
getOurReactions(): list<(string|int)>
Get our reactions on the message.
report(\danog\MadelineProto\EventHandler\Message\ReportReason $reason, string $message): bool
Report a message in a chat for violation of telegram’s Terms of Service.
Parameters:
$reason:\danog\MadelineProto\EventHandler\Message\ReportReasonWhy are these messages being reported$message:stringComment for report moderation
See also:
saveContact(string $firstName, (string|null) $lastName = NULL, (string|null) $phoneNumber = NULL, bool $addPhonePrivacyException = false): void
Save message sender to your account contacts.
Parameters:
$firstName:stringFirst name$lastName:(string|null)Last name$phoneNumber:(string|null)Telegram ID of the other user$addPhonePrivacyException:boolAllow the other user to see our phone number?
removeContact(): void
Remove message sender from your account contacts.
inviteToChannel((string|int) $channel): void
Invite message sender to requested channel.
Parameters:
$channel:(string|int)Username, Channel ID
addReaction((string|int) $reaction, bool $big = false, bool $addToRecent = true): list<(string|int)>
Add reaction to message.
Parameters:
$reaction:(string|int)reaction$big:boolWhether a bigger and longer reaction should be shown$addToRecent:boolAdd this reaction to the recent reactions list.
delReaction((string|int) $reaction): list<(string|int)>
Delete reaction from message.
Parameters:
$reaction:(string|int)string or int Reaction
translate(string $toLang): string
Translate text message(for media translate it caption).
Parameters:
$toLang:stringTwo-letter ISO 639-1 language code of the language to which the message is translated
editText(string $message, \danog\MadelineProto\ParseMode $parseMode = \danog\MadelineProto\ParseMode::TEXT, (array|null) $replyMarkup = NULL, (int|null) $scheduleDate = NULL, bool $noWebpage = false): \danog\MadelineProto\EventHandler\Message
Edit message text.
Parameters:
$message:stringNew message$parseMode:\danog\MadelineProto\ParseModeWhether to parse HTML or Markdown markup in the message$replyMarkup:(array|null)Reply markup for inline keyboards$scheduleDate:(int|null)Scheduled message date for scheduled messages$noWebpage:boolDisable webpage preview
See also:
editReplyMarkup(array $replyMarkup): \danog\MadelineProto\EventHandler\Message
Edit message keyboard.
Parameters:
$replyMarkup:arrayReply markup for inline keyboards
replyOrEdit(string $message, \danog\MadelineProto\ParseMode $parseMode = \danog\MadelineProto\ParseMode::TEXT, (array|null) $replyMarkup = NULL, (int|null) $scheduleDate = NULL, bool $noWebpage = false): \danog\MadelineProto\EventHandler\Message
If the message is outgoing, will edit the message’s text, otherwise will reply to the message.
Parameters:
$message:stringNew message$parseMode:\danog\MadelineProto\ParseModeWhether to parse HTML or Markdown markup in the message$replyMarkup:(array|null)Reply markup for inline keyboards$scheduleDate:(int|null)Scheduled message date for scheduled messages$noWebpage:boolDisable webpage preview
See also:
forward((integer|string) $peer, list<int> $id = [], bool $dropAuthor = false, bool $dropCaption = false, int $topicId = 1, boolean $silent = false, boolean $noForwards = false, boolean $background = false, boolean $score = false, (integer|null) $scheduleDate = NULL, (integer|string|null) $sendAs = NULL): non-empty-list<\danog\MadelineProto\EventHandler\Message>
Forwards messages by their IDs.
Parameters:
$peer:(integer|string)Destination peer$id:list<int>IDs of messages$dropAuthor:boolWhether to forward messages without quoting the original author$dropCaption:boolWhether to strip captions from media$topicId:intDestination forum topic$silent:booleanWhether to send the message silently, without triggering notifications.$noForwards:booleanOnly for bots, disallows further re-forwarding and saving of the messages, even if the destination chat doesn’t have content protection enabled$background:booleanSend this message as background message$score:booleanWhen forwarding games, whether to include your score in the game$scheduleDate:(integer|null)Schedule date.$sendAs:(integer|string|null)Peer to send the message as.
See also:
non-empty-list
getHTML(bool $allowTelegramTags = false): string
Get an HTML version of the message.
Parameters:
$allowTelegramTags:boolWhether to allow telegram-specific tags like tg-spoiler, tg-emoji, mention links and so on…
isReply(): bool
Check if the current message replies to another message.
reply(string $message, \danog\MadelineProto\ParseMode $parseMode = \danog\MadelineProto\ParseMode::TEXT, (array|null) $replyMarkup = NULL, (integer|string|null) $sendAs = NULL, (integer|null) $scheduleDate = NULL, boolean $noWebpage = false, boolean $silent = false, boolean $noForwards = false, boolean $background = false, boolean $clearDraft = false, boolean $updateStickersetsOrder = false, ?\Amp\Cancellation $cancellation = NULL): \danog\MadelineProto\EventHandler\Message
Reply to the message.
Parameters:
$message:stringMessage to send$parseMode:\danog\MadelineProto\ParseModeParse mode$replyMarkup:(array|null)Keyboard information.$sendAs:(integer|string|null)Peer to send the message as.$scheduleDate:(integer|null)Schedule date.$noWebpage:booleanSet this flag to disable generation of the webpage preview$silent:booleanWhether to send the message silently, without triggering notifications.$noForwards:booleanOnly for bots, disallows further re-forwarding and saving of the messages, even if the destination chat doesn’t have content protection enabled$background:booleanSend this message as background message$clearDraft:booleanClears the draft field$updateStickersetsOrder:booleanWhether to move used stickersets to top$cancellation:?\Amp\Cancellation
See also:
\danog\MadelineProto\ParseMode: Indicates a parsing mode for text.\Amp\Cancellation\danog\MadelineProto\EventHandler\Message: Represents an incoming or outgoing message.
replyDocument((\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream) $file, (\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream|null) $thumb = NULL, string $caption = '', \danog\MadelineProto\ParseMode $parseMode = \danog\MadelineProto\ParseMode::TEXT, ?callable $callback = NULL, ?string $fileName = NULL, ?string $mimeType = NULL, ?int $ttl = NULL, bool $spoiler = false, (array|null) $replyMarkup = NULL, (integer|null) $sendAs = NULL, (integer|null) $scheduleDate = NULL, boolean $silent = false, bool $noForwards = false, boolean $background = false, boolean $clearDraft = false, boolean $updateStickersetsOrder = false, boolean $forceResend = false, \Amp\Cancellation $cancellation = NULL): \danog\MadelineProto\EventHandler\Message
Reply a document.
Please use named arguments to call this method.
Parameters:
$file:(\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream)File to upload: can be a message to reuse media present in a message.$thumb:(\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream|null)Optional: Thumbnail to upload$caption:stringCaption of document$parseMode:\danog\MadelineProto\ParseModeText parse mode for the caption$callback:?callable$fileName:?stringOptional file name, if absent will be extracted from the passed $file.$mimeType:?string$ttl:?int$spoiler:bool$replyMarkup:(array|null)Keyboard information.$sendAs:(integer|null)Peer to send the message as.$scheduleDate:(integer|null)Schedule date.$silent:booleanWhether to send the message silently, without triggering notifications.$noForwards:bool$background:booleanSend this message as background message$clearDraft:booleanClears the draft field$updateStickersetsOrder:booleanWhether to move used stickersets to top$forceResend:booleanWhether to forcefully resend the file, even if its type and name are the same.$cancellation:\Amp\CancellationCancellation.
See also:
\danog\MadelineProto\EventHandler\Message: Represents an incoming or outgoing message.\danog\MadelineProto\EventHandler\Media: Represents a generic media.\danog\MadelineProto\LocalFile: Indicates a local file to upload.\danog\MadelineProto\RemoteUrl: Indicates a remote URL to upload.\danog\MadelineProto\BotApiFileId: Indicates a bot API file ID to upload using sendDocument, sendPhoto etc…\Amp\ByteStream\ReadableStream\danog\MadelineProto\ParseMode: Indicates a parsing mode for text.\Amp\Cancellation
replyVideo((\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream) $file, (\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream|null) $thumb = NULL, string $caption = '', \danog\MadelineProto\ParseMode $parseMode = \danog\MadelineProto\ParseMode::TEXT, ?callable $callback = NULL, ?string $fileName = NULL, string $mimeType = 'video/mp4', (integer|null) $ttl = NULL, boolean $spoiler = false, boolean $roundMessage = false, boolean $supportsStreaming = true, boolean $noSound = false, (integer|null) $duration = NULL, (integer|null) $width = NULL, (integer|null) $height = NULL, (array|null) $replyMarkup = NULL, (integer|string|null) $sendAs = NULL, (integer|null) $scheduleDate = NULL, boolean $silent = false, boolean $noForwards = false, boolean $background = false, boolean $clearDraft = false, boolean $forceResend = false, bool $updateStickersetsOrder = false, \Amp\Cancellation $cancellation = NULL): \danog\MadelineProto\EventHandler\Message
Reply a video.
Please use named arguments to call this method.
Parameters:
$file:(\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream)File to upload: can be a message to reuse media present in a message.$thumb:(\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream|null)Optional: Thumbnail to upload$caption:stringCaption of document$parseMode:\danog\MadelineProto\ParseModeText parse mode for the caption$callback:?callable$fileName:?stringOptional file name, if absent will be extracted from the passed $file.$mimeType:string$ttl:(integer|null)Time to live$spoiler:booleanWhether the message is a spoiler$roundMessage:booleanWhether the message should be round$supportsStreaming:booleanWhether the video supports streaming$noSound:booleanWhether the video has no sound$duration:(integer|null)Duration of the video$width:(integer|null)Width of the video$height:(integer|null)Height of the video$replyMarkup:(array|null)Keyboard information.$sendAs:(integer|string|null)Peer to send the message as.$scheduleDate:(integer|null)Schedule date.$silent:booleanWhether to send the message silently, without triggering notifications.$noForwards:booleanWhether to disable forwards for this message.$background:booleanSend this message as background message$clearDraft:booleanClears the draft field$forceResend:booleanWhether to forcefully resend the file, even if its type and name are the same.$updateStickersetsOrder:bool$cancellation:\Amp\CancellationCancellation.
See also:
\danog\MadelineProto\EventHandler\Message: Represents an incoming or outgoing message.\danog\MadelineProto\EventHandler\Media: Represents a generic media.\danog\MadelineProto\LocalFile: Indicates a local file to upload.\danog\MadelineProto\RemoteUrl: Indicates a remote URL to upload.\danog\MadelineProto\BotApiFileId: Indicates a bot API file ID to upload using sendDocument, sendPhoto etc…\Amp\ByteStream\ReadableStream\danog\MadelineProto\ParseMode: Indicates a parsing mode for text.\Amp\Cancellation
replyGif((\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream) $file, (\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream|null) $thumb = NULL, string $caption = '', \danog\MadelineProto\ParseMode $parseMode = \danog\MadelineProto\ParseMode::TEXT, ?callable $callback = NULL, ?string $fileName = NULL, (integer|null) $ttl = NULL, boolean $spoiler = false, (array|null) $replyMarkup = NULL, (integer|string|null) $sendAs = NULL, (integer|null) $scheduleDate = NULL, boolean $silent = false, boolean $noForwards = false, boolean $background = false, boolean $clearDraft = false, boolean $forceResend = false, ?\Amp\Cancellation $cancellation = NULL): \danog\MadelineProto\EventHandler\Message
Reply a gif.
Please use named arguments to call this method.
Parameters:
$file:(\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream)File to upload: can be a message to reuse media present in a message.$thumb:(\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream|null)Optional: Thumbnail to upload$caption:stringCaption of document$parseMode:\danog\MadelineProto\ParseModeText parse mode for the caption$callback:?callable$fileName:?stringOptional file name, if absent will be extracted from the passed $file.$ttl:(integer|null)Time to live$spoiler:booleanWhether the message is a spoiler$replyMarkup:(array|null)Keyboard information.$sendAs:(integer|string|null)Peer to send the message as.$scheduleDate:(integer|null)Schedule date.$silent:booleanWhether to send the message silently, without triggering notifications.$noForwards:booleanWhether to disable forwards for this message.$background:booleanSend this message as background message$clearDraft:booleanClears the draft field$forceResend:booleanWhether to forcefully resend the file, even if its type and name are the same.$cancellation:?\Amp\CancellationCancellation.
See also:
\danog\MadelineProto\EventHandler\Message: Represents an incoming or outgoing message.\danog\MadelineProto\EventHandler\Media: Represents a generic media.\danog\MadelineProto\LocalFile: Indicates a local file to upload.\danog\MadelineProto\RemoteUrl: Indicates a remote URL to upload.\danog\MadelineProto\BotApiFileId: Indicates a bot API file ID to upload using sendDocument, sendPhoto etc…\Amp\ByteStream\ReadableStream\danog\MadelineProto\ParseMode: Indicates a parsing mode for text.\Amp\Cancellation
replyAudio((\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream) $file, (\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream|null) $thumb = NULL, string $caption = '', \danog\MadelineProto\ParseMode $parseMode = \danog\MadelineProto\ParseMode::TEXT, ?callable $callback = NULL, ?string $fileName = NULL, ?string $mimeType = NULL, (integer|null) $duration = NULL, (string|null) $title = NULL, (string|null) $performer = NULL, ?int $ttl = NULL, (array|null) $replyMarkup = NULL, (integer|string|null) $sendAs = NULL, (integer|null) $scheduleDate = NULL, boolean $silent = false, boolean $noForwards = false, boolean $background = false, boolean $clearDraft = false, boolean $forceResend = false, ?\Amp\Cancellation $cancellation = NULL): \danog\MadelineProto\EventHandler\Message
Reply an audio.
Please use named arguments to call this method.
Parameters:
$file:(\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream)File to upload: can be a message to reuse media present in a message.$thumb:(\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream|null)Optional: Thumbnail to upload$caption:stringCaption of document$parseMode:\danog\MadelineProto\ParseModeText parse mode for the caption$callback:?callable$fileName:?stringOptional file name, if absent will be extracted from the passed $file.$mimeType:?string$duration:(integer|null)Duration of the audio$title:(string|null)Title of the audio$performer:(string|null)Performer of the audio$ttl:?int$replyMarkup:(array|null)Keyboard information.$sendAs:(integer|string|null)Peer to send the message as.$scheduleDate:(integer|null)Schedule date.$silent:booleanWhether to send the message silently, without triggering notifications.$noForwards:booleanWhether to disable forwards for this message.$background:booleanSend this message as background message$clearDraft:booleanClears the draft field$forceResend:booleanWhether to forcefully resend the file, even if its type and name are the same.$cancellation:?\Amp\CancellationCancellation.
See also:
\danog\MadelineProto\EventHandler\Message: Represents an incoming or outgoing message.\danog\MadelineProto\EventHandler\Media: Represents a generic media.\danog\MadelineProto\LocalFile: Indicates a local file to upload.\danog\MadelineProto\RemoteUrl: Indicates a remote URL to upload.\danog\MadelineProto\BotApiFileId: Indicates a bot API file ID to upload using sendDocument, sendPhoto etc…\Amp\ByteStream\ReadableStream\danog\MadelineProto\ParseMode: Indicates a parsing mode for text.\Amp\Cancellation
replyVoice((\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream) $file, string $caption = '', \danog\MadelineProto\ParseMode $parseMode = \danog\MadelineProto\ParseMode::TEXT, ?callable $callback = NULL, ?string $fileName = NULL, (integer|null) $ttl = NULL, (integer|null) $duration = NULL, (array|null) $waveform = NULL, (array|null) $replyMarkup = NULL, (integer|string|null) $sendAs = NULL, (integer|null) $scheduleDate = NULL, boolean $silent = false, boolean $noForwards = false, boolean $background = false, boolean $clearDraft = false, boolean $forceResend = false, ?\Amp\Cancellation $cancellation = NULL): \danog\MadelineProto\EventHandler\Message
Reply a voice.
Please use named arguments to call this method.
Parameters:
$file:(\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream)File to upload: can be a message to reuse media present in a message.$caption:stringCaption of document$parseMode:\danog\MadelineProto\ParseModeText parse mode for the caption$callback:?callable$fileName:?stringOptional file name, if absent will be extracted from the passed $file.$ttl:(integer|null)Time to live$duration:(integer|null)Duration of the voice$waveform:(array|null)Waveform of the voice$replyMarkup:(array|null)Keyboard information.$sendAs:(integer|string|null)Peer to send the message as.$scheduleDate:(integer|null)Schedule date.$silent:booleanWhether to send the message silently, without triggering notifications.$noForwards:booleanWhether to disable forwards for this message.$background:booleanSend this message as background message$clearDraft:booleanClears the draft field$forceResend:booleanWhether to forcefully resend the file, even if its type and name are the same.$cancellation:?\Amp\CancellationCancellation.
See also:
\danog\MadelineProto\EventHandler\Message: Represents an incoming or outgoing message.\danog\MadelineProto\EventHandler\Media: Represents a generic media.\danog\MadelineProto\LocalFile: Indicates a local file to upload.\danog\MadelineProto\RemoteUrl: Indicates a remote URL to upload.\danog\MadelineProto\BotApiFileId: Indicates a bot API file ID to upload using sendDocument, sendPhoto etc…\Amp\ByteStream\ReadableStream\danog\MadelineProto\ParseMode: Indicates a parsing mode for text.\Amp\Cancellation
replyPhoto((\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream) $file, string $caption = '', \danog\MadelineProto\ParseMode $parseMode = \danog\MadelineProto\ParseMode::TEXT, ?callable $callback = NULL, ?string $fileName = NULL, ?int $ttl = NULL, bool $spoiler = false, (array|null) $replyMarkup = NULL, (integer|null) $sendAs = NULL, (integer|null) $scheduleDate = NULL, boolean $silent = false, bool $noForwards = false, boolean $background = false, boolean $clearDraft = false, boolean $updateStickersetsOrder = false, boolean $forceResend = false, \Amp\Cancellation $cancellation = NULL): \danog\MadelineProto\EventHandler\Message
Reply a photo.
Please use named arguments to call this method.
Parameters:
$file:(\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream)File to upload: can be a message to reuse media present in a message.$caption:stringCaption of document$parseMode:\danog\MadelineProto\ParseModeText parse mode for the caption$callback:?callable$fileName:?stringOptional file name, if absent will be extracted from the passed $file.$ttl:?int$spoiler:bool$replyMarkup:(array|null)Keyboard information.$sendAs:(integer|null)Peer to send the message as.$scheduleDate:(integer|null)Schedule date.$silent:booleanWhether to send the message silently, without triggering notifications.$noForwards:bool$background:booleanSend this message as background message$clearDraft:booleanClears the draft field$updateStickersetsOrder:booleanWhether to move used stickersets to top$forceResend:booleanWhether to forcefully resend the file, even if its type and name are the same.$cancellation:\Amp\CancellationCancellation.
See also:
\danog\MadelineProto\EventHandler\Message: Represents an incoming or outgoing message.\danog\MadelineProto\EventHandler\Media: Represents a generic media.\danog\MadelineProto\LocalFile: Indicates a local file to upload.\danog\MadelineProto\RemoteUrl: Indicates a remote URL to upload.\danog\MadelineProto\BotApiFileId: Indicates a bot API file ID to upload using sendDocument, sendPhoto etc…\Amp\ByteStream\ReadableStream\danog\MadelineProto\ParseMode: Indicates a parsing mode for text.\Amp\Cancellation
replySticker((\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream) $file, string $mimeType, string $emoji = '', ?callable $callback = NULL, ?string $fileName = NULL, ?int $ttl = NULL, (array|null) $replyMarkup = NULL, (integer|null) $sendAs = NULL, (integer|null) $scheduleDate = NULL, boolean $silent = false, boolean $noForwards = false, boolean $background = false, boolean $clearDraft = false, boolean $updateStickersetsOrder = false, boolean $forceResend = false, \Amp\Cancellation $cancellation = NULL): \danog\MadelineProto\EventHandler\Message
Reply a sticker.
Please use named arguments to call this method.
Parameters:
$file:(\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream)File to upload: can be a message to reuse media present in a message.$mimeType:string$emoji:string$callback:?callable$fileName:?stringOptional file name, if absent will be extracted from the passed $file.$ttl:?int$replyMarkup:(array|null)Keyboard information.$sendAs:(integer|null)Peer to send the message as.$scheduleDate:(integer|null)Schedule date.$silent:booleanWhether to send the message silently, without triggering notifications.$noForwards:booleanWhether to disable forwards for this message.$background:booleanSend this message as background message$clearDraft:booleanClears the draft field$updateStickersetsOrder:booleanWhether to move used stickersets to top$forceResend:booleanWhether to forcefully resend the file, even if its type and name are the same.$cancellation:\Amp\CancellationCancellation.
See also:
\danog\MadelineProto\EventHandler\Message: Represents an incoming or outgoing message.\danog\MadelineProto\EventHandler\Media: Represents a generic media.\danog\MadelineProto\LocalFile: Indicates a local file to upload.\danog\MadelineProto\RemoteUrl: Indicates a remote URL to upload.\danog\MadelineProto\BotApiFileId: Indicates a bot API file ID to upload using sendDocument, sendPhoto etc…\Amp\ByteStream\ReadableStream\Amp\Cancellation
sendText(string $message, \danog\MadelineProto\ParseMode $parseMode = \danog\MadelineProto\ParseMode::TEXT, (array|null) $replyMarkup = NULL, (integer|string|null) $sendAs = NULL, (integer|null) $scheduleDate = NULL, boolean $noWebpage = false, boolean $silent = false, boolean $noForwards = false, boolean $background = false, boolean $clearDraft = false, boolean $updateStickersetsOrder = false, ?\Amp\Cancellation $cancellation = NULL): \danog\MadelineProto\EventHandler\Message
Send a text message.
Parameters:
$message:stringMessage to send$parseMode:\danog\MadelineProto\ParseModeParse mode$replyMarkup:(array|null)Keyboard information.$sendAs:(integer|string|null)Peer to send the message as.$scheduleDate:(integer|null)Schedule date.$noWebpage:booleanSet this flag to disable generation of the webpage preview$silent:booleanWhether to send the message silently, without triggering notifications.$noForwards:booleanOnly for bots, disallows further re-forwarding and saving of the messages, even if the destination chat doesn’t have content protection enabled$background:booleanSend this message as background message$clearDraft:booleanClears the draft field$updateStickersetsOrder:booleanWhether to move used stickersets to top$cancellation:?\Amp\Cancellation
See also:
\danog\MadelineProto\ParseMode: Indicates a parsing mode for text.\Amp\Cancellation\danog\MadelineProto\EventHandler\Message: Represents an incoming or outgoing message.
block(): bool
Adds the user to the blacklist.
unblock(): bool
Deletes the user from the blacklist.
getStories(): list<\danog\MadelineProto\EventHandler\AbstractStory>
Get user stories.
See also:
setAction(\danog\MadelineProto\EventHandler\Action $action = \danog\MadelineProto\EventHandler\Action\Typing::__set_state(array(]]): bool
Sends a current user typing event (see SendMessageAction for all event types) to a conversation partner or group.
Parameters:
$action:\danog\MadelineProto\EventHandler\Action
See also:
read(bool $readAll = false): boolean
Mark selected message as read.
Parameters:
$readAll:bool
Return value: if set, read all messages in current chat.
enableTTL(int<1, max> $seconds = 86400): \danog\MadelineProto\EventHandler\Message\Service\DialogSetTTL
Set maximum Time-To-Live of all messages in the specified chat.
Parameters:
$seconds:int<1, max>Automatically delete all messages sent in the chat after this many seconds
See also:
disableTTL(): \danog\MadelineProto\EventHandler\Message\Service\DialogSetTTL
Disable Time-To-Live of all messages in the specified chat.
See also:
enableAutoTranslate(): bool
Show the real-time chat translation popup for a certain chat.
disableAutoTranslate(): bool
Hide the real-time chat translation popup for a certain chat.
Generated by danog/phpdoc