vysheng / tg

telegram-cli
GNU General Public License v2.0
6.48k stars 1.53k forks source link

Not an issue but more a Feature Reques - Use @username for send messages #328

Open SeLLeRoNe opened 9 years ago

SeLLeRoNe commented 9 years ago

Hi,

i've notieced that on Telegram you can set your own username which is unique (a check if "already-in-use" is done once you set it up) with format @username and i would like to ask if it's possible to send messages also using that name instead of seed number and/or contact list name.

Can this be done or would be hard?

Regards

vysheng commented 9 years ago

I don't think that it is good idea. You'll have to invoke 'search' query to find user by nickname.

SeLLeRoNe commented 9 years ago

I see, but with the "single line command" was sueful to be able to send to @username aswell, was just an hint for a faster send without have to know how is it saved in address book since is a more unique value that a saved contact that may change :)

Regards

luckydonald commented 9 years ago

Maybe store that just for all users in your chat list?

msg Changing_Name 'Test'
msg user#777000 'Test'
msg @telegram 'Test'

This @names tend to change less often then the displayed user name. Even worse, if user names starting with an Emojicon (like 🌴est), than you can't even use tab completion to get that easily in a console...

odarriba commented 9 years ago

I'd find it useful... What about sending messages if you know the username? Actually you have to add the user to your contact list, which requires more than one command...