class

PrivateParlorXT::SpoilerCommand

Inherits PrivateParlorXT::CommandHandler < PrivateParlorXT::Handler < Reference < Object

A command used to add or remove a spoiler on a message after it has been sent.

Instance methods

do(message : Tourmaline::Message, services : Services) : Nil

Adds a spoiler to the given message if it does not have one, or removes it if it does, and message meets requirements

Source
message_input(message : Tourmaline::Message) : Tourmaline::InputMedia | Nil

Returns a Tourmaline::InputMedia from the media contents of the given message

Returns nil unless message contains a photo, video, or animation/GIF

Source
spoil_messages(reply : Tourmaline::Message, user : User, input : Tourmaline::InputMedia, services : Services) : Nil

Spoils the given media message for all receivers by editing the media with the given input.

Source