ChatPermissions

telegramium.bots.ChatPermissions
final case class ChatPermissions(canSendMessages: Option[Boolean], canSendAudios: Option[Boolean], canSendDocuments: Option[Boolean], canSendPhotos: Option[Boolean], canSendVideos: Option[Boolean], canSendVideoNotes: Option[Boolean], canSendVoiceNotes: Option[Boolean], canSendPolls: Option[Boolean], canSendOtherMessages: Option[Boolean], canAddWebPagePreviews: Option[Boolean], canChangeInfo: Option[Boolean], canInviteUsers: Option[Boolean], canPinMessages: Option[Boolean], canManageTopics: Option[Boolean])

Describes actions that a non-administrator user is allowed to take in a chat.

Value parameters

canAddWebPagePreviews

Optional. True, if the user is allowed to add web page previews to their messages

canChangeInfo

Optional. True, if the user is allowed to change the chat title, photo and other settings. Ignored in public supergroups

canInviteUsers

Optional. True, if the user is allowed to invite new users to the chat

canManageTopics

Optional. True, if the user is allowed to create forum topics. If omitted defaults to the value of can_pin_messages

canPinMessages

Optional. True, if the user is allowed to pin messages. Ignored in public supergroups

canSendAudios

Optional. True, if the user is allowed to send audios

canSendDocuments

Optional. True, if the user is allowed to send documents

canSendMessages

Optional. True, if the user is allowed to send text messages, contacts, giveaways, giveaway winners, invoices, locations and venues

canSendOtherMessages

Optional. True, if the user is allowed to send animations, games, stickers and use inline bots

canSendPhotos

Optional. True, if the user is allowed to send photos

canSendPolls

Optional. True, if the user is allowed to send polls

canSendVideoNotes

Optional. True, if the user is allowed to send video notes

canSendVideos

Optional. True, if the user is allowed to send videos

canSendVoiceNotes

Optional. True, if the user is allowed to send voice notes

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product