PrivateParlorXT::AlbumHandler
Inherits PrivateParlorXT::AlbumHelpers < PrivateParlorXT::UpdateHandler < PrivateParlorXT::Handler < Reference < Object
A handler for album message updates
Instance methods
albums=(albums : Hash(String, Album))
A hash of String, media group IDs, to Album, representing forwarded albums
Checks if the album message meets requirements and relays it
Checks if the user is spamming albums
Returns true if the user is spamming albums, false otherwise
Returns the User with decremented karma when KarmaHandler is enabled and
user has sufficient karma for an album
Checks if the user has sufficient karma to send an album when KarmaHandler is enabled
Returns true if:
KarmaHandleris not enabled- The price for albums is less than 0
- The user's
Rankis equal to or greater than the cutoffRank - User has sufficient karma
Returns nil if the user does not have sufficient karma