Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow a message to be sent to a party(department) #256

Merged
merged 1 commit into from
Mar 14, 2019

Conversation

hophacker
Copy link
Contributor

Many of corp wechat's apis allow a message to be sent to a party(department), for example, text api:

{
   "touser" : "UserID1|UserID2|UserID3",
   "toparty" : "PartyID1|PartyID2",
   "totag" : "TagID1 | TagID2",
   "msgtype" : "image",
   "agentid" : 1,
   "image" : {
        "media_id" : "MEDIA_ID"
   },
   "safe":0
}

Thus, I added to_party of Wechat::Message which allows a customized message been sent to a party(department).

Test attached, all tests passed

Copy link
Owner

@Eric-Guo Eric-Guo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Eric-Guo Eric-Guo merged commit 2adcd4b into Eric-Guo:master Mar 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants