forked from tucnak/telebot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
telebot.go
40 lines (39 loc) · 928 Bytes
/
telebot.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Package telebot provides a handy wrapper for interactions
// with Telegram bots.
//
// Here is an example of helloworld bot implementation:
//
// import (
// "time"
// "github.com/tucnak/telebot"
// )
//
// func main() {
// bot, err := telebot.NewBot("SECRET_TOKEN")
// if err != nil {
// return
// }
//
// messages := make(chan telebot.Message)
// bot.Listen(messages, 1*time.Second)
//
// for message := range messages {
// if message.Text == "/hi" {
// bot.SendMessage(message.Chat,
// "Hello, "+message.Sender.FirstName+"!", nil)
// }
// }
// }
//
package telebot
// A bunch of available chat actions.
const (
Typing = "typing"
UploadingPhoto = "upload_photo"
UploadingVideo = "upload_video"
UploadingAudio = "upload_audio"
UploadingDocument = "upload_document"
RecordingVideo = "record_video"
RecordingAudio = "record_audio"
FindingLocation = "find_location"
)