feat: publish standalone worker
Separate worker packaging and service lifecycle from the control plane.
Этот коммит содержится в:
14
internal/tg/bot_test.go
Обычный файл
14
internal/tg/bot_test.go
Обычный файл
@@ -0,0 +1,14 @@
|
||||
package tg
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestTelegramAPIEndpoint(t *testing.T) {
|
||||
assert.Equal(t, tgbotapi.APIEndpoint, telegramAPIEndpoint(""))
|
||||
assert.Equal(t, "https://api.telegram.org/bot%s/%s", telegramAPIEndpoint("https://api.telegram.org"))
|
||||
assert.Equal(t, "https://proxy.example.com/telegram/bot%s/%s", telegramAPIEndpoint("https://proxy.example.com/telegram/"))
|
||||
}
|
||||
Ссылка в новой задаче
Block a user