GroupMeEmojiMessageParser CreateMessageWithEmojiImages Method CkSoftware GroupMe SDK - Documentation
Creates a new message and fills up the emoji attachment automatically.

Namespace: CkSoftware.GroupMe.Sdk.Helpers.Emoji
Assembly: CkSoftware.GroupMe.Sdk.Helpers (in CkSoftware.GroupMe.Sdk.Helpers.dll) Version: 1.0.1.35398 (1.0.1.0)
Syntax

public static Task<GroupMeMessageData> CreateMessageWithEmojiImages(
	GroupMeMessages messageHandler,
	string sourceGuid,
	string text,
	string emojiSearchRegexString = "{{(\d*),(\d*)}}",
	IEnumerable<GroupMeAttachmentBase> attachments = null
)

Parameters

messageHandler
Type: CkSoftware.GroupMe.Sdk.Messaging GroupMeMessages
The GroupMeMessages handler for sending a message.
sourceGuid
Type: System String
The sourceGuid of this message. This is an identifier of this message and should be unique, to correctly identify duplicate submits.
text
Type: System String
The text to submit.
emojiSearchRegexString (Optional)
Type: System String
A regex to search for emoji elements in the message. The regex must result in 2 groups where the first group contains the pack id and the second contains the emoji id of the pack. Default search regex looks for this scheme: {{PACKID,EMOJIID}}. Example: {{1,0}} = first image of first pack, {{3,10}} = 10th image of 3rd pack.
attachments (Optional)
Type: System.Collections.Generic IEnumerable GroupMeAttachmentBase 
A list of attachments to add to this mesasge.

Return Value

Type: Task GroupMeMessageData 
The created message-data.
See Also