how to turn off automatic replies?

≡放荡痞女 提交于 2020-01-07 08:35:15

问题


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:


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()
};


来源:https://stackoverflow.com/questions/43469764/how-to-turn-off-automatic-replies

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!