Skip to content

Commit

Permalink
remove debug
Browse files Browse the repository at this point in the history
  • Loading branch information
id committed Nov 16, 2018
1 parent adfbcfc commit 00adf98
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions telegram/chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,11 @@ func (c *client) Send() error {

u := fmt.Sprintf("https://api.telegram.org/bot%s/sendMessage", c.opt.Token)

fmt.Println("telegram url:", u)

for _, channel := range c.opt.Channel {
data := url.Values{}
data.Set("chat_id", channel)
data.Set("text", c.body)

fmt.Printf("payload: %+v\n", data)

resp, err := http.PostForm(u, data)
if err != nil {
return err
Expand Down

0 comments on commit 00adf98

Please sign in to comment.