-
Notifications
You must be signed in to change notification settings - Fork 6
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
client.SendCode(...) error #27
Comments
System.AggregateException was unhandled |
Hi, Jackie. Could you please show your code how you create/initialize and use |
public static void Main(string[] args)
|
I have same problem :( |
Hi. I'll check this today in the evening. Sorry for the delay. |
Ok, so:
|
I have same problem :( |
In my Api configuration I also have the very same servers: With Test server(149.154.167.40:443) I get the same error as you do: API_ID_INVALID which is probably ok. But with Prod Server(149.154.167.50:443) it works just fine for me. |
Did you try to specify your server address explicitly through constructor parameter in TelegramClient? (You should specify only server address without port. F.e. 149.154.167.50) |
Hi, Jackie. Is it possible for you to share your apiId/hash/ips with me so that I could try to reproduce it? In private, ofc. |
This error can be replicated by using new mobile numbers. Newly registered number will have a 6-digit api_id which constitutes to this error. |
Ok, I'll try to register new Api and check it. Thanks for the info. |
no need.. its working again.. telegram problem and they fixed it, they could not support 6 digit api_id |
issue solved.. you can close now 💯 |
Great to hear that. |
Cool. Thanks for posting in this thread. |
Help please,
I'm trying to use Telegram.NET, I've created developer account at telegram website and got my Api ID and Api Hash so far so good.
i'm able to perform client.Start() and it returns me "connected"
after that I got to client.SendCode() and it returns me an exception which says API_ID_INVALID.
i know how to copy and paste so i am pretty sure its not a number mistake..
it worked once on my friend computer when i used it without DeviceInfo so ill be glad if someone can send me an example of :
DeviceInfo(string deviceModel, string systemVersion, string appVersion, string langCode)
another option is the server, in my app configuration page on telegram i get 2 servers which are different than your default server:
TEST SERVER :
149.154.167.40:443
PROD SERVER:
149.154.167.50:443
tried them both but it still returns me API_ID_INVALID
any suggestions ?
The text was updated successfully, but these errors were encountered: