Closed resinten closed 4 years ago
In fact, if I post a new message and set the count to Some(1)
in the HistoryRequest
, then it works because the bot add message is not in the response body.
Oh dear thanks for the report. Suppose that needs adding to the schema. It should also probably provide some access to unknown messages without dying
slack_api::MessageBotAdd
now exists, doesn't solve the catch all case but enough for this issue
https://docs.rs/slack_api/0.23.1/slack_api/struct.MessageBotAdd.html
When getting the history from a group or channel, the
bot_add
message is not supported and crashes. It appears that messages for "X added bot Y to the channel" cause an error forMalformedResponse
on the basis that thebot_add
type is unknown. This may be a case of the generated code being outdated?