zevlg / telega.el

GNU Emacs telegram client (unofficial)
https://zevlg.github.io/telega.el/
GNU General Public License v3.0
1.09k stars 85 forks source link

Telega folder options don't work #415

Closed fleurc closed 1 year ago

fleurc commented 1 year ago

TDlib throws an unknown class request error when trying to create a folder.

Telega Setup

OS: Fedora Linux 38 (Sway) Emacs: GNU Emacs 28.2 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.24.36, cairo version 1.17.6) Features: svg ffmpeg tgs2png Telega: telega v0.8.120 (TDLib v1.8.14-1da3955) (telega-server v0.8.2)

Current Behavior

When creating a folder, Telega gives the following error: telega-server--call: telega error=400: Failed to parse JSON object as TDLib request: Unknown class "createChatFilter"

Telega also doesn't seem to import existing folders from other Telegram clients. I have built and compiled Tdlib from source as suggested twice, using the C++ build generation. It gave no errors when created.

Steps to Reproduce

  1. Open Telega, and have telega-server running;
  2. Use telega-folder-create to create a folder
  3. Select name, friends and icon;
  4. Error.
zevlg commented 1 year ago

TDLib 1.8.14 is not yet supported

fleurc commented 1 year ago

What's the TDLib version that i should compile then?

zevlg commented 1 year ago

What's the TDLib version that i should compile then?

Use sha1 from https://github.com/zevlg/telega.el/blob/master/etc/Dockerfile#L20 at the moment

support for TDLib 1.8.14 will be added in few days

fleurc commented 1 year ago

If in 1w or 2w it's added i can simply wait i feel. If not then i'll downgrade the version of TDLib. Will close for now.

zevlg commented 1 year ago

If in 1w or 2w it's added i can simply wait i feel. If not then i'll downgrade the version of TDLib. Will close for now.

Added support for TDLib 1.8.14 by the https://github.com/zevlg/telega.el/commit/c09a8f3ca8cd921e11c8bc256066364c84eac023

fleurc commented 1 year ago

The latest commit has solved the problem beautifully