ChatMemberRestricted

telegramium.bots.ChatMemberRestricted
final case class ChatMemberRestricted(user: User, isMember: Boolean, canSendMessages: Boolean, canSendAudios: Boolean, canSendDocuments: Boolean, canSendPhotos: Boolean, canSendVideos: Boolean, canSendVideoNotes: Boolean, canSendVoiceNotes: Boolean, canSendPolls: Boolean, canSendOtherMessages: Boolean, canAddWebPagePreviews: Boolean, canChangeInfo: Boolean, canInviteUsers: Boolean, canPinMessages: Boolean, canManageTopics: Boolean, untilDate: Int) extends ChatMember

Represents a chat member that is under certain restrictions in the chat. Supergroups only.

Value parameters

canAddWebPagePreviews

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

canChangeInfo

True, if the user is allowed to change the chat title, photo and other settings

canInviteUsers

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

canManageTopics

True, if the user is allowed to create forum topics

canPinMessages

True, if the user is allowed to pin messages

canSendAudios

True, if the user is allowed to send audios

canSendDocuments

True, if the user is allowed to send documents

canSendMessages

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

canSendOtherMessages

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

canSendPhotos

True, if the user is allowed to send photos

canSendPolls

True, if the user is allowed to send polls

canSendVideoNotes

True, if the user is allowed to send video notes

canSendVideos

True, if the user is allowed to send videos

canSendVoiceNotes

True, if the user is allowed to send voice notes

isMember

True, if the user is a member of the chat at the moment of the request

untilDate

Date when restrictions will be lifted for this user; Unix time. If 0, then the user is restricted forever

user

Information about the user

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait ChatMember
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