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 bug] Channel messages cannot be displayed #447

Closed harisonkhlil closed 9 months ago

harisonkhlil commented 9 months ago

Telega Setup

OS: macOS 14.0 Emacs: GNU Emacs 29.1 (build 2, aarch64-apple-darwin23.0.0, NS appkit-2487.00 Version 14.0 (Build 23A344)) Features: imagemagick svg webp ffmpeg Telega: telega v0.8.163 (TDLib v1.8.21-6ee6428) (telega-server v0.8.2) MELPA: 20231004.1321

Current Behavior

No action, just unable to load the message.

Steps to Reproduce

  1. Open a channel
  2. Click the 'leave a comment'
  3. The effect is shown in the following figure: image
  4. The complete error message is as follows
    ---[telega bug]
PP-ERROR: (telega-msg--pp (:@type "message" :id 680247951360 :sender_id (:@type "messageSenderChat" :chat_id -1001341930464) :chat_id -1001701303402 :is_outgoing nil :is_pinned t :can_be_edited nil :can_be_forwarded t :can_be_replied_in_another_chat t :can_be_saved t :can_be_deleted_only_for_self nil :can_be_deleted_for_all_users nil :can_get_added_reactions nil :can_get_statistics nil :can_get_message_thread t :can_get_viewers nil :can_get_media_timestamp_links t :can_report_reactions nil :has_timestamped_media t :is_channel_post nil :is_topic_message nil :contains_unread_mention nil :date 1700117584 :edit_date 0 :forward_info (:@type "messageForwardInfo" :origin (:@type "messageOriginChannel" :chat_id -1001341930464 :message_id 145603166208 :author_signature "投稿机屑人") :date 1700117581 :public_service_announcement_type "" :from_chat_id -1001341930464 :from_message_id 145603166208) :interaction_info (:@type "messageInteractionInfo" :view_count 780 :forward_count 3 :reply_info (:@type "messageReplyInfo" :reply_count 3 :recent_replier_ids [] :last_read_inbox_message_id 680268922880 :last_read_outbox_message_id 680268922880 :last_message_id 680268922880) :reactions [(:@type "messageReaction" :type (:@type "reactionTypeEmoji" :emoji #("😨" 0 2 (telega-emoji-p t telega-display "😨"))) :total_count 16 :is_chosen nil :recent_sender_ids []) (:@type "messageReaction" :type (:@type "reactionTypeEmoji" :emoji #("😁" 0 2 (telega-emoji-p t telega-display "😁"))) :total_count 2 :is_chosen nil :recent_sender_ids []) (:@type "messageReaction" :type (:@type "reactionTypeEmoji" :emoji #("🤨" 0 2 (telega-emoji-p t telega-display "🤨"))) :total_count 2 :is_chosen nil :recent_sender_ids []) (:@type "messageReaction" :type (:@type "reactionTypeEmoji" :emoji #("👍" 0 2 (telega-emoji-p t telega-display "👍"))) :total_count 1 :is_chosen nil :recent_sender_ids [])]) :unread_reactions [] :message_thread_id 680247951360 :self_destruct_in 0.0 :auto_delete_in 0.0 :via_bot_user_id 0 :author_signature "" :media_album_id "0" :restriction_reason "" :content (:@type "messagePhoto" :photo (:@type "photo" :has_stickers nil :minithumbnail (:@type "minithumbnail" :width 18 :height 40 :data "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDACgcHiMeGSgjISMtKygwPGRBPDc3PHtYXUlkkYCZlo+AjIqgtObDoKrarYqMyP/L2u71////m8H////6/+b9//j/2wBDASstLTw1PHZBQXb4pYyl+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj/wAARCAAoABIDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDTSYNyfl5xgkU/en98fnTPLTJ/dL/3zS+Un9xfypaj0Hb0/vj86KTyYv8Anmv5UUah7o/aPf8AOkJ2jj9TSbmyeDSkZ6gH8KGIUE46D86KMD0FFMCDz4CeJ0+m8UedAvJuF/FxRRQA77Xb/wDPaP8A77FFFFAH/9k=") :sizes [(:@type "photoSize" :type "m" :photo (:@type "file" :id 9148 :size 10308 :expected_size 10308 :local (:@type "localFile" :path "" :can_be_downloaded t :can_be_deleted nil :is_downloading_active nil :is_downloading_completed nil :download_offset 0 :downloaded_prefix_size 0 :downloaded_size 0) :remote (:@type "remoteFile" :id "AgACAgUAAx0CT_w74AABAh5qZVW_xQT18sRqxFk8Dkd56d7o0bQAApG2MRtqTrFWjwS4mMHEinoBAAMCAANtAAMzBA" :unique_id "AQADkbYxG2pOsVZy" :is_uploading_active nil :is_uploading_completed t :uploaded_size 10308) :telega-file-recency 1700118727) :width 144 :height 320 :progressive_sizes []) (:@type "photoSize" :type "x" :photo (:@type "file" :id 9149 :size 41124 :expected_size 41124 :local (:@type "localFile" :path "" :can_be_downloaded t :can_be_deleted nil :is_downloading_active nil :is_downloading_completed nil :download_offset 0 :downloaded_prefix_size 0 :downloaded_size 0) :remote (:@type "remoteFile" :id "AgACAgUAAx0CT_w74AABAh5qZVW_xQT18sRqxFk8Dkd56d7o0bQAApG2MRtqTrFWjwS4mMHEinoBAAMCAAN4AAMzBA" :unique_id "AQADkbYxG2pOsVZ9" :is_uploading_active nil :is_uploading_completed t :uploaded_size 41124) :telega-file-recency 1700118727) :width 360 :height 800 :progressive_sizes []) (:@type "photoSize" :type "y" :photo (:@type "file" :id 9150 :size 76000 :expected_size 76000 :local (:@type "localFile" :path "/Users/JunFeng/.telega/cache/photos/6246860375769331345_121.jpg" :can_be_downloaded t :can_be_deleted t :is_downloading_active nil :is_downloading_completed t :download_offset 0 :downloaded_prefix_size 76000 :downloaded_size 76000) :remote (:@type "remoteFile" :id "AgACAgUAAx0CT_w74AABAh5qZVW_xQT18sRqxFk8Dkd56d7o0bQAApG2MRtqTrFWjwS4mMHEinoBAAMCAAN5AAMzBA" :unique_id "AQADkbYxG2pOsVZ-" :is_uploading_active nil :is_uploading_completed t :uploaded_size 76000) :telega-file-recency 1700118729) :width 576 :height 1280 :progressive_sizes [6492 16913 34308 48820])] :telega-preview-1 (best image :type svg :data "<?xml version=\"1.0\" encoding=\"UTF-8\"?><svg width=\"20\" height=\"20\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"> <defs> <clipPath id=\"pclip\"> <polygon points=\"4 1, 16 1, 19 4, 19 16, 16 19, 4 19, 1 16, 1 3\"></polygon> <circle cx=\"4\" cy=\"4\" r=\"3\"></circle> <circle cx=\"16\" cy=\"4\" r=\"3\"></circle> <circle cx=\"16\" cy=\"16\" r=\"3\"></circle> <circle cx=\"4\" cy=\"16\" r=\"3\"></circle></clipPath></defs> <image xlink:href=\"6246860375769331345_121.jpg\" clip-path=\"url(#pclip)\" height=\"44\" width=\"20\" y=\"-12\" x=\"0\"></image></svg>" :scale 1.0 :width 20 :height 20 :ascent center :mask heuristic :base-uri "/Users/JunFeng/.telega/cache/photos/dummy")) :caption (:@type "formattedText" :text "" :entities []) :has_spoiler nil :is_secret nil))) ==>
  (error "cl-ecase failed: messageOriginChannel, (messageForwardOriginChat messageForwardOriginUser messageForwardOriginMessageImport messageForwardOriginHiddenUser messageForwardOriginChannel)")

My configuration

(setq telega-emoji-font-family (font-spec :family "Apple Color Emoji"))
(setq telega-emoji-use-images nil)
(setq telega-proxies
      (list
       '(:server "127.0.0.1" :port 6153 :enable t
         :type (:@type "proxyTypeSocks5"))))

Possible Solution

I don't know

zevlg commented 9 months ago

Support for TDLib v1.8.21 is done only since telega 0.8.210, please update your telega