how to turn off automatic replies?

2019-09-20 06:46发布

My bot has an option "notify". I would like to stop automatic replies for that user if "notify" has been hit. Is that possible ? Any example ?

PS: I know this question is not asked properly, but i don't know where to start.

1条回答
Emotional °昔
2楼-- · 2019-09-20 07:13

If you want to stop displaying in the conversation what the user selected from a set of options, you can set the CardAction type to PostBack.

eg.

CardAction CardButton = new CardAction()
{
    Type = ActionTypes.PostBack,
    Title = item.ToString(),
    Value = item.ToString()
};
查看更多
登录 后发表回答