コード例 #1
0
        public TelegramBotClient(string token, IWebProxy webProxy)
        {
            _bot = new Bot();
            _bot.SetToken(token);

            _sender = new ApiSender(webProxy);
        }
コード例 #2
0
        public TelegramBotClient(string token, HttpClient httpClient = null)
        {
            _bot = new Bot();
            _bot.SetToken(token);

            _sender = new ApiSender(httpClient);
        }
コード例 #3
0
 public TelegramBotClient(IWebProxy webProxy)
 {
     _bot    = new Bot();
     _sender = new ApiSender(webProxy);
 }
コード例 #4
0
 public TelegramBotClient(HttpClient httpClient = null)
 {
     _bot    = new Bot();
     _sender = new ApiSender(httpClient);
 }