Skip to content

Commit d8c644a

Browse files
committed
bump gotdbot
1 parent 2e6a145 commit d8c644a

5 files changed

Lines changed: 19 additions & 19 deletions

File tree

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module coolifymanager
33
go 1.25.0
44

55
require (
6-
github.com/AshokShau/gotdbot v0.2.0
6+
github.com/AshokShau/gotdbot v0.3.0
77
github.com/go-co-op/gocron/v2 v2.19.1
88
go.mongodb.org/mongo-driver/v2 v2.5.0
99
)

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
github.com/AshokShau/gotdbot v0.2.0 h1:0NEiFbYMPU0wd774Ol23T4bi9pcO3EgJFBWFDlhCbRc=
2-
github.com/AshokShau/gotdbot v0.2.0/go.mod h1:V+l2hs3gTpaqXpDnjyon8mCFZ9XUY2ClbOMKYrZQm9w=
1+
github.com/AshokShau/gotdbot v0.3.0 h1:OSGQqG2XhN1JMZj34NtQbQ9NFimj/UxyFnhSHeHENCk=
2+
github.com/AshokShau/gotdbot v0.3.0/go.mod h1:V+l2hs3gTpaqXpDnjyon8mCFZ9XUY2ClbOMKYrZQm9w=
33
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
44
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
55
github.com/ebitengine/purego v0.9.1 h1:a/k2f2HQU3Pi399RPW1MOaZyhKJL9w/xFpKAg4q1s0A=

src/callbacks.go

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func listProjectsHandler(ctx *ext.Context) error {
4949
text := fmt.Sprintf("📦 %s (%s)", app.Name, app.Status)
5050
data := "project_menu:" + app.UUID
5151

52-
kb.Rows = append(kb.Rows, []*gotdbot.InlineKeyboardButton{
52+
kb.Rows = append(kb.Rows, []gotdbot.InlineKeyboardButton{
5353
{
5454
Text: text,
5555
TypeField: &gotdbot.InlineKeyboardButtonTypeCallback{
@@ -60,10 +60,10 @@ func listProjectsHandler(ctx *ext.Context) error {
6060
}
6161

6262
if len(paginationButtons) > 0 {
63-
row := make([]*gotdbot.InlineKeyboardButton, 0, len(paginationButtons))
63+
row := make([]gotdbot.InlineKeyboardButton, 0, len(paginationButtons))
6464

6565
for _, btn := range paginationButtons {
66-
row = append(row, &gotdbot.InlineKeyboardButton{
66+
row = append(row, gotdbot.InlineKeyboardButton{
6767
Text: btn.Text,
6868
TypeField: &gotdbot.InlineKeyboardButtonTypeCallback{
6969
Data: []byte(btn.Data),
@@ -99,7 +99,7 @@ func projectMenuHandler(ctx *ext.Context) error {
9999

100100
text := fmt.Sprintf("<b>📦 %s</b>\n🌐 %s\n📄 Status: <code>%s</code>", app.Name, app.FQDN, app.Status)
101101
kb := &gotdbot.ReplyMarkupInlineKeyboard{
102-
Rows: [][]*gotdbot.InlineKeyboardButton{
102+
Rows: [][]gotdbot.InlineKeyboardButton{
103103
{
104104
{
105105
Text: "🔄 Restart",
@@ -182,7 +182,7 @@ func restartHandler(ctx *ext.Context) error {
182182
uuid := strings.TrimPrefix(cbData, "restart:")
183183

184184
kb := &gotdbot.ReplyMarkupInlineKeyboard{
185-
Rows: [][]*gotdbot.InlineKeyboardButton{
185+
Rows: [][]gotdbot.InlineKeyboardButton{
186186
{
187187
{
188188
Text: "🔙 Back",
@@ -219,7 +219,7 @@ func deployHandler(ctx *ext.Context) error {
219219
uuid := strings.TrimPrefix(cbData, "deploy:")
220220

221221
kb := &gotdbot.ReplyMarkupInlineKeyboard{
222-
Rows: [][]*gotdbot.InlineKeyboardButton{
222+
Rows: [][]gotdbot.InlineKeyboardButton{
223223
{
224224
{
225225
Text: "🔙 Back",
@@ -255,7 +255,7 @@ func logsHandler(ctx *ext.Context) error {
255255
uuid := strings.TrimPrefix(cb.DataString(), "logs:")
256256

257257
kb := &gotdbot.ReplyMarkupInlineKeyboard{
258-
Rows: [][]*gotdbot.InlineKeyboardButton{
258+
Rows: [][]gotdbot.InlineKeyboardButton{
259259
{
260260
{
261261
Text: "🔙 Back",
@@ -312,7 +312,7 @@ func statusHandler(ctx *ext.Context) error {
312312
uuid := strings.TrimPrefix(cbData, "status:")
313313

314314
kb := &gotdbot.ReplyMarkupInlineKeyboard{
315-
Rows: [][]*gotdbot.InlineKeyboardButton{
315+
Rows: [][]gotdbot.InlineKeyboardButton{
316316
{
317317
{
318318
Text: "🔙 Back",
@@ -350,7 +350,7 @@ func stopHandler(ctx *ext.Context) error {
350350

351351
res, err := config.Coolify.StopApplicationByUUID(uuid)
352352
kb := &gotdbot.ReplyMarkupInlineKeyboard{
353-
Rows: [][]*gotdbot.InlineKeyboardButton{
353+
Rows: [][]gotdbot.InlineKeyboardButton{
354354
{
355355
{
356356
Text: "🔙 Back",
@@ -386,7 +386,7 @@ func deleteHandler(ctx *ext.Context) error {
386386

387387
err := config.Coolify.DeleteApplicationByUUID(uuid)
388388
kb := &gotdbot.ReplyMarkupInlineKeyboard{
389-
Rows: [][]*gotdbot.InlineKeyboardButton{
389+
Rows: [][]gotdbot.InlineKeyboardButton{
390390
{
391391
{
392392
Text: "🔙 Back",
@@ -421,7 +421,7 @@ func scheduleMenuHandler(ctx *ext.Context) error {
421421
uuid := strings.TrimPrefix(cbData, "sch_m:")
422422

423423
kb := &gotdbot.ReplyMarkupInlineKeyboard{
424-
Rows: [][]*gotdbot.InlineKeyboardButton{
424+
Rows: [][]gotdbot.InlineKeyboardButton{
425425
{
426426
{
427427
Text: "🔄 Restart",
@@ -470,7 +470,7 @@ func scheduleActionHandler(ctx *ext.Context) error {
470470

471471
// Common intervals
472472
kb := &gotdbot.ReplyMarkupInlineKeyboard{
473-
Rows: [][]*gotdbot.InlineKeyboardButton{
473+
Rows: [][]gotdbot.InlineKeyboardButton{
474474
{
475475
{
476476
Text: "Hourly",
@@ -576,7 +576,7 @@ func scheduleCreateHandler(ctx *ext.Context) error {
576576
}
577577

578578
kb := &gotdbot.ReplyMarkupInlineKeyboard{
579-
Rows: [][]*gotdbot.InlineKeyboardButton{
579+
Rows: [][]gotdbot.InlineKeyboardButton{
580580
{
581581
{
582582
Text: "🔙 Back",

src/jobs.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ func buildJobsMessage(page int) (string, gotdbot.ReplyMarkup, error) {
8383

8484
kb := &gotdbot.ReplyMarkupInlineKeyboard{}
8585
if len(buttons) > 0 {
86-
row := make([]*gotdbot.InlineKeyboardButton, 0, len(buttons))
86+
row := make([]gotdbot.InlineKeyboardButton, 0, len(buttons))
8787

8888
for _, btn := range buttons {
89-
row = append(row, &gotdbot.InlineKeyboardButton{
89+
row = append(row, gotdbot.InlineKeyboardButton{
9090
Text: btn.Text,
9191
TypeField: &gotdbot.InlineKeyboardButtonTypeCallback{
9292
Data: []byte(btn.Data),

src/start.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Welcome to <b>%s</b> — your assistant to manage Coolify projects.
1818
`, c.Me().FirstName)
1919

2020
kb := &gotdbot.ReplyMarkupInlineKeyboard{
21-
Rows: [][]*gotdbot.InlineKeyboardButton{
21+
Rows: [][]gotdbot.InlineKeyboardButton{
2222
{
2323
{
2424
Text: "📋 List Projects",

0 commit comments

Comments
 (0)