1
0
Fork 0

🚚 Moving to GitLab

This commit is contained in:
Maxim Lebedev 2018-06-20 17:50:52 +05:00
parent 71af256dc0
commit 4a43be5438
No known key found for this signature in database
GPG Key ID: F8978F46FF0FFA4F
7 changed files with 12 additions and 20 deletions

View File

@ -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)

View File

@ -4,7 +4,7 @@ import (
"os"
"testing"
"github.com/toby3d/telegram"
"gitlab.com/toby3d/telegram"
)
const accessToken = "153667468:AAHlSHlMqSt1f_uFmVRJbm5gntu2HI4WW8I"

View File

@ -5,7 +5,7 @@ import (
"testing"
"time"
"github.com/toby3d/telegram"
"gitlab.com/toby3d/telegram"
)
const (

View File

@ -3,7 +3,7 @@ package test
import (
"testing"
"github.com/toby3d/telegram"
"gitlab.com/toby3d/telegram"
)
func TestGetMe(t *testing.T) {

View File

@ -5,7 +5,7 @@ import (
"testing"
"time"
"github.com/toby3d/telegram"
"gitlab.com/toby3d/telegram"
)
const replyToMessageID = 35

View File

@ -4,7 +4,7 @@ import (
"net/url"
"testing"
"github.com/toby3d/telegram"
"gitlab.com/toby3d/telegram"
)
const (

View File

@ -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())