-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtelepher.go
More file actions
50 lines (40 loc) · 1.3 KB
/
telepher.go
File metadata and controls
50 lines (40 loc) · 1.3 KB
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
41
42
43
44
45
46
47
48
49
50
package telepher
import (
"net/http"
"time"
)
const (
DefaultBaseURL = "https://api.telegram.org/bot"
DefaultBaseFileURL = "https://api.telegram.org/file/bot"
DefaultParseMode = ""
DefaultCheckBool = true
)
const DefaultHandlerGroup = 0
var DefaultClient = &http.Client{
Timeout: time.Second * 10,
}
type ParseMode = string
var PARSE_MODES = []string{"markdownv2", "html", "markdown",""}
const (
Default ParseMode = ""
Markdown ParseMode = "Markdown"
MarkdownV2 ParseMode = "MarkdownV2"
HTML ParseMode = "HTML"
)
// events
const (
Message = "message"
EditedMessage = "edited_message"
ChannelPost = "channel_post"
EditedChannelPost = "edited_channel_post"
InlineQuery = "inline_query"
ChosenInlineResult = "chosen_inline_result"
CallbackQuery = "callback_query"
ShippingQuery = "shipping_query"
PreCheckoutQuery = "pre_checkout_query"
Poll = "poll"
PollAnswer = "inline_query"
MyChatMember = "my_chat_member"
ChatMember = "chat_member"
Text = "text"
)