38
39
40
41
42
|
# File 'lib/wit_bot/models/message.rb', line 38
def self.from_hash(thread, id, json)
json = json.with_indifferent_access
return Bot::Message.from_hash thread, id, json if json[:bot]
self.new(thread, json[:text], id: id).from_hash json
end
|