Skip to content

Commit

Permalink
ValidUntil type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sdfsdhgjkbmnmxc committed Mar 10, 2021
1 parent 363f8a9 commit 78f40c8
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions server_chat_composing.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package tdproto

import "time"

func NewServerChatComposing(composing, isAudio bool, chat, actor *JID) (r ServerChatComposing) {
r.Name = r.GetName()
r.Params.Jid = *chat
Expand All @@ -19,9 +17,9 @@ type ServerChatComposing struct {
func (p ServerChatComposing) GetName() string { return "server.chat.composing" }

type serverChatComposingParams struct {
Jid JID `json:"jid"`
Actor JID `json:"actor"`
Composing bool `json:"composing"`
IsAudio bool `json:"is_audio,omitempty"`
ValidUntil time.Time `json:"valid_until,omitempty"`
Jid JID `json:"jid"`
Actor JID `json:"actor"`
Composing bool `json:"composing"`
IsAudio bool `json:"is_audio,omitempty"`
ValidUntil ISODateTimeString `json:"valid_until,omitempty"`
}

0 comments on commit 78f40c8

Please sign in to comment.