austintgriffith / twitter-bot-wallet-dropper

DMs a preloaded burner wallet via link triggered from DM or tweet
MIT License
12 stars 5 forks source link

Subscribe to direct messages #3

Open PeterTheOne opened 5 years ago

PeterTheOne commented 5 years ago

I checked out the twitter API a bit, first I wanted to try to use https://github.com/ttezel/twit to subscribe to direct_message but twitter deprecated some user streaming endpoint, so twitter account webhooks seem to be the way to go and https://github.com/super-ienien/twitter-webhooks looks good.

See also https://developer.twitter.com/en/docs/accounts-and-users/subscribe-account-activity/guides/getting-started-with-webhooks and https://developer.twitter.com/en/docs/accounts-and-users/subscribe-account-activity/guides/account-activity-data-objects#direct_message_events

borwahs commented 5 years ago

I like the idea of using webhooks (especially since streaming could end at any time). I plan to start a PR to get Express up and running to handle the webhook calls.