added self-bot support.

This commit is contained in:
5elenay
2021-08-24 10:37:31 +03:00
parent 026950ebcf
commit 48123c8295
3 changed files with 134 additions and 106 deletions

View File

@@ -159,7 +159,7 @@ func (c *Client) Auth() error {
return fmt.Errorf("can't auth user (not a self-bot.)")
}
resp, err := c.Request("POST", "/auth/login", []byte("{\"email\":\""+c.SelfBot.Email+"\",\"password\":\""+c.SelfBot.Password+"\"}"))
resp, err := c.Request("POST", "/auth/login", []byte("{\"email\":\""+c.SelfBot.Email+"\",\"password\":\""+c.SelfBot.Password+"\",\"captcha\": \"\"}"))
if err != nil {
return err