Link Search Menu Expand Document

danog\MadelineProto\EventHandler\Message\Service\DialogSetChatWallPaper

Back to index

Author: Daniil Gentili daniil@daniil.it

The wallpaper of the current chat was changed.

Properties

  • $wallpaper: Wallpaper New wallpaper
  • $same: bool Whether the user applied a wallpaper previously sent by the other user in a DialogSetChatWallPaper 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:

Methods:

__construct(\danog\MadelineProto\MTProto $API, array $rawMessage, array $info, \danog\MadelineProto\EventHandler\Wallpaper $wallpaper, bool $same = false)

Parameters:

  • $API: \danog\MadelineProto\MTProto
  • $rawMessage: array
  • $info: array
  • $wallpaper: \danog\MadelineProto\EventHandler\Wallpaper
  • $same: bool

See also:

isReply(): boolean

Check if the current message replies to another message.

getReply(class-string<T> $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<T> 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 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:

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 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:

block(): boolean

Adds the user to the blacklist.

unblock(): boolean

Deletes the user from the blacklist.

getStories(): list<\danog\MadelineProto\EventHandler\AbstractStory>

Get user stories.

See also:

setAction(\danog\MadelineProto\EventHandler\Action $action = \danog\MadelineProto\EventHandler\Action\Typing::__set_state(array(]]): boolean

Sends a current user typing event (see SendMessageAction for all event types) to a conversation partner or group.

Parameters:

  • $action: \danog\MadelineProto\EventHandler\Action

See also:

read(boolean $readAll = false): boolean

Mark selected message as read.

Parameters:

  • $readAll: boolean

Return value: if set, read all messages in current chat.

enableTTL(int<1, max> $seconds = 86400): \danog\MadelineProto\EventHandler\Message\Service\DialogSetTTL

Set maximum Time-To-Live of all messages in the specified chat.

Parameters:

  • $seconds: int<1, max> Automatically delete all messages sent in the chat after this many seconds

See also:

disableTTL(): \danog\MadelineProto\EventHandler\Message\Service\DialogSetTTL

Disable Time-To-Live of all messages in the specified chat.

See also:

enableAutoTranslate(): boolean

Show the real-time chat translation popup for a certain chat.

disableAutoTranslate(): boolean

Hide the real-time chat translation popup for a certain chat.


Generated by danog/phpdoc