Пример #1
0
 def tweet(self, message):
     try:
         print(message[:140])
         self.api.update_status(status=message[:140])
     except Exception as err:
         msg = "Tweet Error: {0}".format(err)
         print(msg)
         logError(msg)
Пример #2
0
 def tweet(self, message):
     try:
         print(message[:140])
         self.api.update_status(status=message[:140])
     except Exception as err:
         msg = "Tweet Error: {0}".format(err)
         print(msg)
         logError(msg)
Пример #3
0
 def reply(self, message, reply_id):
     try:
         print(message[:140])
         self.api.update_status(status=message[:140],
                                in_reply_to_status_id=reply_id)
     except Exception as err:
         msg = "Reply Error: {0}".format(err)
         print(msg)
         logError(msg)
Пример #4
0
 def reply(self, message, reply_id):
     try:
         print(message[:140])
         self.api.update_status(
             status=message[:140], in_reply_to_status_id=reply_id)
     except Exception as err:
         msg = "Reply Error: {0}".format(err)
         print(msg)
         logError(msg)
Пример #5
0
 def on_error(self, status):
     logError(status)
     print(status)
Пример #6
0
 def on_error(self, status):
     logError(status)
     print(status)