Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't create new NewClient. #66

Open
0x30c4 opened this issue Apr 7, 2024 · 8 comments
Open

Can't create new NewClient. #66

0x30c4 opened this issue Apr 7, 2024 · 8 comments

Comments

@0x30c4
Copy link

0x30c4 commented Apr 7, 2024

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

@celestix
Copy link
Owner

celestix commented Apr 7, 2024

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) ?

@0x30c4
Copy link
Author

0x30c4 commented Apr 7, 2024

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

@celestix
Copy link
Owner

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

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

@celestix
Copy link
Owner

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.

@0x30c4
Copy link
Author

0x30c4 commented Apr 19, 2024

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

@celestix
Copy link
Owner

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
Copy link
Owner

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

@0x30c4
Copy link
Author

0x30c4 commented Apr 19, 2024

Ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants