Exemple #1
0
        static void Main(string[] args)
        {
            var bot = new BotBase("128682096:AAE_LP3sW5kM-d2Zd_sjhG9slwq4-xsXdWs");

            bot.GetUpdates(new GetUpdatesParameter());
            bot.SendDocument <CustomeKeyboard, SendDocumentParameter <CustomeKeyboard> >
                (new SendDocumentParameter <CustomeKeyboard>(56751056, File.OpenRead(@"C:\Users\Ehsan\Desktop\Photo1067.jpg"), "Photo1067.jpg")
            {
            });

            string baseAddress = "http://localhost:9000/";

            using (WebApp.Start <Startup>(url: baseAddress))
            {
            }

            Console.ReadLine();
        }
Exemple #2
0
        static void Main(string[] args)
        {
            var bot = new BotBase("128682096:AAE_LP3sW5kM-d2Zd_sjhG9slwq4-xsXdWs");
            bot.GetUpdates(new GetUpdatesParameter());
            bot.SendDocument<CustomeKeyboard, SendDocumentParameter<CustomeKeyboard>>
            (new SendDocumentParameter<CustomeKeyboard>(56751056,File.OpenRead(@"C:\Users\Ehsan\Desktop\Photo1067.jpg"), "Photo1067.jpg")
            {

            });

            string baseAddress = "http://localhost:9000/";

            using (WebApp.Start<Startup>(url: baseAddress))
            {

            }

            Console.ReadLine();
        }