From 5b44cee1a80bd04fa281cec9f685efe27afcde8c Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Fri, 28 Jun 2024 14:56:53 +0200 Subject: [PATCH] Bump --- .../EventHandler/Filter/FilterCommentReply.md | 74 ++ .../EventHandler/Message/CommentReply.md | 1057 +++++++++++++++++ docs/PHP/index.md | 2 + docs/docs/FILTERS.md | 4 + docs/docs/UPDATES.md | 3 + docs/index.md | 119 +- 6 files changed, 1231 insertions(+), 28 deletions(-) create mode 100644 docs/PHP/danog/MadelineProto/EventHandler/Filter/FilterCommentReply.md create mode 100644 docs/PHP/danog/MadelineProto/EventHandler/Message/CommentReply.md diff --git a/docs/PHP/danog/MadelineProto/EventHandler/Filter/FilterCommentReply.md b/docs/PHP/danog/MadelineProto/EventHandler/Filter/FilterCommentReply.md new file mode 100644 index 0000000000..023292f7be --- /dev/null +++ b/docs/PHP/danog/MadelineProto/EventHandler/Filter/FilterCommentReply.md @@ -0,0 +1,74 @@ +--- +title: "danog\\MadelineProto\\EventHandler\\Filter\\FilterCommentReply: Allow messages that coming from @replies." +description: "" +image: "https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png" +parent: "MadelineProto API" + +--- +# `danog\MadelineProto\EventHandler\Filter\FilterCommentReply` +[Back to index](../../../../index.html) + +> Author: Daniil Gentili + + +Allow messages that coming from @replies. + + + + +## Method list: +* [`apply(\danog\MadelineProto\EventHandler\Update $update): bool`](#apply) +* [`initialize(\danog\MadelineProto\EventHandler $API): \danog\MadelineProto\EventHandler\Filter\Filter`](#initialize) +* [`fromReflectionType(\ReflectionType $type): \danog\MadelineProto\EventHandler\Filter\Filter`](#fromReflectionType) + +## Methods: +### `apply(\danog\MadelineProto\EventHandler\Update $update): bool` + + + + +Parameters: + +* `$update`: `\danog\MadelineProto\EventHandler\Update` + + +#### See also: +* [`\danog\MadelineProto\EventHandler\Update`: Represents a generic update.](../../../../danog/MadelineProto/EventHandler/Update.html) + + + + +### `initialize(\danog\MadelineProto\EventHandler $API): \danog\MadelineProto\EventHandler\Filter\Filter` + +Run some initialization logic, optionally returning a new filter to replace the current one. + + +Parameters: + +* `$API`: `\danog\MadelineProto\EventHandler` + + +#### See also: +* [`\danog\MadelineProto\EventHandler`: Event handler.](../../../../danog/MadelineProto/EventHandler.html) + + + + +### `fromReflectionType(\ReflectionType $type): \danog\MadelineProto\EventHandler\Filter\Filter` + + + + +Parameters: + +* `$type`: `\ReflectionType` + + +#### See also: +* `\ReflectionType` + + + + +--- +Generated by [danog/phpdoc](https://phpdoc.daniil.it) diff --git a/docs/PHP/danog/MadelineProto/EventHandler/Message/CommentReply.md b/docs/PHP/danog/MadelineProto/EventHandler/Message/CommentReply.md new file mode 100644 index 0000000000..3852c5332b --- /dev/null +++ b/docs/PHP/danog/MadelineProto/EventHandler/Message/CommentReply.md @@ -0,0 +1,1057 @@ +--- +title: "danog\\MadelineProto\\EventHandler\\Message\\CommentReply: Represents a reply to one of our messages in a channel comment group that we're not a member of (i.e. received via `@replies`)." +description: "" +image: "https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png" +parent: "MadelineProto API" + +--- +# `danog\MadelineProto\EventHandler\Message\CommentReply` +[Back to index](../../../../index.html) + +> Author: Daniil Gentili + + +Represents a reply to one of our messages in a channel comment group that we're not a member of (i.e. received via `@replies`). + + + +## Properties +* `$message`: `string` Content of the message +* `$fwdInfo`: `?danog\MadelineProto\EventHandler\ForwardedInfo` Info about a forwarded message +* `$command`: `?string` Bot command (if present) +* `$commandType`: `?danog\MadelineProto\EventHandler\CommandType` Bot command type (if present) +* `$commandArgs`: `list` Bot command arguments (if present) +* `$protected`: `bool` Whether this message is protected +* `$matches`: `list` +Regex matches, if a filter regex is present +* `$matchesAll`: `array | 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`: `bool` Whether this message is a *sent* scheduled message +* `$viaBotId`: `?int` If the message was generated by an inline query, ID of the bot that generated it +* `$editDate`: `?int` Last edit date of the message +* `$keyboard`: `(danog\MadelineProto\EventHandler\Keyboard\InlineKeyboard | danog\MadelineProto\EventHandler\Keyboard\ReplyKeyboard | null)` Inline or reply keyboard. +* `$imported`: `bool` Whether this message was [imported from a foreign chat service](https://core.telegram.org/api/import) +* `$psaType`: `?string` For Public Service Announcement messages, the PSA type +* `$nextSent`: `?self` +* `$views`: `?int` View counter for messages from channels or forwarded from channels +* `$forwards`: `?int` Forward counter for messages from channels or forwarded from channels +* `$signature`: `?string` Author of the post, if signatures are enabled for messages from channels or forwarded from channels +* `$entities`: `list` Message [entities](https://core.telegram.org/api/entities) for styled text +* `$groupedId`: `?int` Group ID for albums. + +All messages associated to the same album will have an identical grouped ID. +* `$poll`: `?danog\MadelineProto\EventHandler\AbstractPoll` The poll +* `$scheduled`: `bool` Whether this message is a scheduled message +* `$id`: `int` Message ID +* `$out`: `bool` Whether the message is outgoing +* `$chatId`: `int` ID of the chat where the message was sent +* `$senderId`: `int` ID of the sender of the message +* `$replyToMsgId`: `?int` ID of the message to which this message is replying +* `$date`: `int` When was the message sent +* `$topicId`: `?int` ID of the forum topic where the message was sent +* `$threadId`: `?int` ID of the message thread where the message was sent +* `$replyToScheduled`: `bool` Whether this is a reply to a scheduled message +* `$mentioned`: `bool` Whether we were mentioned in this message +* `$silent`: `bool` Whether this message was sent without any notification (silently) +* `$ttlPeriod`: `?int` Time-to-live of the message + +## Method list: +* [`getMember((string|integer|null) $member = NULL): \danog\MadelineProto\EventHandler\Participant`](#getMember) +* [`hideMembers(): void`](#hideMembers) +* [`unhideMembers(): void`](#unhideMembers) +* [`hideHistory(): void`](#hideHistory) +* [`unhideHistory(): void`](#unhideHistory) +* [`ban(int $untilDate = 0): void`](#ban) +* [`unban(int $untilDate = 0): void`](#unban) +* [`kick(): void`](#kick) +* [`deleteAll(bool $forEveryone = true, int $maxId = 0): void`](#deleteAll) +* [`deleteUserMessages((string|integer|null) $member = NULL): void`](#deleteUserMessages) +* [`toSuperGroup(): integer`](#toSuperGroup) +* [`enableAntiSpam(): void`](#enableAntiSpam) +* [`disableAntiSpam(): void`](#disableAntiSpam) +* [`enableTopics(): void`](#enableTopics) +* [`disableTopics(): void`](#disableTopics) +* [`createTopic(string $title, (\danog\MadelineProto\EventHandler\Topic\IconColor|int) $icon = \danog\MadelineProto\EventHandler\Topic\IconColor::NONE): \danog\MadelineProto\EventHandler\Message\Service\DialogTopicCreated`](#createTopic) +* [`editTopic(string $title, integer $icon = 0, (integer|null) $topicId = NULL): \danog\MadelineProto\EventHandler\Message\Service\DialogTopicEdited`](#editTopic) +* [`openTopic((integer|null) $topicId = NULL): \danog\MadelineProto\EventHandler\Message\Service\DialogTopicEdited`](#openTopic) +* [`closeTopic((integer|null) $topicId = NULL): \danog\MadelineProto\EventHandler\Message\Service\DialogTopicEdited`](#closeTopic) +* [`deleteTopic((integer|null) $topicId = NULL): void`](#deleteTopic) +* [`enableSlowMode(integer $seconds): void`](#enableSlowMode) +* [`disableSlowMode(): void`](#disableSlowMode) +* [`enableProtection(): void`](#enableProtection) +* [`disableProtection(): void`](#disableProtection) +* [`enableJoinToComment(): void`](#enableJoinToComment) +* [`disableJoinToComment(): void`](#disableJoinToComment) +* [`pin(bool $pmOneside = false, bool $silent = false): void`](#pin) +* [`unpin(bool $pmOneside = false, bool $silent = false): ?\danog\MadelineProto\EventHandler\Update`](#unpin) +* [`getOurReactions(): list<(string|int)>`](#getOurReactions) +* [`report(\danog\MadelineProto\EventHandler\Message\ReportReason $reason, string $message): bool`](#report) +* [`saveContact(string $firstName, (string|null) $lastName = NULL, (string|null) $phoneNumber = NULL, bool $addPhonePrivacyException = false): void`](#saveContact) +* [`removeContact(): void`](#removeContact) +* [`inviteToChannel((string|int) $channel): void`](#inviteToChannel) +* [`addReaction((string|int) $reaction, bool $big = false, bool $addToRecent = true): list<(string|int)>`](#addReaction) +* [`delReaction((string|int) $reaction): list<(string|int)>`](#delReaction) +* [`translate(string $toLang): string`](#translate) +* [`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`](#editText) +* [`editReplyMarkup(array $replyMarkup): \danog\MadelineProto\EventHandler\Message`](#editReplyMarkup) +* [`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`](#replyOrEdit) +* [`forward((integer|string) $peer, list $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>`](#forward) +* [`getHTML(bool $allowTelegramTags = false): string`](#getHTML) +* [`isReply(): bool`](#isReply) +* [`getReply(class-string $class = 'danog\\MadelineProto\\EventHandler\\AbstractMessage'): ?T`](#getReply) +* [`delete(boolean $revoke = true): void`](#delete) +* [`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) +* [`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`](#replyDocument) +* [`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`](#replyVideo) +* [`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`](#replyGif) +* [`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`](#replyAudio) +* [`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`](#replyVoice) +* [`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`](#replyPhoto) +* [`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`](#replySticker) +* [`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`](#sendText) +* [`block(): bool`](#block) +* [`unblock(): bool`](#unblock) +* [`getStories(): list<\danog\MadelineProto\EventHandler\AbstractStory>`](#getStories) +* [`setAction(\danog\MadelineProto\EventHandler\Action $action = \danog\MadelineProto\EventHandler\Action\Typing::__set_state(array(]]): bool`](#setAction) +* [`read(bool $readAll = false): boolean`](#read) +* [`enableTTL(int<1, max> $seconds = 86400): \danog\MadelineProto\EventHandler\Message\Service\DialogSetTTL`](#enableTTL) +* [`disableTTL(): \danog\MadelineProto\EventHandler\Message\Service\DialogSetTTL`](#disableTTL) +* [`enableAutoTranslate(): bool`](#enableAutoTranslate) +* [`disableAutoTranslate(): bool`](#disableAutoTranslate) + +## Methods: +### `getMember((string|integer|null) $member = NULL): \danog\MadelineProto\EventHandler\Participant` + +Get info about a [channel/supergroup](https://core.telegram.org/api/channel) participant. + + +Parameters: + +* `$member`: `(string|integer|null)` Participant to get info about; can be empty or null to get info about the sender of the message. + + +#### See also: +* [`\danog\MadelineProto\EventHandler\Participant`: Info about a channel participant.](../../../../danog/MadelineProto/EventHandler/Participant.html) + + + + +### `hideMembers(): void` + +Hide the participants list in a [supergroup](https://core.telegram.org/api/channel). +The supergroup must have at least `hidden_members_group_size_min` participants in order to use this method, as specified by the [client configuration parameters »](https://core.telegram.org/api/config#client-configuration). + + + +### `unhideMembers(): void` + +Display the participants list in a [supergroup](https://core.telegram.org/api/channel). +The supergroup must have at least `hidden_members_group_size_min` participants in order to use this method, as specified by the [client configuration parameters »](https://core.telegram.org/api/config#client-configuration). + + + +### `hideHistory(): void` + +Hide message history for new supergroup users. + + + +### `unhideHistory(): void` + +Unhide message history for new supergroup users. + + + +### `ban(int $untilDate = 0): void` + +Ban message sender from current supergroup. + + +Parameters: + +* `$untilDate`: `int` Validity of said permissions (it is considered forever any value less then 30 seconds or more then 366 days). + + + +### `unban(int $untilDate = 0): void` + +Unban message sender from current supergroup. + + +Parameters: + +* `$untilDate`: `int` Validity of said permissions (it is considered forever any value less then 30 seconds or more then 366 days). + + + +### `kick(): void` + +Kick message sender from current supergroup. + + + +### `deleteAll(bool $forEveryone = true, int $maxId = 0): void` + +Delete all supergroup message. + + +Parameters: + +* `$forEveryone`: `bool` +* `$maxId`: `int` + + + +### `deleteUserMessages((string|integer|null) $member = NULL): void` + +Delete all messages sent by a specific participant of a given supergroup. + + +Parameters: + +* `$member`: `(string|integer|null)` The participant whose messages should be deleted, if null or absent defaults to the sender of the message. + + + +### `toSuperGroup(): integer` + +Turn a [basic group into a supergroup](https://core.telegram.org/api/channel#migration). + + +Return value: the channel id we migrated to + + +### `enableAntiSpam(): void` + +Enable the [native antispam system](https://core.telegram.org/api/antispam). + + + +### `disableAntiSpam(): void` + +Disable the [native antispam system](https://core.telegram.org/api/antispam). + + + +### `enableTopics(): void` + +Enable [forum functionality](https://core.telegram.org/api/forum) in a supergroup. + + + +### `disableTopics(): void` + +Disable [forum functionality](https://core.telegram.org/api/forum) in a supergroup. + + + +### `createTopic(string $title, (\danog\MadelineProto\EventHandler\Topic\IconColor|int) $icon = \danog\MadelineProto\EventHandler\Topic\IconColor::NONE): \danog\MadelineProto\EventHandler\Message\Service\DialogTopicCreated` + +Create a [forum topic](https://core.telegram.org/api/forum); requires [`manage_topics` rights](https://core.telegram.org/api/rights). + + +Parameters: + +* `$title`: `string` Topic title (maximum UTF-8 length: 128) +* `$icon`: `(\danog\MadelineProto\EventHandler\Topic\IconColor|int)` Icon color, or ID of the [custom emoji](https://core.telegram.org/api/custom-emoji) used as topic icon. + [Telegram Premium](https://core.telegram.org/api/premium) users can use any custom emoji, other users can only use the custom emojis contained in the [inputStickerSetEmojiDefaultTopicIcons](https://docs.madelineproto.xyz/API_docs/constructors/inputStickerSetEmojiDefaultTopicIcons.html) emoji pack. + If no custom emoji icon is specified, specifies the color of the fallback topic icon + + +#### See also: +* [`\danog\MadelineProto\EventHandler\Topic\IconColor`: Specifies the color of the fallback topic icon (RGB) if no custom emoji icon is specified.](../../../../danog/MadelineProto/EventHandler/Topic/IconColor.html) +* [`\danog\MadelineProto\EventHandler\Message\Service\DialogTopicCreated`: A [forum topic](https://core.telegram.org/api/forum#forum-topics) was created.](../../../../danog/MadelineProto/EventHandler/Message/Service/DialogTopicCreated.html) + + + + +### `editTopic(string $title, integer $icon = 0, (integer|null) $topicId = NULL): \danog\MadelineProto\EventHandler\Message\Service\DialogTopicEdited` + +Edit a [forum topic](https://core.telegram.org/api/forum); requires [`manage_topics` rights](https://core.telegram.org/api/rights). + + +Parameters: + +* `$title`: `string` Topic title (maximum UTF-8 length: 128) +* `$icon`: `integer` ID of the [custom emoji](https://core.telegram.org/api/custom-emoji) used as topic icon. [Telegram Premium](https://core.telegram.org/api/premium) users can use any custom emoji, other users can only use the custom emojis contained in the [inputStickerSetEmojiDefaultTopicIcons](https://docs.madelineproto.xyz/API_docs/constructors/inputStickerSetEmojiDefaultTopicIcons.html) emoji pack. Pass 0 to switch to the fallback topic icon. +* `$topicId`: `(integer|null)` Topic ID, if absent defaults to the topic where this message was sent. + + +#### See also: +* [`\danog\MadelineProto\EventHandler\Message\Service\DialogTopicEdited`: [Forum topic](https://core.telegram.org/api/forum#forum-topics) information was edited.](../../../../danog/MadelineProto/EventHandler/Message/Service/DialogTopicEdited.html) + + + + +### `openTopic((integer|null) $topicId = NULL): \danog\MadelineProto\EventHandler\Message\Service\DialogTopicEdited` + +Open a [forum topic](https://core.telegram.org/api/forum); requires [`manage_topics` rights](https://core.telegram.org/api/rights). + + +Parameters: + +* `$topicId`: `(integer|null)` Topic ID, if absent defaults to the topic where this message was sent. + + +#### See also: +* [`\danog\MadelineProto\EventHandler\Message\Service\DialogTopicEdited`: [Forum topic](https://core.telegram.org/api/forum#forum-topics) information was edited.](../../../../danog/MadelineProto/EventHandler/Message/Service/DialogTopicEdited.html) + + + + +### `closeTopic((integer|null) $topicId = NULL): \danog\MadelineProto\EventHandler\Message\Service\DialogTopicEdited` + +Close a [forum topic](https://core.telegram.org/api/forum); requires [`manage_topics` rights](https://core.telegram.org/api/rights). + + +Parameters: + +* `$topicId`: `(integer|null)` Topic ID, if absent defaults to the topic where this message was sent. + + +#### See also: +* [`\danog\MadelineProto\EventHandler\Message\Service\DialogTopicEdited`: [Forum topic](https://core.telegram.org/api/forum#forum-topics) information was edited.](../../../../danog/MadelineProto/EventHandler/Message/Service/DialogTopicEdited.html) + + + + +### `deleteTopic((integer|null) $topicId = NULL): void` + +Delete message history of a [forum topic](https://core.telegram.org/api/forum). + + +Parameters: + +* `$topicId`: `(integer|null)` Topic ID, if absent defaults to the topic where this message was sent. + + + +### `enableSlowMode(integer $seconds): void` + +Toggle supergroup slow mode: Users will only be able to send one message every `$seconds` seconds. + + +Parameters: + +* `$seconds`: `integer` Users will only be able to send one message every `$seconds` seconds + + + +### `disableSlowMode(): void` + +Disable supergroup slow mode. + + + +### `enableProtection(): void` + +Enable or disable [content protection](https://telegram.org/blog/protected-content-delete-by-date-and-more) on a chat. + + + +### `disableProtection(): void` + +Enable or disable [content protection](https://telegram.org/blog/protected-content-delete-by-date-and-more) on a chat. + + + +### `enableJoinToComment(): void` + +Enable to all users [should join a discussion group in order to comment on a post »](https://core.telegram.org/api/discussion#requiring-users-to-join-the-group). + + + +### `disableJoinToComment(): void` + +Disable to all users [should join a discussion group in order to comment on a post »](https://core.telegram.org/api/discussion#requiring-users-to-join-the-group). + + + +### `pin(bool $pmOneside = false, bool $silent = false): void` + +Pin a message. + + +Parameters: + +* `$pmOneside`: `bool` Whether the message should only be pinned on the local side of a one-to-one chat +* `$silent`: `bool` Pin the message silently, without triggering a notification + + + +### `unpin(bool $pmOneside = false, bool $silent = false): ?\danog\MadelineProto\EventHandler\Update` + +Unpin a message. + + +Parameters: + +* `$pmOneside`: `bool` Whether the message should only be pinned on the local side of a one-to-one chat +* `$silent`: `bool` Pin the message silently, without triggering a notification + + +#### See also: +* [`\danog\MadelineProto\EventHandler\Update`: Represents a generic update.](../../../../danog/MadelineProto/EventHandler/Update.html) + + + + +### `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\ReportReason` Why are these messages being reported +* `$message`: `string` Comment for report moderation + + +#### See also: +* [\danog\MadelineProto\EventHandler\Message\ReportReason](../../../../danog/MadelineProto/EventHandler/Message/ReportReason.html) + + + + +### `saveContact(string $firstName, (string|null) $lastName = NULL, (string|null) $phoneNumber = NULL, bool $addPhonePrivacyException = false): void` + +Save message sender to your account contacts. + + +Parameters: + +* `$firstName`: `string` First name +* `$lastName`: `(string|null)` Last name +* `$phoneNumber`: `(string|null)` Telegram ID of the other user +* `$addPhonePrivacyException`: `bool` Allow 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`: `bool` Whether a bigger and longer reaction should be shown +* `$addToRecent`: `bool` Add 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`: `string` Two-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`: `string` New message +* `$parseMode`: `\danog\MadelineProto\ParseMode` Whether 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`: `bool` Disable webpage preview + + +#### See also: +* [`\danog\MadelineProto\ParseMode`: Indicates a parsing mode for text.](../../../../danog/MadelineProto/ParseMode.html) + + + + +### `editReplyMarkup(array $replyMarkup): \danog\MadelineProto\EventHandler\Message` + +Edit message keyboard. + + +Parameters: + +* `$replyMarkup`: `array` Reply 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`: `string` New message +* `$parseMode`: `\danog\MadelineProto\ParseMode` Whether 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`: `bool` Disable webpage preview + + +#### See also: +* [`\danog\MadelineProto\ParseMode`: Indicates a parsing mode for text.](../../../../danog/MadelineProto/ParseMode.html) + + + + +### `forward((integer|string) $peer, list $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` IDs of messages +* `$dropAuthor`: `bool` Whether to forward messages without quoting the original author +* `$dropCaption`: `bool` Whether to strip captions from media +* `$topicId`: `int` Destination [forum topic](https://core.telegram.org/api/forum#forum-topics) +* `$silent`: `boolean` Whether to send the message silently, without triggering notifications. +* `$noForwards`: `boolean` Only for bots, disallows further re-forwarding and saving of the messages, even if the destination chat doesn’t have [content protection](https://telegram.org/blog/protected-content-delete-by-date-and-more) enabled +* `$background`: `boolean` Send this message as background message +* `$score`: `boolean` When 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`: `bool` Whether 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. + + + +### `getReply(class-string $class = 'danog\\MadelineProto\\EventHandler\\AbstractMessage'): ?T` + +Get replied-to message. + +May return null if the replied-to message was deleted or if the message does not reply to any other message. + + +Parameters: + +* `$class`: `class-string` Only return a reply if it is of the specified type, return null otherwise. + + + +### `delete(boolean $revoke = true): void` + +Delete the message. + + +Parameters: + +* `$revoke`: `boolean` Whether to delete the message for all participants of the chat. + + + +### `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`: `string` Message to send +* `$parseMode`: `\danog\MadelineProto\ParseMode` Parse mode +* `$replyMarkup`: `(array|null)` Keyboard information. +* `$sendAs`: `(integer|string|null)` Peer to send the message as. +* `$scheduleDate`: `(integer|null)` Schedule date. +* `$noWebpage`: `boolean` Set this flag to disable generation of the webpage preview +* `$silent`: `boolean` Whether to send the message silently, without triggering notifications. +* `$noForwards`: `boolean` Only for bots, disallows further re-forwarding and saving of the messages, even if the destination chat doesn’t have [content protection](https://telegram.org/blog/protected-content-delete-by-date-and-more) enabled +* `$background`: `boolean` Send this message as background message +* `$clearDraft`: `boolean` Clears the draft field +* `$updateStickersetsOrder`: `boolean` Whether to move used stickersets to top +* `$cancellation`: `?\Amp\Cancellation` + + +#### See also: +* [`\danog\MadelineProto\ParseMode`: Indicates a parsing mode for text.](../../../../danog/MadelineProto/ParseMode.html) +* `\Amp\Cancellation` +* [`\danog\MadelineProto\EventHandler\Message`: Represents an incoming or outgoing message.](../../../../danog/MadelineProto/EventHandler/Message.html) + + + + +### `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`: `string` Caption of document +* `$parseMode`: `\danog\MadelineProto\ParseMode` Text parse mode for the caption +* `$callback`: `?callable` +* `$fileName`: `?string` Optional 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`: `boolean` Whether to send the message silently, without triggering notifications. +* `$noForwards`: `bool` +* `$background`: `boolean` Send this message as background message +* `$clearDraft`: `boolean` Clears the draft field +* `$updateStickersetsOrder`: `boolean` Whether to move used stickersets to top +* `$forceResend`: `boolean` Whether to forcefully resend the file, even if its type and name are the same. +* `$cancellation`: `\Amp\Cancellation` Cancellation. + + +#### See also: +* [`\danog\MadelineProto\EventHandler\Message`: Represents an incoming or outgoing message.](../../../../danog/MadelineProto/EventHandler/Message.html) +* [`\danog\MadelineProto\EventHandler\Media`: Represents a generic media.](../../../../danog/MadelineProto/EventHandler/Media.html) +* [`\danog\MadelineProto\LocalFile`: Indicates a local file to upload.](../../../../danog/MadelineProto/LocalFile.html) +* [`\danog\MadelineProto\RemoteUrl`: Indicates a remote URL to upload.](../../../../danog/MadelineProto/RemoteUrl.html) +* [`\danog\MadelineProto\BotApiFileId`: Indicates a bot API file ID to upload using sendDocument, sendPhoto etc...](../../../../danog/MadelineProto/BotApiFileId.html) +* `\Amp\ByteStream\ReadableStream` +* [`\danog\MadelineProto\ParseMode`: Indicates a parsing mode for text.](../../../../danog/MadelineProto/ParseMode.html) +* `\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`: `string` Caption of document +* `$parseMode`: `\danog\MadelineProto\ParseMode` Text parse mode for the caption +* `$callback`: `?callable` +* `$fileName`: `?string` Optional file name, if absent will be extracted from the passed $file. +* `$mimeType`: `string` +* `$ttl`: `(integer|null)` Time to live +* `$spoiler`: `boolean` Whether the message is a spoiler +* `$roundMessage`: `boolean` Whether the message should be round +* `$supportsStreaming`: `boolean` Whether the video supports streaming +* `$noSound`: `boolean` Whether 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`: `boolean` Whether to send the message silently, without triggering notifications. +* `$noForwards`: `boolean` Whether to disable forwards for this message. +* `$background`: `boolean` Send this message as background message +* `$clearDraft`: `boolean` Clears the draft field +* `$forceResend`: `boolean` Whether to forcefully resend the file, even if its type and name are the same. +* `$updateStickersetsOrder`: `bool` +* `$cancellation`: `\Amp\Cancellation` Cancellation. + + +#### See also: +* [`\danog\MadelineProto\EventHandler\Message`: Represents an incoming or outgoing message.](../../../../danog/MadelineProto/EventHandler/Message.html) +* [`\danog\MadelineProto\EventHandler\Media`: Represents a generic media.](../../../../danog/MadelineProto/EventHandler/Media.html) +* [`\danog\MadelineProto\LocalFile`: Indicates a local file to upload.](../../../../danog/MadelineProto/LocalFile.html) +* [`\danog\MadelineProto\RemoteUrl`: Indicates a remote URL to upload.](../../../../danog/MadelineProto/RemoteUrl.html) +* [`\danog\MadelineProto\BotApiFileId`: Indicates a bot API file ID to upload using sendDocument, sendPhoto etc...](../../../../danog/MadelineProto/BotApiFileId.html) +* `\Amp\ByteStream\ReadableStream` +* [`\danog\MadelineProto\ParseMode`: Indicates a parsing mode for text.](../../../../danog/MadelineProto/ParseMode.html) +* `\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`: `string` Caption of document +* `$parseMode`: `\danog\MadelineProto\ParseMode` Text parse mode for the caption +* `$callback`: `?callable` +* `$fileName`: `?string` Optional file name, if absent will be extracted from the passed $file. +* `$ttl`: `(integer|null)` Time to live +* `$spoiler`: `boolean` Whether 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`: `boolean` Whether to send the message silently, without triggering notifications. +* `$noForwards`: `boolean` Whether to disable forwards for this message. +* `$background`: `boolean` Send this message as background message +* `$clearDraft`: `boolean` Clears the draft field +* `$forceResend`: `boolean` Whether to forcefully resend the file, even if its type and name are the same. +* `$cancellation`: `?\Amp\Cancellation` Cancellation. + + +#### See also: +* [`\danog\MadelineProto\EventHandler\Message`: Represents an incoming or outgoing message.](../../../../danog/MadelineProto/EventHandler/Message.html) +* [`\danog\MadelineProto\EventHandler\Media`: Represents a generic media.](../../../../danog/MadelineProto/EventHandler/Media.html) +* [`\danog\MadelineProto\LocalFile`: Indicates a local file to upload.](../../../../danog/MadelineProto/LocalFile.html) +* [`\danog\MadelineProto\RemoteUrl`: Indicates a remote URL to upload.](../../../../danog/MadelineProto/RemoteUrl.html) +* [`\danog\MadelineProto\BotApiFileId`: Indicates a bot API file ID to upload using sendDocument, sendPhoto etc...](../../../../danog/MadelineProto/BotApiFileId.html) +* `\Amp\ByteStream\ReadableStream` +* [`\danog\MadelineProto\ParseMode`: Indicates a parsing mode for text.](../../../../danog/MadelineProto/ParseMode.html) +* `\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`: `string` Caption of document +* `$parseMode`: `\danog\MadelineProto\ParseMode` Text parse mode for the caption +* `$callback`: `?callable` +* `$fileName`: `?string` Optional 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`: `boolean` Whether to send the message silently, without triggering notifications. +* `$noForwards`: `boolean` Whether to disable forwards for this message. +* `$background`: `boolean` Send this message as background message +* `$clearDraft`: `boolean` Clears the draft field +* `$forceResend`: `boolean` Whether to forcefully resend the file, even if its type and name are the same. +* `$cancellation`: `?\Amp\Cancellation` Cancellation. + + +#### See also: +* [`\danog\MadelineProto\EventHandler\Message`: Represents an incoming or outgoing message.](../../../../danog/MadelineProto/EventHandler/Message.html) +* [`\danog\MadelineProto\EventHandler\Media`: Represents a generic media.](../../../../danog/MadelineProto/EventHandler/Media.html) +* [`\danog\MadelineProto\LocalFile`: Indicates a local file to upload.](../../../../danog/MadelineProto/LocalFile.html) +* [`\danog\MadelineProto\RemoteUrl`: Indicates a remote URL to upload.](../../../../danog/MadelineProto/RemoteUrl.html) +* [`\danog\MadelineProto\BotApiFileId`: Indicates a bot API file ID to upload using sendDocument, sendPhoto etc...](../../../../danog/MadelineProto/BotApiFileId.html) +* `\Amp\ByteStream\ReadableStream` +* [`\danog\MadelineProto\ParseMode`: Indicates a parsing mode for text.](../../../../danog/MadelineProto/ParseMode.html) +* `\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`: `string` Caption of document +* `$parseMode`: `\danog\MadelineProto\ParseMode` Text parse mode for the caption +* `$callback`: `?callable` +* `$fileName`: `?string` Optional 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`: `boolean` Whether to send the message silently, without triggering notifications. +* `$noForwards`: `boolean` Whether to disable forwards for this message. +* `$background`: `boolean` Send this message as background message +* `$clearDraft`: `boolean` Clears the draft field +* `$forceResend`: `boolean` Whether to forcefully resend the file, even if its type and name are the same. +* `$cancellation`: `?\Amp\Cancellation` Cancellation. + + +#### See also: +* [`\danog\MadelineProto\EventHandler\Message`: Represents an incoming or outgoing message.](../../../../danog/MadelineProto/EventHandler/Message.html) +* [`\danog\MadelineProto\EventHandler\Media`: Represents a generic media.](../../../../danog/MadelineProto/EventHandler/Media.html) +* [`\danog\MadelineProto\LocalFile`: Indicates a local file to upload.](../../../../danog/MadelineProto/LocalFile.html) +* [`\danog\MadelineProto\RemoteUrl`: Indicates a remote URL to upload.](../../../../danog/MadelineProto/RemoteUrl.html) +* [`\danog\MadelineProto\BotApiFileId`: Indicates a bot API file ID to upload using sendDocument, sendPhoto etc...](../../../../danog/MadelineProto/BotApiFileId.html) +* `\Amp\ByteStream\ReadableStream` +* [`\danog\MadelineProto\ParseMode`: Indicates a parsing mode for text.](../../../../danog/MadelineProto/ParseMode.html) +* `\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`: `string` Caption of document +* `$parseMode`: `\danog\MadelineProto\ParseMode` Text parse mode for the caption +* `$callback`: `?callable` +* `$fileName`: `?string` Optional 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`: `boolean` Whether to send the message silently, without triggering notifications. +* `$noForwards`: `bool` +* `$background`: `boolean` Send this message as background message +* `$clearDraft`: `boolean` Clears the draft field +* `$updateStickersetsOrder`: `boolean` Whether to move used stickersets to top +* `$forceResend`: `boolean` Whether to forcefully resend the file, even if its type and name are the same. +* `$cancellation`: `\Amp\Cancellation` Cancellation. + + +#### See also: +* [`\danog\MadelineProto\EventHandler\Message`: Represents an incoming or outgoing message.](../../../../danog/MadelineProto/EventHandler/Message.html) +* [`\danog\MadelineProto\EventHandler\Media`: Represents a generic media.](../../../../danog/MadelineProto/EventHandler/Media.html) +* [`\danog\MadelineProto\LocalFile`: Indicates a local file to upload.](../../../../danog/MadelineProto/LocalFile.html) +* [`\danog\MadelineProto\RemoteUrl`: Indicates a remote URL to upload.](../../../../danog/MadelineProto/RemoteUrl.html) +* [`\danog\MadelineProto\BotApiFileId`: Indicates a bot API file ID to upload using sendDocument, sendPhoto etc...](../../../../danog/MadelineProto/BotApiFileId.html) +* `\Amp\ByteStream\ReadableStream` +* [`\danog\MadelineProto\ParseMode`: Indicates a parsing mode for text.](../../../../danog/MadelineProto/ParseMode.html) +* `\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`: `?string` Optional 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`: `boolean` Whether to send the message silently, without triggering notifications. +* `$noForwards`: `boolean` Whether to disable forwards for this message. +* `$background`: `boolean` Send this message as background message +* `$clearDraft`: `boolean` Clears the draft field +* `$updateStickersetsOrder`: `boolean` Whether to move used stickersets to top +* `$forceResend`: `boolean` Whether to forcefully resend the file, even if its type and name are the same. +* `$cancellation`: `\Amp\Cancellation` Cancellation. + + +#### See also: +* [`\danog\MadelineProto\EventHandler\Message`: Represents an incoming or outgoing message.](../../../../danog/MadelineProto/EventHandler/Message.html) +* [`\danog\MadelineProto\EventHandler\Media`: Represents a generic media.](../../../../danog/MadelineProto/EventHandler/Media.html) +* [`\danog\MadelineProto\LocalFile`: Indicates a local file to upload.](../../../../danog/MadelineProto/LocalFile.html) +* [`\danog\MadelineProto\RemoteUrl`: Indicates a remote URL to upload.](../../../../danog/MadelineProto/RemoteUrl.html) +* [`\danog\MadelineProto\BotApiFileId`: Indicates a bot API file ID to upload using sendDocument, sendPhoto etc...](../../../../danog/MadelineProto/BotApiFileId.html) +* `\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`: `string` Message to send +* `$parseMode`: `\danog\MadelineProto\ParseMode` Parse mode +* `$replyMarkup`: `(array|null)` Keyboard information. +* `$sendAs`: `(integer|string|null)` Peer to send the message as. +* `$scheduleDate`: `(integer|null)` Schedule date. +* `$noWebpage`: `boolean` Set this flag to disable generation of the webpage preview +* `$silent`: `boolean` Whether to send the message silently, without triggering notifications. +* `$noForwards`: `boolean` Only for bots, disallows further re-forwarding and saving of the messages, even if the destination chat doesn’t have [content protection](https://telegram.org/blog/protected-content-delete-by-date-and-more) enabled +* `$background`: `boolean` Send this message as background message +* `$clearDraft`: `boolean` Clears the draft field +* `$updateStickersetsOrder`: `boolean` Whether to move used stickersets to top +* `$cancellation`: `?\Amp\Cancellation` + + +#### See also: +* [`\danog\MadelineProto\ParseMode`: Indicates a parsing mode for text.](../../../../danog/MadelineProto/ParseMode.html) +* `\Amp\Cancellation` +* [`\danog\MadelineProto\EventHandler\Message`: Represents an incoming or outgoing message.](../../../../danog/MadelineProto/EventHandler/Message.html) + + + + +### `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: +* [`\danog\MadelineProto\EventHandler\AbstractStory`: Represents a Telegram Story.](../../../../danog/MadelineProto/EventHandler/AbstractStory.html) + + + + +### `setAction(\danog\MadelineProto\EventHandler\Action $action = \danog\MadelineProto\EventHandler\Action\Typing::__set_state(array(]]): bool` + +Sends a current user typing event +(see [SendMessageAction](https://docs.madelineproto.xyz/API_docs/types/SendMessageAction.html) for all event types) to a conversation partner or group. + + +Parameters: + +* `$action`: `\danog\MadelineProto\EventHandler\Action` + + +#### See also: +* [`\danog\MadelineProto\EventHandler\Action`: In-progress actions.](../../../../danog/MadelineProto/EventHandler/Action.html) + + + + +### `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: +* `max` +* [`\danog\MadelineProto\EventHandler\Message\Service\DialogSetTTL`: The Time-To-Live of messages in this chat was changed.](../../../../danog/MadelineProto/EventHandler/Message/Service/DialogSetTTL.html) + + + + +### `disableTTL(): \danog\MadelineProto\EventHandler\Message\Service\DialogSetTTL` + +Disable Time-To-Live of all messages in the specified chat. + + +#### See also: +* [`\danog\MadelineProto\EventHandler\Message\Service\DialogSetTTL`: The Time-To-Live of messages in this chat was changed.](../../../../danog/MadelineProto/EventHandler/Message/Service/DialogSetTTL.html) + + + + +### `enableAutoTranslate(): bool` + +Show the [real-time chat translation popup](https://core.telegram.org/api/translation) for a certain chat. + + + +### `disableAutoTranslate(): bool` + +Hide the [real-time chat translation popup](https://core.telegram.org/api/translation) for a certain chat. + + + +--- +Generated by [danog/phpdoc](https://phpdoc.daniil.it) diff --git a/docs/PHP/index.md b/docs/PHP/index.md index 9b74efa7b0..f7b5c953d1 100644 --- a/docs/PHP/index.md +++ b/docs/PHP/index.md @@ -159,6 +159,7 @@ Async PHP client API for the telegram MTProto protocol. * [\danog\MadelineProto\EventHandler\Filter\FilterChannel: Allow only updates coming from channels.](/PHP/danog/MadelineProto/EventHandler/Filter/FilterChannel.html) * [\danog\MadelineProto\EventHandler\Filter\FilterCommand: Allow only messages containing the specified command.](/PHP/danog/MadelineProto/EventHandler/Filter/FilterCommand.html) * [\danog\MadelineProto\EventHandler\Filter\FilterCommandCaseInsensitive: Allow only messages containing the specified case-insensitive command.](/PHP/danog/MadelineProto/EventHandler/Filter/FilterCommandCaseInsensitive.html) +* [\danog\MadelineProto\EventHandler\Filter\FilterCommentReply: Allow messages that coming from @replies.](/PHP/danog/MadelineProto/EventHandler/Filter/FilterCommentReply.html) * [\danog\MadelineProto\EventHandler\Filter\FilterEdited: Allows messages that were edited.](/PHP/danog/MadelineProto/EventHandler/Filter/FilterEdited.html) * [\danog\MadelineProto\EventHandler\Filter\FilterEnded: Allow only ended calls.](/PHP/danog/MadelineProto/EventHandler/Filter/FilterEnded.html) * [\danog\MadelineProto\EventHandler\Filter\FilterForwarded: Allow only forwarded messages.](/PHP/danog/MadelineProto/EventHandler/Filter/FilterForwarded.html) @@ -229,6 +230,7 @@ Async PHP client API for the telegram MTProto protocol. * [\danog\MadelineProto\EventHandler\Media\VideoSticker: Represents a video sticker.](/PHP/danog/MadelineProto/EventHandler/Media/VideoSticker.html) * [\danog\MadelineProto\EventHandler\Media\Voice: Represents a voice message.](/PHP/danog/MadelineProto/EventHandler/Media/Voice.html) * [\danog\MadelineProto\EventHandler\Message\ChannelMessage: Represents an incoming or outgoing channel message.](/PHP/danog/MadelineProto/EventHandler/Message/ChannelMessage.html) +* [\danog\MadelineProto\EventHandler\Message\CommentReply: Represents a reply to one of our messages in a channel comment group that we're not a member of (i.e. received via `@replies`).](/PHP/danog/MadelineProto/EventHandler/Message/CommentReply.html) * [\danog\MadelineProto\EventHandler\Message\GroupMessage: Represents an incoming or outgoing group message.](/PHP/danog/MadelineProto/EventHandler/Message/GroupMessage.html) * [\danog\MadelineProto\EventHandler\Message\PrivateMessage: Represents an incoming or outgoing private message.](/PHP/danog/MadelineProto/EventHandler/Message/PrivateMessage.html) * [\danog\MadelineProto\EventHandler\Message\ReportReason](/PHP/danog/MadelineProto/EventHandler/Message/ReportReason.html) diff --git a/docs/docs/FILTERS.md b/docs/docs/FILTERS.md index b472d7205a..344c8313ca 100644 --- a/docs/docs/FILTERS.md +++ b/docs/docs/FILTERS.md @@ -150,6 +150,9 @@ Here's the full list of all concrete types: * [danog\MadelineProto\EventHandler\Message\ChannelMessage »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/ChannelMessage.html) - Represents an incoming or outgoing channel message. * [Full property list »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/ChannelMessage.html#properties) * [Full bound method list »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/ChannelMessage.html#method-list) +* [danog\MadelineProto\EventHandler\Message\CommentReply »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/CommentReply.html) - Represents a reply to one of our messages in a channel comment group that we're not a member of (i.e. received via `@replies`). + * [Full property list »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/CommentReply.html#properties) + * [Full bound method list »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/CommentReply.html#method-list) * [danog\MadelineProto\EventHandler\Message\GroupMessage »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/GroupMessage.html) - Represents an incoming or outgoing group message. * [Full property list »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/GroupMessage.html#properties) * [Full bound method list »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/GroupMessage.html#method-list) @@ -472,6 +475,7 @@ Here's the full list of filter attributes (see the [MTProto filters »](#mt * [danog\MadelineProto\EventHandler\Filter\FilterChannel »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Filter/FilterChannel.html) - Allow only updates coming from channels. * [danog\MadelineProto\EventHandler\Filter\FilterCommand(string $command, list $types = [ 0 => \danog\MadelineProto\EventHandler\CommandType::BANG, 1 => \danog\MadelineProto\EventHandler\CommandType::DOT, 2 => \danog\MadelineProto\EventHandler\CommandType::SLASH,]) »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Filter/FilterCommand.html) - Allow only messages containing the specified command. * [danog\MadelineProto\EventHandler\Filter\FilterCommandCaseInsensitive(string $command, list $types = [ 0 => \danog\MadelineProto\EventHandler\CommandType::BANG, 1 => \danog\MadelineProto\EventHandler\CommandType::DOT, 2 => \danog\MadelineProto\EventHandler\CommandType::SLASH,]) »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Filter/FilterCommandCaseInsensitive.html) - Allow only messages containing the specified case-insensitive command. +* [danog\MadelineProto\EventHandler\Filter\FilterCommentReply »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Filter/FilterCommentReply.html) - Allow messages that coming from @replies. * [danog\MadelineProto\EventHandler\Filter\FilterEdited »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Filter/FilterEdited.html) - Allows messages that were edited. * [danog\MadelineProto\EventHandler\Filter\FilterEnded »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Filter/FilterEnded.html) - Allow only ended calls. * [danog\MadelineProto\EventHandler\Filter\FilterForwarded »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Filter/FilterForwarded.html) - Allow only forwarded messages. diff --git a/docs/docs/UPDATES.md b/docs/docs/UPDATES.md index b76b0dfdc0..5d31ed21fc 100644 --- a/docs/docs/UPDATES.md +++ b/docs/docs/UPDATES.md @@ -546,6 +546,9 @@ Here's a full list of the concrete object types on which bound methods and prope * [danog\MadelineProto\EventHandler\Message\ChannelMessage »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/ChannelMessage.html) - Represents an incoming or outgoing channel message. * [Full property list »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/ChannelMessage.html#properties) * [Full bound method list »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/ChannelMessage.html#method-list) +* [danog\MadelineProto\EventHandler\Message\CommentReply »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/CommentReply.html) - Represents a reply to one of our messages in a channel comment group that we're not a member of (i.e. received via `@replies`). + * [Full property list »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/CommentReply.html#properties) + * [Full bound method list »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/CommentReply.html#method-list) * [danog\MadelineProto\EventHandler\Message\GroupMessage »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/GroupMessage.html) - Represents an incoming or outgoing group message. * [Full property list »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/GroupMessage.html#properties) * [Full bound method list »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/GroupMessage.html#method-list) diff --git a/docs/index.md b/docs/index.md index 88f3bef3a2..40196524b4 100644 --- a/docs/index.md +++ b/docs/index.md @@ -130,34 +130,97 @@ Some of MadelineProto's core components are also available as separate, standalo * [Webhook (for HTTP APIs)](https://docs.madelineproto.xyz/docs/UPDATES.html#webhook) * [getUpdates (only for Javascript APIs)](https://docs.madelineproto.xyz/docs/UPDATES.html#getUpdates) * [Noop (default)](https://docs.madelineproto.xyz/docs/UPDATES.html#noop) - * [danog\MadelineProto\Broadcast\Progress »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/Broadcast/Progress.html) - * [Full property list »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/Broadcast/Progress.html#properties) - * [Full bound method list »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/Broadcast/Progress.html#method-list) - * [danog\MadelineProto\EventHandler\BotCommands »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/BotCommands.html) - The [command set](https://core.telegram.org/api/bots/commands) - * [danog\MadelineProto\EventHandler\Channel\ChannelParticipant »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Channel/ChannelParticipant.html) - A participant has left, joined, was banned or admined in a [channel or supergroup](https://core.telegram.org/api/channel) - * [danog\MadelineProto\EventHandler\Delete\DeleteChannelMessages »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Delete/DeleteChannelMessages.html) - Some messages in a [supergroup/channel](https://core.telegram.org/api/channel) - * [danog\MadelineProto\EventHandler\Delete\DeleteScheduledMessages »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Delete/DeleteScheduledMessages.html) - Some [scheduled messages](https://core.telegram.org/api/scheduled-messages) - * [danog\MadelineProto\EventHandler\Message\Service\DialogChannelMigrateFrom »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogChannelMigrateFrom.html) - Indicates the channel was [migrated](https://core.telegram.org/api/channel) - * [danog\MadelineProto\EventHandler\Message\Service\DialogChatMigrateTo »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogChatMigrateTo.html) - Indicates the chat was [migrated](https://core.telegram.org/api/channel) - * [danog\MadelineProto\EventHandler\Message\Service\DialogPeerRequested »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogPeerRequested.html) - Contains info about a peer that the user shared with the bot after clicking on a [keyboardButtonRequestPeer](https://docs.madelineproto.xyz/API_docs/constructors/keyboardButtonRequestPeer.html) - * [danog\MadelineProto\EventHandler\Message\Service\DialogSetChatWallPaper »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogSetChatWallPaper.html) - The [wallpaper](https://core.telegram.org/api/wallpapers) - * [danog\MadelineProto\EventHandler\Message\Service\DialogSuggestProfilePhoto »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogSuggestProfilePhoto.html) - A new profile picture was suggested using [photos.uploadContactProfilePhoto](https://docs.madelineproto.xyz/API_docs/methods/photos.uploadContactProfilePhoto.html) - * [danog\MadelineProto\EventHandler\Message\Service\DialogTopicCreated »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogTopicCreated.html) - A [forum topic](https://core.telegram.org/api/forum#forum-topics) - * [danog\MadelineProto\EventHandler\Message\Service\DialogTopicEdited »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogTopicEdited.html) - [Forum topic](https://core.telegram.org/api/forum#forum-topics) - * [danog\MadelineProto\EventHandler\Message\Service\DialogWebView »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogWebView.html) - Data from an opened [reply keyboard bot web app](https://core.telegram.org/api/bots/webapps) was relayed to the bot that owns it (user & bot side service message) - * [danog\MadelineProto\EventHandler\Pinned\PinnedChannelMessages »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Pinned/PinnedChannelMessages.html) - Represents messages that were pinned/unpinned in a [channel](https://core.telegram.org/api/channel) - * [danog\MadelineProto\EventHandler\Pinned\PinnedGroupMessages »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Pinned/PinnedGroupMessages.html) - Represents messages that were pinned/unpinned in a [chat/supergroup](https://core.telegram.org/api/channel) - * [danog\MadelineProto\EventHandler\Typing\SupergroupUserTyping »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Typing/SupergroupUserTyping.html) - A user is typing in a [supergroup](https://core.telegram.org/api/channel) - * [danog\MadelineProto\EventHandler\User\Status\Emoji »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/User/Status/Emoji.html) - The [emoji status](https://core.telegram.org/api/emoji-status) - * [danog\MadelineProto\VoIP »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/VoIP.html) - * [Full property list »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/VoIP.html#properties) - * [Full bound method list »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/VoIP.html#method-list) - * [Simple filters »](https://docs.madelineproto.xyz/docs/FILTERS.html#simple-filters) - * [Attribute filters »](https://docs.madelineproto.xyz/docs/FILTERS.html#attribute-filters) - * [MTProto filters »](https://docs.madelineproto.xyz/docs/FILTERS.html#mtproto-filters) - * [Configuration](https://docs.madelineproto.xyz/docs/UPDATES.html#configuration) - * [Creating and uploading text files](https://docs.madelineproto.xyz/docs/UPDATES.html#creating-and-uploading-text-files) - * [Logging](https://docs.madelineproto.xyz/docs/UPDATES.html#logging) + * [danog\MadelineProto\Broadcast\Progress »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/Broadcast/Progress.html) - Broadcast progress. + * [danog\MadelineProto\EventHandler\AbstractMessage »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/AbstractMessage.html) - Represents an incoming or outgoing message. + * [danog\MadelineProto\EventHandler\AbstractPrivateMessage »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/AbstractPrivateMessage.html) - Represents a private or secret chat message. + * [danog\MadelineProto\EventHandler\AbstractStory »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/AbstractStory.html) - Represents a Telegram Story. + * [danog\MadelineProto\EventHandler\BotCommands »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/BotCommands.html) - The [command set](https://core.telegram.org/api/bots/commands) of a certain bot in a certain chat has changed. + * [danog\MadelineProto\EventHandler\CallbackQuery »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/CallbackQuery.html) - Represents a query sent by the user by clicking on a button. + * [danog\MadelineProto\EventHandler\Channel\ChannelParticipant »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Channel/ChannelParticipant.html) - A participant has left, joined, was banned or admined in a [channel or supergroup](https://core.telegram.org/api/channel). + * [danog\MadelineProto\EventHandler\Channel\MessageForwards »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Channel/MessageForwards.html) - Indicates that the forward counter of a message in a channel has changed. + * [danog\MadelineProto\EventHandler\Channel\MessageViewsChanged »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Channel/MessageViewsChanged.html) - Indicates that the view counter of a message in a channel has changed. + * [danog\MadelineProto\EventHandler\Channel\UpdateChannel »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Channel/UpdateChannel.html) - A new channel is available, or info about an existing channel was changed. + * [danog\MadelineProto\EventHandler\ChatInviteRequester »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/ChatInviteRequester.html) - Indicates someone has requested to join a chat or channel. + * [danog\MadelineProto\EventHandler\ChatInviteRequester\BotChatInviteRequest »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/ChatInviteRequester/BotChatInviteRequest.html) - Indicates someone has requested to join a chat or channel (bots only). + * [danog\MadelineProto\EventHandler\ChatInviteRequester\PendingJoinRequests »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/ChatInviteRequester/PendingJoinRequests.html) - Someone has requested to join a chat or channel. + * [danog\MadelineProto\EventHandler\Delete »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Delete.html) - Indicates that some messages were deleted. + * [danog\MadelineProto\EventHandler\Delete\DeleteChannelMessages »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Delete/DeleteChannelMessages.html) - Some messages in a [supergroup/channel](https://core.telegram.org/api/channel) were deleted. + * [danog\MadelineProto\EventHandler\Delete\DeleteMessages »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Delete/DeleteMessages.html) - Some messages were deleted in a private chat or simple group. + * [danog\MadelineProto\EventHandler\Delete\DeleteScheduledMessages »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Delete/DeleteScheduledMessages.html) - Some [scheduled messages](https://core.telegram.org/api/scheduled-messages) were deleted from the schedule queue of a chat. + * [danog\MadelineProto\EventHandler\InlineQuery »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/InlineQuery.html) - An incoming inline query. + * [danog\MadelineProto\EventHandler\Message »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message.html) - Represents an incoming or outgoing message. + * [danog\MadelineProto\EventHandler\Message\ChannelMessage »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/ChannelMessage.html) - Represents an incoming or outgoing channel message. + * [danog\MadelineProto\EventHandler\Message\CommentReply »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/CommentReply.html) - Represents a reply to one of our messages in a channel comment group that we're not a member of (i.e. received via `@replies`). + * [danog\MadelineProto\EventHandler\Message\GroupMessage »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/GroupMessage.html) - Represents an incoming or outgoing group message. + * [danog\MadelineProto\EventHandler\Message\PrivateMessage »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/PrivateMessage.html) - Represents an incoming or outgoing private message. + * [danog\MadelineProto\EventHandler\Message\SecretMessage »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/SecretMessage.html) - Represents New encrypted message. + * [danog\MadelineProto\EventHandler\Message\ServiceMessage »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/ServiceMessage.html) - Represents info about a service message. + * [danog\MadelineProto\EventHandler\Message\ServiceMessage »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/ServiceMessage.html) - Represents info about a service message. + * [danog\MadelineProto\EventHandler\Message\Service\DialogBotAllowed »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogBotAllowed.html) - We have given the bot permission to send us direct messages. + * [danog\MadelineProto\EventHandler\Message\Service\DialogChannelCreated »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogChannelCreated.html) - The channel was created. + * [danog\MadelineProto\EventHandler\Message\Service\DialogChannelMigrateFrom »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogChannelMigrateFrom.html) - Indicates the channel was [migrated](https://core.telegram.org/api/channel) from the specified chat. + * [danog\MadelineProto\EventHandler\Message\Service\DialogChatJoinedByLink »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogChatJoinedByLink.html) - A user joined the chat via an invite link. + * [danog\MadelineProto\EventHandler\Message\Service\DialogChatMigrateTo »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogChatMigrateTo.html) - Indicates the chat was [migrated](https://core.telegram.org/api/channel) to the specified supergroup. + * [danog\MadelineProto\EventHandler\Message\Service\DialogContactSignUp »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogContactSignUp.html) - A contact just signed up to telegram. + * [danog\MadelineProto\EventHandler\Message\Service\DialogCreated »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogCreated.html) - A chat or channel was created. + * [danog\MadelineProto\EventHandler\Message\Service\DialogDeleteMessages »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogDeleteMessages.html) - Deleted messages. + * [danog\MadelineProto\EventHandler\Message\Service\DialogGameScore »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogGameScore.html) - Someone scored in a game. + * [danog\MadelineProto\EventHandler\Message\Service\DialogGeoProximityReached »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogGeoProximityReached.html) - A user of the chat is now in proximity of another user. + * [danog\MadelineProto\EventHandler\Message\Service\DialogGiftPremium »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogGiftPremium.html) - Info about a gifted Telegram Premium subscription. + * [danog\MadelineProto\EventHandler\Message\Service\DialogGroupCall »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogGroupCall.html) - Represents a service message about a group call. + * [danog\MadelineProto\EventHandler\Message\Service\DialogGroupCall\GroupCall »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogGroupCall/GroupCall.html) - The group call has started or ended. + * [danog\MadelineProto\EventHandler\Message\Service\DialogGroupCall\GroupCallInvited »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogGroupCall/GroupCallInvited.html) - A set of users was invited to the group call. + * [danog\MadelineProto\EventHandler\Message\Service\DialogGroupCall\GroupCallScheduled »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogGroupCall/GroupCallScheduled.html) - A group call was scheduled. + * [danog\MadelineProto\EventHandler\Message\Service\DialogHistoryCleared »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogHistoryCleared.html) - Chat history was cleared. + * [danog\MadelineProto\EventHandler\Message\Service\DialogMemberJoinedByRequest »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogMemberJoinedByRequest.html) - A user was accepted into the group by an admin. + * [danog\MadelineProto\EventHandler\Message\Service\DialogMemberLeft »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogMemberLeft.html) - A member left the chat or channel. + * [danog\MadelineProto\EventHandler\Message\Service\DialogMembersJoined »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogMembersJoined.html) - Some members joined the chat or channel. + * [danog\MadelineProto\EventHandler\Message\Service\DialogMessagePinned »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogMessagePinned.html) - A message was pinned in a chat. + * [danog\MadelineProto\EventHandler\Message\Service\DialogPeerRequested »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogPeerRequested.html) - Contains info about a peer that the user shared with the bot after clicking on a [keyboardButtonRequestPeer](https://docs.madelineproto.xyz/API_docs/constructors/keyboardButtonRequestPeer.html) button. + * [danog\MadelineProto\EventHandler\Message\Service\DialogPhoneCall »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogPhoneCall.html) - A phone call. + * [danog\MadelineProto\EventHandler\Message\Service\DialogPhotoChanged »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogPhotoChanged.html) - The photo of the dialog was changed or deleted. + * [danog\MadelineProto\EventHandler\Message\Service\DialogReadMessages »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogReadMessages.html) - Messages marked as read. + * [danog\MadelineProto\EventHandler\Message\Service\DialogScreenshotTaken »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogScreenshotTaken.html) - A screenshot of the chat was taken. + * [danog\MadelineProto\EventHandler\Message\Service\DialogSetChatTheme »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogSetChatTheme.html) - The chat theme was changed. + * [danog\MadelineProto\EventHandler\Message\Service\DialogSetChatWallPaper »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogSetChatWallPaper.html) - The [wallpaper](https://core.telegram.org/api/wallpapers) of the current chat was changed. + * [danog\MadelineProto\EventHandler\Message\Service\DialogSetTTL »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogSetTTL.html) - The Time-To-Live of messages in this chat was changed. + * [danog\MadelineProto\EventHandler\Message\Service\DialogSuggestProfilePhoto »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogSuggestProfilePhoto.html) - A new profile picture was suggested using [photos.uploadContactProfilePhoto](https://docs.madelineproto.xyz/API_docs/methods/photos.uploadContactProfilePhoto.html). + * [danog\MadelineProto\EventHandler\Message\Service\DialogTitleChanged »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogTitleChanged.html) - The title of a channel or group has changed. + * [danog\MadelineProto\EventHandler\Message\Service\DialogTopicCreated »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogTopicCreated.html) - A [forum topic](https://core.telegram.org/api/forum#forum-topics) was created. + * [danog\MadelineProto\EventHandler\Message\Service\DialogTopicEdited »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogTopicEdited.html) - [Forum topic](https://core.telegram.org/api/forum#forum-topics) information was edited. + * [danog\MadelineProto\EventHandler\Message\Service\DialogWebView »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogWebView.html) - Data from an opened [reply keyboard bot web app](https://core.telegram.org/api/bots/webapps) was relayed to the bot that owns it (user & bot side service message). + * [danog\MadelineProto\EventHandler\Pinned »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Pinned.html) - Indicates that some messages were pinned/unpinned. + * [danog\MadelineProto\EventHandler\Pinned\PinnedChannelMessages »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Pinned/PinnedChannelMessages.html) - Represents messages that were pinned/unpinned in a [channel](https://core.telegram.org/api/channel). + * [danog\MadelineProto\EventHandler\Pinned\PinnedGroupMessages »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Pinned/PinnedGroupMessages.html) - Represents messages that were pinned/unpinned in a [chat/supergroup](https://core.telegram.org/api/channel). + * [danog\MadelineProto\EventHandler\Pinned\PinnedPrivateMessages »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Pinned/PinnedPrivateMessages.html) - Some messages were pinned in a private chat. + * [danog\MadelineProto\EventHandler\Privacy »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Privacy.html) - Indicates some privacy rules for a user or set of users. + * [danog\MadelineProto\EventHandler\Query\ButtonQuery »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Query/ButtonQuery.html) - Represents a query sent by the user by clicking on a button. + * [danog\MadelineProto\EventHandler\Query\ChatButtonQuery »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Query/ChatButtonQuery.html) - Represents a query sent by the user by clicking on a button in a chat. + * [danog\MadelineProto\EventHandler\Query\ChatGameQuery »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Query/ChatGameQuery.html) - Represents a query sent by the user by clicking on a "Play game" button in a chat. + * [danog\MadelineProto\EventHandler\Query\GameQuery »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Query/GameQuery.html) - Represents a query sent by the user by clicking on a "Play game" button. + * [danog\MadelineProto\EventHandler\Query\InlineButtonQuery »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Query/InlineButtonQuery.html) - Represents a query sent by the user by clicking on a button in an inline message. + * [danog\MadelineProto\EventHandler\Query\InlineGameQuery »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Query/InlineGameQuery.html) - Represents a query sent by the user by clicking on a "Play game" button in an inline message. + * [danog\MadelineProto\EventHandler\Story\Story »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Story/Story.html) - Represents a Telegram story. + * [danog\MadelineProto\EventHandler\Story\StoryDeleted »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Story/StoryDeleted.html) - Represents a deleted story. + * [danog\MadelineProto\EventHandler\Story\StoryReaction »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Story/StoryReaction.html) - Represents a reaction to a story. + * [danog\MadelineProto\EventHandler\Typing »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Typing.html) - A user is typing. + * [danog\MadelineProto\EventHandler\Typing\ChatUserTyping »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Typing/ChatUserTyping.html) - The user is preparing a message in a group; typing, recording, uploading, etc. This update is valid for 6 seconds. If no further updates of this kind are received after 6 seconds, it should be considered that the user stopped doing whatever they were doing. + * [danog\MadelineProto\EventHandler\Typing\SecretUserTyping »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Typing/SecretUserTyping.html) - The user is preparing a message in a secret chat; typing, recording, uploading, etc. This update is valid for 6 seconds. If no further updates of this kind are received after 6 seconds, it should be considered that the user stopped doing whatever they were doing. + * [danog\MadelineProto\EventHandler\Typing\SupergroupUserTyping »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Typing/SupergroupUserTyping.html) - A user is typing in a [supergroup](https://core.telegram.org/api/channel). + * [danog\MadelineProto\EventHandler\Typing\UserTyping »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Typing/UserTyping.html) - The user is preparing a message; typing, recording, uploading, etc. This update is valid for 6 seconds. If no further updates of this kind are received after 6 seconds, it should be considered that the user stopped doing whatever they were doing. + * [danog\MadelineProto\EventHandler\User\Blocked »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/User/Blocked.html) - A peer was blocked. + * [danog\MadelineProto\EventHandler\User\BotStopped »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/User/BotStopped.html) - A bot was stopped or re-started. + * [danog\MadelineProto\EventHandler\User\Phone »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/User/Phone.html) - A user’s phone number was changed. + * [danog\MadelineProto\EventHandler\User\Status »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/User/Status.html) - Contains a status update. + * [danog\MadelineProto\EventHandler\User\Status\Emoji »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/User/Status/Emoji.html) - The [emoji status](https://core.telegram.org/api/emoji-status) of a certain user has changed or was removed. + * [danog\MadelineProto\EventHandler\User\Status\EmptyStatus »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/User/Status/EmptyStatus.html) - User status has not been set yet. + * [danog\MadelineProto\EventHandler\User\Status\LastMonth »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/User/Status/LastMonth.html) - Online status: last seen last month. + * [danog\MadelineProto\EventHandler\User\Status\LastWeek »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/User/Status/LastWeek.html) - Online status: last seen last week. + * [danog\MadelineProto\EventHandler\User\Status\Offline »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/User/Status/Offline.html) - The user’s offline status. + * [danog\MadelineProto\EventHandler\User\Status\Online »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/User/Status/Online.html) - Online status of the user. + * [danog\MadelineProto\EventHandler\User\Status\Recently »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/User/Status/Recently.html) - Online status: last seen recently. + * [danog\MadelineProto\EventHandler\User\Username »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/User/Username.html) - Changes were made to the user’s first name, last name or username. + * [danog\MadelineProto\VoIP »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/VoIP.html) - This update represents a VoIP Telegram call. * [Filters](https://docs.madelineproto.xyz/docs/FILTERS.html) - MadelineProto offers a very simple and intuitive message filtering system, based on PHP's type system and attributes. * [Simple filters](https://docs.madelineproto.xyz/docs/FILTERS.html#simple-filters) * [Attribute filters](https://docs.madelineproto.xyz/docs/FILTERS.html#attribute-filters)