Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Adding caption to send telegram images. Fixes #1357 (#1358) | Paul | 2021-04-03 | 2 | -29/+45 |
| | | | | | | | | | | | | | | | | | * Used tgbotapi caption option to attach caption to photos / documents * remove "text/template/parse" * added TGGetParseMode to clean up. Added tg upload function for video, audio and voice * fixed varname Textout. Changed fileextension logic to avoid chaining regex * fixed textout varname * fixed parsemode varname * gofmt Co-authored-by: Wim <wim@42.be> | ||||
* | Check rune length instead of bytes (telegram). Fixes #1409 (#1412) | Wim | 2021-02-25 | 1 | -8/+10 |
| | |||||
* | Add jpe as valid image filename extension (telegram) (#1360) | Paul | 2021-01-14 | 1 | -1/+1 |
| | |||||
* | Rename .oga audio files to .ogg (telegram) (#1349) | Wim | 2021-01-02 | 1 | -0/+5 |
| | |||||
* | Support Telegram animated stickers (tgs) format (#1173) | Ben Wiederhake | 2020-08-23 | 2 | -8/+59 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is half a fix for #874 This patch introduces a new config flag: - MediaConvertTgs These need to be treated independently from the existing MediaConvertWebPToPNG flag because Tgs→WebP results in an *animated* WebP, and the WebP→PNG converter can't handle animated WebP files yet. Furthermore, some platforms (like discord) don't even support animated WebP files, so the user may want to fall back to static PNGs (not APNGs). The final reason why this is only half a fix is that this introduces an external dependency, namely lottie, to be installed like this: $ pip3 install lottie cairosvg This patch works by writing the tgs to a temporary file in /tmp, calling lottie to convert it (this conversion may take several seconds!), and then deleting the temporary file. The temporary file is absolutely necessary, as lottie refuses to work on non-seekable files. If anyone comes up with a reasonable use case where /tmp is unavailable, I can add yet another config option for that, if desired. Telegram will bail out if the option is configured but lottie isn't found. | ||||
* | Fix MarkdownV2 support in Telegram (#1169) | Andrey Groshev | 2020-07-12 | 2 | -0/+8 |
| | |||||
* | Fix forward from hidden users (telegram). Closes #1131 (#1143) | Wim | 2020-05-23 | 1 | -13/+23 |
| | | | | Use ForwardDate to check if a message is forwarded. If we have a nil ForwardedFrom then make this an unknown user. | ||||
* | Make avatars download work with mediaserverdownload (telegram). Fixes #920 ↵ | Wim | 2020-02-15 | 1 | -1/+1 |
| | | | | (#1012) | ||||
* | Add DisableWebPagePreview option (telegram). Closes #980 (#994) | Wim | 2020-02-02 | 1 | -0/+3 |
| | |||||
* | Add QuoteLengthLimit option (telegram) fixes #963 (#985) | Humorhenker | 2020-01-30 | 1 | -0/+8 |
| | | | * QuoteLengthLimit option added to limit max. quoted message length if QuoteLengthLimit = 0 the whole message will be quoted | ||||
* | Add support for WhatsApp media (jpeg/png/gif) bridging (#974) | Guillaume Lazzara | 2020-01-09 | 1 | -4/+11 |
| | | | | | | | | * Whatsapp image bridging * Prevent double message in telegram when media with caption received Co-authored-by: imShara <shara@protonmail.com> | ||||
* | Fix panic by checking slice bounds in handleEntities (telegram). Fixes #857 ↵ | Wim | 2019-07-08 | 1 | -3/+9 |
| | | | | | | (#858) Besides the bound checking, this now also use utf16 as suggested by https://github.com/go-telegram-bot-api/telegram-bot-api/issues/231 | ||||
* | Handle nil message (telegram). Fixes #777 | Wim | 2019-04-05 | 1 | -0/+5 |
| | |||||
* | Revert "Bail if any vars are nil, not if all (telegram) (#778)" | Wim | 2019-04-05 | 1 | -2/+2 |
| | | | | This reverts commit efd2c9986270a8a1dd35f896a80d6465fc52054b. | ||||
* | Bail if any vars are nil, not if all (telegram) (#778) | David Hill | 2019-03-27 | 1 | -2/+2 |
| | |||||
* | Add support for URL in messageEntities (telegram). Fixes #735 (#736) | Wim | 2019-03-02 | 1 | -0/+22 |
| | |||||
* | Add MediaConvertWebPToPNG option (telegram). (#741) | Wim | 2019-02-27 | 1 | -0/+9 |
| | | | | | | | | * 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 | ||||
* | Fix regression in HTML handling (telegram). Closes #734 | Wim | 2019-02-24 | 1 | -14/+10 |
| | | | | | * Revert back to blackfriday v1 * Add testing | ||||
* | Refactor telegram (#649) | Wim | 2018-12-12 | 2 | -35/+46 |
| | | | * Decrease complexity in Send() (makes codeclimate happy) | ||||
* | Fix telegram crash #620 | Wim | 2018-11-29 | 1 | -2/+2 |
| | |||||
* | Refactor telegram handlers. Fix linting (#609) | Wim | 2018-11-28 | 3 | -278/+306 |
| | | | * Refactor telegram handlers. Fix linting | ||||
* | Fix golint linter issues and enable it in CI (#593) | Duco van Amstel | 2018-11-15 | 1 | -3/+3 |
| | |||||
* | Make goconst linter happy | Wim | 2018-11-08 | 1 | -9/+15 |
| | |||||
* | Make gocritic linter happy | Wim | 2018-11-08 | 1 | -3/+3 |
| | |||||
* | Make interfacer linter happy | Wim | 2018-11-08 | 1 | -1/+2 |
| | |||||
* | Clean up various stuff (#508) | David Hill | 2018-11-07 | 1 | -1/+4 |
| | | | * various cleanups | ||||
* | Update Blackfriday dependency (closes #522) (#532) | Duco van Amstel | 2018-10-22 | 1 | -9/+12 |
| | | | - Fixup Telegram bridge implementation to support updated dependency. | ||||
* | Fix build (telegram) | Wim | 2018-06-18 | 1 | -1/+4 |
| | |||||
* | Add support for MessageFormat=htmlnick (telegram). #444 | Wim | 2018-06-18 | 1 | -1/+11 |
| | |||||
* | Reconnect on quit. (irc) See #431 (#445) | Liam Stanley | 2018-06-09 | 1 | -1/+2 |
| | | | | | * potential fixes for #431 * go: fix formatting/gofmt/goreturns | ||||
* | Add QuoteFormat option (telegram). Closes #413 | Wim | 2018-05-11 | 1 | -1/+12 |
| | |||||
* | Fix possible nil when using channels (telegram). #410 | Wim | 2018-05-05 | 1 | -1/+4 |
| | |||||
* | Handle channel posts correctly (telegram) | Wim | 2018-04-29 | 1 | -2/+3 |
| | |||||
* | Fix panic (telegram). Closes #410 | Wim | 2018-04-29 | 1 | -1/+1 |
| | |||||
* | Remove empty newlines from messages (telegram) #399 | Wim | 2018-04-19 | 1 | -8/+2 |
| | |||||
* | Add QuoteDisable option (telegram). Closes #399 | Wim | 2018-04-17 | 1 | -1/+10 |
| | |||||
* | Remove unused import | Wim | 2018-03-17 | 1 | -1/+0 |
| | |||||
* | Revert #378 | Wim | 2018-03-17 | 1 | -1/+0 |
| | |||||
* | Fix empty messages (telegram) | Wim | 2018-03-05 | 1 | -0/+1 |
| | |||||
* | Use viper (github.com/spf13/viper) for configuration | Wim | 2018-03-04 | 1 | -17/+17 |
| | |||||
* | Escape html on username (telegram). Closes #378 | Wim | 2018-02-28 | 1 | -5/+9 |
| | |||||
* | Improve debug messages | Wim | 2018-02-28 | 1 | -4/+4 |
| | |||||
* | Refactor using factory | Wim | 2018-02-27 | 1 | -34/+27 |
| | |||||
* | Refactor telegram | Wim | 2018-02-27 | 2 | -149/+161 |
| | |||||
* | Fix the UseInsecureURL text (telegram). Closes #184 | Wim | 2018-02-21 | 1 | -1/+6 |
| | |||||
* | Use prefixed-formatter for better logging | Wim | 2018-02-21 | 1 | -1/+1 |
| | |||||
* | Move Sirupsen => sirupsen | Wim | 2018-02-20 | 1 | -1/+1 |
| | |||||
* | Add more debug (telegram) | Wim | 2018-02-20 | 1 | -0/+1 |
| | |||||
* | Download (and upload) avatar images from mattermost and telegram when ↵ | Wim | 2018-02-20 | 1 | -3/+53 |
| | | | | | | | | | | | | | | 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. | ||||
* | Fix panic on nil messages (telegram). Closes #366 | Wim | 2018-02-07 | 1 | -0/+4 |
| |