public TwitterBot(int webhookPort, string pfxPath, string pfxPassword, long recipient, string consumerKey, string consumerSecret, string accessToken, string accessTokenSecret, LogLevel logLevel = DefaultLogLevel) : base(webhookPort, pfxPath, pfxPassword, recipient, consumerSecret, logLevel) { isWebhookEnabled = true; ConsumerKey = consumerKey; // ApiSecret assigned into webhook AccessToken = accessToken; AccessTokenSecret = accessTokenSecret; usersClient = new UsersClient(consumerKey, consumerSecret, accessToken, accessTokenSecret); directMessagesClient = new DirectMessagesClient(consumerKey, consumerSecret, accessToken, accessTokenSecret); welcomeMessageClient = new WelcomeMessageClient(consumerKey, consumerSecret, accessToken, accessTokenSecret); tweetClient = new TweetClient(consumerKey, consumerSecret, accessToken, accessTokenSecret); }
public void Intitialize() { client = new DirectMessagesClient(ConsumerKey, ConsumerSecret, AccessToken, AccessTokenSecret); }