Skip to content

Commit

Permalink
small fix in tl generator.
Browse files Browse the repository at this point in the history
  • Loading branch information
AmarnathCJD committed Oct 4, 2024
1 parent a9a5350 commit 546ab6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions internal/cmd/tlgen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,11 @@ func minorFixes(outdir, layer string) {
replaceWithRegexp(filepath.Join(execWorkDir, "methods_gen.go"), `(?m)^\s*Chatlist\s*$`, " Chatlist InputChatlistDialogFilter")

replace(filepath.Join(execWorkDir, "enums_gen.go"), `Null Null`, `NullCrc Null`)
replace(filepath.Join(execWorkDir, "enums_gen.go"), `MessagesMessageEmpty MessagesMessageEmpty`, `MessagesMessageEmptyCrc MessagesMessageEmpty`)

replace(filepath.Join(execWorkDir, "init_gen.go"), `Null,`, `NullCrc,`)
replace(filepath.Join(execWorkDir, "init_gen.go"), `MessagesMessageEmpty,`, `MessagesMessageEmptyCrc,`)

if layer != "0" {
// replace eg: ApiVersion = 181
file, err := os.OpenFile(filepath.Join(execWorkDir, "const.go"), os.O_RDWR|os.O_CREATE, 0600)
Expand Down
2 changes: 1 addition & 1 deletion telegram/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package telegram
import "regexp"

const (
ApiVersion = 189
ApiVersion = 188
Version = "v2.3.18"

LogDebug = "debug"
Expand Down

0 comments on commit 546ab6d

Please sign in to comment.