Skip to content

Commit

Permalink
Initial support for TDLib 1.8.25 and much more
Browse files Browse the repository at this point in the history
- [new] Support for "Unread Messages" bar in chatbuf

- [enh] Get rid of `telega-chatbuf--inhibit-filter-reset`,
`telega-chatbuf--filter-match-msg-p` and
`telega-chatbuf--thread-match-msg-p` are introduced to match a message
against current message filter and a thread/topic.  Fixes #459

- [fix] Set 0 as message-thread-id when sending message to the General topic
  Fixes https://t.me/emacs_telega/44227

- [new] Refetch topics info when forum chat is "expanded" in the
rootbuf

- [enh] Add unread/mentions count in the topic

- [enh] Better formatting for the poll messages

- [enh] Do not put same message in the
`telega-chatbuf--messages-pop-ring` in a sequence.

- [enh] Apply blockquote formatted text entities last, because
blockquote can contain other text entities

- [new] Support for close friends list management, via `M-x
telega-describe-close-friends RET` command

- [new] `M-x telega-msg-disable-webpage-preview RET' command to
disable link previews and [x] close button on link preview to disable
link preview for the current message

Version -> 0.8.250
  • Loading branch information
zevlg committed Feb 28, 2024
1 parent ab03a5e commit d1cf1ff
Show file tree
Hide file tree
Showing 22 changed files with 868 additions and 489 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![CI test](https://github.com/zevlg/telega.el/workflows/CI/badge.svg)](https://github.com/zevlg/telega.el/actions) [![DOCKER image build](https://github.com/zevlg/telega.el/workflows/DOCKER/badge.svg)](https://github.com/zevlg/telega.el/actions) [![Telegram chat](https://img.shields.io/badge/chat-%40emacs__telega-%2335ADE1?logo=telegram)](https://t.me/emacs_telega) [![TDLib](https://img.shields.io/badge/TDLib-v1.8.24-%2335ADE1)](https://github.com/tdlib/td) [![MELPA](https://melpa.org/packages/telega-badge.svg)](https://melpa.org/#/telega) [![MELPA Stable](http://stable.melpa.org/packages/telega-badge.svg)](http://stable.melpa.org/#/telega) [![GNU Guix](https://img.shields.io/badge/GNU%20Guix-0.8.230-blue)](https://packages.guix.gnu.org/packages/emacs-telega/) [![Open Collective](https://img.shields.io/opencollective/backers/telega?logo=opencollective)](https://opencollective.com/telega)
[![CI test](https://github.com/zevlg/telega.el/workflows/CI/badge.svg)](https://github.com/zevlg/telega.el/actions) [![DOCKER image build](https://github.com/zevlg/telega.el/workflows/DOCKER/badge.svg)](https://github.com/zevlg/telega.el/actions) [![Telegram chat](https://img.shields.io/badge/chat-%40emacs__telega-%2335ADE1?logo=telegram)](https://t.me/emacs_telega) [![TDLib](https://img.shields.io/badge/TDLib-v1.8.25-%2335ADE1)](https://github.com/tdlib/td) [![MELPA](https://melpa.org/packages/telega-badge.svg)](https://melpa.org/#/telega) [![MELPA Stable](http://stable.melpa.org/packages/telega-badge.svg)](http://stable.melpa.org/#/telega) [![GNU Guix](https://img.shields.io/badge/GNU%20Guix-0.8.230-blue)](https://packages.guix.gnu.org/packages/emacs-telega/) [![Open Collective](https://img.shields.io/opencollective/backers/telega?logo=opencollective)](https://opencollective.com/telega)

[![Backers](https://opencollective.com/telega/backers.svg?avatarHeight=32&width=600)](https://opencollective.com/telega)

Expand Down
35 changes: 19 additions & 16 deletions docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 9 additions & 4 deletions docs/telega-manual.org
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#+options: timestamp:nil \n:t num:nil ellit-cid:t
#+title: Telega Manual (v0.8.241)
#+title: Telega Manual (v0.8.250)
#+author: Zajcev Evgeny
#+startup: showall

Expand Down Expand Up @@ -1281,6 +1281,10 @@ Use ~telega-chat-match-p~ to match a chat.
- can-send-stories ::
Matches if you can post a story into chat.

- (my-boost [ ~N~ ]) ::
Matches if supergroup or channel has least ~N~ my boosts.
By default ~N~ is 1.

- (user ~USER-TEMEX~) ::
Matches non-bot private chat where corresponding user matches ~USER-TEMEX~.

Expand Down Expand Up @@ -1345,6 +1349,9 @@ Use ~telega-msg-match-p~ to match a message.
This temex differs from ~(sender me)~, matching any outgoing messages,
including anonymous messages to channels created by me.

- is-failed-to-send ::
Matches outgoing message failed to send.

- (ignored [ ~REASON~ ]) ::
Matches if message is an ignored message.
If ~REASON~ is specified, then match only if has been ignored by ~REASON~
Expand Down Expand Up @@ -1914,9 +1921,7 @@ messages:
from message at point.

- @@html:<kbd>@@M-g u@@html:</kbd>@@ (~telega-chatbuf-next-unread~) ::
Goto next uneard message in chat.
~BUTTON-CALLBACK~ - callback to call with single argument - message
button.
Goto next unread message in the chatbuf.

- @@html:<kbd>@@M-g ^@@html:</kbd>@@, @@html:<kbd>@@M-g P@@html:</kbd>@@ (~telega-chatbuf-goto-pinned-message~) ::
Goto next pinned message for the chatbuffer.
Expand Down
2 changes: 1 addition & 1 deletion etc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ARG telega_branch=master
RUN set +x && apk update && apk upgrade && \
apk add --update alpine-sdk linux-headers git zlib-dev openssl-dev gperf php cmake

RUN echo "TDLib v1.8.24-d79bd4b69" > tdlib-version && \
RUN echo "TDLib v1.8.25-fe6201556" > tdlib-version && \
git clone https://github.com/tdlib/td.git && \
cd td && \
git checkout ${tdlib_branch} && \
Expand Down
14 changes: 14 additions & 0 deletions etc/langs/en.plist
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ Example: 23 y.o. designer from San Francisco")
:value "Desktop notifications")
("lng_settings_show_preview"
:value "Show message preview")
("lng_edit_privacy_close_friends"
:value "Close friends")
;; https://translations.telegram.org/screenshots/11323
("lng_unread_bar_some"
Expand Down Expand Up @@ -903,6 +905,9 @@ Example: 23 y.o. designer from San Francisco")
:value "{from} renamed the {link} to «{title}»")
("lng_action_topic_icon_changed"
:value "{from} changed the {link} icon to {emoji}")
("lng_action_boost_apply"
:one_value "{from} boosted the group"
:other_value "{from} boosted the group {count} times")
("lng_forum_topic_title"
:value "Topic Name")
Expand Down Expand Up @@ -1539,4 +1544,13 @@ You can send them an invite link as message instead.")
("lng_action_gift_received_me"
:value "You sent to {user} a gift for {cost}")
;; Link options
("lng_link_options_header"
:value "Link Preview Settings")
("lng_link_move_up"
:value "Move Up")
("lng_link_shrink_photo"
:value "Shrink Photo")
("lng_link_remove"
:value "Do Not Preview")
)
Loading

0 comments on commit d1cf1ff

Please sign in to comment.