Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

required changes for twitter quick reply feature #43

Closed

Conversation

abhishekchotaliya
Copy link

These changes are required for twitter dm package to support quick reply feature.

Abhishek Chotaliya added 2 commits July 5, 2018 13:32
required changes to support quick reply options for botmaster-twitter-dm module
required changes to support quick reply options for botmaster-twitter-dm module
@coveralls
Copy link

coveralls commented Jul 5, 2018

Coverage Status

Coverage decreased (-5.8%) to 94.226% when pulling 0204807 on abhishekchotaliya:master into 24c378c on botmasterai:master.

@jdwuarin
Copy link
Member

jdwuarin commented Jul 5, 2018

This is not how botmaster is supposed to work. There should never be any mention of any potential. Underlying message format. All the formatting should happen in whichever class extends BaseBot. This project should not have to change to support it

@jdwuarin jdwuarin closed this Jul 5, 2018
if (outgoingMessage.quick_replies) {
twitter_qr = true
}
return this.__sendMessage(rawMessage, sendOptions, twitter_qr);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The rawMessage object should contain enough information for you to know that this is a quick_reply in the twitter-dm package

}
outgoingMessage.addQuickReplies(quickReplies);
outgoingMessage.addQuickReplies(this.type, quickReplies);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this.type is also available in the botmaster-twitter-dm BotClass object. No need to include it here. addQuickReplies should have a different behaviour, this should be done by overriding the method in the TwitterDMBot class. But it doesn't look necessary here.

@abhishekchotaliya
Copy link
Author

Thanks for the suggestions!
Will implement the necessary changes very soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants