whatsappbot

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataPasser

type DataPasser struct {
	// contains filtered or unexported fields
}

type WhatsappBot

type WhatsappBot struct {
	TelegramBot *tgBot.TelegramBot
	Client      *whatsmeow.Client
	// contains filtered or unexported fields
}

func Connect

func Connect(telegramBot *tgBot.TelegramBot, dbName string, log *logger.Logger) (*WhatsappBot, error)

Connect builds whatsapp client and connects to it

func (*WhatsappBot) Register

func (wb *WhatsappBot) Register()

Register registers a new event handler

func (*WhatsappBot) SendMsg

func (wb *WhatsappBot) SendMsg(recipient types.JID, phone, msg string) error

SendMsg sends message to designated whatsapp number

Jump to

Keyboard shortcuts

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