rveachkc / pymsteams

Format messages and post to Microsoft Teams.
https://pypi.org/project/pymsteams/
Apache License 2.0
418 stars 77 forks source link

Picture with text on the side #99

Closed betuxy closed 3 years ago

betuxy commented 3 years ago

Is it possible to get some text (video description) right to the picture like shown below?

Here's the code I used

    myTeamsMessage = pymsteams.connectorcard(teams_hook)
    myTeamsMessage.title(str(message["channel_name"]) + ": " + str(message["title"]))
    myTeamsMessage.text(" ")
    myMessageSection = pymsteams.cardsection()
    myMessageSection.addImage(message["thumb_nail"])
    myMessageSection.text(message["channel_info"])
    myMessageSection.linkButton("Click to Watch!", message["link"])
    myTeamsMessage.addSection(myMessageSection)
    myTeamsMessage.send()

rveachkc commented 3 years ago

I do not believe this is supported by the version of the api that this library uses. Feel free to double check me: https://docs.microsoft.com/en-us/outlook/actionable-messages/message-card-reference