def unregChat(self, chat_id): ''' chat_id of user ''' db = Database() db.connection() return db.delUser(chat_id=chat_id)
def unregChat(self, chat_id): db = Database() db.connection() ##Check if user registered to db## if db.delUser(chat_id=chat_id): return else: return False