Commit Graph

858 Commits (master)

Author SHA1 Message Date
Wim 89b0d362d2
Remove gitter bridge (#2035)
See https://blog.gitter.im/2023/02/13/gitter-has-fully-migrated-to-matrix/
1 year ago
Joseph Mansy 574f25337d
Add nil check for group update (telegram) (#2036) 1 year ago
Joseph Mansy 5bbe422161
Support telegram chat Join/Leave updates (#2019)
Co-authored-by: Wim <wim@42.be>
1 year ago
Faye Duxovni 6500714a93
Don't treat nil as an unknown type of error (zulip) (#2024)
Fixes #1869
1 year ago
Thom Dickson 5feafcddba
Fix broken reply (telegram) (#2026)
Fixes #2021 

* Fix broken reply

* Fix reply/quoting logic with topics

* Update handlers.go

---------

Co-authored-by: Wim <wim@42.be>
1 year ago
Joseph Mansy 839f384e45
Return a message ID when sending with a webhook (discord) (#1976)
Resolves #1975
1 year ago
Joseph Mansy d42277979a
Support topic changes and Join/Leave messages (whatsapp) (#2017) 1 year ago
Thom Dickson 601f48a50e
Add support for Telegram topics (telegram) (#1942)
Topics are surfaced by appending /<topic-id> to the channel setting for the gateway. 
An example for the topic with ID of 16 would be:

```
[[gateway.inout]]
account="telegram.mytelegram"
channel="-100xxxxxxxxxx/16"
```
1 year ago
Wim c2b8e298d8
Add extra error checking for fileinfo (api) (#2015) 1 year ago
Asiel Díaz Benítez 0917e17383
Allow to send files in Extra via /api/message (api) (#1993) 1 year ago
Wim 8587fa8585
Fix possible panic in mattermost. (mattermost) Fixes #1947 (#2014) 1 year ago
Wim f345eeae55
Set correct loglevel (whatsapp). Fixes #1980 (#2013) 1 year ago
Wim 89e2dbac15
Check client disconnect to exit for loop (api). Fixes #1983 (#2012)
Also update to latest melody upstream
1 year ago
Wim 356ada872c
Add handlers at the end. Fixes #1988 (discord) (#2011) 1 year ago
mvoolt a3deb48726
Add support for Mumble servers with no message length limit (#2008)
* Rename .{jfif,jpe} to .jpg (mumble)

* Fix messages not sending in properly if no limit is set (mumble)

Co-authored-by: yellows111 <ice_ice@email.com>

* Formatting fix (mumble)

---------

Co-authored-by: yellows111 <ice_ice@email.com>
1 year ago
ilmaisin 544cd5cd9e
Fix Android media download problem (whatsapp) (#2010) 1 year ago
Joseph Mansy 2c349c50c7
Support handling delete message from whatsapp. (#1986) 1 year ago
Joseph Mansy 3a4bdd7c56
Fix rate-overlimit issue when there are more than 5 whatsapp channels in a single account (whatsapp) (#1998)
Resolves #1844
1 year ago
Joseph Mansy 768fb791c5
Use AuthorSignature as a fallback username (telegram) (#1979)
This comes in handy for annoucement type channels where neither the SenderChat or From structs contain name information.

Also Tweak username logic as when using a full name the username field can be " " instead of "".
1 year ago
Joseph Mansy d00dcf3f58
Handle Whatsapp threading/replies (whatsapp) (#1974)
* Handle Whatsapp threading/replies.
In this change we are updating whatsapp message IDs to include sender JID as this is necessary to reply to a message
https://github.com/tulir/whatsmeow/issues/88#issuecomment-1093195237
https://github.com/tulir/whatsmeow/discussions/148#discussioncomment-3094325

Based on commit 6afa93e537 from #1934
    Author: Iiro Laiho <iiro.laiho@iki.fi>

* Fix replies.
Sender JID can have a `:` inside of it, using `/` as a delimiter now.
Added messageID parser + struct.
messages sent with an attachment do not show replies
But at least common `sendMessage` will make repies from whatsapp to an attachement bridge across.

The new message ID format broke message deleting, so we change the messageID into the real id at the beginning of send.
We really do need the extra info for when we reply to a message though.

* Refactored message replies.
file/Image/audio/replies all work now.
1 year ago
Joseph Mansy a9ccc18d73
Prefer mp4 extension for video attachments (whatsapp) (#1971)
resolves #1967
1 year ago
Joseph Mansy ac681687f8
Handle messages with link preview not being relayed (whatsapp) (#1970)
Resolves #1840
1 year ago
Wim d23f2560d5
Make the cgo lottie a build tag (-tag cgolottie) (#1955)
This should fix #1906 as we don't have any cgo dependencies anymore by
default.
1 year ago
Wim 880586bac4
Update dependencies (#1951) 1 year ago
Wim eac2a8c8dc
Remove mattermost 5 support (#1936) 1 year ago
ilmaisin 4cf313c4c6
Fix the "Someone" nickname problem (whatsapp) (#1931)
* Apply patch to work around the "Someone" nickname problem

* Code cleanup (whatsapp)

* Cleanup

* Code cleanup (whatsapp)

* Re-examine if sender exists

* Cleanup (whatsapp)
1 year ago
ilmaisin 91353d0a4d
Handle incoming document captions from whatsapp (#1935) 1 year ago
ilmaisin 0a6d64ab48
Improve attachment handling (whatsapp) (#1928)
* Allow captions for document attachments, too

* Handle audio messages

* Improve attachment handling
1 year ago
Sebastian P 6da9d567dc
Implement sending of EventJoinLeave both to and from Mumble (#1915)
* mumble: Implement sending of EventJoinLeave both to and from Mumble (Closes #1435)

* mumble: Break handleUserChange into two functions
1 year ago
Kufat 6d5a3dff22
Allow substitution of bot's nick in RunCommands (irc) (#1890)
* Allow substitution of bot's nick in RunCommands

* Tweak description of "{BOTNICK}"

Made the description of "{BOTNICK}" consistent with that of other keywords
1 year ago
Jair Sanchez 3ad5deaff1
Fix empty messages on IRC (#1897) 1 year ago
Alexander 9bbdf70e69
Fix telegram attachment comment formatting and escaping (#1920) 1 year ago
Lucki 0c83946983
Add Matrix username spoofing (#1875)
* Matrix username spoofing

* Add config sample
2 years ago
Wim fda05f2262
Update dependencies and fix whatsmeow API changes (#1887)
* Update dependencies

* Fix whatsmau API changes
2 years ago
Alexander 365acc36ea
Fix error messages in telegram and slack bridges (#1862)
* Fix message html entities escaping when sending to Telegram

* Fix error messages in telegram and slack bridges

Co-authored-by: Wim <wim@42.be>
2 years ago
Alexander 3c4192ebf6
Fix message html entities escaping when sending to Telegram (#1855) 2 years ago
Wim d07a3e09c9
Support mattermost v7 (#1852)
Mattermost api (almost) didn't change between v6.7.x and v7.0
Everything should just work
2 years ago
Sam W 5604d140e3
Ignore events from other guilds, add nosendjoinpart support (discord) (#1846)
* discord: add nosendjoinpart support

This allows the discord bridge to be configured with `nosendjoinpart`,
preventing discord-originating join/part messages from being send to
other bridged platforms.

* discord: Ignore incoming events for other guilds

Ignore all incoming discord events originating from Guild IDs other than
the one we have configured.
This is necessary because discord bots receive events for *all* discord
guilds that they are present in.

Fixes #1612
2 years ago
Andy 700b95546b
Improve Slack attachments formatting (slack) (#1807)
* Improve Slack attachments formatting (slack)

* Add TitleLink
* Add Footer

* Fix linter issues
2 years ago
Wim 2fa96ec0ed
Add KeepQuotedReply option for matrix to fix regression (#1823)
Matrix quotes replies and as of matterbridge 1.24.0 we strip those as this causes
issues with bridges support threading and have PreserveThreading enabled.

Introduced via 9a8ce9b17e

But if you for example use mattermost or discord with webhooks you'll need to enable
this if you want something that looks like a reply from matrix.
See issues:
- https://github.com/42wim/matterbridge/issues/1819
- https://github.com/42wim/matterbridge/issues/1780
2 years ago
Wim 888c8b9a84
Add space between filename and URL (mattermost). Fixes #1820 2 years ago
Wim e775a8a22e
Revert "Clear existing IRC event handlers before connecting new ones (#1795)"
This reverts commit f044b948e2.

Fixes #1815
2 years ago
Alexander 99fbd9cae6
Fix telegram message deletion request (#1818) 2 years ago
Daniil Suvorov ee932a9f8e
Fix UploadMessagesPhoto for vk community chat (vk) (#1812) 2 years ago
ValdikSS ce18c948e6
Do not apply any markup to URL entities (telegram) (#1808)
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.
2 years ago
Wim 7bc93c5506
Do not modify .webm files (telegram). Fixes #17** (#1802) 2 years ago
Bryan Davis f044b948e2
Clear existing IRC event handlers before connecting new ones (#1795)
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
2 years ago
Wim e63870a631
Add whatsapp deprecation warning (#1792) 2 years ago
Wim ce782ff6fb
Change discord non-native threading behaviour (discord) (#1791)
Sorta regression introduced by 9a8ce9b17e
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.
2 years ago
Alexander 30aae8e257
Multiple media in one message (telegram) (#1779)
* 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
2 years ago