내가 사용하는 파이썬 로봇 작성기 프레임워크 및 테스트는 그것에게 있습니다. 지금 내가 알기에는 나의 적응 카드 JSON 파일은 완벽한 때문에 그것의 모든 데이터는 원하는 모두에서른 코드고 https://adaptivecards.io/designer/. 그러나 실행할 때 에뮬레이터 내 적응 완전히 비어 있습니다.
지금은 코드를 사용한 적응 카드:
def adaptive_flight_card_attachment(self):
JSONFileName = 'QuickAdaptiveJSONfile.json'
file_path = "AdaptiveFlightCardFile"
if os.path.exists(file_path):
files_in_dir = os.listdir(file_path)
if JSONFileName in files_in_dir:
file_path = os.getcwd()+f'/{file_path}'+f'/{JSONFileName}'
with open(file_path, "r+", encoding="unicode_escape") as in_file:
card = json.load(in_file)
return Attachment(content_type="application/vnd.microsoft.card.adaptive", content=card )
나는 그때 이를 사용:
FlightDetailCard = self.adaptive_flight_card_attachment()
response = MessageFactory.attachment(FlightDetailCard)
await turn_context.send_activity(response)
여기 어딘가에 나가 실수를 하고 나는 수가 없 핀 지점에. 그래서 사람이 나를 도와주십시오 여기입니까?