Skip to content

Commit

Permalink
Various enhancements
Browse files Browse the repository at this point in the history
- [add] `telega-msg-copy-dwim` to copy link to file/url inserted with
  `telega-link-props`

- [change] Support for TDLib's 1.8.15 renaming for report reason

- [enh] `telega-active-locations-mode` actualize locations every
  minute.  Better formatting for live locations

- [enh] `M-x telega-describe-message RET` show reason in case message
  is ignored

- [add] Support for more TDLib 1.8.24 features, such as expired
  voice/video messages

- [enh] Use `with-telega-help-win` in the `M-x telega-notifications-history RET`, so nobreak spaces won't be highlighted

- [enh] Use heuristic mask for adaptive custom emojis

- [enh] `telega-story-show-active-stories-for` and
  `telega-story-show-pinned-stories-for` can return an integer to limit
  number of displayed stories in the chatbuf's footer

- [enh] contrib/telega-adblock.el: Make space a possible separator
  after "erid"

Version -> 0.8.241
  • Loading branch information
zevlg committed Feb 14, 2024
1 parent fae0751 commit ab03a5e
Show file tree
Hide file tree
Showing 21 changed files with 408 additions and 185 deletions.
2 changes: 1 addition & 1 deletion contrib/telega-adblock.el
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ an URL."

(defun telega-adblock-msg-has-erid-p (msg)
"Return non-nil if MSG text contains ERID label."
(or (telega-msg-match-p msg '(contains "\\<erid: ?[a-zA-Z0-9]+\\>"))
(or (telega-msg-match-p msg '(contains "\\<erid:? ?[a-zA-Z0-9]+\\>"))
;; NOTE: also check links in the message to have "erid" get
;; parameter
(seq-some (lambda (link-spec)
Expand Down
61 changes: 41 additions & 20 deletions docs/index.html

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

17 changes: 14 additions & 3 deletions docs/telega-ellit.org
Original file line number Diff line number Diff line change
Expand Up @@ -1223,15 +1223,26 @@ project.
** Invalid TDLib version
**TODO**

** ~[telega bug]~

**Q**: I've got a lot of ~[telega bug]~ things in the rootbuf or
chatbuf.

**A**: Set ~debug-on-error~ to non-nil and trigger the bug to get the
backtrace buffer. Report this backtrace to github issues or to the
[[https://t.me/emacs_telega][telega.el Telegram Chat]]

** Stickers are not shown

**Q**: Stickers are not fully shown, I see only outlines for some
stickers, like on the screenshot:
[[file:https:/zevlg.github.io/telega/bad-stickers.jpg]]

**A**: =telega= uses =dwebp= tool to convert stickers in the WEBP
format to the format supported by Emacs. See
[[#stickers--animations][Stickers / Animations]] for details.
**A**: If your Emacs does not have bultin WEBP format
support. =telega= will use =dwebp= tool to convert stickers from WEBP
format to the format supported by your Emacs. See [[#stickers--animations][Stickers /
Animations]] for details. So, make sure =dwebp= tool is available on
your machine.

** Notifications does not work

Expand Down
33 changes: 25 additions & 8 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.240)
#+title: Telega Manual (v0.8.241)
#+author: Zajcev Evgeny
#+startup: showall

Expand Down Expand Up @@ -122,6 +122,7 @@ Do not edit manually. Modify =telega-ellit.org= or comments in
- [[#troubleshooting][Troubleshooting]]
- [[#cant-compile-telega-server][Can't compile =telega-server=]]
- [[#invalid-tdlib-version][Invalid TDLib version]]
- [[#telega-bug][~[telega bug]~]]
- [[#stickers-are-not-shown][Stickers are not shown]]
- [[#notifications-does-not-work][Notifications does not work]]

Expand Down Expand Up @@ -2808,14 +2809,16 @@ chatbuf's footer. This behaviour is controlled by custom options:

- User Option: ~telega-story-show-active-stories-for~

Show active stories in the chatbuf's footer for chats matching this temex.
Show active stories in the chatbuf's footer for chats matching this temex.
If temex returns a number then limit number of shown active stories.

Default value: ~all~
Default value: ~(return 10)~
- User Option: ~telega-story-show-pinned-stories-for~

Show pinned stories in the chatbuf's footer for chats matching this temex.
Show pinned stories in the chatbuf's footer for chats matching this temex.
If temex returns a number then limit number of shown pinned stories.

Default value: ~all~
Default value: ~(return 10)~

=telega= can preload media content for stories from users or
channels of your interest. This is controlled by custom option:
Expand Down Expand Up @@ -3814,6 +3817,18 @@ This is required because only user in the room can access the member info.

**TODO**

** ~[telega bug]~
:PROPERTIES:
:CUSTOM_ID: telega-bug
:END:

**Q**: I've got a lot of ~[telega bug]~ things in the rootbuf or
chatbuf.

**A**: Set ~debug-on-error~ to non-nil and trigger the bug to get the
backtrace buffer. Report this backtrace to github issues or to the
[[https://t.me/emacs_telega][telega.el Telegram Chat]]

** Stickers are not shown
:PROPERTIES:
:CUSTOM_ID: stickers-are-not-shown
Expand All @@ -3823,9 +3838,11 @@ This is required because only user in the room can access the member info.
stickers, like on the screenshot:
[[file:https:/zevlg.github.io/telega/bad-stickers.jpg]]

**A**: =telega= uses =dwebp= tool to convert stickers in the WEBP
format to the format supported by Emacs. See
[[#stickers--animations][Stickers / Animations]] for details.
**A**: If your Emacs does not have bultin WEBP format
support. =telega= will use =dwebp= tool to convert stickers from WEBP
format to the format supported by your Emacs. See [[#stickers--animations][Stickers /
Animations]] for details. So, make sure =dwebp= tool is available on
your machine.

** Notifications does not work
:PROPERTIES:
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-437c2d0c6" > tdlib-version && \
RUN echo "TDLib v1.8.24-d79bd4b69" > tdlib-version && \
git clone https://github.com/tdlib/td.git && \
cd td && \
git checkout ${tdlib_branch} && \
Expand Down
6 changes: 6 additions & 0 deletions etc/langs/en.plist
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,10 @@ Example: 23 y.o. designer from San Francisco")
:value "Photo has expired")
("lng_ttl_video_expired"
:value "Video has expired")
("lng_ttl_voice_expired"
:value "Voice message expired")
("lng_ttl_round_expired"
:value "Round message expired")
;; message_ttl_setting
("lng_ttl_about_duration1"
:value "24 hours")
Expand Down Expand Up @@ -1205,6 +1209,8 @@ You can send them an invite link as message instead.")
;; Stories
("lng_stories_my_name"
:value "My Story")
("lng_stories_show_more"
:value "Show more")
("lng_view_button_story"
:value "View story")
("lng_contacts_stories_status"
Expand Down
Loading

0 comments on commit ab03a5e

Please sign in to comment.