Removed try/catch it broke
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		@@ -55,22 +55,15 @@ namespace TeleTok
 | 
				
			|||||||
            // Passes the url along to the video downloader if it is valid AND a tiktok link
 | 
					            // Passes the url along to the video downloader if it is valid AND a tiktok link
 | 
				
			||||||
            if (isUri)
 | 
					            if (isUri)
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                try
 | 
					                if(messageText.Contains("tiktok.com"))
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    if(messageText.Contains("tiktok.com"))
 | 
					                    proxyUrl = VidDownload.TikTokURL(messageText);
 | 
				
			||||||
                    {
 | 
					 | 
				
			||||||
                        proxyUrl = VidDownload.TikTokURL(messageText);
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
                        Message ttVideo = await botClient.SendVideoAsync(
 | 
					                    Message ttVideo = await botClient.SendVideoAsync(
 | 
				
			||||||
                            chatId: chatId,
 | 
					                        chatId: chatId,
 | 
				
			||||||
                            video: proxyUrl,
 | 
					                        video: proxyUrl,
 | 
				
			||||||
                            cancellationToken: cancellationToken
 | 
					                        cancellationToken: cancellationToken
 | 
				
			||||||
                        );
 | 
					                    );
 | 
				
			||||||
                    }
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
                catch 
 | 
					 | 
				
			||||||
                {
 | 
					 | 
				
			||||||
                    Console.WriteLine("Valid TikTok URI was sent, but was not a video!");
 | 
					 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user