Go To https://web.telegram.org/#/im
Click on the icon on telegram header to access the menu
Go to Settings, and click on the username field. You can set username from there.