Skip to content

Commit

Permalink
Add button to send a test message via telegram (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
tzerk committed Feb 27, 2017
1 parent 96361c3 commit 26141a6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ func main() {
label_Update := ui.NewLabel("")

box := ui.NewVerticalBox()

tbtn := ui.NewButton("Send Telegram test message")
tbtn.OnClicked(func(*ui.Button) {
send_TelegramMessage(config)
})

sep := ui.NewHorizontalSeparator()
pb := ui.NewProgressBar()

Expand All @@ -101,6 +107,7 @@ func main() {
box.Append(label_PID, false)
box.Append(label_Connection, false)
box.Append(label_Update, false)
box.Append(tbtn, false)
box.Append(sep, false)
box.Append(pb, true)

Expand Down

0 comments on commit 26141a6

Please sign in to comment.