We are trying to setup deep linking into slack, as described here:
https://api.slack.com/docs/deep-linking
The document states that to open a specific team,
The easiest way to get the team and channel id and is to add slack developer tool app to your slack, you can can it here.
After adding it all you simply need to do is go to any channel and choose this command
/sdt whoami
It will output a snippet like this one.

There are much more commands and other things you can perform with this slack app, I would highly recommend it if you're building any integrations for slack.