https://github.com/rusq/telegraph
Crippled Package for Interacting with Telegra.ph written in Go.
https://github.com/rusq/telegraph
go telegram telegraph telegraph-api telegraph-publishing
Last synced: about 1 year ago
JSON representation
Crippled Package for Interacting with Telegra.ph written in Go.
- Host: GitHub
- URL: https://github.com/rusq/telegraph
- Owner: rusq
- License: bsd-2-clause
- Created: 2021-01-09T02:52:02.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-09T03:34:12.000Z (over 5 years ago)
- Last Synced: 2025-03-28T10:18:10.657Z (about 1 year ago)
- Topics: go, telegram, telegraph, telegraph-api, telegraph-publishing
- Language: Go
- Homepage:
- Size: 39.1 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Crippled Telegraph Library for Go
[](https://travis-ci.com/rusq/telegraph)

This Go package provides some basic functions to interact with
[Telegraph](https://telegra.ph).
## Example
```go
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.