mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
🚧 Anti-spam system based on entities
This commit is contained in:
+2
-2
@@ -161,11 +161,11 @@ namespace Kruzya.TelegramBot.Core
|
||||
private void HookAppDomain()
|
||||
{
|
||||
var appDomain = AppDomain.CurrentDomain;
|
||||
|
||||
|
||||
appDomain.AssemblyResolve += delegate(object? sender, ResolveEventArgs args)
|
||||
{
|
||||
var basePath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
|
||||
string assemblyPath = Path.Combine(basePath, new AssemblyName(args.Name).Name + ".dll");
|
||||
var assemblyPath = Path.Combine(basePath, new AssemblyName(args.Name).Name + ".dll");
|
||||
if (!File.Exists(assemblyPath))
|
||||
{
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user