Closed umelikhau closed 1 year ago
All links must be handled by calling getInternalLinkType
first and then following documentation for the returned type. For the link result will be of the type
//@description The link is a link to a user by its phone number. Call searchUserByPhoneNumber with the given phone number to process the link @phone_number Phone number of the user
internalLinkTypeUserPhoneNumber phone_number:string = InternalLinkType;
I'm not able to find neither 'internalLinkTypeUserPhoneNumber', nor 'searchUserByPhoneNumber'.
I'm using TDLib for Android in a prebuilt form downloaded from Build instructions.
Is there a newer prebuilt version available? Or should I build the latest TDLib by myself?
You need to build the latest TDLib using the example.
@levlam searchUserByPhoneNumber is also not in the web page documentation. Was this a recent addition? was the function name different before?
The feature was added after 1.8.0, so it isn't present in the on-site documentation.
Ok we are on 1.8.2 now so it should work? :)
Yes.
Hello,
I need to handle phone number links: when I click on ‘https://t.me/+123456789’ I want my app to directly open the chat.
Which method from tdlib can I use to get chatId by phone number link?