Skip to content

Commit 7ed85b3

Browse files
committed
feat: added CopyTextButton + regenerates FFJSON
1 parent c8e891d commit 7ed85b3

11 files changed

+15397
-815
lines changed

tgbotapi/callback_query_ffjson.go

Lines changed: 463 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tgbotapi/configs_ffjson.go

Lines changed: 14086 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tgbotapi/generate_ffjson.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
ffjson callback_query.go
2+
ffjson configs.go
3+
ffjson inline_query.go
4+
ffjson inline_query_result.go
5+
ffjson input_message_content.go
6+
ffjson link_preview_options.go
7+
ffjson message.go
8+
ffjson photo_size.go
9+
ffjson types.go
10+
ffjson update.go
11+
ffjson users_shared.go
12+
go test ./...

tgbotapi/inline_query.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
package tgbotapi
22

3+
//go:generate ffjson $GOFILE
4+
35
import (
46
"errors"
57
"github.com/pquerna/ffjson/ffjson"
68
"net/url"
79
"strconv"
810
)
911

10-
//go:generate ffjson $GOFILE
11-
1212
// InlineQueryResultsButton represents a button to be shown above inline query results.
1313
// You must use exactly one of the optional fields.
1414
type InlineQueryResultsButton struct {

tgbotapi/inline_query_ffjson.go

Lines changed: 36 additions & 66 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)