Пример #1
0
    def declare_checkin(self, to, record, weekly_stats):
        text = """
{} Is Making {}{} Checked in!
{} minutes for {}
""".format(record.owner_name,
           weekly_stats.close_count + 1, "th", # TODO(omo): Use correct ordinal
           record.planned_minutes, record.topic).strip()
        return self.sendMessage(to, text, reply_markup=nt.ReplyKeyboardHide())
Пример #2
0
 def ack_quit(self, id):
     text = "Call me anytime..."
     return self.sendMessage(id, text, reply_markup=nt.ReplyKeyboardHide())
Пример #3
0
 def ask_topic(self, record):
     text = "Whatcha gonna do?"
     return self.sendMessage(record.owner_id, text, reply_markup=nt.ReplyKeyboardHide())
Пример #4
0
    def declare_abort(self, record):
        text = """
{} Aborted the session :-(
""".format(record.owner_name, record.planned_minutes).strip()
        return self.sendMessage(record.owner_id, text, reply_markup=nt.ReplyKeyboardHide())
Пример #5
0
    def declare_checkout(self, record):
        text = """
{} Checked out from {} minute session!
""".format(record.owner_name, record.planned_minutes).strip()
        return self.sendMessage(record.owner_id, text, reply_markup=nt.ReplyKeyboardHide())
Пример #6
0
    def tell_where_you_are(self, owner_id, owner_name, chat_id, chat_title):
        text = """
OK, I got {} is at {}({})
""".format(owner_name, chat_title, chat_id).strip()
        return self.sendMessage(chat_id, text, reply_markup=nt.ReplyKeyboardHide())
Пример #7
0
 def tell_stats(self, chat_id, text):
     return self.sendMessage(chat_id, text, reply_markup=nt.ReplyKeyboardHide())