🚚 Moving to GitLab
This commit is contained in:
parent
71af256dc0
commit
4a43be5438
|
@ -1,24 +1,16 @@
|
|||
# GoLang bindings for the Telegram API [![discord](https://discordapp.com/api/guilds/208605007744860163/widget.png)](https://discord.gg/dCWkgSS)
|
||||
# GoLang bindings for the Telegram API
|
||||
> This package is in active development and **not recommended for use in production for now**. Use [go dep](https://golang.github.io/dep/) to freeze the state of the package in your projects!
|
||||
|
||||
[![License](https://img.shields.io/npm/l/express.svg?maxAge=2592000)](LICENSE.md)
|
||||
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Ftoby3d%2Ftelegram.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Ftoby3d%2Ftelegram?ref=badge_shield)
|
||||
[![Build Status](https://travis-ci.org/toby3d/telegram.svg)](https://travis-ci.org/toby3d/telegram)
|
||||
[![GoDoc](https://godoc.org/github.com/toby3d/telegram?status.svg)](https://godoc.org/github.com/toby3d/telegram)
|
||||
[![Go Report](https://goreportcard.com/badge/github.com/toby3d/telegram)](https://goreportcard.com/report/github.com/toby3d/telegram)
|
||||
[![Patreon](https://img.shields.io/badge/support-patreon-E6461A.svg?maxAge=2592000)](https://www.patreon.com/toby3d)
|
||||
[![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/avelino/awesome-go)
|
||||
|
||||
## Start using telegram
|
||||
Download and install it:
|
||||
`$ go get -u github.com/toby3d/telegram`
|
||||
`$ go get -u gitlab.com/toby3d/telegram`
|
||||
|
||||
Import it in your code:
|
||||
`import "github.com/toby3d/telegram"`
|
||||
`import "gitlab.com/toby3d/telegram"`
|
||||
|
||||
## Need help?
|
||||
- [Open new issue](https://github.com/toby3d/telegram/issues/new)
|
||||
- [Open new issue](https://gitlab.com/toby3d/telegram/issues/new)
|
||||
- [Discuss in Discord](https://discord.gg/dCWkgSS)
|
||||
|
||||
## License
|
||||
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Ftoby3d%2Ftelegram.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Ftoby3d%2Ftelegram?ref=badge_large)
|
||||
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgitlab.com%2Ftoby3d%2Ftelegram.svg?type=large)](https://app.fossa.io/projects/git%2Bgitlab.com%2Ftoby3d%2Ftelegram?ref=badge_large)
|
|
@ -4,7 +4,7 @@ import (
|
|||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/toby3d/telegram"
|
||||
"gitlab.com/toby3d/telegram"
|
||||
)
|
||||
|
||||
const accessToken = "153667468:AAHlSHlMqSt1f_uFmVRJbm5gntu2HI4WW8I"
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/toby3d/telegram"
|
||||
"gitlab.com/toby3d/telegram"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -3,7 +3,7 @@ package test
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/toby3d/telegram"
|
||||
"gitlab.com/toby3d/telegram"
|
||||
)
|
||||
|
||||
func TestGetMe(t *testing.T) {
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/toby3d/telegram"
|
||||
"gitlab.com/toby3d/telegram"
|
||||
)
|
||||
|
||||
const replyToMessageID = 35
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"net/url"
|
||||
"testing"
|
||||
|
||||
"github.com/toby3d/telegram"
|
||||
"gitlab.com/toby3d/telegram"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -3,12 +3,12 @@ package test
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/toby3d/telegram"
|
||||
"gitlab.com/toby3d/telegram"
|
||||
)
|
||||
|
||||
func TestSetWebhook(t *testing.T) {
|
||||
ok, err := bot.SetWebhook(
|
||||
telegram.NewWebhook("https://toby3d.github.io/telegram", nil),
|
||||
telegram.NewWebhook("https://toby3d.ru/telegram", nil),
|
||||
)
|
||||
if err != nil {
|
||||
t.Error(err.Error())
|
||||
|
|
Loading…
Reference in New Issue