Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Better way to send messages? #33

Open
davispuh opened this issue Nov 10, 2017 · 0 comments
Open

Better way to send messages? #33

davispuh opened this issue Nov 10, 2017 · 0 comments

Comments

@davispuh
Copy link
Contributor

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)
@tachyons tachyons pinned this issue Jan 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant