mod: update module name

pull/452/head
Demian 2 years ago
parent a6873e3cdf
commit 444c6f8b66

@ -1,4 +1,4 @@
module gopkg.in/tucnak/telebot.v3 module gopkg.in/telebot.v3
go 1.13 go 1.13

@ -6,7 +6,7 @@ import (
"github.com/goccy/go-yaml" "github.com/goccy/go-yaml"
"github.com/spf13/cast" "github.com/spf13/cast"
tele "gopkg.in/tucnak/telebot.v3" tele "gopkg.in/telebot.v3"
) )
// Config represents typed map interface related to the "config" section in layout. // Config represents typed map interface related to the "config" section in layout.

@ -1,7 +1,7 @@
package layout package layout
import ( import (
tele "gopkg.in/tucnak/telebot.v3" tele "gopkg.in/telebot.v3"
) )
// DefaultLayout is a simplified layout instance with pre-defined locale by default. // DefaultLayout is a simplified layout instance with pre-defined locale by default.

@ -10,7 +10,7 @@ import (
"text/template" "text/template"
"github.com/goccy/go-yaml" "github.com/goccy/go-yaml"
tele "gopkg.in/tucnak/telebot.v3" tele "gopkg.in/telebot.v3"
) )
type ( type (

@ -6,7 +6,7 @@ import (
"time" "time"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
tele "gopkg.in/tucnak/telebot.v3" tele "gopkg.in/telebot.v3"
) )
func TestLayout(t *testing.T) { func TestLayout(t *testing.T) {

@ -1,7 +1,7 @@
package layout package layout
import ( import (
tele "gopkg.in/tucnak/telebot.v3" tele "gopkg.in/telebot.v3"
) )
// LocaleFunc is the function used to fetch the locale of the recipient. // LocaleFunc is the function used to fetch the locale of the recipient.

@ -9,7 +9,7 @@ import (
"text/template" "text/template"
"github.com/goccy/go-yaml" "github.com/goccy/go-yaml"
tele "gopkg.in/tucnak/telebot.v3" tele "gopkg.in/telebot.v3"
) )
type Settings struct { type Settings struct {

@ -4,7 +4,7 @@ import (
"encoding/json" "encoding/json"
"log" "log"
tele "gopkg.in/tucnak/telebot.v3" tele "gopkg.in/telebot.v3"
) )
func Logger(logger ...*log.Logger) tele.MiddlewareFunc { func Logger(logger ...*log.Logger) tele.MiddlewareFunc {

@ -1,6 +1,6 @@
package middleware package middleware
import tele "gopkg.in/tucnak/telebot.v3" import tele "gopkg.in/telebot.v3"
func AutoRespond() tele.MiddlewareFunc { func AutoRespond() tele.MiddlewareFunc {
return func(next tele.HandlerFunc) tele.HandlerFunc { return func(next tele.HandlerFunc) tele.HandlerFunc {

@ -1,6 +1,6 @@
package middleware package middleware
import tele "gopkg.in/tucnak/telebot.v3" import tele "gopkg.in/telebot.v3"
type RestrictConfig struct { type RestrictConfig struct {
Chats []int64 Chats []int64

Loading…
Cancel
Save