Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
akurilov committed Sep 19, 2023
1 parent f8bc950 commit e1386e2
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions api/telegram/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,19 @@ func Start(ctx telebot.Context) (err error) {
}

func startSubscription(ctx telebot.Context, chatId int64) (err error) {
markup := &telebot.ReplyMarkup{}
markup.Inline(
telebot.Row{
telebot.Btn{Text: "Set up new subscription", WebApp: &telebot.WebApp{URL: "https://google.com"}},
m := &telebot.ReplyMarkup{
InlineKeyboard: [][]telebot.InlineButton{
{
{
Unique: "set-sub",
WebApp: &telebot.WebApp{
URL: "https://google.com",
},
},
},
},
)
return ctx.Send("Open this app!", markup)
}
return ctx.Send("Set up new subscription", m)
}

func startMessage(ctx telebot.Context, chatId int64) (err error) {
Expand Down

0 comments on commit e1386e2

Please sign in to comment.