Skip to content

Commit

Permalink
[telega-bridge-bot] fix: Update telega-user-title function usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
BlindingDark committed Aug 19, 2023
1 parent de3f3cd commit 81593bd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions contrib/telega-bridge-bot.el
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,9 @@ ARGS is the arguments passed the the FUN."
(if-let* ((modified? (plist-get msg :telega-bridge-bot-modified))
(sender (telega-msg-sender msg))
(sender-name
(when (telega-user-p sender)
(telega-user-title sender 'full-name-and-username))))
(concat
(telega-user-title sender 'full-name) " "
(telega-user-title sender 'username))))
;; if msg sender is a bridge bot then we want to display
;; the user title and the username in one line message
(cl-letf (((symbol-function 'telega-msg-sender-username)
Expand Down

0 comments on commit 81593bd

Please sign in to comment.