如何将松弛反应添加到发送卡

2024-06-13 00:37:46 发布

您现在位置:Python中文网/ 问答频道 /正文

我有一个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: 函数testselfsend消息titleexampledef