chat_sdk-teams 0.5.0 → 0.6.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 +2 -28
- 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: 5077208fda83c5941a590c7daa94b0d821399dcd49d92f3b5368498cd7e30f0b
|
|
4
|
+
data.tar.gz: 6271ccca3f36db8cadb455bfa47ead36eccf5ab6b6363edc39342d223f39979d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7a219d54aa4725525307540f3fec911ce6c956f3421faf2ba88ac2ab672972a46509b85128d044b1f8d48152ffe52973a3e241c5bc3a047c110edfef3f607ebd
|
|
7
|
+
data.tar.gz: 19555fa3ae535a42cf93ebd79e3e7695221648880d19d42d2a1562550b29085db991f630a12f4b60424074a85941fb4c485bf4e6f67f39ffbb4025223289840e
|
|
@@ -4,8 +4,7 @@ module ChatSDK
|
|
|
4
4
|
module Teams
|
|
5
5
|
class Adapter < ChatSDK::Adapter::Base
|
|
6
6
|
capabilities :edit_messages, :delete_messages, :threads, :direct_messages,
|
|
7
|
-
:
|
|
8
|
-
:typing_indicator
|
|
7
|
+
:file_uploads, :streaming_edit, :typing_indicator
|
|
9
8
|
|
|
10
9
|
attr_reader :client
|
|
11
10
|
|
|
@@ -130,24 +129,6 @@ module ChatSDK
|
|
|
130
129
|
)
|
|
131
130
|
end
|
|
132
131
|
|
|
133
|
-
def add_reaction(channel_id:, message_id:, emoji:)
|
|
134
|
-
require_capability!(:reactions)
|
|
135
|
-
# Teams Bot Framework API does not support adding reactions programmatically
|
|
136
|
-
# The capability is declared because inbound reactions are parsed
|
|
137
|
-
raise ChatSDK::PlatformError.new(
|
|
138
|
-
"Teams Bot Framework API does not support adding reactions programmatically",
|
|
139
|
-
adapter_name: :teams
|
|
140
|
-
)
|
|
141
|
-
end
|
|
142
|
-
|
|
143
|
-
def remove_reaction(channel_id:, message_id:, emoji:)
|
|
144
|
-
require_capability!(:reactions)
|
|
145
|
-
raise ChatSDK::PlatformError.new(
|
|
146
|
-
"Teams Bot Framework API does not support removing reactions programmatically",
|
|
147
|
-
adapter_name: :teams
|
|
148
|
-
)
|
|
149
|
-
end
|
|
150
|
-
|
|
151
132
|
def open_dm(user_id)
|
|
152
133
|
require_capability!(:direct_messages)
|
|
153
134
|
# To open a DM, we need a service URL. Use the first cached one.
|
|
@@ -171,15 +152,8 @@ module ChatSDK
|
|
|
171
152
|
conversation_id
|
|
172
153
|
end
|
|
173
154
|
|
|
174
|
-
def fetch_messages(channel_id:, thread_id: nil, cursor: nil, limit: 50)
|
|
175
|
-
require_capability!(:message_history)
|
|
176
|
-
# Teams Bot Framework doesn't provide a message history API
|
|
177
|
-
# Return empty to satisfy the interface
|
|
178
|
-
[[], nil]
|
|
179
|
-
end
|
|
180
|
-
|
|
181
155
|
def open_modal(trigger_id:, modal:)
|
|
182
|
-
super
|
|
156
|
+
super
|
|
183
157
|
end
|
|
184
158
|
|
|
185
159
|
def start_typing(channel_id:, thread_id: nil)
|