Class: Twitter::DirectMessage
- Inherits:
-
Object
- Object
- Twitter::DirectMessage
- Defined in:
- lib/twittbot/gem_ext/twitter/direct_message.rb
Instance Method Summary collapse
-
#reply(direct_message_text) ⇒ Object
Replies to this direct message.
Instance Method Details
#reply(direct_message_text) ⇒ Object
Replies to this direct message.
5 6 7 8 9 10 11 |
# File 'lib/twittbot/gem_ext/twitter/direct_message.rb', line 5 def reply() return if $bot.nil? or $bot[:client].nil? $bot[:client]. self.sender.id, rescue Twitter::Error => e puts "caught Twitter error while replying via DM: #{e.}" end |