summaryrefslogtreecommitdiffstats
path: root/bridge/telegram/telegram.go
Commit message (Collapse)AuthorAgeFilesLines
* Support Telegram animated stickers (tgs) format (#1173)Ben Wiederhake2020-08-231-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/+5
|
* Add DisableWebPagePreview option (telegram). Closes #980 (#994)Wim2020-02-021-0/+3
|
* Add support for WhatsApp media (jpeg/png/gif) bridging (#974)Guillaume Lazzara2020-01-091-4/+11
| | | | | | | | * Whatsapp image bridging * Prevent double message in telegram when media with caption received Co-authored-by: imShara <shara@protonmail.com>
* Refactor telegram (#649)Wim2018-12-121-35/+2
| | | * Decrease complexity in Send() (makes codeclimate happy)
* Refactor telegram handlers. Fix linting (#609)Wim2018-11-281-277/+3
| | | * Refactor telegram handlers. Fix linting
* Fix golint linter issues and enable it in CI (#593)Duco van Amstel2018-11-151-3/+3
|
* Make goconst linter happyWim2018-11-081-9/+15
|
* Make gocritic linter happyWim2018-11-081-3/+3
|
* Clean up various stuff (#508)David Hill2018-11-071-1/+4
| | | * various cleanups
* Fix build (telegram)Wim2018-06-181-1/+4
|
* Add support for MessageFormat=htmlnick (telegram). #444Wim2018-06-181-1/+11
|
* Add QuoteFormat option (telegram). Closes #413Wim2018-05-111-1/+12
|
* Fix possible nil when using channels (telegram). #410Wim2018-05-051-1/+4
|
* Handle channel posts correctly (telegram)Wim2018-04-291-2/+3
|
* Fix panic (telegram). Closes #410Wim2018-04-291-1/+1
|
* Remove empty newlines from messages (telegram) #399Wim2018-04-191-8/+2
|
* Add QuoteDisable option (telegram). Closes #399Wim2018-04-171-1/+10
|
* Remove unused importWim2018-03-171-1/+0
|
* Revert #378Wim2018-03-171-1/+0
|
* Fix empty messages (telegram)Wim2018-03-051-0/+1
|
* Use viper (github.com/spf13/viper) for configurationWim2018-03-041-17/+17
|
* Escape html on username (telegram). Closes #378Wim2018-02-281-5/+9
|
* Improve debug messagesWim2018-02-281-4/+4
|
* Refactor using factoryWim2018-02-271-34/+27
|
* Refactor telegramWim2018-02-271-140/+152
|
* Fix the UseInsecureURL text (telegram). Closes #184Wim2018-02-211-1/+6
|
* Use prefixed-formatter for better loggingWim2018-02-211-1/+1
|
* Move Sirupsen => sirupsenWim2018-02-201-1/+1
|
* Add more debug (telegram)Wim2018-02-201-0/+1
|
* Download (and upload) avatar images from mattermost and telegram when ↵Wim2018-02-201-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 #366Wim2018-02-071-0/+4
|
* Add more parsemode debug (telegram)Wim2018-02-041-0/+4
|
* Add markdown support (telegram). #355Wim2018-02-031-0/+6
|
* Send chat notification if media is too big to be re-uploaded to MediaServer. ↵Wim2018-02-031-0/+7
| | | | See #359
* Add comment to file upload from telegram. Show comments on all bridges. ↵Wim2018-02-011-8/+8
| | | | Closes #358
* Enable Long Polling for Telegram. Reduces bandwidth consumption. (#350)ValdikSS2018-01-291-1/+3
| | | Fixes #349.
* Allow specifying maximum download size of media using MediaDownloadSize ↵Wim2017-12-191-1/+1
| | | | (slack,telegram,matrix)
* Refactor and add MediaDownloadSize to GeneralWim2017-12-191-10/+4
|
* Fix incorrect forward from text line (telegram)Wim2017-12-111-1/+0
|
* Also use HTML in edited messages (telegram). Closes #315Wim2017-12-101-0/+3
|
* Add support for Audio/Voice files (telegram). Closes #314Wim2017-12-101-0/+23
|
* Add support for forwarded messages. Closes #313Wim2017-12-101-0/+18
|
* Add webp extension to stickers if necessary (telegram)Wim2017-11-201-0/+3
|
* Add support for comments from slack file uploads (slack)Wim2017-11-131-11/+17
|
* Add extension to sticker/video/photo (telegram)Wim2017-11-121-3/+7
|
* Add the download actually to the message (telegram)Wim2017-11-121-1/+1
|
* Add more debug info (telegram)Wim2017-11-121-2/+1
|
* Add more debug info (telegram)Wim2017-11-121-0/+7
|
* Fix document bug (telegram)Wim2017-11-121-1/+1
|