INNER CODE UNIT · Go

shouldAddBotNode

krypton-byte/neonize · goneonize/main.go:150

func shouldAddBotNode(isPrivate bool) bool {
	switch strings.ToLower(strings.TrimSpace(os.Getenv("NEONIZE_BOT_TAG"))) {
	case "off", "none", "false", "0":
		return false
	default:
		return isPrivate
	}
}

// GenerateWABinary for create button
func GenerateWABinary(ctx context.Context, to types.JID, msg *waE2E.Message) *[]waBinary.Node {
	isPrivate := to.Server == types.DefaultUserServer
	nodes := make([]waBinary.Node, 0)

	switch getButtonTypeFromMessage(msg) {
	case "interactive":
		im := msg.InteractiveMessage
		if im != nil {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…