getFullUser a method in Telegram API that returns extended user info by ID.
https://core.telegram.org/method/users.getFullUser
My question is how I can get the user id from telegram username to use with this method.
For example this is my username : telegram.me/androidsoftware .
Is a method exist that return userId from username ?
2
Answers
I have found this code in Telegram source code, but I don't know how write this code in C# to use with MTProto.
You should use undocumented method
ContactsResolveUsername
, check for existence of this in your client SDKexample in Java: https://github.com/rubenlagus/TelegramApi/blob/master/src/main/java/org/telegram/api/functions/contacts/TLRequestContactsResolveUsername.java
description: http://aseman.co/documents/libqtelegram-ae/functions/methods/resolveusername.html