All Implemented Interfaces:
Validable
Version:
3.1
Use this method to restrict a user in a supergroup.
The bot must be an administrator in the supergroup for this to work and must have the appropriate admin rights.
Pass True for all boolean parameters to lift restrictions from a user. Returns True on success.
Author:
Ruben Bermudez
Nested Class Summary
Nested Classes
Constructor Summary
Constructors
Method Summary
All Methods Instance Methods Concrete Methods
void
Getter for method path (that is the same as method name)
void
void
void
void
Validates that mandatory fields are filled and optional objects
Methods inherited from class Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Field Details
PATH
public static final String PATH
See Also:
Constructor Details
RestrictChatMember
public RestrictChatMember ()
Method Details
setChatId
public void setChatId (@NonNull
@NonNull Long chatId)
setUntilDateInstant
public void setUntilDateInstant (Instant instant)
forTimePeriodDuration
public void forTimePeriodDuration (Duration duration)