2.8 KiB
//docs/dev.inmo.tgbotapi.extensions.api.chat.members/restrictChatMember
restrictChatMember
[common]
Content
suspend fun TelegramBot.restrictChatMember(chatId: ChatIdentifier, userId: UserId, untilDate: TelegramDate? = null, permissions: ChatPermissions = ChatPermissions()): Boolean
suspend fun TelegramBot.restrictChatMember(chat: PublicChat, userId: UserId, untilDate: TelegramDate? = null, permissions: ChatPermissions = ChatPermissions()): Boolean
suspend fun TelegramBot.restrictChatMember(chatId: ChatId, user: User, untilDate: TelegramDate? = null, permissions: ChatPermissions = ChatPermissions()): Boolean
suspend fun TelegramBot.restrictChatMember(chat: PublicChat, user: User, untilDate: TelegramDate? = null, permissions: ChatPermissions = ChatPermissions()): Boolean