Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI argument to open the specified chat in its own window #26271

Open
alxlg opened this issue May 8, 2023 · 4 comments
Open

CLI argument to open the specified chat in its own window #26271

alxlg opened this issue May 8, 2023 · 4 comments

Comments

@alxlg
Copy link

alxlg commented May 8, 2023

Is your feature request related to a problem?

Not a problem but a useful feature to have.

Describe the solution you'd like

I enabled the experimental feature that let you open a chat in a window with a Ctrl+click in the GUI.

Telegram also offers the ability to open a specific chat using its CLI.

I think it would be useful to be able to specify, from the CLI, that a specific chat should be opened in its own window, just like one would with the ctrl+click in the GUI.

Something like --new-window.

Describe alternatives you've considered

I am not aware of any already existing implementation of this nor any workaround.

Additional context

No response

@john-preston
Copy link
Member

"Telegram also offers the ability to open a specific chat using its CLI." you mean by username from external app?

@alxlg
Copy link
Author

alxlg commented May 10, 2023

"Telegram also offers the ability to open a specific chat using its CLI." you mean by username from external app?

@john-preston I mean using the tg:// URI scheme:

telegram-desktop tg://resolve?domain=username

and I am looking for something like:

telegram-desktop --new-window tg://resolve?domain=username

@fulcanelly
Copy link

@alxlg @john-preston @kenvandine @jhasse is there any solution for this problem already ?

Noticed that I quite often need to open same chat from different accounts when do testing of telegram bot

I can do that manually but it becomes quite time-consuming over time

@bpsib
Copy link

bpsib commented Feb 8, 2025

The correct way is telegram-desktop -- tg://resolve?domain=username. The double hyphen is needed for it to work.

EDIT: Works but not the solution to the original problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants