invoke

operator fun invoke(user: PreviewUser, untilDate: TelegramDate? = null, isMember: Boolean = false, canSendMessages: Boolean = false, canSendAudios: Boolean = false, canSendDocuments: Boolean = false, canSendPhotos: Boolean = false, canSendVideos: Boolean = false, canSendVideoNotes: Boolean = false, canSendVoiceNotes: Boolean = false, canSendPolls: Boolean = false, canSendOtherMessages: Boolean = false, canAddWebPagePreviews: Boolean = false, canChangeInfo: Boolean = false, canInviteUsers: Boolean = false, canPinMessages: Boolean = false, canManageTopics: Boolean = false): RestrictedMemberChatMember

Deprecated

Renamed

Replace with

import dev.inmo.tgbotapi.types.chat.members.RestrictedChatMemberImpl
RestrictedChatMemberImpl(user, untilDate, isMember, canSendMessages, canSendAudios, canSendDocuments, canSendPhotos, canSendVideos, canSendVideoNotes, canSendVoiceNotes, canSendPolls, canSendOtherMessages, canAddWebPagePreviews, canChangeInfo, canInviteUsers, canPinMessages, canManageTopics)