Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple golang line notify

PkgGoDev Build Status Go Report Card License: MIT

Install

go get -u github.com/frontware/simple-go-line-notify

Usage

package main

import "github.com/frontware/simple-go-line-notify"

func main() {
    accessToken := "29jWoO****p70eK3AKA********ooHfusvDP6***ZmR"
    message := "hello, world!"

    if err := notify.SendText(accessToken, message); err != nil {
        panic(err)
    }
}

Send Notify With Online Image

accessToken := "your-access-token"
message := "your message. must not be empty"
imageURL := "image url. ex) https://..."

if err := notify.SendImage(accessToken, message, imageURL); err != nil {
    panic(err)
}

Send Notify With Local Image (only jpg, png)

accessToken := "your-access-token"
message := "your message. must not be empty"
imagePath := "/your/image/path.png"

if err := notify.SendLocalImage(accessToken, message, imagePath); err != nil {
    panic(err)
}

Send Notify With Sticker

Sticker List is See Here

accessToken := "your-access-token"
message := "your message. must not be empty"
stickerPackageId := 1
stickerId := 113

if err := notify.SendSticker(accessToken, message, stickerPackageId, stickerId); err != nil {
    panic(err)
}

About

simple golang line notify

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages