This is a multi-functional messaging program that connects to the LINE Notify API on Colab. As long as you provide LINE Notify tokens, it can send messages, LINE stickers and images out as "LINE Notify". What's more, you can even send messages at specific times.
ㅤ
To use this project, please copy your LINE Notify token first (obtain from here). Otherwise, you need a Google account for accessing to your Google Drive, along with one (or more) "name+ (TAB)+LINE Notify token" stored row by row in a txt named LineNotifyTokens.txt in /content/drive/MyDrive of your Google Drive.
ㅤ
▲ Example of LineNotifyTokens.txt ▲
ㅤ
🔔 The left side of each row in LineNotifyTokens.txt is the name of token named by your own and the right one is token, which are separated by TAB(\t).
ㅤ
There is NO installation required for this project. (Precisely, installations will be processed in Colab notebook).
Just open the Colab notebook and run the code from top to bottom by clicking play buttons on the left side one by one!
ㅤ
▲ Play buttons on the left side. ▲
ㅤ
- Choose the token number you want to send messages with in cell
Tokens, where all token numbers will be listed below.
ㅤ
- Set message to send in cell
Set Message to Send. Besides, you can set sticker to send by tickingadd_stickerand fill insticker_package_id&sticker_idif you wanna send a sticker with your message.
ㅤ ㅤ:bell: You can find sticker package id & sticker id in this website.
ㅤ
- Choose the way ("Upload"/"URL"/"Google Drive Path") to provide image in cell
Set Image to Send:- If you choose URL, please provide image URL in
image_url - If you choose Google Drive Path, please provide image Google Drive Path in
Google_Drive_Path - If you choose Upload, please upload image(s) below the cell by clicking upload button. (This is the only way to send multiple images.)
- If you choose URL, please provide image URL in
ㅤ ㅤ:bell: You can skip this step if you're not going to send any image.
ㅤ
- Set when to send after ticking
send_at_the_appointed_timein cellSet When to Sendif you don't wanna send the message immediately.
ㅤ ㅤ:bell: You can skip this step if you're not going to send the message immediately.
ㅤ
- Click button
Send!below cellSend Message!to send message & image(s)!
ㅤ
❓ Cannot find LineNotifyTokens.txt in connected Google Drive since it doesn't exsist.
💡 Actually, tokens can be read from Google Sheet as well if there's a Google Sheet API file named GSheet.json in /content/drive/MyDrive of your Google Drive and your LINE Notify tokens and their names are stored in a Google Sheet row by row which already connects to Google Sheet API, which is convenient to edit on the smartphone. Provide the Google sheet id by opening the group in Colab named Preprocessing and fill it in sheet_id to do so. However, I suggest you to create a txt file with your own LINE Notify tokens and their names and upload it to your Google Drive, which may be a faster way to solve this problem. Or you can just key in an usable LINE Notify token and fill it in LINE_Notify_API_token if you don't wanna provide LINE Notify API tokens from Google Drive, which may be the fastest way to solve this problem while it's a little inconvenient for those having many tokens to choose.
ㅤ
▲ The format of Google Sheet, where LINE Notify API tokens and their name are stored. ▲
▲ You can fill in the Google sheet id here or change the path of LineNotifyTokens.txt and the one of API key (.json file) of Google Sheet. ▲
❓ Something different from the above.
💡 Send mail to pikasxyz@gmail.com and explain in detail.
ㅤ