Commit Graph

44 Commits (master)

Author SHA1 Message Date
Wim e63870a631
Add whatsapp deprecation warning (#1792) 2 years ago
Wim 952221d3b9 Fix linting (whatsapp) 2 years ago
Wim 496d5b4ec7 Add whatsappmulti buildflag for whatsapp with multidevice support (whatsapp) 2 years ago
Wim d64eed49bc Fix linting (whatsapp) 2 years ago
Wim fffa29c2f3 Fix channel in video/audio/image/document handling (whatsapp) 2 years ago
Wim 4da1444ffc Check for Conversation on receiving messages (whatsapp) 2 years ago
Wim 21c4e56d16 Use Conversation instead of ExtendedTextMessage (whatsapp) 2 years ago
Wim 320c996a21 Refactor login logic (whatsapp) 2 years ago
Wim 69c74be7bb Add busy_timeout which fixes SQLITE_BUSY errors (whatsapp) 2 years ago
Wim 1b9877fda4 Fetch avatars synchronous (whatsapp) 2 years ago
Wim 0205a67309 Refactor JoinChannel (whatsapp) 2 years ago
Wim e7b193788a Rewrite whatsapp bridge to use whatsmeow 2 years ago
Wim 2a3f475ff5
Make EditSuffix option actually work (whatsapp). Fixes #1510 (#1728)
To keep it backwards compatible we keep the "(edited)" message when no
editsuffix is configured.
2 years ago
Avinash Reddy 4fcad8e04b
Make DocumentMessage handler use FileName attribute (whatsapp) (#1488)
* [whatsapp] make DocumentMessage handler use FileName attribute.

referenced: https://github.com/Rhymen/go-whatsapp/blob/master/message.go#L582

* fix lint
3 years ago
Avinash Reddy ec6ae343dd
Fix crash on encountering VideoMessage (whatsapp) (#1483)
* [whatsapp] fix crash on encountering VideoMessage

* Update handlers.go

* gofmt
3 years ago
Wim b9fb361959
Rename .jpe files to .jpg Fixes #1463 (whatsapp) (#1485) 3 years ago
Avinash Reddy a189298ab0
Handle document messages (whatsapp) (#1475)
* [Whatsapp] Add DocumentMessage handler

* Fix typo

Thanks @42wim :)

Co-authored-by: Wim <wim@42.be>

Co-authored-by: Wim <wim@42.be>
3 years ago
Wim 7466e1d014
Set ogg as default audiomessage when none found (whatsapp). Fixes #1427 (#1431) 3 years ago
Wim ad95e35687 Rename jfif to jpg (whatsapp). Fixes #1292 4 years ago
Wim 640a9995f4 Refactor handleTextMessage (whatsapp) 4 years ago
Wim 95625f6871 Refactor image downloads (whatsapp) 4 years ago
Wim 2c20f72a9c Handle audio downloads (whatsapp) 4 years ago
Wim 5ad788e768 Handle video downloads (whatsapp) 4 years ago
Wim ed98c586c6 Add support for deleting messages (whatsapp) 4 years ago
Wim 3e865708d6 Refactor/cleanup code (whatsapp) 4 years ago
Wim 64b899ac89
Retry until we have contacts (whatsapp). Fixes #1122 (#1304) 4 years ago
Wim 25c82ddf02
Use vendored whatsapp version (#1258) 4 years ago
Dellle a42e488e58
Add username for images from WhatsApp (#1232) 4 years ago
escoand 58b6c4d277
Handle broadcasts as groups in Whatsapp (#1213)
The current way to get the correct JID of a WhatsApp group is to dump all JIDs to the log and grab the right one. This is working for for groups fine but not for broadcast, as they are not print out.

According to https://www.npmjs.com/package/@noamalffasy/js-whatsapp we have these possibilities:
* Chats: `[country code][phone number]@s.whatsapp.net`
* Groups: `[country code][phone number of creator]-[timestamp of group creation]@g.us`
* Broadcast Channels: `[timestamp of group creation]@broadcast`

But the bridge does currently interprets (and prints) the only second option.
4 years ago
Wim 2f506425c2
Update whatsapp vendor and fix a panic (#1209)
* Fix another whatsapp panic

* Update whatsapp vendor
4 years ago
Wim ebd2073144
Handle panic in whatsapp. Fixes #1180 (#1184) 4 years ago
Nathanaël 1fee323247
Reload user information when a new contact is detected (whatsapp) (#1160)
Before returning an empty string, we refresh the WhatsApp contacts and if we found the one we wanted, we can return a real name. Fixes #796
4 years ago
Wim 4d93a774ce
Ignore non-critical errors (whatsapp). Fixes #1094 (#1100) 4 years ago
Wim 8950575bfb
Update Rhymen/go-whatsapp vendor and whatsapp version (#1078) 4 years ago
Wim 8d08e348a9
Reset start timestamp on reconnect (whatsapp). Fixes #1059 (#1064) 4 years ago
Wim 1aa662f763
Update client version whatsapp. Fixes #1061 (#1062)
See https://github.com/Rhymen/go-whatsapp/issues/305
4 years ago
Wim 1985873494 Implement basic reconnect (whatsapp). Fixes #987 (#1003) 4 years ago
Guillaume Lazzara c9d5f4c898 Add support for WhatsApp media (jpeg/png/gif) bridging (#974)
* Whatsapp image bridging

* Prevent double message in telegram when media with caption received

Co-authored-by: imShara <shara@protonmail.com>
4 years ago
Wim 8e97cbab1e Fix noisy whatsapp error logging 5 years ago
Wim ce7b749fd5 Update github.com/Rhymen/go-whatsapp vendor. Fixes #843 5 years ago
Wim 40f1d35415 Fix go mod issue by removing whatsapp-ext 5 years ago
Wim 3418e8c9af
Use upstream whatsapp again (#809) 5 years ago
Wim df3fdc26a0
Use whatsapp forks (#750) 5 years ago
Krzysiek Madejski 55e79063d6 Add initial WhatsApp support (#711) 5 years ago