Skip to content

john850512/line_costumed_reply

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

line_costumed_reply

Description

Template code of line customed reply message(flex message).

How to use?

Step 1. import package

from customer_template import create_customer_template

Step 2. just reply customed message with two line!

for example:

# this is the demo code of line message api
.
.
.
 # handle a event which receive a text msg
@handler.add(MessageEvent, message=TextMessage)
def handle_message(event):
    msg = event.message.text
    print('【receive type】', event.message.type)
    print('【text content】', msg)
    
    if msg == "娛樂":
        customer_template = create_customer_template()
        line_bot_api.reply_message(event.reply_token, customer_template)
        return

Demo

Detail

About

template code of line customed reply message

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages