Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[telega-bridge-bot] fix: Update telega-user-title function usage. #425

Merged
merged 1 commit into from
Aug 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading