Commit Graph

80 Commits (cba01f0865d2d78d95825eb844419efe6479c225)

Author SHA1 Message Date
Wim f57370f33a
Add support for URL in messageEntities (telegram). Fixes #735 (#736) 6 years ago
Wim 26a7e35f27
Add MediaConvertWebPToPNG option (telegram). (#741)
* Add MediaConvertWebPToPNG option (telegram).

When enabled matterbridge will convert .webp files to .png files
before uploading them to the mediaserver of the other bridges.

Fixes #398
6 years ago
Wim 96841c70c7 Fix regression in HTML handling (telegram). Closes #734
* Revert back to blackfriday v1
* Add testing
6 years ago
Wim bfa9a83d31
Refactor telegram (#649)
* Decrease complexity in Send() (makes codeclimate happy)
6 years ago
Wim 7923cfe8f8 Fix telegram crash #620 6 years ago
Wim 25cd1e2cc1
Refactor telegram handlers. Fix linting (#609)
* Refactor telegram handlers. Fix linting
6 years ago
Duco van Amstel ce21ba1545 Fix golint linter issues and enable it in CI (#593) 6 years ago
Wim b2a07aba3a Make goconst linter happy 6 years ago
Wim 399789811e Make gocritic linter happy 6 years ago
Wim 588b8e0303 Make interfacer linter happy 6 years ago
David Hill 0e2522279e Clean up various stuff (#508)
* various cleanups
6 years ago
Duco van Amstel f2cdda7278 Update Blackfriday dependency (closes #522) (#532)
- Fixup Telegram bridge implementation to support updated dependency.
6 years ago
Wim 221a63d980 Fix build (telegram) 6 years ago
Wim d02eda147c Add support for MessageFormat=htmlnick (telegram). #444 6 years ago
Liam Stanley 51327a4056 Reconnect on quit. (irc) See #431 (#445)
* potential fixes for #431
* go: fix formatting/gofmt/goreturns
6 years ago
Wim 406a54b597 Add QuoteFormat option (telegram). Closes #413 6 years ago
Wim ee4ac67081 Fix possible nil when using channels (telegram). #410 6 years ago
Wim b24a47ad7f Handle channel posts correctly (telegram) 6 years ago
Wim cd1fd1bb7c Fix panic (telegram). Closes #410 6 years ago
Wim a83831e68d Remove empty newlines from messages (telegram) #399 7 years ago
Wim e57f3a7e6c Add QuoteDisable option (telegram). Closes #399 7 years ago
Wim 7c4334d0de Remove unused import 7 years ago
Wim 062be8d7c9 Revert #378 7 years ago
Wim 1ec324354b Fix empty messages (telegram) 7 years ago
Wim f2f1d874e1 Use viper (github.com/spf13/viper) for configuration 7 years ago
Wim dbf8a326d5 Escape html on username (telegram). Closes #378 7 years ago
Wim 594d2155e3 Improve debug messages 7 years ago
Wim 2bac867382 Refactor using factory 7 years ago
Wim ad6440b603 Refactor telegram 7 years ago
Wim bab308508e Fix the UseInsecureURL text (telegram). Closes #184 7 years ago
Wim d1227b5fc9 Use prefixed-formatter for better logging 7 years ago
Wim 6ea368c383 Move Sirupsen => sirupsen 7 years ago
Wim a2b94452db Add more debug (telegram) 7 years ago
Wim 7886f05e88 Download (and upload) avatar images from mattermost and telegram when mediaserver is configured. Closes #362
An extra avatarMap (cache) is created for mattermost and telegram.
If MediaServerUpload is configured, the avatar images of users are downloaded the first time a
user sends a message.
If this download succeeds a message with EVENT_AVATAR_DOWNLOAD is sent to the originating protocol.
This message also contains a SHA field (in msg.Extra["file"]), if this is not empty, the sha will
be added to the avatarMap. (so we now have a userid-sha cache)

Next time this user sends a message, the MediaServerUpload/sha/userid.png URL will be used as the
avatar field.
7 years ago
Wim df5bce27b0 Fix panic on nil messages (telegram). Closes #366 7 years ago
Wim 432cd0f99d Add more parsemode debug (telegram) 7 years ago
Wim d4a47671ea Add markdown support (telegram). #355 7 years ago
Wim 80822b7fff Send chat notification if media is too big to be re-uploaded to MediaServer. See #359 7 years ago
Wim 7764493298 Add comment to file upload from telegram. Show comments on all bridges. Closes #358 7 years ago
ValdikSS 2e2187ebf4 Enable Long Polling for Telegram. Reduces bandwidth consumption. (#350)
Fixes #349.
7 years ago
Wim d0c4fe78ee Allow specifying maximum download size of media using MediaDownloadSize (slack,telegram,matrix) 7 years ago
Wim 265457b451 Refactor and add MediaDownloadSize to General 7 years ago
Wim 0a91b9e1c9 Fix incorrect forward from text line (telegram) 7 years ago
Wim d1c87c068b Also use HTML in edited messages (telegram). Closes #315 7 years ago
Wim fa20761110 Add support for Audio/Voice files (telegram). Closes #314 7 years ago
Wim e4a0e0a0e9 Add support for forwarded messages. Closes #313 7 years ago
Wim 98762a0235 Add webp extension to stickers if necessary (telegram) 7 years ago
Wim 36a800c3f5 Add support for comments from slack file uploads (slack) 7 years ago
Wim 6d21f84187 Add extension to sticker/video/photo (telegram) 7 years ago
Wim 46f5acc4f9 Add the download actually to the message (telegram) 7 years ago