I wondered how Telegram desktop, Android or any official Telegram app does authentication?
I mean, we can use MTProto with pyrogram or telethon, but we need api_hash
and api_id
. But in Telegram desktop, we are only asked for our phone_number and by entering the code, we can use MTProto.
I noticed that this is also present in those clients. But does this mean that we can also build our own clients using api_id
and api_hash
mentioned there, and this won't be a problem?
All clients need api id & hash, Telegram desktop uses the official api id & hash in its source code and does not ask you for it anymore, you can use the following published api id & hash 👇