github.com/gotd/td/internal/proto.Message.Bytes (field)

10 uses

	github.com/gotd/td/internal/proto (current package)
		container.go#L52: 	Bytes int
		container.go#L58: 	if m.Bytes < 0 || m.Bytes > 1024*1024 {
		container.go#L59: 		return errors.Errorf("message length %d is invalid", m.Bytes)
		container.go#L63: 	b.PutInt(m.Bytes)
		container.go#L89: 		m.Bytes = v
		container.go#L91: 	if m.Bytes < 0 || m.Bytes > 1024*1024 {
		container.go#L94: 	m.Body = make([]byte, m.Bytes)
		container.go#L95: 	return b.ConsumeN(m.Body, m.Bytes)