Telegex.promote_chat_member
You're seeing just the function
promote_chat_member
, go back to Telegex module for more information.
Specs
promote_chat_member(integer() | String.t(), integer(), is_anonymous: boolean(), can_manage_chat: boolean(), can_change_info: boolean(), can_post_messages: boolean(), can_edit_messages: boolean(), can_delete_messages: boolean(), can_manage_voice_chats: boolean(), can_invite_users: boolean(), can_restrict_members: boolean(), can_pin_messages: boolean(), can_promote_members: boolean() ) :: {:ok, boolean()} | {:error, Telegex.Model.errors()}
Use this method to promote or demote a user in a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Pass False for all boolean parameters to demote a user. Returns True on success.