Skip to content
/ telegraph Public

Crippled Package for Interacting with Telegra.ph written in Go.

License

Notifications You must be signed in to change notification settings

rusq/telegraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crippled Telegraph Library for Go

Build Status

COME GET IT

This Go package provides some basic functions to interact with Telegraph.

Example

package main

import (
    "log"
    "os"

    "github.com/rusq/telegraph"
)

func main() {
    f, err := os.Open("cat_pic.jpg")
    if err != nil {
        log.Fatal(err)
    }
    defer f.Close()

    result, err := telegraph.Upload(context.Background(), f)
    if err != nil {
        log.Fatal("oh, man :(")
    }

    log.Printf("%v", result)
}

Crippled?

An inquisitive reader might enquire: "Why Crippled?"

Well, it's rude to leave questions unanswered, so I'll respond: "Because currently, it only supports the methods listed below".

  • Upload

Contributing

You are more than welcome to add more methods or open an issue for me to add one, which I cannot promise that I will do in a timely manner.

Most likely no one will ever find this repository anyway, so I don't have to worry.

About

Crippled Package for Interacting with Telegra.ph written in Go.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages