@@ 137-146 (lines=10) @@ | ||
134 | $this->realTimeClient->send($text, $channel); |
|
135 | } |
|
136 | ||
137 | public function post($text, ChannelInterface $channel, array $additionalParameters = []) |
|
138 | { |
|
139 | $parameters = array_merge([ |
|
140 | 'text' => $text, |
|
141 | 'channel' => $channel->getId(), |
|
142 | 'as_user' => true, |
|
143 | ], $additionalParameters); |
|
144 | ||
145 | $this->realTimeClient->apiCall('chat.postMessage', $parameters); |
|
146 | } |
|
147 | ||
148 | public function directMessage($text, $userName) |
|
149 | { |
|
@@ 148-157 (lines=10) @@ | ||
145 | $this->realTimeClient->apiCall('chat.postMessage', $parameters); |
|
146 | } |
|
147 | ||
148 | public function directMessage($text, $userName) |
|
149 | { |
|
150 | $parameters = [ |
|
151 | 'text' => $text, |
|
152 | 'channel' => $userName, |
|
153 | 'as_user' => false, |
|
154 | ]; |
|
155 | ||
156 | $this->realTimeClient->apiCall('chat.postMessage', $parameters); |
|
157 | } |
|
158 | ||
159 | ||
160 | public function getUsersMap() : array |