botframework-ruby
botframework-ruby copied to clipboard
Better way to send messages?
Currently to send messages to Skype or Telegram we have to manually create a Conversation, but it would be nicer if there was some higher level API.
this is example of our current code
SkypeService = 'https://smba.trafficmanager.net/apis/'
TelegramService = 'https://telegram.botframework.com'
to = BotFramework::ChannelAccount.new
to.id = SKYPE_TARGET_GROUP_ID
activity = BotFramework::Activity.new(type: 'message', locale: 'en', text: msg, from: OUR_ACCOUNT, recipient: to)
conv = BotFramework::Conversation.new(SkypeService)
conv.send(to.id, activity)