forked from max-messenger/max-bot-api-client-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconst.go
More file actions
56 lines (46 loc) · 1.21 KB
/
const.go
File metadata and controls
56 lines (46 loc) · 1.21 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
51
52
53
54
55
56
package maxbot
import "time"
const (
Version = "1.2.5"
defaultAPIURL = "https://platform-api.max.ru/"
defaultTimeout = 30 * time.Second
defaultPause = 1 * time.Second
maxUpdatesLimit = 50
maxRetries = 3
)
const (
notifyExists = "notify/exists"
)
const (
pathMe = "me"
pathChats = "chats"
pathAnswers = "answers"
pathUpdates = "updates"
pathUpload = "uploads"
pathMessages = "messages"
pathSubscriptions = "subscriptions"
formatPathChatsID = "chats/%d"
formatPathChatsActions = "chats/%d/actions"
formatPathChatsMembers = "chats/%d/members"
formatPathChatsMembersMe = "chats/%d/members/me"
formatPathChatsMembersAdmin = "chats/%d/members/admins"
)
const (
paramVersion = "v"
paramURL = "url"
paramType = "type"
paramTypes = "types"
paramMarker = "marker"
paramAccessToken = "access_token"
paramPhoneNumbers = "phone_numbers"
paramChatID = "chat_id"
paramUserID = "user_id"
paramMessageID = "message_id"
paramMessageIDs = "message_ids"
paramCallbackID = "callback_id"
paramTo = "to"
paramCount = "count"
paramFrom = "from"
paramLimit = "limit"
paramTimeout = "timeout"
)