Class BanChatMember
java.lang.Object
io.github.natanimn.telebof.requests.AbstractBaseRequest<BanChatMember, Boolean>
io.github.natanimn.telebof.requests.service.BanChatMember
BanChatMember class. Returns True on success.
- Since:
- 3 March 2025
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionrevokeMessages
(boolean revoke_messages) OptionaluntilDate
(int until_date) OptionalMethods inherited from class io.github.natanimn.telebof.requests.AbstractBaseRequest
exec
-
Constructor Details
-
BanChatMember
-
-
Method Details
-
untilDate
Optional- Parameters:
until_date
- 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.- Returns:
BanChatMember
-
revokeMessages
Optional- Parameters:
revoke_messages
- 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.- Returns:
BanChatMember
-