Compare commits

...
33 Commits
Author SHA1 Message Date
lukaszraczyloandGitHub cec37b7b95 chore(api): regenerate for BotFullInfo and optional chat_id (#53)
* chore(api): regenerate for BotFullInfo and optional chat_id

Telegram split BotFullInfo out of User and getMe now returns it, and
chat_id is optional in the methods that accept an ephemeral callback
reply. Regenerate the API, make MeCache cache BotFullInfo, and wrap the
now-optional chat_id arguments in the examples. This is the output of
make regen, so the weekly regen job no longer fails its api test.

* chore(api): pin the 2026-11-29 API snapshot the regen used

codegen-clean regenerates from testdata/html/latest.html, so the new
BotFullInfo output needs a matching snapshot.
2026-11-29 04:42:42 +00:00
github-actions[bot]andGitHub 2fa1494d57 chore(deps): update module github.com/go-telegram/bot to v1.31.0
Automated dependency update. All tests passed.
2026-11-29 03:15:10 +00:00
github-actions[bot]andGitHub b9ee0ead7c chore(deps): update module github.com/valyala/fasthttp to v1.80.0
Automated dependency update. All tests passed.
2026-11-26 03:16:11 +00:00
github-actions[bot]andGitHub 62c34d40a8 chore(deps): update module github.com/mymmrac/telego to v1.14.0
Automated dependency update. All tests passed.
2026-11-25 03:15:40 +00:00
tozuo-home-cluster-eso[bot]GitHubtozuo-home-cluster-eso[bot] <287217661+tozuo-home-cluster-eso[bot]@users.noreply.github.com>
5f40e766d1 fix: repair failing ci signal (#49)
The agent did not write a commit message.

Co-authored-by: tozuo-home-cluster-eso[bot] <287217661+tozuo-home-cluster-eso[bot]@users.noreply.github.com>
2026-11-23 13:07:44 +00:00
github-actions[bot]andGitHub 43fff0f994 chore(deps): update module github.com/klauspost/compress to v1.20.5
Automated dependency update. All tests passed.
2026-11-23 03:18:05 +00:00
github-actions[bot]andGitHub 760a19d698 chore(deps): update module github.com/go-telegram/bot to v1.30.0
Automated dependency update. All tests passed.
2026-11-22 03:14:47 +00:00
github-actions[bot]andGitHub bd9baca716 chore(deps): update module gopkg.in/telebot.v3 to v4
Automated dependency update. All tests passed.
2026-11-20 03:17:17 +00:00
github-actions[bot]andGitHub 5a282c2f70 chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-11-20 03:16:34 +00:00
github-actions[bot]andGitHub e1a3a9a5dc chore(deps): update module github.com/valyala/fasthttp to v1.79.0
Automated dependency update. All tests passed.
2026-11-19 03:16:20 +00:00
github-actions[bot]andGitHub 9e143be983 chore(deps): update module github.com/mymmrac/telego to v1.13.0
Automated dependency update. All tests passed.
2026-11-15 03:15:03 +00:00
github-actions[bot]andGitHub ff798f5644 chore(deps): update module github.com/niconex/echotron/v3 to v3.47.0
Automated dependency update. All tests passed.
2026-11-13 03:15:12 +00:00
github-actions[bot]andGitHub c31aedc926 chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-11-12 03:16:59 +00:00
github-actions[bot]andGitHub e88fd01477 chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-11-10 03:15:43 +00:00
github-actions[bot]andGitHub d5b50d5146 chore(deps): update module github.com/klauspost/cpuid/v2 to v2.4.2
Automated dependency update. All tests passed.
2026-11-06 03:15:35 +00:00
github-actions[bot]andGitHub 289c9eb4ac chore(deps): update module go.yaml.in/yaml/v3 to v3.0.6
Automated dependency update. All tests passed.
2026-11-03 03:15:44 +00:00
github-actions[bot]andGitHub 96df392c78 chore(deps): update module github.com/goccy/go-json to v0.12.0
Automated dependency update. All tests passed.
2026-11-01 03:17:36 +00:00
github-actions[bot]andGitHub d82b89a7d2 chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-10-30 03:17:59 +00:00
github-actions[bot]andGitHub cdf449f8e0 chore(deps): update module github.com/valyala/fasthttp to v1.77.0
Automated dependency update. All tests passed.
2026-10-29 03:18:32 +00:00
github-actions[bot]andGitHub 51d695aa22 chore(deps): update module github.com/molecule-man/go-brrr to v1.3.1
Automated dependency update. All tests passed.
2026-10-27 03:23:39 +00:00
github-actions[bot]andGitHub 8eb48748aa chore(deps): update module github.com/bytedance/sonic/loader to v0.5.3
Automated dependency update. All tests passed.
2026-10-24 03:20:27 +00:00
github-actions[bot]andGitHub 285ba75ef2 chore(deps): update module github.com/valyala/fasthttp to v1.76.0
Automated dependency update. All tests passed.
2026-10-21 03:23:56 +00:00
github-actions[bot]andGitHub 8b0eb3d91d chore(deps): update module github.com/klauspost/cpuid/v2 to v2.4.1
Automated dependency update. All tests passed.
2026-10-19 03:23:55 +00:00
github-actions[bot]andGitHub 759f70f3c9 chore(deps): update module github.com/stretchr/objx to v0.8.0
Automated dependency update. All tests passed.
2026-10-17 03:21:04 +00:00
github-actions[bot]andGitHub b7eb4fb523 chore(deps): update module github.com/stretchr/objx to v0.7.0
Automated dependency update. All tests passed.
2026-10-16 03:23:15 +00:00
github-actions[bot]andGitHub 517c9ea1a4 chore(deps): update module github.com/klauspost/compress to v1.20.3
Automated dependency update. All tests passed.
2026-10-15 03:22:47 +00:00
github-actions[bot]andGitHub e7c56a27ea chore(deps): update module github.com/molecule-man/go-brrr to v1.3.0
Automated dependency update. All tests passed.
2026-10-14 03:23:13 +00:00
github-actions[bot]andGitHub 49cb196f88 chore(deps): update module golang.org/x/net to v0.61.0
Automated dependency update. All tests passed.
2026-10-12 03:37:23 +00:00
github-actions[bot]andGitHub 6a8f2cb3a4 chore(deps): update module golang.org/x/net to v0.60.0
Automated dependency update. All tests passed.
2026-10-11 03:28:14 +00:00
github-actions[bot]andGitHub 2276ce81ed chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-10-10 03:26:21 +00:00
github-actions[bot]andGitHub ae45e17f43 chore(deps): update module github.com/valyala/fasthttp to v1.75.0
Automated dependency update. All tests passed.
2026-10-08 03:27:17 +00:00
github-actions[bot]andGitHub 8cb03ef0e9 chore(deps): update module github.com/molecule-man/go-brrr to v1.2.0
Automated dependency update. All tests passed.
2026-10-06 03:24:29 +00:00
lukaszraczylo d535029beb fix(ci): read regen Go version from go.mod 2026-10-05 10:31:05 +01:00
33 changed files with 32723 additions and 2551 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: '1.25.x'
go-version-file: go.mod
check-latest: true
- name: Capture latest snapshot
+33
View File
@@ -41,6 +41,14 @@ const (
BotSubscriptionUpdatedStateFailed BotSubscriptionUpdatedState = "failed"
)
type CallbackQueryMode string
const (
CallbackQueryModeDefault CallbackQueryMode = "default"
CallbackQueryModeAuto CallbackQueryMode = "auto"
CallbackQueryModeInline CallbackQueryMode = "inline"
)
type ChatBoostSourceKind string
const (
@@ -60,6 +68,13 @@ const (
ChatMemberStatusKicked ChatMemberStatus = "kicked"
)
type ChatShareThemeType string
const (
ChatShareThemeTypeEmoji ChatShareThemeType = "emoji"
ChatShareThemeTypeUniqueGift ChatShareThemeType = "unique_gift"
)
type ChatType string
const (
@@ -69,6 +84,13 @@ const (
ChatTypeChannel ChatType = "channel"
)
type EmojiTypeKind string
const (
EmojiTypeKindEmoji EmojiTypeKind = "emoji"
EmojiTypeKindCustomEmoji EmojiTypeKind = "custom_emoji"
)
type EncryptedPassportElementType string
const (
@@ -267,6 +289,8 @@ const (
MessageEntityTypeURL MessageEntityType = "url"
MessageEntityTypeEmail MessageEntityType = "email"
MessageEntityTypePhoneNumber MessageEntityType = "phone_number"
MessageEntityTypeBankCardNumber MessageEntityType = "bank_card_number"
MessageEntityTypeTonAddress MessageEntityType = "ton_address"
MessageEntityTypeBold MessageEntityType = "bold"
MessageEntityTypeItalic MessageEntityType = "italic"
MessageEntityTypeUnderline MessageEntityType = "underline"
@@ -501,6 +525,7 @@ const (
RichTextTypeEmailAddress RichTextType = "email_address"
RichTextTypePhoneNumber RichTextType = "phone_number"
RichTextTypeBankCardNumber RichTextType = "bank_card_number"
RichTextTypeTonAddress RichTextType = "ton_address"
RichTextTypeMention RichTextType = "mention"
RichTextTypeHashtag RichTextType = "hashtag"
RichTextTypeCashtag RichTextType = "cashtag"
@@ -592,3 +617,11 @@ const (
UniqueGiftModelRarityEpic UniqueGiftModelRarity = "epic"
UniqueGiftModelRarityLegendary UniqueGiftModelRarity = "legendary"
)
type WidgetQueryTypeKind string
const (
WidgetQueryTypeKindData WidgetQueryTypeKind = "data"
WidgetQueryTypeKindSignData WidgetQueryTypeKind = "sign_data"
WidgetQueryTypeKindSentTransaction WidgetQueryTypeKind = "sent_transaction"
)
+4 -4
View File
@@ -8,7 +8,7 @@ import (
)
// MeCache caches the result of GetMe across calls. Construct one per
// Bot and call Get to retrieve the cached User on subsequent invocations.
// Bot and call Get to retrieve the cached BotFullInfo on subsequent invocations.
//
// var meCache api.MeCache
// me, err := meCache.Get(ctx, bot)
@@ -16,12 +16,12 @@ import (
// MeCache is safe for concurrent use.
type MeCache struct {
mu sync.Mutex
cached *User
cached *BotFullInfo
}
// Get returns the User from a cached GetMe call. If the cache is empty,
// Get returns the BotFullInfo from a cached GetMe call. If the cache is empty,
// it calls GetMe and populates the cache on success.
func (c *MeCache) Get(ctx context.Context, b *client.Bot) (*User, error) {
func (c *MeCache) Get(ctx context.Context, b *client.Bot) (*BotFullInfo, error) {
c.mu.Lock()
if c.cached != nil {
u := c.cached
+477 -212
View File
File diff suppressed because it is too large Load Diff
+1247 -133
View File
File diff suppressed because it is too large Load Diff
+921 -164
View File
File diff suppressed because it is too large Load Diff
+2677 -1555
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -102,7 +102,7 @@ func main() {
router.OnCommand("/start", func(c *dispatch.Context, m *api.Message) error {
_, err := api.SendMessage(c.Ctx, c.Bot, &api.SendMessageParams{
ChatID: api.ChatIDFromInt(m.Chat.ID),
ChatID: api.Ptr(api.ChatIDFromInt(m.Chat.ID)),
Text: "You are authorized.",
})
return err
@@ -114,7 +114,7 @@ func main() {
return nil
}
_, err := api.SendMessage(c.Ctx, c.Bot, &api.SendMessageParams{
ChatID: api.ChatIDFromInt(m.Chat.ID),
ChatID: api.Ptr(api.ChatIDFromInt(m.Chat.ID)),
Text: "Your user ID is: " + strconv.FormatInt(from.ID, 10),
})
return err
+1 -1
View File
@@ -56,7 +56,7 @@ func handleCallback(c *dispatch.Context, q *api.CallbackQuery) error {
func sendMenu(ctx context.Context, bot *client.Bot, chatID int64, value int) error {
_, err := api.SendMessage(ctx, bot, &api.SendMessageParams{
ChatID: api.ChatIDFromInt(chatID),
ChatID: api.Ptr(api.ChatIDFromInt(chatID)),
Text: fmt.Sprintf("Counter: %d", value),
ReplyMarkup: counterKeyboard(value),
})
+2 -2
View File
@@ -114,7 +114,7 @@ func TestHandleCallback_Increments(t *testing.T) {
buf := new(bytes.Buffer)
_, _ = buf.ReadFrom(r.Body)
return strings.Contains(buf.String(), `"Counter: 6"`)
})).Return(okResp(editMsgResult), nil)
})).Return(okResp(`{"ok":true,"result":true}`), nil)
bot := client.New("test:token", client.WithHTTPClient(m))
q := callbackQuery("count:5:inc", 10, 42)
@@ -137,7 +137,7 @@ func TestHandleCallback_Decrements(t *testing.T) {
buf := new(bytes.Buffer)
_, _ = buf.ReadFrom(r.Body)
return strings.Contains(buf.String(), `"Counter: 4"`)
})).Return(okResp(editMsgResult), nil)
})).Return(okResp(`{"ok":true,"result":true}`), nil)
bot := client.New("test:token", client.WithHTTPClient(m))
q := callbackQuery("count:5:dec", 10, 42)
+4 -4
View File
@@ -25,7 +25,7 @@ func buildConv(storage conversation.Storage) *conversation.Conversation {
Filter: onMsg(msgfilter.Command("/newbot")),
Handler: func(c *dispatch.Context, u *api.Update) error {
_, _ = api.SendMessage(c.Ctx, c.Bot, &api.SendMessageParams{
ChatID: api.ChatIDFromInt(u.Message.Chat.ID),
ChatID: api.Ptr(api.ChatIDFromInt(u.Message.Chat.ID)),
Text: "What should the bot's name be?",
})
return conversation.Next("await_name")
@@ -36,7 +36,7 @@ func buildConv(storage conversation.Storage) *conversation.Conversation {
Filter: notCmd,
Handler: func(c *dispatch.Context, u *api.Update) error {
_, _ = api.SendMessage(c.Ctx, c.Bot, &api.SendMessageParams{
ChatID: api.ChatIDFromInt(u.Message.Chat.ID),
ChatID: api.Ptr(api.ChatIDFromInt(u.Message.Chat.ID)),
Text: "Got it! What's the description?",
})
return conversation.Next("await_desc")
@@ -46,7 +46,7 @@ func buildConv(storage conversation.Storage) *conversation.Conversation {
Filter: notCmd,
Handler: func(c *dispatch.Context, u *api.Update) error {
_, _ = api.SendMessage(c.Ctx, c.Bot, &api.SendMessageParams{
ChatID: api.ChatIDFromInt(u.Message.Chat.ID),
ChatID: api.Ptr(api.ChatIDFromInt(u.Message.Chat.ID)),
Text: "Done! Your bot has been configured.",
})
return conversation.End()
@@ -57,7 +57,7 @@ func buildConv(storage conversation.Storage) *conversation.Conversation {
Filter: onMsg(msgfilter.Command("/cancel")),
Handler: func(c *dispatch.Context, u *api.Update) error {
_, _ = api.SendMessage(c.Ctx, c.Bot, &api.SendMessageParams{
ChatID: api.ChatIDFromInt(u.Message.Chat.ID),
ChatID: api.Ptr(api.ChatIDFromInt(u.Message.Chat.ID)),
Text: "Cancelled.",
})
return conversation.End()
+2 -2
View File
@@ -16,7 +16,7 @@ func register(r *dispatch.Router) {
func handleStart(c *dispatch.Context, m *api.Message) error {
_, err := api.SendMessage(c.Ctx, c.Bot, &api.SendMessageParams{
ChatID: api.ChatIDFromInt(m.Chat.ID),
ChatID: api.Ptr(api.ChatIDFromInt(m.Chat.ID)),
Text: fmt.Sprintf("hello %s, send me anything to echo", m.From.FirstName),
})
return err
@@ -24,7 +24,7 @@ func handleStart(c *dispatch.Context, m *api.Message) error {
func handleEcho(c *dispatch.Context, m *api.Message) error {
_, err := api.SendMessage(c.Ctx, c.Bot, &api.SendMessageParams{
ChatID: api.ChatIDFromInt(m.Chat.ID),
ChatID: api.Ptr(api.ChatIDFromInt(m.Chat.ID)),
Text: m.Text,
ReplyParameters: &api.ReplyParameters{MessageID: &m.MessageID},
})
+3 -3
View File
@@ -39,7 +39,7 @@ func main() {
router.OnCommand("/start", func(c *dispatch.Context, m *api.Message) error {
_, err := api.SendMessage(c.Ctx, c.Bot, &api.SendMessageParams{
ChatID: api.ChatIDFromInt(m.Chat.ID),
ChatID: api.Ptr(api.ChatIDFromInt(m.Chat.ID)),
Text: "Send me a document and I'll download then re-upload it.",
})
return err
@@ -88,7 +88,7 @@ func handleDocument(c *dispatch.Context, m *api.Message) error {
name = "file"
}
_, err = api.SendDocument(c.Ctx, c.Bot, &api.SendDocumentParams{
ChatID: api.ChatIDFromInt(m.Chat.ID),
ChatID: api.Ptr(api.ChatIDFromInt(m.Chat.ID)),
Document: &api.InputFile{
Reader: bytes.NewReader(body),
Filename: name,
@@ -103,7 +103,7 @@ func handleDocument(c *dispatch.Context, m *api.Message) error {
func reply(c *dispatch.Context, chatID int64, text string) error {
_, err := api.SendMessage(c.Ctx, c.Bot, &api.SendMessageParams{
ChatID: api.ChatIDFromInt(chatID),
ChatID: api.Ptr(api.ChatIDFromInt(chatID)),
Text: text,
})
return err
+1 -1
View File
@@ -74,7 +74,7 @@ func main() {
router.OnCommand("/start", func(c *dispatch.Context, m *api.Message) error {
_, err := api.SendMessage(c.Ctx, c.Bot, &api.SendMessageParams{
ChatID: api.ChatIDFromInt(m.Chat.ID),
ChatID: api.Ptr(api.ChatIDFromInt(m.Chat.ID)),
Text: "middleware demo: this update was timed and (optionally) auth-checked",
})
return err
+1 -1
View File
@@ -70,7 +70,7 @@ func resolveTarget(m *api.Message) int64 {
func reply(c *dispatch.Context, chatID int64, text string) {
_, _ = api.SendMessage(c.Ctx, c.Bot, &api.SendMessageParams{
ChatID: api.ChatIDFromInt(chatID),
ChatID: api.Ptr(api.ChatIDFromInt(chatID)),
Text: text,
})
}
+1 -1
View File
@@ -102,7 +102,7 @@ func main() {
router.OnCommand("/list", func(c *dispatch.Context, m *api.Message) error {
text, markup := renderPage(sampleItems, 0)
_, err := api.SendMessage(c.Ctx, c.Bot, &api.SendMessageParams{
ChatID: api.ChatIDFromInt(m.Chat.ID),
ChatID: api.Ptr(api.ChatIDFromInt(m.Chat.ID)),
Text: text,
ReplyMarkup: markup,
})
+1 -1
View File
@@ -87,7 +87,7 @@ func main() {
log.Printf("payment success: charge_id=%s payload=%q amount=%d %s",
sp.TelegramPaymentChargeID, sp.InvoicePayload, sp.TotalAmount, sp.Currency)
_, err := api.SendMessage(c.Ctx, c.Bot, &api.SendMessageParams{
ChatID: api.ChatIDFromInt(m.Chat.ID),
ChatID: api.Ptr(api.ChatIDFromInt(m.Chat.ID)),
Text: "Payment received! Your widget is on its way.",
})
return err
+3 -3
View File
@@ -89,7 +89,7 @@ func main() {
}
if question == "" {
_, _ = api.SendMessage(c.Ctx, c.Bot, &api.SendMessageParams{
ChatID: api.ChatIDFromInt(m.Chat.ID),
ChatID: api.Ptr(api.ChatIDFromInt(m.Chat.ID)),
Text: "Usage: /poll <question>",
})
return nil
@@ -116,13 +116,13 @@ func main() {
}
if pollID == "" {
_, _ = api.SendMessage(c.Ctx, c.Bot, &api.SendMessageParams{
ChatID: api.ChatIDFromInt(m.Chat.ID),
ChatID: api.Ptr(api.ChatIDFromInt(m.Chat.ID)),
Text: "Usage: /tally <poll_id>",
})
return nil
}
_, _ = api.SendMessage(c.Ctx, c.Bot, &api.SendMessageParams{
ChatID: api.ChatIDFromInt(m.Chat.ID),
ChatID: api.Ptr(api.ChatIDFromInt(m.Chat.ID)),
Text: tally.summary(pollID),
})
return nil
+1 -1
View File
@@ -52,7 +52,7 @@ func main() {
}
n := store.inc(m.From.ID)
_, err := api.SendMessage(c.Ctx, c.Bot, &api.SendMessageParams{
ChatID: api.ChatIDFromInt(m.Chat.ID),
ChatID: api.Ptr(api.ChatIDFromInt(m.Chat.ID)),
Text: fmt.Sprintf("Your count: %d", n),
})
return err
+1 -1
View File
@@ -12,7 +12,7 @@ func register(r *dispatch.Router) {
func handlePing(c *dispatch.Context, m *api.Message) error {
_, err := api.SendMessage(c.Ctx, c.Bot, &api.SendMessageParams{
ChatID: api.ChatIDFromInt(m.Chat.ID),
ChatID: api.Ptr(api.ChatIDFromInt(m.Chat.ID)),
Text: "pong",
})
return err
+1 -1
View File
@@ -45,7 +45,7 @@ func main() {
name += " " + u.LastName
}
_, err := api.SendMessage(c.Ctx, c.Bot, &api.SendMessageParams{
ChatID: api.ChatIDFromInt(m.Chat.ID),
ChatID: api.Ptr(api.ChatIDFromInt(m.Chat.ID)),
Text: fmt.Sprintf("Welcome, %s! Please read the pinned rules before posting.", name),
})
if err != nil {
+7 -7
View File
@@ -3,17 +3,17 @@ module github.com/lukaszraczylo/go-telegram
go 1.26.0
require (
github.com/goccy/go-json v0.11.2
github.com/goccy/go-json v0.12.0
github.com/lukaszraczylo/oss-telemetry v0.2.5
github.com/stretchr/testify v1.12.1
github.com/valyala/fasthttp v1.74.0
golang.org/x/net v0.59.0
github.com/valyala/fasthttp v1.80.0
golang.org/x/net v0.63.0
)
require (
github.com/klauspost/compress v1.20.1 // indirect
github.com/molecule-man/go-brrr v1.1.1 // indirect
github.com/stretchr/objx v0.5.3 // indirect
github.com/klauspost/compress v1.20.5 // indirect
github.com/molecule-man/go-brrr v1.3.1 // indirect
github.com/stretchr/objx v0.8.0 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
go.yaml.in/yaml/v3 v3.0.5 // indirect
go.yaml.in/yaml/v3 v3.0.6 // indirect
)
+16 -14
View File
@@ -1,22 +1,24 @@
github.com/goccy/go-json v0.11.2 h1:jdZv93Tt4ioR8yW1CoNsvSxrcZlCXAUU1aZXN7gpXUA=
github.com/goccy/go-json v0.11.2/go.mod h1:3NdmfEkZlB7YI5UFw/qdFKq8XN1aiWR0YyRPWZNQltY=
github.com/klauspost/compress v1.20.1 h1:T7kKElXUMXrUJ2E9QhQhxFtcK5rPyLdsGZvdbLMPdiQ=
github.com/klauspost/compress v1.20.1/go.mod h1:LUdAzn7YLVvxLpc7y3V1m40wESHTgc1422pwwBSKYuI=
github.com/goccy/go-json v0.12.0 h1:pD+oWouAiz4yruwXIt/iT+lOMeyhr1aTtxzaMP/RgVI=
github.com/goccy/go-json v0.12.0/go.mod h1:3NdmfEkZlB7YI5UFw/qdFKq8XN1aiWR0YyRPWZNQltY=
github.com/klauspost/compress v1.20.5 h1:rJj5VjH4xQxbnLphg6eqUcDxRFCw1jpMdDY9qXlrwSs=
github.com/klauspost/compress v1.20.5/go.mod h1:LUdAzn7YLVvxLpc7y3V1m40wESHTgc1422pwwBSKYuI=
github.com/lukaszraczylo/oss-telemetry v0.2.5 h1:W6Qgwp7IY4yBRO361MmnEAmM59motdQpbAFAx8v6fJM=
github.com/lukaszraczylo/oss-telemetry v0.2.5/go.mod h1:+Cn78qZo8rc3T9eZt0v3oICYRdd75wORtSidc8lNjDQ=
github.com/molecule-man/go-brrr v1.1.1 h1:KYwusQhjtV3smALnhmafZf4OBrh7vP4p8O47DyUmmuY=
github.com/molecule-man/go-brrr v1.1.1/go.mod h1:7ybW6/7gA3oKY45jOfVNjSJDtrr6ea4tzbsTkjmQDC4=
github.com/stretchr/objx v0.5.3 h1:jmXUvGomnU1o3W/V5h2VEradbpJDwGrzugQQvL0POH4=
github.com/stretchr/objx v0.5.3/go.mod h1:rDQraq+vQZU7Fde9LOZLr8Tax6zZvy4kuNKF+QYS+U0=
github.com/molecule-man/go-brrr v1.3.1 h1:EwaJUzRIlp/dFmIpzq4J17CA5Zi5OHo2vOGmu09hF1w=
github.com/molecule-man/go-brrr v1.3.1/go.mod h1:7ybW6/7gA3oKY45jOfVNjSJDtrr6ea4tzbsTkjmQDC4=
github.com/stretchr/objx v0.8.0 h1:rm9oMkeprG/wHifkZP4EuDww9S0mvEaQ/p9cXTNT4cw=
github.com/stretchr/objx v0.8.0/go.mod h1:xSzHnPHkdEv7vtgdQej8atlCuU1mdX+ELge8bn0hCsE=
github.com/stretchr/testify v1.12.1 h1:EuwCh5fleGS7H32xRwO3wRGT7DxrDhLAT6FF8MpWDWE=
github.com/stretchr/testify v1.12.1/go.mod h1:MDEgiDPPsNp5cuIrHPPCyornHKgEVbtFUmoNlxoYthg=
github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw=
github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
github.com/valyala/fasthttp v1.74.0 h1:wMS9fnO2QTALozYx5pId2Vi7ZwU/epUkY8i/KPWCHoU=
github.com/valyala/fasthttp v1.74.0/go.mod h1:3ARmLamUcw7ElxVtC8PXaGzQ6VEuvnetlkrwIklQBSE=
go.yaml.in/yaml/v3 v3.0.5 h1:N6y/pJk8buWs9NY5ERU2HSMfm+IuD/OtfdAnq6kESPw=
go.yaml.in/yaml/v3 v3.0.5/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg=
golang.org/x/net v0.59.0 h1:5zfYln+w5XCxwrnMMJPufRgNoXEaGxl0wo5GqPXyues=
golang.org/x/net v0.59.0/go.mod h1:2DA/G1UfVbCpQPeWTmMPGY7Cs2PkBkwu743bVX5PIVg=
github.com/valyala/fasthttp v1.80.0 h1:10pVr/QLFGbSX8ikDS0i+wOi2AGY2Sy0TACVpoiG+7U=
github.com/valyala/fasthttp v1.80.0/go.mod h1:oulvtxx5dQeORu6sKWaJItcnWXRqiGmrTFQ4gmZjLFM=
go.yaml.in/yaml/v3 v3.0.6 h1:zcDfvjXEqTQmpjniUBLc91xYJMB2c4QOFxEF/LCEckM=
go.yaml.in/yaml/v3 v3.0.6/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg=
golang.org/x/net v0.63.0 h1:HCoTmNh9EpD1PpK8gBNFY4gcTY4N+KQEO8ylfIKqFJ0=
golang.org/x/net v0.63.0/go.mod h1:15JLg3IX1bLjHK264EZQEbIpTiR/KVLuo9CTRWd0pig=
golang.org/x/text v0.44.0 h1:YItdp/mQNGnsmrgpcdA5yQ3bnRxCfo/Tj/iByGW9GGo=
golang.org/x/text v0.44.0/go.mod h1:S4FR1waQ9LbjQTls97SyRjDaUUVkaM+cXwwuG/G+MwY=
golang.org/x/tools v0.30.0 h1:BgcpHewrV5AUp2G9MebG4XPFI1E2W41zU1SaqVA9vJY=
golang.org/x/tools v0.30.0/go.mod h1:c347cR/OJfw5TI+GfX7RUPNMdDRRbjvYTS0jPyvsVtY=
+2350 -383
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -22,7 +22,7 @@ import (
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
gobot "github.com/go-telegram/bot"
telego "github.com/mymmrac/telego"
tele "gopkg.in/telebot.v3"
tele "gopkg.in/telebot.v4"
)
// Telegram-format token (digits:[\w-]{35}). telego enforces this format on construction.
+1 -1
View File
@@ -28,7 +28,7 @@ import (
gobot "github.com/go-telegram/bot"
gobotmodels "github.com/go-telegram/bot/models"
tele "gopkg.in/telebot.v3"
tele "gopkg.in/telebot.v4"
)
const dispatchN = 20
+14 -15
View File
@@ -1,34 +1,33 @@
module github.com/lukaszraczylo/go-telegram/test/benchmarks
go 1.26.7
go 1.26.11
replace github.com/lukaszraczylo/go-telegram => ../../
require (
github.com/NicoNex/echotron/v3 v3.46.0
github.com/NicoNex/echotron/v3 v3.47.0
github.com/go-telegram-bot-api/telegram-bot-api/v5 v5.5.1
github.com/go-telegram/bot v1.27.0
github.com/go-telegram/bot v1.31.0
github.com/lukaszraczylo/go-telegram v0.0.0-00010101000000-000000000000
github.com/mymmrac/telego v1.12.1
gopkg.in/telebot.v3 v3.3.8
github.com/mymmrac/telego v1.14.0
gopkg.in/telebot.v4 v4.0.0
)
require (
github.com/bytedance/gopkg v0.1.4 // indirect
github.com/bytedance/sonic v1.15.4 // indirect
github.com/bytedance/sonic/loader v0.5.2 // indirect
github.com/bytedance/sonic v1.15.5 // indirect
github.com/bytedance/sonic/loader v0.5.3 // indirect
github.com/cloudwego/base64x v0.1.7 // indirect
github.com/goccy/go-json v0.11.2 // indirect
github.com/grbit/go-json v0.11.0 // indirect
github.com/klauspost/compress v1.20.1 // indirect
github.com/klauspost/cpuid/v2 v2.4.0 // indirect
github.com/goccy/go-json v0.12.0 // indirect
github.com/klauspost/compress v1.20.5 // indirect
github.com/klauspost/cpuid/v2 v2.4.2 // indirect
github.com/lukaszraczylo/oss-telemetry v0.2.5 // indirect
github.com/molecule-man/go-brrr v1.1.1 // indirect
github.com/molecule-man/go-brrr v1.3.1 // indirect
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasthttp v1.74.0 // indirect
github.com/valyala/fasthttp v1.80.0 // indirect
github.com/valyala/fastjson v1.6.10 // indirect
golang.org/x/arch v0.31.0 // indirect
golang.org/x/sys v0.48.0 // indirect
golang.org/x/arch v0.33.0 // indirect
golang.org/x/sys v0.50.0 // indirect
golang.org/x/time v0.16.0 // indirect
)
+34 -32
View File
@@ -57,8 +57,8 @@ dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ=
github.com/NicoNex/echotron/v3 v3.46.0 h1:IHPhEDU3pbxa3uLnxRz5e247SYEVzIbQS014qvuWFOU=
github.com/NicoNex/echotron/v3 v3.46.0/go.mod h1:7LvjveJmezuUOeaoA3nzQduNlSPQYfq219Z+baKY04Q=
github.com/NicoNex/echotron/v3 v3.47.0 h1:mI/CKs/UEBcHi0g9KNLy9HDmfSArKF1Uza+Rv+JMubY=
github.com/NicoNex/echotron/v3 v3.47.0/go.mod h1:7LvjveJmezuUOeaoA3nzQduNlSPQYfq219Z+baKY04Q=
github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
@@ -77,10 +77,10 @@ github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6r
github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs=
github.com/bytedance/gopkg v0.1.4 h1:oZnQwnX82KAIWb7033bEwtxvTqXcYMxDBaQxo5JJHWM=
github.com/bytedance/gopkg v0.1.4/go.mod h1:v1zWfPm21Fb+OsyXN2VAHdL6TBb2L88anLQgdyje6R4=
github.com/bytedance/sonic v1.15.4 h1:FgtV/4aBHpla9AxuMpuuzVUpa/Cf3izufkxNmnEzdI8=
github.com/bytedance/sonic v1.15.4/go.mod h1:8e51yTPdY8M6t+vvGL1c2Y1xL9i+frEeIAQAEl75NUc=
github.com/bytedance/sonic/loader v0.5.2 h1:0QtP1gevc1OZ6/H8Lb9BRZiCXd1Ftjd3OKuj1T1lBIo=
github.com/bytedance/sonic/loader v0.5.2/go.mod h1:AR4NYCk5DdzZizZ5djGqQ92eEhCCcdf5x77udYiSJRo=
github.com/bytedance/sonic v1.15.5 h1:gKWTBfYCIQpQHZ7LpwGf9Gj3N88ZN0G/GaB3EQhiGXE=
github.com/bytedance/sonic v1.15.5/go.mod h1:nn7CoK5W+LKbl22XGJrXg6SwzaFAcVs89miqzkqDwOU=
github.com/bytedance/sonic/loader v0.5.3 h1:ziVGAbXQtLoaot/M6YQxntGkekxz6B/DyuJVwnTbMAA=
github.com/bytedance/sonic/loader v0.5.3/go.mod h1:AR4NYCk5DdzZizZ5djGqQ92eEhCCcdf5x77udYiSJRo=
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc=
github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
@@ -141,10 +141,10 @@ github.com/go-playground/validator/v10 v10.4.1/go.mod h1:nlOn6nFhuKACm19sB/8EGNn
github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
github.com/go-telegram-bot-api/telegram-bot-api/v5 v5.5.1 h1:wG8n/XJQ07TmjbITcGiUaOtXxdrINDz1b0J1w0SzqDc=
github.com/go-telegram-bot-api/telegram-bot-api/v5 v5.5.1/go.mod h1:A2S0CWkNylc2phvKXWBBdD3K0iGnDBGbzRpISP2zBl8=
github.com/go-telegram/bot v1.27.0 h1:PG9yBDzM8O26oUerE9SZwWlHon4RpH8WcNslZ7CEZmE=
github.com/go-telegram/bot v1.27.0/go.mod h1:i2TRs7fXWIeaceF3z7KzsMt/he0TwkVC680mvdTFYeM=
github.com/goccy/go-json v0.11.2 h1:jdZv93Tt4ioR8yW1CoNsvSxrcZlCXAUU1aZXN7gpXUA=
github.com/goccy/go-json v0.11.2/go.mod h1:3NdmfEkZlB7YI5UFw/qdFKq8XN1aiWR0YyRPWZNQltY=
github.com/go-telegram/bot v1.31.0 h1:F7WgyBPKup/9SfsM/ybfX/PMdaz/Tkcmu9sdK3+rqV8=
github.com/go-telegram/bot v1.31.0/go.mod h1:i2TRs7fXWIeaceF3z7KzsMt/he0TwkVC680mvdTFYeM=
github.com/goccy/go-json v0.12.0 h1:pD+oWouAiz4yruwXIt/iT+lOMeyhr1aTtxzaMP/RgVI=
github.com/goccy/go-json v0.12.0/go.mod h1:3NdmfEkZlB7YI5UFw/qdFKq8XN1aiWR0YyRPWZNQltY=
github.com/goccy/go-yaml v1.9.5/go.mod h1:U/jl18uSupI5rdI2jmuCswEA2htH9eXfferR3KfscvA=
github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
@@ -227,8 +227,6 @@ github.com/googleapis/gax-go/v2 v2.2.0/go.mod h1:as02EH8zWkzwUoLbBaFeQ+arQaj/Oth
github.com/googleapis/gax-go/v2 v2.3.0/go.mod h1:b8LNqSzNabLiUpXKkY7HAR5jr6bIT99EXz9pXxye9YM=
github.com/googleapis/gax-go/v2 v2.4.0/go.mod h1:XOTVJ59hdnfJLIP/dh8n5CGryZR2LxK9wbMD5+iXC6c=
github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g=
github.com/grbit/go-json v0.11.0 h1:bAbyMdYrYl/OjYsSqLH99N2DyQ291mHy726Mx+sYrnc=
github.com/grbit/go-json v0.11.0/go.mod h1:IYpHsdybQ386+6g3VE6AXQ3uTGa5mquBme5/ZWmtzek=
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk=
github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw=
github.com/hashicorp/consul/api v1.12.0/go.mod h1:6pVBMo0ebnYdt2S3H87XhekM/HHrUoTD2XXb/VrZVy0=
@@ -273,10 +271,10 @@ github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7V
github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM=
github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
github.com/klauspost/compress v1.20.1 h1:T7kKElXUMXrUJ2E9QhQhxFtcK5rPyLdsGZvdbLMPdiQ=
github.com/klauspost/compress v1.20.1/go.mod h1:LUdAzn7YLVvxLpc7y3V1m40wESHTgc1422pwwBSKYuI=
github.com/klauspost/cpuid/v2 v2.4.0 h1:S6Hrbc7+ywsr0r+RLapfGBHfyefhCTwEh3A0tV913Dw=
github.com/klauspost/cpuid/v2 v2.4.0/go.mod h1:19jmZ9mjzoF//ddRSUsv0zfBTJWh3QJh9FNxZTMrGxU=
github.com/klauspost/compress v1.20.5 h1:rJj5VjH4xQxbnLphg6eqUcDxRFCw1jpMdDY9qXlrwSs=
github.com/klauspost/compress v1.20.5/go.mod h1:LUdAzn7YLVvxLpc7y3V1m40wESHTgc1422pwwBSKYuI=
github.com/klauspost/cpuid/v2 v2.4.2 h1:xRw7IZEsAgVCp6trS/DgWbTAqpixhmywgVgBjYGg1bQ=
github.com/klauspost/cpuid/v2 v2.4.2/go.mod h1:19jmZ9mjzoF//ddRSUsv0zfBTJWh3QJh9FNxZTMrGxU=
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg=
@@ -318,12 +316,12 @@ github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJ
github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
github.com/molecule-man/go-brrr v1.1.1 h1:KYwusQhjtV3smALnhmafZf4OBrh7vP4p8O47DyUmmuY=
github.com/molecule-man/go-brrr v1.1.1/go.mod h1:7ybW6/7gA3oKY45jOfVNjSJDtrr6ea4tzbsTkjmQDC4=
github.com/molecule-man/go-brrr v1.3.1 h1:EwaJUzRIlp/dFmIpzq4J17CA5Zi5OHo2vOGmu09hF1w=
github.com/molecule-man/go-brrr v1.3.1/go.mod h1:7ybW6/7gA3oKY45jOfVNjSJDtrr6ea4tzbsTkjmQDC4=
github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
github.com/mymmrac/telego v1.12.1 h1:yx1T5pPSNsU3BjLR7jnfY0D4dtL9caH58Y9e8uzjR88=
github.com/mymmrac/telego v1.12.1/go.mod h1:K4z3Z3Qr6AA8yEjSry3JGScu506NlLl1O4Gqascmop4=
github.com/mymmrac/telego v1.14.0 h1:6wI282H2dXYTgJjESckU29vVDZhpC/kfxuCaeyG9vF8=
github.com/mymmrac/telego v1.14.0/go.mod h1:H2FYDs8ahk5zxt+QlPpPZF55k+J/qKfGxgdWIvWv5UQ=
github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c=
@@ -373,8 +371,8 @@ github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
github.com/stretchr/objx v0.5.3 h1:jmXUvGomnU1o3W/V5h2VEradbpJDwGrzugQQvL0POH4=
github.com/stretchr/objx v0.5.3/go.mod h1:rDQraq+vQZU7Fde9LOZLr8Tax6zZvy4kuNKF+QYS+U0=
github.com/stretchr/objx v0.8.0 h1:rm9oMkeprG/wHifkZP4EuDww9S0mvEaQ/p9cXTNT4cw=
github.com/stretchr/objx v0.8.0/go.mod h1:xSzHnPHkdEv7vtgdQej8atlCuU1mdX+ELge8bn0hCsE=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
@@ -394,8 +392,8 @@ github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS
github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08=
github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw=
github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
github.com/valyala/fasthttp v1.74.0 h1:wMS9fnO2QTALozYx5pId2Vi7ZwU/epUkY8i/KPWCHoU=
github.com/valyala/fasthttp v1.74.0/go.mod h1:3ARmLamUcw7ElxVtC8PXaGzQ6VEuvnetlkrwIklQBSE=
github.com/valyala/fasthttp v1.80.0 h1:10pVr/QLFGbSX8ikDS0i+wOi2AGY2Sy0TACVpoiG+7U=
github.com/valyala/fasthttp v1.80.0/go.mod h1:oulvtxx5dQeORu6sKWaJItcnWXRqiGmrTFQ4gmZjLFM=
github.com/valyala/fastjson v1.6.10 h1:/yjJg8jaVQdYR3arGxPE2X5z89xrlhS0eGXdv+ADTh4=
github.com/valyala/fastjson v1.6.10/go.mod h1:e6FubmQouUNP73jtMLmcbxS6ydWIpOfhz34TSfO3JaE=
github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
@@ -420,10 +418,10 @@ go.uber.org/mock v0.6.0 h1:hyF9dfmbgIX5EfOdasqLsWD6xqpNZlXblLB/Dbnwv3Y=
go.uber.org/mock v0.6.0/go.mod h1:KiVJ4BqZJaMj4svdfmHM0AUx4NJYO8ZNpPnZn1Z+BBU=
go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU=
go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo=
go.yaml.in/yaml/v3 v3.0.5 h1:N6y/pJk8buWs9NY5ERU2HSMfm+IuD/OtfdAnq6kESPw=
go.yaml.in/yaml/v3 v3.0.5/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg=
golang.org/x/arch v0.31.0 h1:22MlEb14/O/EPCYHFxsDdv5TuLD5dMjT5e2QeJw4ULk=
golang.org/x/arch v0.31.0/go.mod h1:KcJSod3cqT2dKcjBxqTyGfbumNikqU9p5tHJinPJnuY=
go.yaml.in/yaml/v3 v3.0.6 h1:zcDfvjXEqTQmpjniUBLc91xYJMB2c4QOFxEF/LCEckM=
go.yaml.in/yaml/v3 v3.0.6/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg=
golang.org/x/arch v0.33.0 h1:Xhs4e8nHj/CU/eFFMok2wQG3amA8430Sjdobboa4NrM=
golang.org/x/arch v0.33.0/go.mod h1:yelN722/RE0EdL5KBgAqvVqP++p/dn8sL4UaLD8n8As=
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
@@ -516,6 +514,8 @@ golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su
golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
golang.org/x/net v0.0.0-20220520000938-2e3eb7b945c2/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
golang.org/x/net v0.63.0 h1:HCoTmNh9EpD1PpK8gBNFY4gcTY4N+KQEO8ylfIKqFJ0=
golang.org/x/net v0.63.0/go.mod h1:15JLg3IX1bLjHK264EZQEbIpTiR/KVLuo9CTRWd0pig=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
@@ -626,8 +626,8 @@ golang.org/x/sys v0.0.0-20220328115105-d36c6a25d886/go.mod h1:oPkhp1MJrh7nUepCBc
golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.48.0 h1:bbX/i/6MgT9BVLM9RT1thmxL04yeTAhbEz4SyadbXoo=
golang.org/x/sys v0.48.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og=
golang.org/x/sys v0.50.0 h1:dkKZEFTEKaLr1sjhs0WiKqoi8Jj5nHbS3Njmx1UoMJs=
golang.org/x/sys v0.50.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
@@ -639,6 +639,8 @@ golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
golang.org/x/text v0.44.0 h1:YItdp/mQNGnsmrgpcdA5yQ3bnRxCfo/Tj/iByGW9GGo=
golang.org/x/text v0.44.0/go.mod h1:S4FR1waQ9LbjQTls97SyRjDaUUVkaM+cXwwuG/G+MwY=
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
@@ -882,8 +884,8 @@ gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k=
gopkg.in/telebot.v3 v3.3.8 h1:uVDGjak9l824FN9YARWUHMsiNZnlohAVwUycw21k6t8=
gopkg.in/telebot.v3 v3.3.8/go.mod h1:1mlbqcLTVSfK9dx7fdp+Nb5HZsy4LLPtpZTKmwhwtzM=
gopkg.in/telebot.v4 v4.0.0 h1:6hIwJPrYi7t4lCbWyThSeNfkxgZPR25Z/gxZeFrPO3k=
gopkg.in/telebot.v4 v4.0.0/go.mod h1:jhcQjM/176jZm/s9Up/MzV5VFGPjyI8oiJhWvCMxayI=
gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+1 -1
View File
@@ -14,7 +14,7 @@ import (
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
gobotmodels "github.com/go-telegram/bot/models"
telego "github.com/mymmrac/telego"
tele "gopkg.in/telebot.v3"
tele "gopkg.in/telebot.v4"
)
var largeUpdateBytes = []byte(shared.LargeUpdateJSON)
+1 -1
View File
@@ -14,7 +14,7 @@ import (
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
gobotmodels "github.com/go-telegram/bot/models"
telego "github.com/mymmrac/telego"
tele "gopkg.in/telebot.v3"
tele "gopkg.in/telebot.v4"
)
var smallUpdateBytes = []byte(shared.SmallUpdateJSON)
+2 -2
View File
@@ -31,7 +31,7 @@ func TestGetMe(t *testing.T) {
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
defer cancel()
u, err := api.GetMe(ctx, b)
u, err := api.GetMe(ctx, b, &api.GetMeParams{})
require.NoError(t, err)
require.True(t, u.IsBot)
}
@@ -48,7 +48,7 @@ func TestSendMessage(t *testing.T) {
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
defer cancel()
msg, err := api.SendMessage(ctx, b, &api.SendMessageParams{
ChatID: chatID,
ChatID: api.ChatIDFromInt(chatID),
Text: "integration test " + time.Now().UTC().Format(time.RFC3339),
})
require.NoError(t, err)
+1 -1
View File
@@ -1 +1 @@
snapshot_2026-09-14.html
snapshot_2026-11-29.html
File diff suppressed because one or more lines are too long