Fetching chat IDs, some refactoring, new methods in Chat class