private async Task SetQueueListenerForChannel(Activity activity)
        {
            IQueueListenerPostChannel channel = null;

            switch (activity.ChannelId)
            {
            case "msteams":
                channel = new TeamsQueueListenerChannel()
                {
                    ServiceUrl     = activity.ServiceUrl,
                    BotId          = activity.Recipient.Id,
                    ChannelId      = activity.ChannelId,
                    BotName        = activity.Recipient.Name,
                    TeamsChannelId = activity.GetChannelData <TeamsChannelData>().Channel.Id
                };
                break;

            default:
                channel = new SkypeEmulatorListenerChannel()
                {
                    ServiceUrl     = activity.ServiceUrl,
                    BotId          = activity.Recipient.Id,
                    BotName        = activity.Recipient.Name,
                    ChannelId      = activity.ChannelId,
                    ConversationId = activity.Conversation.Id
                };
                break;
            }

            if (listener != null)
            {
                await listener.AddChannel(channel);
            }
        }