Class RestrictChatMember

  • All Implemented Interfaces:
    Validable

    public class RestrictChatMember
    extends BotApiMethod<Boolean>
    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