message

package
v1.0.0-beta.9 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package message 消息管理

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrentAutoreplyInfo

func GetCurrentAutoreplyInfo(ctx *offiaccount.OffiAccount) (resp []byte, err error)

获取公众号的自动回复规则

开发者可以通过该接口,获取公众号当前使用的自动回复规则,包括关注后自动回复、消息自动回复(60分钟内触发一次)、关键词自动回复

See: https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Getting_Rules_for_Auto_Replies.html

GET https://api.weixin.qq.com/cgi-bin/get_current_autoreply_info?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/offiaccount"
	"github.com/fastwego/offiaccount/apis/message"
)

func main() {
	var ctx *offiaccount.OffiAccount

	resp, err := message.GetCurrentAutoreplyInfo(ctx)

	fmt.Println(resp, err)
}
Output:

Types

This section is empty.

Directories

Path Synopsis
Package mass 群发消息
Package mass 群发消息
Package template 模板消息
Package template 模板消息

Jump to

Keyboard shortcuts

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