Open vicabert091 opened 3 days ago
Hi!
Its not a bug, the phone code is actually empty.
Look here:
phoneNumber := "+"
code, err := authCli.SendCode(ctx, phoneNumber, auth.SendCodeOptions{
AllowAppHash: true,
})
You set the phoneNumber
variable to "+", so yes, the phone code is missing, this is a bad request: https://core.telegram.org/api/errors#400-bad-request.
Please set your phone number to a real phone number, the one of your telegram account, for instance: phoneNumber := "+15028258670"
, and it will work, then you'll be able to close the issue.
The verification code can be received, and the parameters passed are correct. PHONE_CODE_EMPTY is still reported