enum PrivateParlorXT::MessagePermissions

Overview

Message types which can be given to a Rank to permit sending messages of that type

Messages permitted for each type:

Text: Text messages without any media

Animation: GIFs

Audio: Audio files/messages

Document: General files

Video: Videos

VideoNote: Round video/voice messages

Voice: Voice messages

Photo: Photos

MediaGroup: Albums of any kind

Poll: Polls

Forward: Forwarded messages

Sticker:Stickers

Venue: Venues

Location: Locations

Contact: SMS contacts

Defined in:

private-parlor-xt/ranks/message_permissions.cr

Enum Members

Text = 0
Animation = 1
Audio = 2
Document = 3
Video = 4
VideoNote = 5
Voice = 6
Photo = 7
MediaGroup = 8
Poll = 9
Forward = 10
Sticker = 11
Venue = 12
Location = 13
Contact = 14

Instance Method Summary

Instance Method Detail

def animation? #

[View source]
def audio? #

[View source]
def contact? #

[View source]
def document? #

[View source]
def forward? #

[View source]
def location? #

[View source]
def media_group? #

[View source]
def photo? #

[View source]
def poll? #

[View source]
def sticker? #

[View source]
def text? #

[View source]
def venue? #

[View source]
def video? #

[View source]
def video_note? #

[View source]
def voice? #

[View source]