Creates a new message and fills up the emoji attachment automatically.
Namespace: CkSoftware.GroupMe.Sdk.Helpers.EmojiAssembly: CkSoftware.GroupMe.Sdk.Helpers (in CkSoftware.GroupMe.Sdk.Helpers.dll) Version: 1.0.1.35398 (1.0.1.0)
public static Task<GroupMeMessageData> CreateMessageWithEmojiImages(
GroupMeMessages messageHandler,
string sourceGuid,
string text,
string emojiSearchRegexString = "{{(\d*),(\d*)}}",
IEnumerable<GroupMeAttachmentBase> attachments = null
)
public static Task<GroupMeMessageData> CreateMessageWithEmojiImages(
GroupMeMessages messageHandler,
string sourceGuid,
string text,
string emojiSearchRegexString = "{{(\d*),(\d*)}}",
IEnumerable<GroupMeAttachmentBase> attachments = null
)
Public Shared Function CreateMessageWithEmojiImages (
messageHandler As GroupMeMessages,
sourceGuid As String,
text As String,
Optional emojiSearchRegexString As String = "{{(\d*),(\d*)}}",
Optional attachments As IEnumerable(Of GroupMeAttachmentBase) = Nothing
) As Task(Of GroupMeMessageData)
Public Shared Function CreateMessageWithEmojiImages (
messageHandler As GroupMeMessages,
sourceGuid As String,
text As String,
Optional emojiSearchRegexString As String = "{{(\d*),(\d*)}}",
Optional attachments As IEnumerable(Of GroupMeAttachmentBase) = Nothing
) As Task(Of GroupMeMessageData)
static member CreateMessageWithEmojiImages :
messageHandler : GroupMeMessages *
sourceGuid : string *
text : string *
?emojiSearchRegexString : string *
?attachments : IEnumerable<GroupMeAttachmentBase>
(* Defaults:
let _emojiSearchRegexString = defaultArg emojiSearchRegexString "{{(\d*),(\d*)}}"
let _attachments = defaultArg attachments null
*)
-> Task<GroupMeMessageData>
static member CreateMessageWithEmojiImages :
messageHandler : GroupMeMessages *
sourceGuid : string *
text : string *
?emojiSearchRegexString : string *
?attachments : IEnumerable<GroupMeAttachmentBase>
(* Defaults:
let _emojiSearchRegexString = defaultArg emojiSearchRegexString "{{(\d*),(\d*)}}"
let _attachments = defaultArg attachments null
*)
-> Task<GroupMeMessageData>
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.