class BotFramework::Activity
Attributes
ContactAdded/Removed action
AttachmentLayout - hint for how to deal with multiple attachments Values: [list|carousel] Default:list
Attachments
Channel specific payload
ChannelId the activity was on
Sender address
the previous history of the channel was disclosed
Id for the activity
The language code of the Text field
Array of address added
Array of addresses removed
(Outbound to bot only) Bot's address that received the message
the original id this message is a response to
Service endpoint
Text to display if you can't render cards
Content for the message
Format of text fields [plain|markdown] Default:markdown
Time when message was sent
Conversations new topic name
The type of the activity [message|contactRelationUpdate|converationUpdate|typing]
Public Class Methods
Attribute type mapping.
# File lib/bot_framework/models/activity.rb, line 70 def self.swagger_types { type: :String, id: :String, timestamp: :DateTime, service_url: :String, channel_id: :String, from: :ChannelAccount, conversation: :ConversationAccount, recipient: :ChannelAccount, text_format: :String, attachment_layout: :String, members_added: :'Array<ChannelAccount>', members_removed: :'Array<ChannelAccount>', topic_name: :String, history_disclosed: :BOOLEAN, locale: :String, text: :String, summary: :String, attachments: :'Array<Attachment>', entities: :'Array<Entity>', channel_data: :Object, action: :String, reply_to_id: :String } end
Public Instance Methods
# File lib/bot_framework/models/activity.rb, line 97 def reply(message) return false if type != 'message' new_activity = Activity.new(type: 'message', locale: 'en', text: message, from: recipient.to_hash) Conversation.new(service_url).reply_to_activity(conversation.id, id, new_activity) end