mirror of
https://github.com/retailcrm/mg-bot-api-client-go.git
synced 2024-11-24 22:06:02 +03:00
commit
a917003a6f
@ -39,6 +39,9 @@ const (
|
|||||||
ChannelFeatureReceive string = "receive"
|
ChannelFeatureReceive string = "receive"
|
||||||
ChannelFeatureSend string = "send"
|
ChannelFeatureSend string = "send"
|
||||||
ChannelFeatureBoth string = "both"
|
ChannelFeatureBoth string = "both"
|
||||||
|
|
||||||
|
BotRoleDistributor string = "distributor"
|
||||||
|
BotRoleResponsible string = "responsible"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MgClient type
|
// MgClient type
|
||||||
@ -54,6 +57,7 @@ type (
|
|||||||
BotsRequest struct {
|
BotsRequest struct {
|
||||||
ID uint64 `url:"id,omitempty"`
|
ID uint64 `url:"id,omitempty"`
|
||||||
Active uint8 `url:"active,omitempty"`
|
Active uint8 `url:"active,omitempty"`
|
||||||
|
Role string `url:"role,omitempty"`
|
||||||
Since string `url:"since,omitempty"`
|
Since string `url:"since,omitempty"`
|
||||||
Until string `url:"until,omitempty"`
|
Until string `url:"until,omitempty"`
|
||||||
}
|
}
|
||||||
@ -145,6 +149,7 @@ type (
|
|||||||
InfoRequest struct {
|
InfoRequest struct {
|
||||||
Name string `url:"name,omitempty" json:"name"`
|
Name string `url:"name,omitempty" json:"name"`
|
||||||
Avatar string `url:"avatar_url,omitempty" json:"avatar_url"`
|
Avatar string `url:"avatar_url,omitempty" json:"avatar_url"`
|
||||||
|
Roles []string `url:"roles,omitempty" json:"roles"`
|
||||||
}
|
}
|
||||||
|
|
||||||
CommandsRequest struct {
|
CommandsRequest struct {
|
||||||
@ -172,6 +177,7 @@ type (
|
|||||||
DeactivatedAt string `json:"deactivated_at,omitempty"`
|
DeactivatedAt string `json:"deactivated_at,omitempty"`
|
||||||
IsActive bool `json:"is_active"`
|
IsActive bool `json:"is_active"`
|
||||||
IsSelf bool `json:"is_self"`
|
IsSelf bool `json:"is_self"`
|
||||||
|
Roles []string `json:"roles,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
ChannelResponseItem struct {
|
ChannelResponseItem struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user