summaryrefslogtreecommitdiffstats
path: root/bridge/telegram/handlers.go
Commit message (Collapse)AuthorAgeFilesLines
* Adding caption to send telegram images. Fixes #1357 (#1358)Paul2021-04-031-11/+22
| | | | | | | | | | | | | | | | | * 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)Wim2021-02-251-8/+10
|
* Add jpe as valid image filename extension (telegram) (#1360)Paul2021-01-141-1/+1
|
* Rename .oga audio files to .ogg (telegram) (#1349)Wim2021-01-021-0/+5
|
* Support Telegram animated stickers (tgs) format (#1173)Ben Wiederhake2020-08-231-8/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Groshev2020-07-121-0/+3
|
* Fix forward from hidden users (telegram). Closes #1131 (#1143)Wim2020-05-231-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 ↵Wim2020-02-151-1/+1
| | | | (#1012)
* Add QuoteLengthLimit option (telegram) fixes #963 (#985)Humorhenker2020-01-301-0/+8
| | | * QuoteLengthLimit option added to limit max. quoted message length if QuoteLengthLimit = 0 the whole message will be quoted
* Fix panic by checking slice bounds in handleEntities (telegram). Fixes #857 ↵Wim2019-07-081-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 #777Wim2019-04-051-0/+5
|
* Revert "Bail if any vars are nil, not if all (telegram) (#778)"Wim2019-04-051-2/+2
| | | | This reverts commit efd2c9986270a8a1dd35f896a80d6465fc52054b.
* Bail if any vars are nil, not if all (telegram) (#778)David Hill2019-03-271-2/+2
|
* Add support for URL in messageEntities (telegram). Fixes #735 (#736)Wim2019-03-021-0/+22
|
* Add MediaConvertWebPToPNG option (telegram). (#741)Wim2019-02-271-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
* Refactor telegram (#649)Wim2018-12-121-0/+44
| | | * Decrease complexity in Send() (makes codeclimate happy)
* Fix telegram crash #620Wim2018-11-291-2/+2
|
* Refactor telegram handlers. Fix linting (#609)Wim2018-11-281-0/+302
* Refactor telegram handlers. Fix linting