Title: feat: implement disable/enable linkPreview support for Evolution Bot by dersonbsb2022 · Pull Request #1908 · EvolutionAPI/evolution-api · GitHub
Open Graph Title: feat: implement disable/enable linkPreview support for Evolution Bot by dersonbsb2022 · Pull Request #1908 · EvolutionAPI/evolution-api
X Title: feat: implement disable/enable linkPreview support for Evolution Bot by dersonbsb2022 · Pull Request #1908 · EvolutionAPI/evolution-api
Description: 📋 Summary This PR implements linkPreview support for Evolution Bot integration, allowing webhooks/n8n workflows to control whether link previews are displayed in WhatsApp messages. ✨ What's New Dynamic LinkPreview Control: Webhooks can now return linkPreview: false to disable link previews Flexible Response Format: Support for { "message": "text", "linkPreview": boolean } response format Debug Logging: Added comprehensive debug logs for linkPreview functionality Backward Compatible: Existing implementations continue to work without changes 🔧 Implementation Details File Modified: src/api/integrations/chatbot/evolutionBot/services/evolutionBot.service.ts Feature: Extract linkPreview from webhook response and pass to textMessage Usage: Return linkPreview: false from webhook to disable link previews in WhatsApp 📖 Usage Example Webhook Response: { "message": "Check this link: https://example.com", "linkPreview": false } ## Summary by Sourcery Implement link preview support in the Evolution Bot integration to allow webhooks or n8n workflows to dynamically enable or disable link previews in WhatsApp messages, while adding comprehensive debug logging and maintaining backward compatibility. New Features: - Allow webhook responses to include a linkPreview flag to control whether link previews are displayed in WhatsApp messages Enhancements: - Add detailed debug logs around HTTP requests, responses, message cleanup, and message sending - Refactor message dispatch to use textMessage with the linkPreview option instead of the base sendMessageWhatsApp method
Open Graph Description: 📋 Summary This PR implements linkPreview support for Evolution Bot integration, allowing webhooks/n8n workflows to control whether link previews are displayed in WhatsApp messages. ✨ What's New...
X Description: 📋 Summary This PR implements linkPreview support for Evolution Bot integration, allowing webhooks/n8n workflows to control whether link previews are displayed in WhatsApp messages. ✨ What's...
Opengraph URL: https://github.com/EvolutionAPI/evolution-api/pull/1908
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:e506633a-78ee-109f-b6c1-8a03794670f6 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8A9A:39E51F:1725744:1E0D623:696B2821 |
| html-safe-nonce | 821603ea44c90c10cdca7614f4d8ce82d55885a5a47eeb3257e2032d9075844b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTlBOjM5RTUxRjoxNzI1NzQ0OjFFMEQ2MjM6Njk2QjI4MjEiLCJ2aXNpdG9yX2lkIjoiNDk5OTk3OTAyMjcyOTMxODczIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ff1e154de1dc337a40f27fde2785c7e0e4e357cca6d7a19e62dcfec78fc9c51e |
| hovercard-subject-tag | pull_request:2799838723 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/EvolutionAPI/evolution-api/pull/1908/files |
| twitter:image | https://avatars.githubusercontent.com/u/121053195?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/121053195?s=400&v=4 |
| og:image:alt | 📋 Summary This PR implements linkPreview support for Evolution Bot integration, allowing webhooks/n8n workflows to control whether link previews are displayed in WhatsApp messages. ✨ What's New... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/EvolutionAPI/evolution-api git https://github.com/EvolutionAPI/evolution-api.git |
| octolytics-dimension-user_id | 136080052 |
| octolytics-dimension-user_login | EvolutionAPI |
| octolytics-dimension-repository_id | 651487266 |
| octolytics-dimension-repository_nwo | EvolutionAPI/evolution-api |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 651487266 |
| octolytics-dimension-repository_network_root_nwo | EvolutionAPI/evolution-api |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width