messaging

package
v0.9.40 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

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