Files
taro-bot-python/bot/msteams/adaptivecard/webhook_card.py
Björn Benouarets ee9903b704 init: Initial commit
2026-01-19 14:14:54 +01:00

13 lines
440 B
Python

import os
import json
from bot.msteams.adaptivecard.card import AdaptiveCard
from bot.msteams.adaptivecard.template import Template
class WebhookCard(AdaptiveCard):
def __init__(self, data: dict, template: Template) -> None:
super().__init__(body=template.replace_placeholders(data)["body"], actions=template.replace_placeholders(data)["actions"])
@property
def data(self) -> dict:
return super().data