telegramdesktop / tdesktop

Telegram Desktop messaging app
https://desktop.telegram.org/
Other
25.81k stars 5.11k forks source link

[Feature request] Multiple accounts support #4261

Closed rizaumami closed 4 years ago

rizaumami commented 6 years ago
### Steps to reproduce Nothing. ### Expected behaviour There is menu to login into (three?) different accounts just like in Telegram v4.7 for Android, so I don't have to open multiple Telegram Desktop windows and messing with launcher script or config directory, etc. ### Actual behaviour I can now login into multiple accounts by issuing `-workdir` or `-many -workdir`, but this is an inconvenient process because I have to open multiple Telegram Desktop windows and provide many config directories. ### Configuration **Operating system:** Debian Sid 64 bit **Version of Telegram Desktop:** 1.2.6 alpha **Used theme**: Default
Logs: Insert logs here (if necessary)

zarEclEC commented 6 years ago

Try Franz, it's not perfect but it's something.

I'd love to have it implemented natively, too 👍

rizaumami commented 6 years ago

I knew about Franz, Rambox, Wavebox or just the new Firefox Quantum multi container. But that all just a Telegram web (wrapper), which mean it's limited in features and resource hungry. I hope for a native implementation.

cobalto commented 6 years ago

533

stek29 commented 6 years ago

@cobalto Multiple instances != Multiple accounts in once instance.

cobalto commented 6 years ago

@stek29 disagree. They asked for multiple instances to have multiple accounts at the same machine when "multiple accounts" wasnt a feature of telegram. Now it is and now you can ask for it.

So, I think its for the same use, that's why I quoted the other one here.

But I probably should have done the opposite, but now both are linked and that's what I wanted. Not gonna fix that now ^^'

vogelito commented 6 years ago

Would love to see this.

Kirill commented 6 years ago

I need this too

Fathurhoho commented 6 years ago

I really need this feature.

Silicomancer commented 6 years ago

Needed badly here too.

zeroone2numeral2 commented 6 years ago

Yes yes same here

I claimed my heart reaction too, kind heart-reaction stranger. Now deliver

azzamsa commented 6 years ago

hope it will be implemented soon. So we can easily switch between account for family and work.

hroost commented 6 years ago

+1

rikarsen commented 6 years ago

waiting for it

ShadowJonathan commented 6 years ago

+1

sigaev-pro commented 6 years ago

+1

RememberTheAir commented 6 years ago

Stop with the +1s, reactions are there for a reason. +1s are just useless noise

Kirill commented 5 years ago

@john-preston, did you have plan for this issue?

john-preston commented 5 years ago

@Kirill At the moment I don’t :(

Piterden commented 5 years ago

Hi, guys)

Any updates?

nectop commented 5 years ago

waiting for implementation.

abbasnaqdi commented 5 years ago

+1

steemnd commented 5 years ago

It's available on Android since Pleistocene, why it takes so long to do the same thing on the desktop client?

sprite-1 commented 5 years ago

Hope this gets added soon

ange007 commented 5 years ago

Very need this function. It is very important to separate the work account and the personal.

amishbni commented 5 years ago

Any updates on this feature? :disappointed:

c0d3x27 commented 5 years ago

Steps to reproduce

Nothing.

Expected behaviour

There is menu to login into (three?) different accounts just like in Telegram v4.7 for Android, so I don't have to open multiple Telegram Desktop windows and messing with launcher script or config directory, etc.

Actual behaviour

I can now login into multiple accounts by issuing -workdir or -many -workdir, but this is an inconvenient process because I have to open multiple Telegram Desktop windows and provide many config directories.

Configuration

Operating system: Debian Sid 64 bit Version of Telegram Desktop: 1.2.6 alpha Used theme: Default Logs: Insert logs here (if necessary)

first go there and download it for you system. 1)TelegramForcePortable https://imgur.com/a/VUGxOrU 2 method) On macOS, just use -workdir parameter, it won’t work if you add many -workdir

markuznw commented 5 years ago

Subscribing to this, guess tdesktop is the only remaining client between both official clients and unofficial that still don't have it. Hope it gets implemented soon :)

Nachtalb commented 5 years ago

I don't know about windows. But on OSX and Linux you can use the -workdir argument to create more instances.

I do know this is inconvenient for some people and that this issue exists for over a year now and there is still no way in the client itself to switch accounts with a few mouse clicks. But neither have I seen some guide to use this feature so here it is. I hope it helps you out.

:exclamation: replace words in {{}} with your own username and such (without the brackets).

Linux MacOSX Windows

Linux

MacOSX

Windows

"C:\Users\{{your_user}}\AppData\Roaming\Telegram Desktop\Telegram.exe" -workdir "C:\Users\{{your_user}}\AppData\Roaming\Telegram Desktop\{{MyUsername}}"
C:\Users\{{your_user}}\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Telegram Desktop

https://gist.github.com/Nachtalb/ec590dc974f6ba4674972d4937b230be

ShadowJonathan commented 5 years ago

There should not need to be a workaround for this, this should be implemented directly into the client.

Nachtalb commented 5 years ago

@ShadowJonathan I think so too. But it is not implemented yet and I don't know C++ and so cannot make a PR. For the time being, until someone implements it, this is the best solution we've got IMHO.

c0d3x27 commented 5 years ago

@ShadowJonathan I think so too. But it is not implemented yet and I don't know C++ and so cannot make a PR. For the time being, until someone implements it, this is the best solution we've got IMHO.

exactly so i dont even know or see the reason to down vote my solution for this. people are just ungraceful

hexauni commented 5 years ago

@ShadowJonathan Multiple instances and multiple accounts are definitely different things, and look at the "actual behaviour" part

ShadowJonathan commented 5 years ago

@hexauniverse in this case, a strategy with multiple instances has to be used to have telegram work with multiple accounts at once, it is a workaround

ShadowJonathan commented 5 years ago

Telegram Mobile Android also now implements this natively, before this, only Telegram X did.

I think it's time for telegram desktop to also have this feature, to normalize the features all across the native clients, what do you think, @john-preston?

fredboy commented 5 years ago

I can't understand, why it's still not implemented. It's pretty important feature for a lot of people and the official android app supports it, so the devs ignoring this seems strange.

BijoRino commented 5 years ago

UNIGRAM

RememberTheAir commented 5 years ago

@fredboy simply because it's hard to implement it

fredboy commented 5 years ago

@RememberTheAir is it? Just create separate config folders and make a UI for it. Even if it's not that simple, you have a lot of examples how to do it. I don't think that's the problem here

RememberTheAir commented 5 years ago

@fredboy it's not just a matter of creating different dirs and configs and copying code from other softwares lol. TDesktop is a quiet big C++ codebase which has not been written with multiple accounts in mind and, for what I know, a lot of parts of the app (especially messages and media storage) would have to be rewritten to handle properly the activity of multiple accounts. That's not something trivial you do in a week, especially if you consider the frequency at which Telegram releases new features. The fact that adding multi-accounts support is not a trivial task at all and would require a major rewrite of the app has been stated by the dev somewhere around this issues tracker, iirc

fredboy commented 5 years ago

@RememberTheAir damn, i'm stupid. Anyway, easy or not, I hope they're working on it, cause it's quite useful and demanded feature.

MaxMls commented 5 years ago

I hope this task will be closed soon.

Kogoruhn commented 5 years ago

Just do it! :D Please.

levicki commented 5 years ago

@stek29 @john-preston

Guys, why are PC users second-class citizens compared to mobile device users nowadays?

We shouldn't be waiting two years to get this basic feature in the official Telegram desktop client. Also, not even acknowledging this feature request officially for two years, and setting a milestone for it or closing it as "won't fix" if you don't intend to follow up is plain rude.

In my opinion the easiest way to implement it would be to change the list of chats into a tree with accounts represented as collapsible/expandable root nodes and chats as their leaf nodes so you can be logged in into more than one account at the same time from a single Telegram instance and window.

ScottRFrost commented 4 years ago

I tried https://github.com/UnigramDev/Unigram and realized it was kind of unstable and slow despite my decent system specs, so I used the power of GitHub and noticed there are THOUSANDS of forks of this project. https://github.com/Forkgram/tdesktop worked fine for my 2nd account. Certainly easier than trying to do command line arguments and run multiple instance of TDesktop (with the same icon, etc). https://github.com/kotatogram/kotatogram-desktop looked similar. There's A LOT out there.

amishbni commented 4 years ago

@ScottRFrost No Linux support for Forkgram? It appears Linux users are third-class citizens.

RememberTheAir commented 4 years ago

@amirashabani ...or maybe its developer is a Windows users and he's building that client based on his needs, which appears to be the case. I don't see any issue asking for Linux support, maybe you can try to ask to its dev if he's available to build for linux too

ScottRFrost commented 4 years ago

@amirashabani - If you're on ChromeOS (which is what I assume you mean by desktop linux) then you can just use the Android Telegram X, which support multiple accounts.

If you mean old school try-hard KDE or something, then you're out of luck, but you're probably used very few apps working if you're running old school desktop Linux. Re-roll to Windows or Hackintosh.

dausruddin commented 4 years ago

@ScottRFrost Am I missing something? I can't find multi-account feature in Forkgram.

RememberTheAir commented 4 years ago

@dausruddin there isn't. He's suggesting to use different forks each one with its own account. Actually you can use tdesktop to do this, it can be launched multiple times using different working directories where config files are stored independently (see the OP)

dausruddin commented 4 years ago

@RememberTheAir oh. I am quite dissapointed. Thanks. I guess I'll stick to Unigram for now even I got error popping up sometimes.