Skip to content

1.26.0

Latest
Compare
Choose a tag to compare
@yehuda-lev yehuda-lev released this 21 Sep 22:55

What's Changed

Update with pip: pip3 install -U pywa

  • [flows] adding support of RichText
  • [flows] adding support of markdown in TextBody and TextCaption
  • [flows] adding sensitive attr to Screen, allowing to hide specific fields from the response summary
  • [client] adding reply_to_message arg to send_location, request_location, send_sticker, and send_audio
  • [message] adding reply_location_request
flow = FlowJSON(
    screens=[
        screen_1 := Screen(
            layout=Layout(
                children=[
                    RichText(
                        text=[
                            "# Heading 1",
                            "## Heading 2",
                            "Let’s make a **bold** statement",
                            "Let's make this text *italic*",
                            "Let's make this text ~~Strikethrough~~",
                            "This text is ~~***really important***~~",
                            "This is a [pywa docs](https://pywa.readthedocs.io/)",
                            "This is a ordered list:",
                            "1. Item 1",
                            "2. Item 2",
                            "This is a unordered list:",
                            "- Item 1",
                            "- Item 2",
                            "![image](data:image/png;base64,<base64 content>)",
                            "| Tables        | Are           | Cool  |",
                            "| ------------- | ------------- | ----- |",
                            "| col 3 is      | right-aligned | $1600 |",
                            "| col 2 is      | centered      |   $12 |",
                        ],
                    ),
                ]
            ),
        )
    ]

Full Changelog: 1.25.0...1.26.0