Compare commits
	
		
			No commits in common. "187d990d2b3c4adc18ff6d9ee67610e75633395d" and "2446a20a5b0fceb43cc6234790f903bf3ea26f57" have entirely different histories.
		
	
	
		
			187d990d2b
			...
			2446a20a5b
		
	
		
							
								
								
									
										2
									
								
								main.py
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								main.py
									
									
									
									
									
								
							@ -195,7 +195,7 @@ def queue_processor():
 | 
			
		||||
                            response, formatting = mod.process(msg)
 | 
			
		||||
 | 
			
		||||
                            if response:
 | 
			
		||||
                                if not formatting:
 | 
			
		||||
                                if formatting == None:
 | 
			
		||||
                                    updater.bot.send_message(chat_id=msg.chat.id, text=response,
 | 
			
		||||
                                                             disable_web_page_preview=True)
 | 
			
		||||
                                    print(f"Responded using module {mod.path} ({mod.alias}) with text: {response}")
 | 
			
		||||
 | 
			
		||||
@ -195,7 +195,7 @@ def queue_processor():
 | 
			
		||||
                            response, formatting = mod.process(msg)
 | 
			
		||||
 | 
			
		||||
                            if response:
 | 
			
		||||
                                if not formatting:
 | 
			
		||||
                                if formatting == None:
 | 
			
		||||
                                    print(f"Responded using module {mod.path} ({mod.alias}) with text: {response}")
 | 
			
		||||
                                    break
 | 
			
		||||
                                elif formatting in ["Markdown", "MarkdownV2", "HTML"]:
 | 
			
		||||
 | 
			
		||||
@ -22,7 +22,7 @@ if (command[0] in self.aliases) and (1 <= command_length <= 3):
 | 
			
		||||
                "target": target,
 | 
			
		||||
                "format": "text"}
 | 
			
		||||
 | 
			
		||||
        res = requests.post("http://10.1.1.1:5010/translate", data = data)
 | 
			
		||||
        res = requests.post("http://127.0.0.1:5000/translate", data = data)
 | 
			
		||||
        result = json.loads(res.text)
 | 
			
		||||
 | 
			
		||||
        if source == "auto":
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user