Skip to content

Commit

Permalink
Merge pull request #1 from tada-team/6739-cant-send-message-reason
Browse files Browse the repository at this point in the history
added fields
  • Loading branch information
sdfsdhgjkbmnmxc authored Sep 9, 2020
2 parents f5a247b + f5da773 commit 71fadb7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
1 change: 1 addition & 0 deletions chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ type Chat struct {
CountersEnabled bool `json:"counters_enabled,omitempty"`
CanCall bool `json:"can_call,omitempty"`
CanSendMessage bool `json:"can_send_message,omitempty"`
CantSendMessageReason string `json:"cant_send_message_reason,omitempty"`
Collapsed bool `json:"collapsed,omitempty"`
Draft string `json:"draft,omitempty"`
DraftNum int64 `json:"draft_num,omitempty"`
Expand Down
21 changes: 11 additions & 10 deletions contact.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,17 @@ type Contact struct {
Botname string `json:"botname,omitempty"`
Sections []string `json:"sections"`
// actor:
CanSendMessage *bool `json:"can_send_message,omitempty"`
CanCall *bool `json:"can_call,omitempty"`
CanCreateTask *bool `json:"can_create_task,omitempty"`
CanAddToGroup *bool `json:"can_add_to_group,omitempty"`
CanDelete *bool `json:"can_delete,omitempty"`
ChangeableFields *[]string `json:"changeable_fields,omitempty"`
FamilyName *string `json:"family_name,omitempty"`
GivenName *string `json:"given_name,omitempty"`
Patronymic *string `json:"patronymic,omitempty"`
DefaultLang *string `json:"default_lang,omitempty"`
CanSendMessage *bool `json:"can_send_message,omitempty"`
CantSendMessageReason string `json:"cant_send_message_reason,omitempty"`
CanCall *bool `json:"can_call,omitempty"`
CanCreateTask *bool `json:"can_create_task,omitempty"`
CanAddToGroup *bool `json:"can_add_to_group,omitempty"`
CanDelete *bool `json:"can_delete,omitempty"`
ChangeableFields *[]string `json:"changeable_fields,omitempty"`
FamilyName *string `json:"family_name,omitempty"`
GivenName *string `json:"given_name,omitempty"`
Patronymic *string `json:"patronymic,omitempty"`
DefaultLang *string `json:"default_lang,omitempty"`
// self:
DebugShowActivity *bool `json:"debug_show_activity,omitempty"`
DropallEnabled *bool `json:"dropall_enabled,omitempty"`
Expand Down

0 comments on commit 71fadb7

Please sign in to comment.