我有一个Errbot函数,它发送一个Slack卡。然后,如何向卡片添加反应,而不是收到的原始消息(msg)?你知道吗
@botcmd
def example(self, msg):
self.send_card(title='Test',
body='test123',
thumbnail=' ',
image=' ',
link=' ',
color='green',
in_reply_to=msg)
self._bot.add_reaction(card_msg??, 'grey_question')
Tags:
发送卡片does not return to you the message it sends这意味着您必须做些什么才能获得您发送的卡片的消息信息。你知道吗
一种方法是在插件中触发一个callback for all messages,检查消息,并在那里添加您的反应:
另一种选择是使用slack backend api call方法来搜索您的消息并以这种方式添加反应。你知道吗
相关问题 更多 >
编程相关推荐