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

rename

parent 91ebfb73
......@@ -4,7 +4,7 @@ import (
"context"
"errors"
"fmt"
"github.com/barsukov-vv/komrad/zutils"
"git.barsukov.pro/barsukov/zgo/zutils"
"github.com/jackc/pgx/v5/pgxpool"
"log"
"reflect"
......
......@@ -3,8 +3,8 @@ package zqueue
import (
"errors"
"fmt"
"git.barsukov.pro/barsukov/zgo/zgin"
"github.com/gin-gonic/gin"
"github.com:barsukov-vv/komrad/zgin"
"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