Can anybody help me out that how I can start conversation in Slack Channel using botman?
It works only when we pass as_user as false.
If I don't include my bot token it is not sending message to channel.
How do I achieve it without adding user to channel and send message to particular channel. You should allow some way to pass
as_user as false, it is defined by default as
true in your code and there is no way to update that.
protected function replyWithToken($message, $matchingMessage, $additionalParameters = )
$parameters = array_replace_recursive([
'as_user' => true,
'token' => $this->payload->get('token'),
'channel' => $matchingMessage->getRecipient() === '' ? $matchingMessage->getSender() : $matchingMessage->getRecipient(),