Created
April 10, 2016 05:13
-
-
Save luuhq/764145c15cf7b7fa309f1fbab6fc132e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Message Post([FromBody]Message message) | |
{ | |
if (message.Type == "Message") | |
{ | |
// calculate something for us to return | |
int length = (message.Text ?? string.Empty).Length; | |
// return our reply to the user | |
return message.CreateReplyMessage($"Hello from TallyBot! You sent {length} characters"); | |
} | |
else | |
{ | |
return HandleSystemMessage(message); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment