mirror of
				https://github.com/Ylianst/MeshCentral.git
				synced 2025-03-09 15:40:18 +00:00 
			
		
		
		
	Added support for 2FA messaging (#4650)
This commit is contained in:
		
							parent
							
								
									c62bc9c962
								
							
						
					
					
						commit
						e2cf723c6a
					
				
					 8 changed files with 139 additions and 13 deletions
				
			
		|  | @ -69,7 +69,7 @@ module.exports.CreateServer = function (parent) { | |||
|             async function sendTelegramMessage(to, msg, func) { | ||||
|                 if (obj.telegramClient == null) return; | ||||
|                 parent.debug('email', 'Sending Telegram message to: ' + to.substring(9) + ': ' + msg); | ||||
|                 try { await obj.telegramClient.sendMessage(to.substring(9), { message: msg }); func(true); } catch (ex) { func(false, ex); } | ||||
|                 try { await obj.telegramClient.sendMessage(to.substring(9), { message: msg }); if (func != null) { func(true); } } catch (ex) { if (func != null) { func(false, ex); } } | ||||
|             } | ||||
|             sendTelegramMessage(to, msg, func); | ||||
|         } else { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue