Wrong behavior with getUserLink
Author: roundedrectangleCreated Sep 18, 2026Updated Sep 18, 2026
getUserLink says in its description that it should return an HTTPS link. When ran from an account which has a username, it returns an internal link in the format tg://resolve?domain=username. I'm not sure if that is a bug, and it should return a t.me link instead, or this is the intended behavior, but the description is wrong. However, this is still an inconsistency between the documentation and the actual behavior, and I assume one of those needs to be changed.
(By the way, it would be nice to have a parameter like force_token in that method, to be able to get the user token link even if the current user has a username. At the very least, it would be useful for testing.)
Source: tdlib/td