api: Implement POST /mark_all_as_read.
This commit is contained in:
		
							parent
							
								
									92ceb991a3
								
							
						
					
					
						commit
						ac399d895d
					
				
					 1 changed files with 13 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -763,6 +763,19 @@ class Client(object):
 | 
			
		|||
            request=update_data
 | 
			
		||||
        )
 | 
			
		||||
 | 
			
		||||
    def mark_all_as_read(self):
 | 
			
		||||
        # type: () -> Dict[str, Any]
 | 
			
		||||
        '''
 | 
			
		||||
            Example usage:
 | 
			
		||||
 | 
			
		||||
            >>> client.mark_all_as_read()
 | 
			
		||||
            {'result': 'success', 'msg': ''}
 | 
			
		||||
        '''
 | 
			
		||||
        return self.call_endpoint(
 | 
			
		||||
            url='mark_all_as_read',
 | 
			
		||||
            method='POST',
 | 
			
		||||
        )
 | 
			
		||||
 | 
			
		||||
    def get_message_history(self, message_id):
 | 
			
		||||
        # type: (int) -> Dict[str, Any]
 | 
			
		||||
        '''
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue