gotgproto icon indicating copy to clipboard operation
gotgproto copied to clipboard

Can't create new NewClient.

Open 0x30c4 opened this issue 1 year ago • 8 comments

I tried to run this example, but no 2FA code is being sent to me at all. I tried on different systems.

System Info OS: Linux artixlinux 6.8.2-artix1-1 Golang Version: go version go1.22.1 linux/amd64 gotgproto Version: v1.0.0-beta17

go.mod gbin.me/5a7

main.go file gbin.me/5a6

0x30c4 avatar Apr 07 '24 10:04 0x30c4

Are you use you're triggering the API methods in the example? Also, have you tried creating a client with simple authenticator (https://github.com/celestix/gotgproto/tree/beta/examples/authorizing-as-user/sqlite_session) ?

celestix avatar Apr 07 '24 16:04 celestix

yes, i tried this example also. but no luck.

0x30c4 avatar Apr 07 '24 19:04 0x30c4

yes, i tried this example also. but no luck.

That's weird. I will try to reproduce it and let you know.

celestix avatar Apr 10 '24 07:04 celestix

Hello @0x30c4, have you got a spare account where we can test things up? I tried to arrange a test account but failed to do so.

celestix avatar Apr 18 '24 19:04 celestix

Hi @celestix, no luck. i tried with a different account but same result.

0x30c4 avatar Apr 19 '24 11:04 0x30c4

Hi @celestix, no luck. i tried with a different account but same result.

I see, I've got an account as well! Let me try it now.

celestix avatar Apr 19 '24 11:04 celestix

Hey @0x30c4, I tried with the echobot example on an account with and without 2FA protection. Both worked fine for me. Can you reach out to me on telegram and send the exact code you are using? https://t.me/coswand

celestix avatar Apr 19 '24 11:04 celestix

Ok

0x30c4 avatar Apr 19 '24 15:04 0x30c4