Documentation ¶
Index ¶
Constants ¶
View Source
const ImageFileSizeLimit = 2097000
ImageFileSizeLimit limits file sizes to be converted to 2MB(Mebibytes) in Bytes
View Source
const VideoFileSizeLimit = 1024000
VideoFileSizeLimit limits video to be much smaller cuz over 1000KiB(1MiB) seems not to animate
View Source
const WebPFormat = ".webp"
WebPFormat is the extension of webp
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler interface { // Setup the handler, event and context to reply SetUp(event *whatsapp.Message, phoneNumberID string) // Validate : ensures the media conforms to some standards // also sends message to client about issue Validate() error // Handle : obtains the message to be sent as response Handle(ch *amqp.Channel, pushTo *amqp.Queue) error }
Handler interface for multiple message types
Click to show internal directories.
Click to hide internal directories.