sferik / twitter-ruby

A Ruby interface to the Twitter API.
http://www.rubydoc.info/gems/twitter
MIT License
4.58k stars 1.31k forks source link

Add partial support for DM welcome messages #950

Closed FabienChaynes closed 4 years ago

FabienChaynes commented 5 years ago

Hi,

Twitter now supports welcome messages in DMs (here's the endpoints documentation).

This PR adds these new endpoints to the gem. All of them are supported, but just like for DMs, welcome messages can include media and quick replies (cf. doc: "Welcome Messages can contain any content that a Direct Message would, including media, Quick Replies, and more.") which is not handled by this PR.

Furthermore, this PR is not ready to be merged as is because it misses some documentation and some rubocop tests are failing. I just wanted to put it there in case anyone needs it.