Commit 6c4cf463 authored by Vladimir Barsukov's avatar Vladimir Barsukov
Browse files

rename

parent 91ebfb73
...@@ -4,7 +4,7 @@ import ( ...@@ -4,7 +4,7 @@ import (
"context" "context"
"errors" "errors"
"fmt" "fmt"
"github.com/barsukov-vv/komrad/zutils" "git.barsukov.pro/barsukov/zgo/zutils"
"github.com/jackc/pgx/v5/pgxpool" "github.com/jackc/pgx/v5/pgxpool"
"log" "log"
"reflect" "reflect"
......
...@@ -3,8 +3,8 @@ package zqueue ...@@ -3,8 +3,8 @@ package zqueue
import ( import (
"errors" "errors"
"fmt" "fmt"
"git.barsukov.pro/barsukov/zgo/zgin"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com:barsukov-vv/komrad/zgin"
"sync" "sync"
) )
......
package ztg
import (
"net/http"
"time"
)
type ZTg struct {
client *http.Client
botKey string
defaultProps map[string]any
mode int
batch bool
apiUrl string
}
func Default(botKey string) *ZTg {
return &ZTg{
client: &http.Client{Timeout: time.Second * 5},
botKey: botKey,
defaultProps: map[string]any{
"parse_mode": "HTML",
},
mode: 0,
batch: false,
apiUrl: "",
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment