How can I use multiple accounts with Telegram?

Is there a way to have two copies of telegram app in Ubuntu each with a different account?

It seems copying the app in another folder does not work.


Update of June 2020

Telegram destop now supports multiple account out of the box:

https://telegram.org/blog/profile-videos-people-nearby-and-more#multiple-accounts-on-telegram-desktop

Old Update

For macOS, use the official telegram for macOS: https://macos.telegram.org/ . It supports multiple accounts out of the box.

Old solution

With telegram desktop installed:

mkdir ~/.telegram2ndprofile 
telegram -many -workdir ~/.telegram2ndprofile 

Source


What I do is run the Telegram binary as a different user

cd ~/Downloads/Telegram/
sudo -u otheruser ./Telegram