TgKit library and website are still in early development!

ChatMemberBanOptions Interface

Properties

revokeMessages boolean

Pass *true* to delete all messages from the chat for the user that is being removed. If *false*, the user will be able to see messages in the group that were sent before the user was removed. Always *true* for supergroups and channels.

See the code

untilDate Date

Date when the user will be unbanned. If user is banned for more than 366 days or less than 30 seconds from the current time, they are considered to be banned forever

See the code