
أوامر وتحكم لكتابة #C
أمر وتحكم لكتابة بلغة C#
المؤلف: Leiothrix
تيليجرام: @Leiothrix
تويتر: @wh4am1
الفريق: QQ爱&Love


using System.IO;
using Telegram.Bot;
using Telegram.Bot.Args;
using Telegram.Bot.Types.InputFiles;
using AForge.Video;
using AForge.Controls;
using AForge.Video.DirectShow;
System.Drawing;
System.Windows.Forms;
static void Main(){
botClient = new TelegramBotClient("token"); // الرمز المميز الخاص بك
botClient.OnMessage += Bot_OnMessage;
botClient.StartReceiving();
Thread.Sleep(int.MaxValue);
}

// using System.Net;
var httpProxy = new WebProxy("https://example.org", 8080)
{
Credentials = new NetworkCredential("USERNMAE", "PASSWORD")
};
var botClient = new TelegramBotClient("YOUR_API_TOKEN", httpProxy);
// using MihaZupan;
var proxy = new HttpToSocks5Proxy(Socks5ServerAddress, Socks5ServerPort);
// أو إذا كنت بحاجة إلى بيانات اعتماد لخادم البروكسي الخاص بك:
var proxy = new HttpToSocks5Proxy(
Socks5ServerAddress, Socks5ServerPort, "USERNAME", "PASSWORD"
);
// يتيح لك استخدام بروكسيات تسمح فقط بالاتصالات إلى تيليجرام
// ضروري لبعض البروكسيات
proxy.ResolveHostnamesLocally = true;
var botClient = new TelegramBotClient("YOUR_API_TOKEN", proxy);
ilmerge.exe /target:exe /out:TGbot.exe ConsoleApp1.exe AForge.Controls.dll AForge.dll AForge.Imaging.dll AForge.Math.dll AForge.Video.DirectShow.dll AForge.Video.dll Newtonsoft.Json.dll Telegram.Bot.dll /targetplatform:v4
أخيراً، قم بتوليد المخرجات في الدليل المحدد بواسطة معامل out
لا يزال قيد التحسين! لا يزال قيد التحسين! لا يزال قيد التحسين!