Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sassy/line-bot-flex-message-helper

helper flex message
https://github.com/sassy/line-bot-flex-message-helper

Last synced: 13 days ago
JSON representation

helper flex message

Awesome Lists containing this project

README

        

# line-bot-flex-message-helper

example
```
const container = new BubbleConteiner();
const textBox = new Box('vertical').addContent(new TextContent('Hello,World'));
container.setBodyBlock(textBox)

const ret = Client.Helper().setContainerType(container).dump();
```

result
```
{
"type":"bubble",
"body":{
"type":"box",
"layout":"vertical",
"contents":[
{
"type":"text",
"text":"Hello,World"
}
]
}
}
```