Skip to content

Commit

Permalink
Show greeting when demo bot starts
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-paulau committed Jun 8, 2016
1 parent c580d15 commit fe27e80
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions demo/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,19 @@ import (

const (
address = "127.0.0.1:8080"
greeting = `
This Telegram chat bot was created for demonstration purposes only.
It receives incoming updates via a webhook with the following address:
http://127.0.0.1:8080/webhook
`
)

func init() {
fmt.Println(greeting)
}

func main() {
http.HandleFunc("/webhook", chatBot)

Expand Down

0 comments on commit fe27e80

Please sign in to comment.