Skip to content

Commit

Permalink
Initial support for TDLib 1.8.42
Browse files Browse the repository at this point in the history
- [new] `telega-msg-delimiter` to delimit messages in the chatbuf

- [upd] Support for updated TDLib API for folders

- [enh] Better logic to choose best photo in `telega-photo--best` with lesser garbagea

- [upd] "updateOwnedStarCount" event to support starAmount TL struct

- [enh] Use `telega-msg-heading-trail' instead of `telega-msg-heading-with-date-and-status'.  Making header configuration more flexible

- [fix] Use `custom-face-get-current-spec-unfiltered' instead of `face-default-spec', so user changes to face takes effect.  Fixes https://t.me/emacs_china/262239

- [enh] Hide text/media spoilers when point moves out of message

- [fix] Make Show/Hide spoiler work if multiple text entities used for spoiler text

- [fix] Use window width in chars in the chatbuf auto fill mode.  Fixes https://t.me/emacs_telega/46751

- [enh] Support for :show_media_above_description property of linkPreview

And more

Version -> 0.8.420
  • Loading branch information
zevlg committed Jan 31, 2025
1 parent d724ded commit 02c68bc
Show file tree
Hide file tree
Showing 29 changed files with 1,366 additions and 789 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ jobs:

docker-arm64:
# enabled due to https://t.me/emacs_telega/47280
if: true
# Disabled due to build failure, see https://t.me/emacs_telega/47396
if: false
runs-on: ubuntu-latest
steps:
-
Expand Down
94 changes: 74 additions & 20 deletions docs/index.html

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

4 changes: 2 additions & 2 deletions docs/telega-ellit.org
Original file line number Diff line number Diff line change
Expand Up @@ -760,12 +760,12 @@ It is possible to edit a message using markup syntax.

To forward a message, put cursor under the message which you want to
forward and press
{{{where-is(telega-msg-forward-marked-or-at-point,telega-msg-button-map)}}}
{{{where-is(telega-msg-forward-dwim,telega-msg-button-map)}}}
and then select a Chat to forward a message to. To forward multiple
messages at once, mark messages with the
{{{where-is(telega-msg-mark-toggle,telega-msg-button-map)}}} and then
press
{{{where-is(telega-msg-forward-marked-or-at-point,telega-msg-button-map)}}}
{{{where-is(telega-msg-forward-dwim,telega-msg-button-map)}}}
on one of the messages.

There are few options how you can affect the way a message is forwarded:
Expand Down
35 changes: 28 additions & 7 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.393)
#+title: Telega Manual (v0.8.420)
#+author: Zajcev Evgeny
#+startup: showall

Expand Down Expand Up @@ -939,9 +939,15 @@ view.
- @@html:<kbd>@@v S@@html:</kbd>@@ (~telega-view-settings~) ::
View and edit your Telegram settings.

- @@html:<kbd>@@v c@@html:</kbd>@@ (~telega-view-contacts~) ::
- @@html:<kbd>@@v c s@@html:</kbd>@@ (~telega-view-contacts-search~) ::
View contacts searched by ~QUERY~.
If ~QUERY~ is empty string, then show all contacts.
- @@html:<kbd>@@v c a@@html:</kbd>@@ (~telega-view-contacts-all~) ::
View all contacts.
- @@html:<kbd>@@v c f@@html:</kbd>@@ (~telega-view-close-friends~) ::
View close friends.
- @@html:<kbd>@@v c o@@html:</kbd>@@ (~telega-view-owned-bots~) ::
View owned bots.

- @@html:<kbd>@@v C@@html:</kbd>@@, @@html:<kbd>@@c l@@html:</kbd>@@ (~telega-view-calls~) ::
View calls.
Expand Down Expand Up @@ -1157,6 +1163,7 @@ Use ~telega-chat-match-p~ to match a chat.

- verified, @@html:<kbd>@@/ v@@html:</kbd>@@ (~telega-filter-by-verified~) ::
Matches if chat is verified.
Return verification status if ~CHAT~ is verified.

- (restriction ~SUFFIX-LIST~...), @@html:<kbd>@@/ r@@html:</kbd>@@ (~telega-filter-by-restriction~) ::
Matches restricted chats.
Expand Down Expand Up @@ -1233,6 +1240,7 @@ Use ~telega-chat-match-p~ to match a chat.

- fake-or-scam ::
Matches if chat is fake or scam user or group.
Return verification status if chat is fake or scam.

- (has-video-chat [ ~NON-EMPTY~ ]) ::
Matches if chat contains a live video chat.
Expand Down Expand Up @@ -1309,6 +1317,9 @@ Use ~telega-chat-match-p~ to match a chat.
Matches if chat's boost level is greater or equal to ~N~.
By default ~N~ is 1.

- is-pinned ::
Matches if chat is pinned.

** List of Message Temexes
:PROPERTIES:
:CUSTOM_ID: list-of-message-temexes
Expand Down Expand Up @@ -1816,6 +1827,9 @@ For other sorting keybindings see below.
For private chats user's last seen date is taken.
For other chats date of the last message is taken.

- ~important~ ::
Makes chats matching ~telega-important-chat-temex~ on top.

** Customizable options making use of sorting criteria
:PROPERTIES:
:CUSTOM_ID: customizable-options-making-use-of-sorting-criteria
Expand Down Expand Up @@ -1878,6 +1892,13 @@ Important customizable options:
#+end_example

Default value: ~t~
- User Option: ~telega-msg-delimiter~

Delimiter for the messages in a chatbuf.
Use ~(propertize "\n" \~line-spacing 0.25)' to add extra line space
between messages.

Default value: ~"\n"~

** Chatbuf fast navigation
:PROPERTIES:
Expand Down Expand Up @@ -2198,12 +2219,12 @@ It is possible to edit a message using markup syntax.

To forward a message, put cursor under the message which you want to
forward and press
(~telega-msg-forward-marked-or-at-point~)
@@html:<kbd>@@f@@html:</kbd>@@, @@html:<kbd>@@<down-mouse-3> <forward>@@html:</kbd>@@ (~telega-msg-forward-dwim~)
and then select a Chat to forward a message to. To forward multiple
messages at once, mark messages with the
@@html:<kbd>@@m@@html:</kbd>@@, @@html:<kbd>@@<down-mouse-3> <telega-msg-mark-toggle>@@html:</kbd>@@ (~telega-msg-mark-toggle~) and then
@@html:<kbd>@@m@@html:</kbd>@@, @@html:<kbd>@@<down-mouse-3> <mark>@@html:</kbd>@@ (~telega-msg-mark-toggle~) and then
press
(~telega-msg-forward-marked-or-at-point~)
@@html:<kbd>@@f@@html:</kbd>@@, @@html:<kbd>@@<down-mouse-3> <forward>@@html:</kbd>@@ (~telega-msg-forward-dwim~)
on one of the messages.

There are few options how you can affect the way a message is forwarded:
Expand All @@ -2222,7 +2243,7 @@ To delete a message, put cursor under the message you want to delete and press
(~telega-msg-delete-marked-or-at-point~).

As with [[#forwarding-messages][forwarding messages]], you can mark multiple messages to delete
with @@html:<kbd>@@m@@html:</kbd>@@, @@html:<kbd>@@<down-mouse-3> <telega-msg-mark-toggle>@@html:</kbd>@@ (~telega-msg-mark-toggle~).
with @@html:<kbd>@@m@@html:</kbd>@@, @@html:<kbd>@@<down-mouse-3> <mark>@@html:</kbd>@@ (~telega-msg-mark-toggle~).

Also, you can ban/report message sender (and delete all messages from
this sender in the chat) with
Expand Down Expand Up @@ -2618,7 +2639,7 @@ messages are labeled with:
Default value: ~"🔖"~

To toggle message at point being favorite, press
@@html:<kbd>@@*@@html:</kbd>@@, @@html:<kbd>@@<down-mouse-3> <rm-favorite>@@html:</kbd>@@, @@html:<kbd>@@<down-mouse-3> <add-favorite>@@html:</kbd>@@ (~telega-msg-favorite-toggle~).
@@html:<kbd>@@*@@html:</kbd>@@, @@html:<kbd>@@<down-mouse-3> <favorite>@@html:</kbd>@@ (~telega-msg-favorite-toggle~).

To jump to a favorite message before message at point in the chat
buffer, press
Expand Down
Loading

0 comments on commit 02c68bc

Please sign in to comment.