utox send inline plugin
This commit is contained in:
		
							parent
							
								
									dd4634c1a7
								
							
						
					
					
						commit
						968d43affe
					
				
					 2 changed files with 20 additions and 0 deletions
				
			
		
							
								
								
									
										19
									
								
								uToxInlineSending/uin.py
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								uToxInlineSending/uin.py
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,19 @@ | |||
| import plugin_super_class | ||||
| 
 | ||||
| 
 | ||||
| class uToxInlineSending(plugin_super_class.PluginSuperClass): | ||||
| 
 | ||||
|     def __init__(self, *args): | ||||
|         super(uToxInlineSending, self).__init__('uToxInlineSending', 'uin', *args) | ||||
|         self._tmp = None | ||||
| 
 | ||||
|     def stop(self): | ||||
|         self._profile.send_screenshot = self._tmp | ||||
| 
 | ||||
|     def start(self): | ||||
|         self._tmp = self._profile.send_screenshot | ||||
| 
 | ||||
|         def func(data): | ||||
|             self._profile.send_inline(data, 'utox-inline.png') | ||||
| 
 | ||||
|         self._profile.send_screenshot = func | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 ingvar1995
						ingvar1995