Skip to content

Commit

Permalink
Add message effect to karma notifications
Browse files Browse the repository at this point in the history
kinda stupid but okay
  • Loading branch information
sfan5 committed Jun 30, 2024
1 parent cabb731 commit 1c6da84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions secretlounge_ng/telegram.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,8 @@ def send_to_single_inner(chat_id, ev, reply_to=None, force_caption=None):
kwargs2["reply_parameters"] = reply_parameters(reply_to)
if ev.type == rp.types.CUSTOM:
kwargs2["link_preview_options"] = telebot.types.LinkPreviewOptions(is_disabled=True)
elif ev.type == rp.types.KARMA_NOTIFICATION:
kwargs2["message_effect_id"] = "5107584321108051014" # thumbs up
kwargs2["parse_mode"] = "HTML"
return bot.send_message(chat_id, rp.formatForTelegram(ev), **kwargs2)
elif isinstance(ev, FormattedMessage):
Expand Down

0 comments on commit 1c6da84

Please sign in to comment.