What is telega?.
According to the Github repository:
- Telega
- telega.el is full featured unofficial client for Telegram platform for GNU Emacs.
As you may know, my main OS, at this time (2024-08-21) is NixOS, so I was trying to install Telega in my emacs, but as you can imagine, the file system hierarchy don’t works “normal” in NixOS, so is a little tricky set up the environment to actually make Telega works.
Requisites:
- gnumake. (To compile).
- cmake (To compile).
- tdlib (Version > 1.8.29).
Process of installation.
- install the dependencies using your
configuration.nix,home-manager, or wathever method you use to install packages inNixOS. - Install Telega in emacs.
1 2(use-package telega :ensure t) - Now, because I use
NixOS(by the way), you must know that the file system hierarchy don’t works same as in linux or macOS, so I need to declare where telega is going to see thetdliblibraries, so:1(setq telega-server-lib-prefix "/home/user/.nix-profile/") - Compile Telega-server inside emacs.
Or simply run telega:
1M-x telega-server-build1M-x telega
With that, Telega must be compiled, and ready to go.