matterbridge icon indicating copy to clipboard operation
matterbridge copied to clipboard

Allow to ignore certain media types from Telegram

Open CyberTailor opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe. I don't like that stickers (that add nothing to the conversation) are relayed to IRC channels.

Describe the solution you'd like IgnoreMedia (array) config key for Telegram sections, where you can list media types (such as stickers, """gifs""", voice messages) that won't be relayed to other accounts.

Describe alternatives you've considered

  • NoSendStickers (bool) config key for Telegram sections. It'd work too but it wouldn't be flexible.
  • IgnoreMedia (array) config list for all sections. It'd be the most flexible solution (would allow to disable stickers just for IRC and not for other accounts) but the hardest to implement.

CyberTailor avatar Feb 12 '22 18:02 CyberTailor

Try writing a tengo script to fix this https://github.com/42wim/matterbridge/wiki/Tengo

42wim avatar Feb 20 '22 15:02 42wim

I can't detect a sticker being sent using Tengo, because it's not in msgText.

CyberTailor avatar Feb 21 '22 02:02 CyberTailor