Telegex.restrict_chat_member

You're seeing just the function restrict_chat_member, go back to Telegex module for more information.
Link to this function

restrict_chat_member(chat_id, user_id, permissions, optionals \\ [])

View Source

Specs

restrict_chat_member(
  integer() | String.t(),
  integer(),
  Telegex.Model.ChatPermissions.t(),
  [{:until_date, integer()}]
) :: {:ok, boolean()} | {:error, Telegex.Model.errors()}

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 permissions to lift restrictions from a user. Returns True on success.