itmodel

package module
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: MIT Imports: 0 Imported by: 1

README

itmodel

Iteung Model

go get -u all     #update existing package
go mod tidy     #generate go mod
git tag                                  #check current version
git tag v0.0.8                          #set tag version
git push origin --tags                   #push tag version to repo
go list -m github.com/whatsauth/itmodel@v0.0.8   #publish to pkg dev, replace ORG/URL with your repo URL

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocumentMessage added in v0.0.6

type DocumentMessage struct {
	To        string `json:"to"`
	Base64Doc string `json:"base64doc"`
	Filename  string `json:"filename"`
	Caption   string `json:"caption,omitempty"`
	IsGroup   bool   `json:"isgroup,omitempty"`
}
type Header struct {
	Secret string `reqHeader:"secret"`
}

type ImageMessage added in v0.0.3

type ImageMessage struct {
	To          string `json:"to"`
	Base64Image string `json:"base64image"`
	Caption     string `json:"caption,omitempty"`
	IsGroup     bool   `json:"isgroup,omitempty"`
}

type IteungMessage

type IteungMessage struct {
	Phone_number       string  `json:"phone_number,omitempty" bson:"phone_number,omitempty"`
	Reply_phone_number string  `json:"reply_phone_number,omitempty" bson:"reply_phone_number,omitempty"`
	Chat_number        string  `json:"chat_number,omitempty" bson:"chat_number,omitempty"`
	Chat_server        string  `json:"chat_server,omitempty" bson:"chat_server,omitempty"`
	Group_name         string  `json:"group_name,omitempty" bson:"group_name,omitempty"`
	Group_id           string  `json:"group_id,omitempty" bson:"group_id,omitempty"`
	Group              string  `json:"group,omitempty" bson:"group,omitempty"`
	Alias_name         string  `json:"alias_name,omitempty" bson:"alias_name,omitempty"`
	Message            string  `json:"messages,omitempty" bson:"messages,omitempty"`
	EntryPoint         string  `json:"entrypoint,omitempty" bson:"entrypoint,omitempty"`
	From_link          bool    `json:"from_link,omitempty" bson:"from_link,omitempty"`
	From_link_delay    uint32  `json:"from_link_delay,omitempty" bson:"from_link_delay,omitempty"`
	Is_group           bool    `json:"is_group,omitempty" bson:"is_group,omitempty"`
	Filename           string  `json:"filename,omitempty" bson:"filename,omitempty"`
	Filedata           string  `json:"filedata,omitempty" bson:"filedata,omitempty"`
	Latitude           float64 `json:"latitude,omitempty" bson:"latitude,omitempty"`
	Longitude          float64 `json:"longitude,omitempty" bson:"longitude,omitempty"`
	LiveLoc            bool    `json:"liveloc,omitempty" bson:"liveloc,omitempty"`
}

type Profile

type Profile struct {
	Token         string `bson:"token"`
	Phonenumber   string `bson:"phonenumber"`
	Secret        string `bson:"secret"`
	URL           string `bson:"url"`
	URLAPIText    string `bson:"urlapitext"`
	URLAPIImage   string `bson:"urlapiimage"`
	URLAPIDoc     string `bson:"urlapidoc"`
	URLQRLogin    string `bson:"urlqrlogin"`
	QRKeyword     string `bson:"qrkeyword"`
	PublicKey     string `bson:"publickey"`
	Botname       string `bson:"botname"`
	Triggerword   string `bson:"triggerword"`
	TelegramToken string `bson:"telegramtoken"`
	TelegramName  string `bson:"telegramname"`
}

type Reply

type Reply struct {
	Message string `bson:"messsage"`
}

type Response

type Response struct {
	Response string `json:"response"`
	Info     string `json:"info,omitempty"`
}

type TextMessage

type TextMessage struct {
	To       string `json:"to"`
	IsGroup  bool   `json:"isgroup,omitempty"`
	Messages string `json:"messages"`
}

type User

type User struct {
	PhoneNumber string  `bson:"phonenumber" json:"phonenumber"`
	DeviceID    uint16  `bson:"deviceid" json:"deviceid"`
	WebHook     WebHook `bson:"webhook" json:"webhook"`
	Mongostring string  `bson:"mongostring" json:"mongostring"`
	Token       string  `bson:"token" json:"token"`
}

type WebHook

type WebHook struct {
	URL    string `bson:"url" json:"url"`
	Secret string `bson:"secret" json:"secret"`
}

type WhatsauthRequest

type WhatsauthRequest struct {
	Uuid        string `json:"uuid,omitempty" bson:"uuid,omitempty"`
	Phonenumber string `json:"phonenumber,omitempty" bson:"phonenumber,omitempty"`
	Aliasname   string `json:"aliasname,omitempty" bson:"aliasname,omitempty"`
	Delay       uint32 `json:"delay,omitempty" bson:"delay,omitempty"`
}

Jump to

Keyboard shortcuts

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