Thiyaga B
Thiyaga B

Reputation: 981

Microsoft Teams Bot: Starting a new thread with mentioning channel

New to Microsoft Teams Botframework, I am able to send a message to the channel, but not able to mention the channel name, the samples here talks about mentioning specific user, but not the channel,

https://github.com/microsoft/BotBuilder-Samples/tree/master/samples/python/57.teams-conversation-bot

    mention = Mention(
        mentioned=turn_context.activity.from_property,
        text=f"<at>{turn_context.activity.from_property.name}</at>",
        type="mention",
    )

    reply_activity = MessageFactory.text(f"Hello {mention.text}")
    reply_activity.entities = [Mention().deserialize(mention.serialize())]
    await turn_context.send_activity(reply_activity)

Not sure how to use the above code to mention the channel name.

Upvotes: 0

Views: 561

Answers (1)

Kyle Delaney
Kyle Delaney

Reputation: 12264

This is not currently supported, but you can suggest it as a feature in the Teams app itself

Suggest a feature

Upvotes: 1

Related Questions