Overseas access: www.kdjingpai.com
Bookmark Us
Current Position:fig. beginning " AI Answers

What are the technical details of sending tweets with polls using agent-twitter-client?

2025-09-05 1.6 K

The following key technical points need to be focused on to realize voting tweets:

  1. API version selection: must be configuredTWITTER_API_KEYetc. v2 credentials with thesendTweetV2()Method Invocation (Basic)sendTweet(Not supporting the vote).
  2. Option parameter format: Voting options should be passed as an array, for example:
    await scraper.sendTweetV2('问卷内容', {
    poll_options: ['选项1', '选项2'],
    poll_duration: 1440 //分钟数
    });
  3. Validity Period Limit: Twitter mandatory voting is from 5 minutes to 7 days long (need to convert to minutes to pass in).
  4. error handling: Capture required"Poll options must be between 2 and 4 choices".and other formatting anomalies.

Note: A maximum of 25 polls can be created within 24 hours on the same account, and poll tweets cannot be modified/ended early via the API.

Recommended

Can't find AI tools? Try here!

Just type in the keyword Accessibility Bing SearchYou can quickly find all the AI tools on this site.

Top


Fatal error: Uncaught wfWAFStorageFileException: Unable to save temporary file for atomic writing. in /www/wwwroot/www.kdjingpai.com/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php:34 Stack trace: #0 /www/wwwroot/www.kdjingpai.com/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php(658): wfWAFStorageFile::atomicFilePutContents() #1 [internal function]: wfWAFStorageFile->saveConfig() #2 {main} thrown in /www/wwwroot/www.kdjingpai.com/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php on line 34