summaryrefslogtreecommitdiffstats
path: root/bridge
Commit message (Collapse)AuthorAgeFilesLines
* Fix UploadMessagesPhoto for vk community chat (vk) (#1812)Daniil Suvorov2022-04-221-3/+4
|
* Do not apply any markup to URL entities (telegram) (#1808)ValdikSS2022-04-221-1/+6
| | | | | | | | | | | | | handleEntities code uses simple modification offset which does not allow to detect whether the offset is placed before or after the element in already modified string. This works fine is most cases as Telegram server always sort the elements by offset, in ascending order. However, this is not the case when the modification, for example bold text, is applied to the URL. In this case, the offset of URL and bold entity is equal, which raises the issue. This commit introduces additional hack for this case, stripping any entities which intersect with URL.
* Do not modify .webm files (telegram). Fixes #17** (#1802)Wim2022-04-171-1/+1
|
* Clear existing IRC event handlers before connecting new ones (#1795)Bryan Davis2022-04-071-0/+1
| | | | | | | Clear all existing IRC event handler registrations before registering new handlers in case we are connecting via a BNC and are seeing a reconnect. Fixes #1564
* Add whatsapp deprecation warning (#1792)Wim2022-04-041-0/+5
|
* Change discord non-native threading behaviour (discord) (#1791)Wim2022-04-041-1/+2
| | | | | | | | Sorta regression introduced by 9a8ce9b17e560433731eb5efa3cee7ced0b93605 which changes the way we get replies of matrix. This causes issues like https://github.com/42wim/matterbridge/issues/1780 We "fix" this by mimicking the old behaviour when "PreserveThreading" is disabled.
* Multiple media in one message (telegram) (#1779)Alexander2022-03-302-32/+68
| | | | | | | | | | | | | * Send multiple images/video/documents as media group * Fix media caption quotting * Fix errors handling * Refactor parent id detection * Try to reduce cognitive complexity of code * Remove unused conditional
* Preserve threading for messages with files (slack) (#1781)Alexander2022-03-301-4/+14
| | | | | | | * Preserve threading for slack messages with files * Update bridge/slack/slack.go Co-authored-by: Wim <wim@42.be>
* Use slack real name as user name (slack) (#1775)Alexander2022-03-261-0/+3
| | | | | * Use slack real name as user name * Change slack option UseRealName to UseFullName
* Preserve threading from telegram replies (telegram) (#1776)Alexander2022-03-252-4/+22
| | | | | | | * Preserve threading from telegram replies * Add fallback for unthreaded telegram message * Fix linter issue
* Add UseFullName option (telegram) (#1777)Alexander2022-03-251-0/+12
|
* Fix linting (whatsapp)Wim2022-03-202-2/+3
|
* Add whatsappmulti buildflag for whatsapp with multidevice support (whatsapp)Wim2022-03-206-326/+1211
|
* Fix linting (whatsapp)Wim2022-03-202-3/+2
|
* Fix channel in video/audio/image/document handling (whatsapp)Wim2022-03-201-4/+4
|
* Check for Conversation on receiving messages (whatsapp)Wim2022-03-202-26/+29
|
* Use Conversation instead of ExtendedTextMessage (whatsapp)Wim2022-03-201-6/+10
|
* Refactor login logic (whatsapp)Wim2022-03-201-14/+30
|
* Add busy_timeout which fixes SQLITE_BUSY errors (whatsapp)Wim2022-03-201-1/+1
|
* Fetch avatars synchronous (whatsapp)Wim2022-03-202-14/+16
|
* Refactor JoinChannel (whatsapp)Wim2022-03-201-26/+19
|
* Rewrite whatsapp bridge to use whatsmeowWim2022-03-203-402/+285
|
* Remove go replace by fork (matrix) (#1771)Wim2022-03-202-2/+2
|
* Refactor utf-8 conversion (irc) (#1767)Wim2022-03-192-4/+35
|
* Implement a workaround to signal Opus support (mumble) (#1764)Sebastian P2022-03-192-0/+71
| | | | | | | * Mumble: Implement a workaround to signal Opus support without pulling in the CGO gopus dependency. * mumble: lowercase error messages * mumble: Add link to #1750 in bridge/mumble/codec.go
* Fix for complex-formatted Telegram text (#1765)ValdikSS2022-03-191-12/+16
| | | | | | | | | | | * Telegram: handle entities before everything * Telegram: use runes for text entities * Telegram: use proper offset and runes for links * Telegram: put newline after backticks for pre * Telegram: use utf16 for entity processing
* Fix panic in irc. Closes #1751 (#1760)Wim2022-03-121-2/+4
|
* Switch to discordgo upstream again (#1759)Wim2022-03-127-9/+9
| | | | | * Switch to upstream discordgo again * Fix discord api changes
* Fix Telegram channel title in forwards (#1753)ValdikSS2022-03-121-0/+5
| | | | Forward from channels requires different handling than forward from the regular users. This patch fixes the issue: it prints channel title instead of "forwarded from unknown".
* Fix Telegram Problem (unforwarded formatting and skipping of linebreaks) (#1749)Jan Martin Reckel2022-03-121-1/+18
| | | | | | | | | | | | | * Change bridge/telegram/handlers.go Comment out the removing of empty lines add support for bold, italic and striked telegram messages * Implement Telegram MessageEntities correctly * Apply gofmt Co-authored-by: Jan Martin Reckel <jan-martin.reckel@s2017.tu-chemnitz.de> Co-authored-by: Wim <wim@42.be>
* Make EditSuffix option actually work (whatsapp). Fixes #1510 (#1728)Wim2022-02-061-1/+5
| | | | To keep it backwards compatible we keep the "(edited)" message when no editsuffix is configured.
* Make HTMLDisable work correct (matrix) (#1716)Wim2022-02-061-31/+60
|
* Add support for using ID in channel config (mattermost) (#1715)Wim2022-02-063-20/+78
|
* Add UseUsername option (mattermost). Fixes #1665 (#1714)Wim2022-02-062-5/+9
|
* Add more debug options for discord (#1712)Wim2022-02-062-2/+11
| | | | | debuglevel=1 dumps every received discord event debuglevel=2 dumps every discord event we are sending to discord (also logs sensitive information)
* Add support for client certificate (irc) (#1710)Wim2022-02-051-1/+31
| | | Supports https://libera.chat/guides/certfp.html
* Add support for deleting files from slack to discord. Fixes #1705 (#1709)Wim2022-02-055-36/+108
| | | | | | | | | | | | | | | | | | | | | | | | We create a new event EventFileDelete which will be used to delete specific uploaded files using the Extra["file"] in the config.Message. We also add a new NativeID key to the FileInfo struct which will contain the native file ID of the sending bridge. When a new file is added to the config.Message.Extra["file"] map, now the bridge native file ID should be added here. When the receiving bridge receives such a message, it should keep an internal mapping of NativeID <> bridge fileid/message id. In the case of discord we map it to the resulted discord message ID after uploading it. Now when a bridge deletes a file, it should send a EventFileDelete and setting the ID to the native file ID of the bridge. When the receiving bridge will get this event it'll look into the NativeID <> bridge id mapping to find their internal ID and use it to delete the specific file on their side. For now this is implemented for slack to discord but this will be add to other bridges where useful.
* Add support for sender_chat (telegram) (#1677)Wim2022-02-041-0/+24
| | | | | | | | | | * Add support for sender_chat (telegram) Fixes #1654 https://core.telegram.org/bots/api#december-7-2021 * Add debuglevel option Add `debuglevel=1` in telegram config to increase debug
* Add Telegram Bot Command /chatId (telegram) (#1703)Ivan Zuev2022-02-031-2/+15
| | | | | | | | * feat(telegram): command to get chat id * Gofumpt Co-authored-by: Ivan Zuev <i-zuev@yandex-team.ru> Co-authored-by: Wim <wim@42.be>
* Increase batch size for conversation.list api method (slack) (#1700)Ivan Zuev2022-01-291-0/+1
| | | Co-authored-by: Ivan Zuev <i-zuev@yandex-team.ru>
* Add more ignore debug messages (mattermost) (#1678)Wim2022-01-101-1/+3
|
* Log eventtype in debug (mattermost) (#1676)Wim2022-01-101-1/+1
|
* Use current parentID if rootId is not set (mattermost) (#1675)Wim2022-01-101-2/+6
|
* Reply support for Matrix (#1664)vpzomtrrfrt2022-01-091-0/+79
| | | | | | | | | * Post replies to matrix * Handle replies from matrix * Include protocol in canonical ID return * fmt
* Remove GroupID (vk) (#1668)Daniil Suvorov2022-01-091-3/+8
|
* Add support for Harmony (#1656)Janet Blackquill2021-12-181-0/+252
| | | | | | Harmony is a relatively new (1,5yo) chat protocol with a small community. This introduces support for Harmony into Matterbridge, using the functionality specifically designed for bridge bots. The implementation is a modest 200 lines of code.
* Add comments to messages (telegram) (#1652)Soloam2021-12-121-4/+2
| | | | | | | | | | | | | * Add's comments to message in telegram messages This is a change to handle comments in telegram messages! Some messages in telegram have comments added to the message! This normally is the description in images or links. This changes appends the comment to the message if available. This should fix the issue in #1649 * [fix] discord: send comments in extras Co-authored-by: Wim <wim@42.be>
* Update telegram-bot-api to v5 (#1660)Wim2021-12-122-41/+43
|
* Fix telegram/handlers.go linting (#1658)Wim2021-12-101-5/+5
|
* Add support for code blocks in telegram (#1650)Dan Walmsley2021-12-071-0/+15
| | | | | | | | | | | * handle code blocks in telegram. * support multi-line code blocks. * remove import. * handle code blocks in middle of normal text. * support multiple code blocks in same message.