Documentation ¶
Index ¶
- type HandlerHub
- func (hh *HandlerHub) HandleAudioMessage(message whatsapp.AudioMessage, id string)
- func (hh *HandlerHub) HandleDocumentMessage(message whatsapp.DocumentMessage, id string)
- func (hh *HandlerHub) HandleError(err error, id string)
- func (hh *HandlerHub) HandleImageMessage(message whatsapp.ImageMessage, id string)
- func (hh *HandlerHub) HandleJsonMessage(message string, id string)
- func (hh *HandlerHub) HandleLiveLocationMessage(message whatsapp.LiveLocationMessage, id string)
- func (hh *HandlerHub) HandleLocationMessage(message whatsapp.LocationMessage, id string)
- func (hh *HandlerHub) HandleTextMessage(message whatsapp.TextMessage, id string)
- func (hh *HandlerHub) HandleVideoMessage(message whatsapp.VideoMessage, id string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandlerHub ¶
type HandlerHub struct{}
HandlerHub implements all message handlers
func (*HandlerHub) HandleAudioMessage ¶
func (hh *HandlerHub) HandleAudioMessage(message whatsapp.AudioMessage, id string)
HandleAudioMessage handles type whatsapp.AudioMessage
func (*HandlerHub) HandleDocumentMessage ¶
func (hh *HandlerHub) HandleDocumentMessage(message whatsapp.DocumentMessage, id string)
HandleDocumentMessage handles type whatsapp.DocumentMessage
func (*HandlerHub) HandleError ¶
func (hh *HandlerHub) HandleError(err error, id string)
HandleError handles type error
func (*HandlerHub) HandleImageMessage ¶
func (hh *HandlerHub) HandleImageMessage(message whatsapp.ImageMessage, id string)
HandleImageMessage handles type whatsapp.ImageMessage
func (*HandlerHub) HandleJsonMessage ¶
func (hh *HandlerHub) HandleJsonMessage(message string, id string)
HandleJsonMessage handles type string (JSON)
func (*HandlerHub) HandleLiveLocationMessage ¶
func (hh *HandlerHub) HandleLiveLocationMessage(message whatsapp.LiveLocationMessage, id string)
HandleLiveLocationMessage handles type whatsapp.LiveLocationMessage
func (*HandlerHub) HandleLocationMessage ¶
func (hh *HandlerHub) HandleLocationMessage(message whatsapp.LocationMessage, id string)
HandleLocationMessage handles type whatsapp.LocationMessage
func (*HandlerHub) HandleTextMessage ¶
func (hh *HandlerHub) HandleTextMessage(message whatsapp.TextMessage, id string)
HandleTextMessage handles type whatsapp.TextMessage
func (*HandlerHub) HandleVideoMessage ¶
func (hh *HandlerHub) HandleVideoMessage(message whatsapp.VideoMessage, id string)
HandleVideoMessage handles type erwhatsapp.VideoMessageror
Click to show internal directories.
Click to hide internal directories.