chat history support (partial)

This commit is contained in:
ingvar1995
2016-03-12 23:18:13 +03:00
parent 31ccd99d0e
commit 159e1f990a
4 changed files with 114 additions and 42 deletions

View File

@ -113,11 +113,3 @@ class History(object):
def __del__(self):
self._db.close()
if __name__ == '__main__':
h = History('test')
if not h.friend_exists_in_db('42'):
h.add_friend_to_db('42')
h.save_messages_to_db('42', [('bugara', 1, 123412413, 1)])
h.delete_messages('42')