messaging

package
v0.3.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2025 License: Apache-2.0 Imports: 5 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessagingClient

type MessagingClient struct {
	Media             manager.MediaManager
	Message           manager.MessageManager
	PhoneNumberId     string
	ApiAccessToken    string
	BusinessAccountId string
	Requester         *request_client.RequestClient
}

MessagingClient represents a WhatsApp client.

func (*MessagingClient) Deregister

func (client *MessagingClient) Deregister() (RegisterResponse, error)

func (*MessagingClient) GetApiAccessToken

func (client *MessagingClient) GetApiAccessToken() string

func (*MessagingClient) GetBusinessAccountId

func (client *MessagingClient) GetBusinessAccountId() string

func (*MessagingClient) GetPhoneNumberId

func (client *MessagingClient) GetPhoneNumberId() string

GetPhoneNumberId returns the phone number ID associated with the client.

func (*MessagingClient) Register

func (client *MessagingClient) Register(pin string) (RegisterResponse, error)

this register function is for one time registration of the phone number to enable the usage with WhatsApp Cloud API

func (*MessagingClient) SetApiAccessToken

func (client *MessagingClient) SetApiAccessToken(apiAccessToken string)

func (*MessagingClient) SetPhoneNumberId

func (client *MessagingClient) SetPhoneNumberId(phoneNumberId string)

SetPhoneNumberId sets the phone number ID for the client.

type RegisterResponse

type RegisterResponse struct {
	Success bool `json:"success"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL