Creating telegram account via desktop app or web version
Added 2022-04-28 05:50:29 +0000 UTCEarlier telegram used to allow signup via desktop app or web but things changed. You can only create a telegram account with a phone number on a phone or tablet app downloaded from official sources like google play store or apple store.

If you try to log in or register via desktop or web this is the message you get- A code was sent via Telegram to your other devices.
Clicking on send code via SMS doesn't help either.
Telegram expects that you already have an account with the phone number and it sends a code to your existing telegram account on your phone.
It means you have to first create a telegram account on your phone after that you can use the telegram desktop or web version to log in and the code to log in is not sent via SMS instead it is sent to your telegram phone app.
Technically you can create a telegram account on a desktop using bluestacks android emulator https://www.bluestacks.com/
Bluestacks is just one, there are others out there as well.
Bluestacks allows you to virtually run the android environment on the computer. So if you don't have a phone then this is the most viable alternative.