groupwelcometemplate

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

企业微信客户群群欢迎语素材管理相关API

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(clt *core.Client, req *Template) (templateId string, err error)

Add 添加群欢迎语素材

func Del

func Del(clt *core.Client, templateId string) (err error)

Del 删除群欢迎语素材

func Edit

func Edit(clt *core.Client, req *EditRequest) (err error)

Edit 编辑群欢迎语素材

Types

type EditRequest

type EditRequest struct {
	Template
	TemplateId string `json:"template_id"`
}

type Template

type Template struct {
	Text        *externalcontact.TextMessage        `json:"text,omitempty"`
	Image       *externalcontact.ImageMessage       `json:"image,omitempty"`
	Link        *externalcontact.LinkMessage        `json:"link,omitempty"`
	MiniProgram *externalcontact.MiniProgramMessage `json:"miniprogram,omitempty"`
}

func Get

func Get(clt *core.Client, templateId string) (ret *Template, err error)

Get 获取群欢迎语素材

Jump to

Keyboard shortcuts

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