Interface IBanChatMemberParams

Parameters for the banChatMember method

Hierarchy

  • IBanChatMemberParams

Properties

chat_id: string | number

Unique identifier for the target group or username of the target supergroup or channel (in the format @channelusername)

revoke_messages?: 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.

until_date?: number

Date when the user will be unbanned, unix time. 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. Applied for supergroups and channels only.

user_id: number

Unique identifier of the target user

Generated using TypeDoc