Commit Graph

57 Commits (db25ee59c5c9a46feed526133bea6b296256a960)

Author SHA1 Message Date
Wim 1ec324354b Fix empty messages (telegram) 6 years ago
Wim f2f1d874e1 Use viper (github.com/spf13/viper) for configuration 6 years ago
Wim dbf8a326d5 Escape html on username (telegram). Closes #378 6 years ago
Wim 594d2155e3 Improve debug messages 6 years ago
Wim 2bac867382 Refactor using factory 6 years ago
Wim ad6440b603 Refactor telegram 6 years ago
Wim bab308508e Fix the UseInsecureURL text (telegram). Closes #184 6 years ago
Wim d1227b5fc9 Use prefixed-formatter for better logging 6 years ago
Wim 6ea368c383 Move Sirupsen => sirupsen 6 years ago
Wim a2b94452db Add more debug (telegram) 6 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.
6 years ago
Wim df5bce27b0 Fix panic on nil messages (telegram). Closes #366 6 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
Wim 95d4dcaeb3 Add more debug info (telegram) 7 years ago
Wim 64c542e614 Add more debug info (telegram) 7 years ago
Wim 13d081ea80 Fix document bug (telegram) 7 years ago
Wim c0f9d86287 Fix telegram photo/document input handling (telegram) 7 years ago
Wim 115c4b1aa7 Fix missing arg for Errorf 7 years ago
Wim 1b30575510 Download files from telegram and reupload to supported bridges (telegram). #278 7 years ago
Wim 4bda29cb38 Try quoting previous messsage (telegram). #237 7 years ago
Wim c088e45d85 Add more debug info (telegram) 7 years ago
Wim 14490bea9f Add partial support for deleted messages (telegram) 7 years ago
Wim 7a86044f7a Add support for editing messages (telegram) 7 years ago
Wim 5a8d7b5f6d Modify Send() to return also a message id 7 years ago
Wim 28710d0bc7 Allow a webhookurl per channel (discord). #239 7 years ago
Wim f8e6a69d6e Add action support for slack,mattermost,irc,gitter,matrix,xmpp,discord. #199 7 years ago
Wim 2338c69d40 Add UseInsecureURL option (telegram) 7 years ago
Wim 62e9de1a3b Use the last (and biggest) photo to relay (telegram). Closes #184 7 years ago
Wim 2ddc4f7ae9 Add UserID to each message. Closes #200 7 years ago
Wim 2dd402675d Sent only the biggest picture to bridges (telegram) 7 years ago
Wim 2a403f8b85 Add initial sticker/video/photo/document support (telegram). #184 7 years ago
Wim 9bcd131e66 Reset variables each loop (telegram). Closes #181 7 years ago
Wim 2888fd64b0 Add UseFirstName option (telegram). Closes #144 7 years ago
Wim 7469732bbc Add support for edited messages (telegram) 7 years ago
Wim 57176dadd4 Support edited messages (telegram). See #141 7 years ago
Wim 32bbab8518 Do not use HTML parsemode by default. Set MessageFormat="HTML" to use it. (telegram) Closes #126 7 years ago