Skip to main content
Question

How to post "code snippet" or file attachment in message via webhook?

  • January 27, 2022
  • 2 replies
  • 606 views

I've been searching the docs and community for an answer to this without success. I'm thinking it must be somehow possible, and hoping someone here could provide an answer.

I am using webhooks to post messages from an AWS lambda, which works great! I would like to send a message that contains potentially long (up to 256kb) snippets of code. I was hoping I could do that as an attachment, but didn't see any way to do this via webhooks. Then I tried to find out if it was possible to send a truncated code snippet in the post (up to 10000 chars). By code snippet I don't mean "[code]...[/code]" but the actual "code snippet" functionality that displays a different card.

Is either attachment or code snippet at all possible via webhooks? If so, would I use the Adaptive Cards schema or the legacy schema?

Thanks everyone!

2 replies

PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • 2423 replies
  • January 28, 2022

I don't fully understand your question. You wrote "I am using webhooks to post messages from an AWS lambda". Webhooks is for receiving inbound messages, what do you mean using it to post from?

Is your question related to RingCentral add-in Outbound Webhooks?


  • Author
  • New Participant
  • 1 reply
  • January 28, 2022

It's just a simple POSTing a message to a webhook URL. I'm going off of this guide: https://developers.ringcentral.com/guide/team-messaging/incoming-webhooks/posting


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings