mirror of
				https://github.com/matrix-org/gomatrix
				synced 2025-11-03 22:08:04 +00:00 
			
		
		
		
	add some missing comments
This commit is contained in:
		
							parent
							
								
									759911797e
								
							
						
					
					
						commit
						7fd6c722de
					
				
					 3 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -486,7 +486,7 @@ func (cli *Client) SendVideo(roomID, body, url string) (*RespSendEvent, error) {
 | 
			
		|||
		})
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// SendImage send an m.room.message event intor the given room with a msgtyope of m.file
 | 
			
		||||
// SendFile send an m.room.message event intor the given room with a msgtyope of m.file
 | 
			
		||||
// See https://matrix.org/docs/spec/client_server/r0.2.0.html#m-file
 | 
			
		||||
func (cli *Client) SendFile(roomID, body, url string) (*RespSendEvent, error) {
 | 
			
		||||
	return cli.SendMessageEvent(roomID, "m.room.message",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -98,7 +98,7 @@ type FileMessage struct {
 | 
			
		|||
// FileInfo contains information about a file
 | 
			
		||||
type FileInfo struct {
 | 
			
		||||
	MimeType string `json:"mimetype"`
 | 
			
		||||
	Size     int64  `json:size"`
 | 
			
		||||
	Size     int64  `json:"size"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var htmlRegex = regexp.MustCompile("<[^<]+?>")
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -168,6 +168,7 @@ type RespSync struct {
 | 
			
		|||
	} `json:"rooms"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// RespTurnServer have information about the Rurtn Server Authentication
 | 
			
		||||
type RespTurnServer struct {
 | 
			
		||||
	Username string   `json:"username"`
 | 
			
		||||
	Password string   `json:"password"`
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue