Skip to content

Adding fields to NewMessage.cs to make compatible with bot messages #136

@calderhoover

Description

@calderhoover

Hi there!

I am using your project for a slack bot, and in order to correctly deserialize messages from other slack bots (of type "bot_message"), there are three properties I need to add to NewMessage.cs, which all messages of type bot_message currently deserialize into. These properties are as follows:

public string username;
public string bot_id;
public List<Attachment> attachments;

These can be copied and pasted after the last property ("thread_ts") currently in NewMessage.cs (in the WebSocketMessages folder). Everything else can stay the same - your code correctly deserializes into these fields when appropriate, and keeps them null otherwise (if, say, the message was not a bot_message).

Cheers,

Calder

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions