chat_sdk-teams 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/chat_sdk/teams/adapter.rb +7 -2
- data/lib/chat_sdk/teams/bot_framework_client.rb +5 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 799f1b70fcdec6365e02ec7fd3920c83f171f60d37abc00caafb370f4250336f
|
|
4
|
+
data.tar.gz: f75bd7b4950741c194ec432e82689caf59d911591cb1fe21ea236ffccf6b98a3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '091619ca8e40cfedc334ed3a14a7d7922ebc84d58f5a9072aacf71ba8cebbb3e8c758c51a8a06320644ed0b5a21e600def9ede392bffa692beb5d82b6a8abcce'
|
|
7
|
+
data.tar.gz: 71523b1aa4925c80c695ba3838dca729a5fa33468c86437aa4bedd3bf8e027ea5b610f97161bc40184aa117eda1bb82e32ee89955aadf745e50273248a17b71f
|
|
@@ -4,7 +4,8 @@ module ChatSDK
|
|
|
4
4
|
module Teams
|
|
5
5
|
class Adapter < ChatSDK::Adapter::Base
|
|
6
6
|
capabilities :edit_messages, :delete_messages, :threads, :direct_messages,
|
|
7
|
-
:message_history, :reactions, :file_uploads, :streaming_edit
|
|
7
|
+
:message_history, :reactions, :file_uploads, :streaming_edit,
|
|
8
|
+
:typing_indicator
|
|
8
9
|
|
|
9
10
|
attr_reader :client
|
|
10
11
|
|
|
@@ -182,7 +183,11 @@ module ChatSDK
|
|
|
182
183
|
end
|
|
183
184
|
|
|
184
185
|
def start_typing(channel_id:, thread_id: nil)
|
|
185
|
-
|
|
186
|
+
service_url = service_url_for(channel_id)
|
|
187
|
+
@client.send_typing(
|
|
188
|
+
service_url: service_url,
|
|
189
|
+
conversation_id: channel_id
|
|
190
|
+
)
|
|
186
191
|
end
|
|
187
192
|
|
|
188
193
|
def mention(user_id)
|
|
@@ -35,6 +35,11 @@ module ChatSDK
|
|
|
35
35
|
authorized_request(:post, url, payload)
|
|
36
36
|
end
|
|
37
37
|
|
|
38
|
+
def send_typing(service_url:, conversation_id:)
|
|
39
|
+
activity = {"type" => "typing"}
|
|
40
|
+
send_activity(service_url: service_url, conversation_id: conversation_id, activity: activity)
|
|
41
|
+
end
|
|
42
|
+
|
|
38
43
|
def get_conversation_members(service_url:, conversation_id:)
|
|
39
44
|
url = "#{service_url.chomp("/")}/v3/conversations/#{conversation_id}/members"
|
|
40
45
|
authorized_request(:get, url)
|