
from linebot import LineBotApi
from linebot.models import TextSendMessage
from linebot.exceptions import LineBotApiError


# def init_line_message():
# gv_line_access_token = '<KEY>
#
# print('when started : ')
# line_bot_api = LineBotApi(gv_line_access_token)
# print(line_bot_api)

def send_line_message(to_id, textmsg):
    try:
        # a = line_bot_api.push_message('U0c5a0782c992f3f5787bfc8786742857', TextSendMessage(text='Hello World!'))
        # a = line_bot_api.push_message(to_id, TextSendMessage(text=textmsg))
        print('check : ')

    except LineBotApiError as e:
        print(e)


from linebot import LineBotApi
from linebot.models import TextSendMessage
from linebot.exceptions import LineBotApiError


# def init_line_message():
# gv_line_access_token = '<KEY>
#
# print('when started : ')
# line_bot_api = LineBotApi(gv_line_access_token)
# print(line_bot_api)

def send_line_message(to_id, textmsg):
    try:
        # a = line_bot_api.push_message('U0c5a0782c992f3f5787bfc8786742857', TextSendMessage(text='Hello World!'))
        # a = line_bot_api.push_message(to_id, TextSendMessage(text=textmsg))
        print('check : ')

    except LineBotApiError as e:
        print(e)

# def init_line_message(): # gv_line_access_token = '<KEY> # # print('when started : ') # line_bot_api = LineBotApi(gv_line_access_token) # print(line_bot_api) # a = line_bot_api.push_message('U0c5a0782c992f3f5787bfc8786742857', TextSendMessage(text='Hello World!')) # a = line_bot_api.push_message(to_id, TextSendMessage(text=textmsg))